|
Oracle Collaboration Suite Discussions Web Services Java API Reference 10g (10.1.2.2) Part No. B28210-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Webservices interface providing operations common to both category service and forum service.
Container is an abstraction of both category and forum.
The interface exposes methods for users, to
Axis specific Sample code illustrating the invocation/usage of ContainerService.Relevant changes are to be done, if a non-axis web services client is used.
//Initialize the webservice locator.The locator contains information about webservices endpoint. ContainerServiceServiceLocator mdssl = new ContainerServiceServiceLocator(); //Retrieve a reference to the remote webservices interface. ContainerService mdsl = mdssl.getContainerService(); //Notify the axis server that client is interested in maintaining session. ((ContainerServiceSoapBindingStub)mdsl).setMaintainSession(true); //Set the cookie, retrieved during login service invocation. ((javax.xml.rpc.Stub)mdsl)._setProperty(HTTPConstants.HEADER_COOKIE,cookie); //Prepare the input parameters long[] lContainerIds = {....};//Valid container ids SearchTerm sterm = new SearchTerm(); sterm.setAuthor("td_superuser");//valid OID user boolean bSearchAnnouncements = true;//Indicates that announcements are also to be searched for messages. //Invoke the webservices method. ForumMessage[] results = mdsl.search(lContainerIds, sterm, bSearchAnnouncements); if(results != null) { //Process the retrieved search results. ........ }
CategoryService
, ForumService
Method Summary | |
Forum |
getAnnouncementsForum(long lContainerId) Retrieves announcements forum in the container specified by lContainerId. |
LastPost |
getLastpost(long lContainerId) Returns lastpost information in the container specified by lContainerId. |
AbstractContainer |
getParent(long lContainerId) Returns the parent container of the container specified by lContainerId. |
Role |
getRole(long lContainerId) Returns the role of the currently logged in user on the container specified by lContainerId. |
GranteeRole[] |
listGranteeRoles(long lContainerId) Returns the roles of all the users on the container specified by the lContainerId. |
ForumMessage[] |
search(long[] lContainerId, SearchTerm st, boolean bSearchAnnouncements) Searches the containers specified by lContainerId for the elements matching the search criterion specified by the search term st. |
GranteeRole[] |
updateGranteeRoles(long lContainerId, GranteeRole[] grRoleArray) Edits the roles of users on the container specified by lContainerId. |
Method Detail |
public AbstractContainer getParent(long lContainerId) throws TdWSException
lContainerId
- - Id representing the container for which, parent is to be retrieved.TdWSException
- - Thrown on
public LastPost getLastpost(long lContainerId) throws TdWSException
lContainerId
- - Id representing container, in which lastpost is to be retrieved.TdWSException
- - Thrown on
public GranteeRole[] listGranteeRoles(long lContainerId) throws TdWSException
lContainerId
- - Id representing container on which, roles are to be returned.TdWSException
- - Thrown on
public GranteeRole[] updateGranteeRoles(long lContainerId, GranteeRole[] grRoleArray) throws TdWSException
It is imperative that the grantee role information of the user invoking the operation is also specified, when invoking the operation. The roles inherited from the parent container cannot be edited at this container level. User cannot edit his own role, an exception is raised otherwise.
lContainerId
- - Id specifying container on which the roles are to be edited.grRoleArray
- - An array of beans representing grantee roles.TdWSException
- - Thrown on
public Forum getAnnouncementsForum(long lContainerId) throws TdWSException
Announcements forum is a hidden forum in a container represented by '.Announcements' name. A null value is returned, if the container does not contain announcements forum.
User can specify if a container can contain announcements forum or not. Exception being root container, where in announcements forum is created by default. So there might be a few containers not having announcements forum.
lContainerId
- - Id specifying container from which, announcements forum is to be retrieved.TdWSException
- - Thrown on
public ForumMessage[] search(long[] lContainerId, SearchTerm st, boolean bSearchAnnouncements) throws TdWSException
If no container ids are specified, whole of Discussions containers for which the user has access to, are searched.If a container id array is supplied, only those containers are searched.
The method also accepts a boolean parameter indicating if the announcements are also to be searched. Wild card searches can aso be performed.
lContainerId
- - Array of container ids specifying search scope.st
- - Search term specifying search contextbSearchAnnouncements
- - boolean value indicating if announcements are also to be searched.TdWSException
- - Thrown on
public Role getRole(long lContainerId) throws TdWSException
lContainerId
- - Id representing container on which the role is to be retrieved.TdWSException
- - Thrown on
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |