|
Oracle® Collaboration Suite Workspaces API Reference 10g Release 1 (10.1.2) B25479-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.workspaces.container.CwWorkspace
The object representing a workspace. CwSession
provides the methods for creation, deletion and retrieval of the workspaces. This object is the entry point for all methods applicable to a workspace.
Method Summary | |
void |
addAttachments(CwUid entityUid, CwAttachmentDefinition attachmentDef) |
CwAddWorkspaceMembersResponse |
addMembers(CwMemberable[] members) Add the collection of users/groups as the members of the workspace, as well as the roles assigned. |
boolean |
canPerformOperation(CwWorkspaceOperation operation) Check if the user can perform the specified operation |
boolean |
canPerformOperation(CwWorkspaceOperation operation, CwApplicationRole[] appRoles) Check if the user can perform the specified operation |
CwMemberable |
createMemberable(CwIdentity identity) Create an instance CwMemberable to be added into Workspace later. |
CwMemberable |
createMemberable(CwIdentity identity, CwMemberRoleType roleType) Create an instance CwMemberable to be added into Workspace later with the specific member role type |
CwResource |
createResource(CwResourceDefinition rsrcDef) Create and add the resource to the workspace. |
CwSubgroup |
createSubgroup(java.lang.String subgroupName, java.lang.String subgroupDisplayName, java.lang.String description, CwMember[] members) Create and add a subgroup to the workspace. |
void |
deleteResource(CwUid rsrcUid) |
void |
deleteResource(CwUid rsrcUid, boolean recursive) Delete the specified resource from the current workspace |
void |
deleteResource(CwUid rsrcUid, CwResourceDeletionOptions options) |
void |
deleteResourceIgnoreError(CwUid rsrcUid) Ingores all errors encountered during the operation and does not mark the workspace for recovery in case of error. |
void |
deleteSubgroup(CwSubgroup subgroup) Delete a subgroup from the workspace. |
CwAnnouncementList |
getAnnouncementList() |
java.lang.String |
getId() Returns the workspac id component of the uid of the workspace |
CwMember |
getMemberById(java.lang.String id) |
CwMemberRole |
getMemberRole(CwMemberRoleType roleType) |
CwMemberRole |
getMyRole() Get my role in the workspace |
CwWorkspaceProperties |
getProperties() |
CwResource |
getResourceByType(CwResourceType rsrcType) Returns the resource of the specified resource type. |
CwResource |
getResourceByUid(CwUid uid) Returns the resource with the specified UID. |
CwSession |
getSession() |
CwSubgroup |
getSubgroupById(java.lang.String id) |
CwWorkspaceSummary |
getSummary() |
CwUid |
getUid() A server-generated unique identifier of the workspace across all workspaces. |
CwMember |
getUserMemberByName(java.lang.String szUserName) Return the user member based on its name. |
boolean |
isNew() Returns true if and only if current user's last logout time is < the creation time of this workspace |
boolean |
isNew(java.util.Date startTime) Returns true if and only if isNew() and the creation time of this workspace > startTime |
boolean |
isUnread() Returns true if and only if the last modification time of this workspace > current user's last logout time |
boolean |
isUnread(java.util.Date startTime) Returns true if and only if isUnread() and the last modification time of this workspace > startTime |
CwAttachedEntity[] |
listAllAttachments(CwUid entityUid) The result is sorted by attachment type |
java.util.Map |
listAllAttachmentsByType(CwUid entityUid) |
CwSubgroup[] |
listAllSubgroups() Returns the list of workspace subgroups of this workspace. |
CwWorkspaceSummary[] |
listAllSubworkspaces() Returns the summaries of all subworkspaces. |
CwAttachedEntity[] |
listAttachments(CwUid entityUid) The result is sorted by attachment type |
java.util.Map |
listAttachmentsByType(CwUid entityUid) |
CwMember[] |
listMembers() |
CwSubgroup[] |
listMySubgroups() Returns all the subgroups the current use is a member of directly or indirectly. |
CwWorkspaceSummary[] |
listNonMemberSubworkspaces() Returns the summaries of all publicly listed subworkspaces of which the connected user is not a member |
java.util.Map |
listNumberOfAttachments(CwUid[] entityUids, boolean checkBidirectional) |
CwResource[] |
listResources() |
CwAttachedEntity[] |
listSourceAttachments(CwUid entityUid) The result is sorted by attachment type |
java.util.Map |
listSourceAttachmentsByType(CwUid entityUid) |
CwSubgroup[] |
listSubgroups(CwMember member) Returns the list of subgroups of which the given member is directly or indirectly a member of the subgroup. |
CwWorkspaceSummary[] |
listSubworkspaces() Returns an array of CwWorkspaceSummary of all of the subworkspaces of this workspace to which the calling user has access. |
CwMember |
reassignMemberRole(CwMember member, CwMemberRoleType role) Assigns the given role to the specified member. |
void |
removeAttachments(CwUid entityUid, CwAttachedEntity[] attachments) |
void |
removeAttachments(CwUid entityUid, CwUid[] attachmentUids) |
CwDeleteWorkspaceMembersResponse |
removeMembers(CwMember[] members) Delete the collection of users/groups from the workspace. |
void |
storeProperties() Updates the properties of the workspace. |
void |
syncMembersResourceStatus(CwMember[] members) Fix the existing members resources status. |
void |
updateAttachments(CwUid entityUid, CwAttachedEntity[] attachments) |
void |
updateAttachments(CwUid entityUid, CwUid[] attachmentUids, java.lang.String[] newDescriptions) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addAttachments(CwUid entityUid, CwAttachmentDefinition attachmentDef) throws CwException
CwException
public CwAddWorkspaceMembersResponse addMembers(CwMemberable[] members) throws CwException
If a user/group is already a member of the workspace, the method will assign additional roles (if any) to the user/group specified in the method.
CwException
- if the user does not have the privilege to change the membership of the workspace.CwException
- if any of the user/group specified does not exist.public boolean canPerformOperation(CwWorkspaceOperation operation) throws CwException
operation
- The operation to check for authorizationCwException
public boolean canPerformOperation(CwWorkspaceOperation operation, CwApplicationRole[] appRoles) throws CwException
operation
- The operation to check for authorizationCwException
public CwMemberable createMemberable(CwIdentity identity)
CwMemberable
to be added into Workspace later. The member role is set to be the default role in workspace.public CwMemberable createMemberable(CwIdentity identity, CwMemberRoleType roleType)
CwMemberable
to be added into Workspace later with the specific member role typepublic CwResource createResource(CwResourceDefinition rsrcDef) throws CwException
CwException
- if the user does not have the privilege to create the resourceCwException
- if the resource to be created does not pass the valiation rules, e.g., the name must be unique across all resources of the workspace.public CwSubgroup createSubgroup(java.lang.String subgroupName, java.lang.String subgroupDisplayName, java.lang.String description, CwMember[] members) throws CwException
subgroupName
- the name of the subgroup to be added.members
- the members of the subgroup to be createdCwException
- if the user does not have the privilege to add a subgroupCwException
- if the subgroup to be created already exists in the workspace.public void deleteResource(CwUid rsrcUid) throws CwException
CwException
public void deleteResource(CwUid rsrcUid, boolean recursive) throws CwException
rsrcUid
- the ID of the resourcerecursive
- if true, delete the resource and the resources of the same type in all descendant sub-workspaces.CwException
- if the resource does not exist. If the user does not have the access[tbd] privilege to the workspace, the user will get the same exception.CwException
- If the user does not have the privlege to delete the workspacepublic void deleteResource(CwUid rsrcUid, CwResourceDeletionOptions options) throws CwException
CwException
public void deleteResourceIgnoreError(CwUid rsrcUid) throws CwException
CwException
public void deleteSubgroup(CwSubgroup subgroup) throws CwException
CwException
- if the user does not have the privilege to delete the subgroup.CwException
- if the subgroup to be deleted does not exist in the workspacepublic CwAnnouncementList getAnnouncementList() throws CwException
CwException
public java.lang.String getId()
public CwMember getMemberById(java.lang.String id) throws CwException
id
- the id of the user/groupCwException
- if the user does not have the privilege to get the membership of the workspace.CwException
- if the identified user/group does not exist.CwException
- if the identified user/group is not a directly member of the workspace.public CwMemberRole getMemberRole(CwMemberRoleType roleType)
public CwMemberRole getMyRole() throws CwException
CwException
- if the user does not exist in Workspace.public CwWorkspaceProperties getProperties()
public CwResource getResourceByType(CwResourceType rsrcType) throws CwException
rsrcType
- the type of the resourceCwException
- if the user does not have the access privilege to the workspaceCwException
- if the resource does not exist.public CwResource getResourceByUid(CwUid uid) throws CwException
uid
- the UID of the resourceCwException
- if the user does not have the access privilege to the workspaceCwException
- if the resource does not exist.public CwSession getSession()
public CwSubgroup getSubgroupById(java.lang.String id) throws CwException
id
- the id of the subgroupCwException
- if the user does not have the privilege to get the membership of the workspace.CwException
- if the identified subgroup does not exist in the workspace.public CwWorkspaceSummary getSummary() throws CwException
CwException
public CwUid getUid()
public CwMember getUserMemberByName(java.lang.String szUserName) throws CwException
CwException
- if the user does not have the privilege to get the membership of the workspace.CwException
- if the identified user/group does not exist.CwException
- if the identified user/group is not a member of the workspace.public boolean isNew() throws CwException
isNew
in interface CwEntity
CwException
public boolean isNew(java.util.Date startTime) throws CwException
isNew
in interface CwEntity
CwException
public boolean isUnread() throws CwException
isUnread
in interface CwEntity
CwException
public boolean isUnread(java.util.Date startTime) throws CwException
isUnread
in interface CwEntity
CwException
public CwAttachedEntity[] listAllAttachments(CwUid entityUid) throws CwException
CwException
public java.util.Map listAllAttachmentsByType(CwUid entityUid) throws CwException
CwException
public CwSubgroup[] listAllSubgroups() throws CwException
CwException
- if the user does not have the privilegepublic CwWorkspaceSummary[] listAllSubworkspaces() throws CwException
CwException
public CwAttachedEntity[] listAttachments(CwUid entityUid) throws CwException
CwException
public java.util.Map listAttachmentsByType(CwUid entityUid) throws CwException
CwException
public CwMember[] listMembers() throws CwException
CwMember
. The resource status of each member is not included in the returned instance. To get the resource status for a member, use CwMember.getResourceStatusMap()
.CwException
- if the user does not have the privilege to get the membership of the workspace.public CwSubgroup[] listMySubgroups() throws CwException
CwException
public CwWorkspaceSummary[] listNonMemberSubworkspaces() throws CwException
CwException
public java.util.Map listNumberOfAttachments(CwUid[] entityUids, boolean checkBidirectional) throws CwException
CwException
public CwResource[] listResources()
resources
directly contained by this workspace. The collection is of type CwResource
CwException
- if the user does not have the access privilege to the workspacepublic CwAttachedEntity[] listSourceAttachments(CwUid entityUid) throws CwException
CwException
public java.util.Map listSourceAttachmentsByType(CwUid entityUid) throws CwException
CwException
public CwSubgroup[] listSubgroups(CwMember member) throws CwException
member
- the member whose subgroups need to be returnedCwException
- if the user does not have the privilege to view others subgrouppublic CwWorkspaceSummary[] listSubworkspaces() throws CwException
CwWorkspaceSummary
of all of the subworkspaces of this workspace to which the calling user has access.CwWorkspaceSummary
CwException
- if the user does not have the access privilege to the workspacepublic CwMember reassignMemberRole(CwMember member, CwMemberRoleType role) throws CwException
CwException
- if the member is workspace owner and try to assign to a non-admin roleCwException
- if member does not belong to the workspacejava.lang.IllegalArgumentException
- if
roleis null.
java.lang.IllegalArgumentException
- if
workspaceis not the same as in
member.
public void removeAttachments(CwUid entityUid, CwAttachedEntity[] attachments) throws CwException
CwException
public void removeAttachments(CwUid entityUid, CwUid[] attachmentUids) throws CwException
CwException
public CwDeleteWorkspaceMembersResponse removeMembers(CwMember[] members) throws CwException
members
- a collection of users/groups of type cwMember
to be deleted as the member of the workspace.CwException
- if the user does not have the privilege to change the membership of the workspace.CwException
- if any of the user/group specified does not exist.public void storeProperties() throws CwException
CwException
- if the user does not have the privilege to update the workspaceCwException
- if the properties to be updated does not pass the validation rules, e.g., the restriction on name.public void syncMembersResourceStatus(CwMember[] members) throws CwException
CwException
- if the user does not have the privilege (ADMIN) to fix the membership of the workspace.public void updateAttachments(CwUid entityUid, CwAttachedEntity[] attachments) throws CwException
CwException
public void updateAttachments(CwUid entityUid, CwUid[] attachmentUids, java.lang.String[] newDescriptions) throws CwException
CwException
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |