|
Oracle© Collaboration Suite Workspaces Web Services API Reference 10g Release 1 (10.1.2.2) Part No. B28209-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Collaborative Workspaces provides views for categorizing and aggregating content across resource types within a workspace - ViewsService provides methods to operate on views within a workspace.
The major operations supported include: creation, updation, retrieval and deletion of views.
The Axis specific code snippet given below, illustrates how a view can be created within a workspace.
// Invoke an instance of the view service locator and get a handle to view service. ViewsServiceServiceLocator vssl = new ViewsServiceServiceLocator(); ViewsService vService = vssl.getViewsService(); // Create a view definition object and set necessary attributes. ViewItemDefinition vDef1 = new ViewItemDefinition(); vDef1.setName("New View 1"); vDef1.setDescription("Description of view 1"); // wspcId is the UID of workspace in which the view is to be created. vService.createView(wspcId, vDef1);
Method Summary | |
int |
addItems(java.lang.String wspcUid, java.lang.String viewUid, java.lang.String[] itemUids) Adds the specified items to the view. |
ViewResourceItem |
createView(java.lang.String wspcUid, ViewItemDefinition viewDef) Creates a view in the workspace specified. |
void |
deleteViews(java.lang.String wspcUid, java.lang.String[] viewUids) Deletes the specified views from the workspace given. |
ViewResourceItem |
getViewByUid(java.lang.String wspcUid, java.lang.String viewUid) Returns the view represented by the uid. |
java.lang.String[] |
listItems(java.lang.String wspcUid, java.lang.String viewUid) Gives the ids of the elements in the view specified. |
ViewResourceItem[] |
listParentViews(java.lang.String wspcUid, java.lang.String itemUid) Lists all the views the specified resource item is a member of |
ViewResourceItem[] |
listViews(java.lang.String wspcUid) Lists all the views in the workspace specified. |
void |
removeItems(java.lang.String wspcUid, java.lang.String viewUid, java.lang.String[] itemUids) Removes the specified items from the view. |
void |
updateView(java.lang.String wspcUid, ViewResourceItem viewRes) Updates the view represented by the uid. |
Method Detail |
public ViewResourceItem createView(java.lang.String wspcUid, ViewItemDefinition viewDef) throws CwWSException
viewDef
- - ViewDefinition bean representing the properties of the view to be created.wspcUid
- - workspace in which the view is to be created.CwWSException
- - If objects passed are null or invalidpublic void deleteViews(java.lang.String wspcUid, java.lang.String[] viewUids) throws CwWSException
viewUids
- - array of the uid's of views to be deleted.wspcUid
- - workspacw from which the views are to be deleted.CwWSException
- - If objects passed are null or invalidpublic ViewResourceItem getViewByUid(java.lang.String wspcUid, java.lang.String viewUid) throws CwWSException
viewUid
- - view id representing the view to be retrieved.wspcUid
- - workspace in which the view is present.CwWSException
- - If objects passed are null or invalidpublic void updateView(java.lang.String wspcUid, ViewResourceItem viewRes) throws CwWSException
wspcUid
- - uid of the workspace in which the view is present.viewRes
- - The bean representing the view.CwWSException
- - If the view uid or name is null.public ViewResourceItem[] listParentViews(java.lang.String wspcUid, java.lang.String itemUid) throws CwWSException
itemUid
- - uid of the item for which the parent views are to be returned.wspcUid
- - uid of the workspace in which the item is present.CwWSException
- - If objects passed are null or invalidpublic ViewResourceItem[] listViews(java.lang.String wspcUid) throws CwWSException
wspcUid
- - uid of the workspace in which the views are present.CwWSException
- - If objects passed are null or invalidpublic int addItems(java.lang.String wspcUid, java.lang.String viewUid, java.lang.String[] itemUids) throws CwWSException
itemUids
- - uids of the items added to the view.viewUid
- - uid of the view into which the items are addedwspcUid
- - workspae in which the view is presentCwWSException
public java.lang.String[] listItems(java.lang.String wspcUid, java.lang.String viewUid) throws CwWSException
viewUid
- - view in which the items are presentwspcUid
- - workspace in which the view is present.CwWSException
- - If objects passed are null or invalidpublic void removeItems(java.lang.String wspcUid, java.lang.String viewUid, java.lang.String[] itemUids) throws CwWSException
itemUids
- - uids of the items to be removed from the viewviewUid
- - view from which the items are to be removedwspcUid
- - workspace in which the view is present.CwWSException
- - If objects passed are null or invalid
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |