|
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 |
Webservice interface representing Oracle Discussions Forum related operations. A forum in Discussions represents a container, to which topics/messages are posted. The web services interface provides operations for
Apart from the above mentioned operations, it also provides bulk operations to create/delete multiple forums in a single invocation.
Axis specific Sample code illustrating the invocation/usage of ForumService.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. ForumServiceServiceLocator mdssl = new ForumServiceServiceLocator(); //Retrieve a reference to the remote webservices interface. ForumService mdsl = mdssl.getForumService(); //Notify the axis server that client is interested in maintaining session. ((ForumServiceSoapBindingStub)mdsl).setMaintainSession(true); //Set the cookie, retrieved during login service invocation. ((javax.xml.rpc.Stub)mdsl)._setProperty(HTTPConstants.HEADER_COOKIE,cookie); //Invoke the webservices method. AbstractContainer[] containers = mdsl.getFavoriteContainers(); AbstractContainer aContainer = null; if(containers != null) { //Process the retrieved container listing. ........ }
CategoryService
, ContainerService
Method Summary | |
Forum |
create(long lParentId, ForumDefinition fDefn) Creates a forum under the container represented by lParentId, with the properties specified in the fDefn. |
CreateForumBulkResponse[] |
createForums(long lParentId, ForumDefinition[] fDefn) Creates forums under the container represented by lParentId, with the properties specified in the fDefn bean array. |
void |
delete(long lForumId) Deletes the forum represented by lForumId. |
DeleteElementBulkResponse[] |
deleteForums(long[] lForumIds) Deletes the forums represented by lForumIds array. |
Forum |
getForumById(long lForumId) Returns a forum bean corresponding to the forum represented by lForumId. |
ForumSettings |
getForumSettings(long lForumId) Returns the settings of the forum represented by lForumId. |
Topic[] |
listTopics(long lForumId, int iFetchStart, int iFetchMax, boolean bSortByCreation, boolean bAscending) Lists topics under the forum represented by lForumId. |
Forum |
lock(long lForumId) Locks a forum represented by lForumId. |
Forum |
unlock(long lForumId) Unlocks a forum represented by lForumId. |
ForumSettings |
updateForumSettings(long lForumId, ForumSettings fs) Updates the forum settings for the forum represented by lForumId, with the settings supplied in fs. |
Method Detail |
public Forum lock(long lForumId) throws TdWSException
Once the forum is locked, it is not available for normal topic/message posting, until it is unlocked again.
Only users with forum moderator or higher role can post/edit topics/messages in a locked forum.
Users with forum moderator and higher role can lock a forum.
lForumId
- - Id representing the forum to be locked.TdWSException
- - Thrown on
public void delete(long lForumId) throws TdWSException
All the elements under the forum are also deleted. Once a forum is deleted, it cannot be recovered again.
lForumId
- - Id representing the forum to be deleted.TdWSException
- - Thrown on
public Forum create(long lParentId, ForumDefinition fDefn) throws TdWSException
Care should be taken, so that no two forums at the same level have same name and display name.An exception is raised otherwise.
Once a forum is created, forum name cannot be changed.
Default settings are applied to the forum, and they can be updated later.
lParentId should represent a valid category, to which the user has access to
lParentId
- - Id representing parent container, under which forum is to be created.fDefn
- - Forum definition bean, representing properties of new forum to be created.TdWSException
- - Thrown on
createForums
public Forum getForumById(long lForumId) throws TdWSException
lForumId
- - Id representig the forum to be returned.TdWSException
- - Thrown on
public Forum unlock(long lForumId) throws TdWSException
Once the forum is unlocked, it is available for normal topic/message posting. Only users with forum moderator or higher role can unlock a forum.
lForumId
- - Id representing the forum to be unlocked.TdWSException
- - Thrown on
public ForumSettings getForumSettings(long lForumId) throws TdWSException
Default settings are applied to the forum, when it is created. So if the forum settings are not updated, after the forum is created, the default settings are returned.
lForumId
- - Id representing the forum, for which settings are to be returned.TdWSException
- - Thrown on
public ForumSettings updateForumSettings(long lForumId, ForumSettings fs) throws TdWSException
The default settings are overwritten by those specified in the forum settings bean supplied. Forum Email seting needs special attention. Once an email address is specified to the forum, it cannot be changed again.
lForumId
- - Id representing forum, whose settings needs to be updated.fs
- - Forum settings bean, representing settings to be applied to the forum.TdWSException
- - Thrown on
ForumSettings
public Topic[] listTopics(long lForumId, int iFetchStart, int iFetchMax, boolean bSortByCreation, boolean bAscending) throws TdWSException
Returns null, if there are no topics under the forum. The listed topics can be sorted by creation date, by specifying bSortByCreation value to true, sorted in the ascending order of the creation date, by specifying bAscending to true.
lForumId
- - Id representing forum, from which the topics are listed.iFetchStart
- - Start index, from which topics are returned.iFetchMax
- - Parameter, indicating the number of topics to be retrieved. iFetchStart to iFetchStart + iFetchMax topics are returned.bSortByCreation
- - Boolean value specifying if the returned topics are to be sorted by creation timebAscending
- - Boolean value specifying if the returned topics are to be sorted in the ascending order of creation date.TdWSException
- - Thrown on
public CreateForumBulkResponse[] createForums(long lParentId, ForumDefinition[] fDefn) throws TdWSException
Care should be taken, so that no two forums at the same level have same name and display name.An exception is raised otherwise.
Once a forum is created, forum name cannot be changed. Default settings are applied to the forum, and they can be updated later.
An array of beans representing the result of the bulk operation is returned to the user.
Each of the beans in the array wraps around
lParentId
- - Id representing parent container, under which forum is to be created.TdWSException
- - Thrown on
public DeleteElementBulkResponse[] deleteForums(long[] lForumIds) throws TdWSException
All the elements under the forum are also deleted, once a forum is deleted. Once a forum is deleted, it cannot be recovered.
Returns an array of bulk response beans if there is any error in deleting any of the forums. Each of the beans will have information about the element failed, the error message and the error stacktrace. Nothing is returned if the deletion of all the forums is successful.TdWSException
- - Thrown on
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |