public class SocialWorkspaceAdapter extends BaseAdapter implements SocialWorkspace
SocialWorkspace.| Modifier and Type | Field and Description | 
|---|---|
| static String | MEMBER_NOTIFICATION_DISABLED | 
| Constructor and Description | 
|---|
| SocialWorkspaceAdapter(DocumentModel doc) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | acceptSubscriptionRequest(SubscriptionRequest subscriptionRequest)Accepts this  subscriptionRequest. | 
| boolean | addAdministrator(Principal principal)Adds a user to this Social Workspace administrators group. | 
| boolean | addMember(Principal principal)Adds a user to this Social Workspace members group. | 
| List<String> | getAdministrators()Gets all administrators of this social workspace. | 
| String | getAdministratorsGroupLabel()Returns this Social Workspace administrators group label. | 
| String | getAdministratorsGroupName()Returns this Social Workspace administrators group name. | 
| String | getDashboardSpacesRootPath()Returns the path of the Dashboard spaces root of this Social Workspace. | 
| DocumentModel | getDocument()Returns the underlying . | 
| String | getId()Returns the id of this Social Workspace. | 
| List<String> | getMembers()Gets all members of this social workspace. | 
| String | getMembersGroupLabel()Returns this Social Workspace members group label. | 
| String | getMembersGroupName()Returns this Social Workspace members group name. | 
| String | getNewsItemsRootPath()Returns the path of the News Items root of this Social Workspace. | 
| String | getPath()Returns the full path of this Social Workspace. | 
| String | getPrivateDashboardSpacePath()Returns the path of the private Dashboard Space of this Social Workspace. | 
| String | getPrivateSectionPath()Returns the path of the private Section of this Social Workspace. | 
| String | getPublicDashboardSpacePath()Returns the path of the public Dashboard Space of this Social Workspace. | 
| String | getPublicSectionPath()Returns the path of the public Section of this Social Workspace. | 
| String | getSubscriptionRequestStatus(Principal principal)Returns status of subscription request for the given  principalValues returned are: pending, accepted, rejected or null if there is no
 subscription request | 
| String | getTitle()Returns the title of this Social Workspace. | 
| List<String> | getUsers()Gets all members and administrators of this social workspace | 
| void | handleSubscriptionRequest(Principal principal)Handles a Subscription Request for the given  principal. | 
| boolean | isAdministrator(NuxeoPrincipal principal)Returns true if the given  principalis administrator of this
 Social Workspace,falseotherwise. | 
| boolean | isAdministratorOrMember(NuxeoPrincipal principal)Returns true if the given  principalis administrator or member of
 this Social Workspace,falseotherwise. | 
| boolean | isMember(NuxeoPrincipal principal)Returns true if the given  principalis member of this Social
 Workspace,falseotherwise. | 
| boolean | isMembersNotificationEnabled()Returns  trueif the social workspace won't send a notification to
 its members when modifications occurred. | 
| boolean | isPrivate()Returns  trueif this Social Workspace is private,falseotherwise. | 
| boolean | isPublic()Returns  trueif this Social Workspace is public,falseotherwise. | 
| boolean | isSubscriptionRequestPending(Principal principal)Returns  trueif there is a pending Subscription Request for the
 givenprincipal,falseotherwise. | 
| void | makePrivate()Make this Social Workspace private. | 
| void | makePublic()Make this Social Workspace public. | 
| boolean | mustApproveSubscription()Returns  trueif the subscriptions to this Social Workspace need
 an administrator approval,falseotherwise. | 
| void | rejectSubscriptionRequest(SubscriptionRequest subscriptionRequest)Rejects this  subscriptionRequest. | 
| void | removeAdministrator(Principal principal)Removes a user from this Social Workspace administrators group. | 
| void | removeMember(Principal principal)Removes a user from this Social Workspace members group. | 
| List<String> | searchAdministrators(String pattern)Search through administrators of this social workspace that match with
 the passed pattern. | 
| List<String> | searchMembers(String pattern)Search through members of this social workspace that match with the
 passed pattern. | 
| List<String> | searchUsers(String pattern)Search through members and administrators of this social workspace that
 match with the passed pattern. | 
| void | setDocument(DocumentModel doc)Sets the underlying . | 
| boolean | shouldRequestSubscription(Principal principal)Returns if the principal should be invited | 
public static final String MEMBER_NOTIFICATION_DISABLED
public SocialWorkspaceAdapter(DocumentModel doc)
public String getId()
SocialWorkspacegetId in interface SocialWorkspacepublic String getTitle()
SocialWorkspacegetTitle in interface SocialWorkspacepublic String getPath()
SocialWorkspacegetPath in interface SocialWorkspacepublic boolean isPublic()
SocialWorkspacetrue if this Social Workspace is public, false
 otherwise.isPublic in interface SocialWorkspacepublic boolean isPrivate()
SocialWorkspacetrue if this Social Workspace is private, false
 otherwise.isPrivate in interface SocialWorkspacepublic void makePublic()
SocialWorkspacemakePublic in interface SocialWorkspacepublic void makePrivate()
SocialWorkspacemakePrivate in interface SocialWorkspacepublic boolean mustApproveSubscription()
SocialWorkspacetrue if the subscriptions to this Social Workspace need
 an administrator approval, false otherwise.mustApproveSubscription in interface SocialWorkspacepublic boolean isMembersNotificationEnabled()
SocialWorkspacetrue if the social workspace won't send a notification to
 its members when modifications occurred.isMembersNotificationEnabled in interface SocialWorkspacepublic boolean addAdministrator(Principal principal)
SocialWorkspaceaddAdministrator in interface SocialWorkspacepublic boolean addMember(Principal principal)
SocialWorkspaceaddMember in interface SocialWorkspacetrue if the user was successfully added to the members
         group, false otherwise.public void removeAdministrator(Principal principal)
SocialWorkspaceremoveAdministrator in interface SocialWorkspacepublic void removeMember(Principal principal)
SocialWorkspaceremoveMember in interface SocialWorkspacepublic boolean isAdministrator(NuxeoPrincipal principal)
SocialWorkspaceprincipal is administrator of this
 Social Workspace, false otherwise.isAdministrator in interface SocialWorkspacepublic boolean isMember(NuxeoPrincipal principal)
SocialWorkspaceprincipal is member of this Social
 Workspace, false otherwise.isMember in interface SocialWorkspacepublic boolean isAdministratorOrMember(NuxeoPrincipal principal)
SocialWorkspaceprincipal is administrator or member of
 this Social Workspace, false otherwise.isAdministratorOrMember in interface SocialWorkspacepublic List<String> searchMembers(String pattern)
SocialWorkspacesearchMembers in interface SocialWorkspacepublic List<String> searchAdministrators(String pattern)
SocialWorkspacesearchAdministrators in interface SocialWorkspacepublic List<String> searchUsers(String pattern)
SocialWorkspacesearchUsers in interface SocialWorkspacepublic List<String> getMembers()
SocialWorkspacegetMembers in interface SocialWorkspacepublic List<String> getAdministrators()
SocialWorkspacegetAdministrators in interface SocialWorkspacepublic List<String> getUsers()
SocialWorkspacegetUsers in interface SocialWorkspacepublic String getAdministratorsGroupName()
SocialWorkspacegetAdministratorsGroupName in interface SocialWorkspacepublic String getAdministratorsGroupLabel()
SocialWorkspacegetAdministratorsGroupLabel in interface SocialWorkspacepublic String getMembersGroupName()
SocialWorkspacegetMembersGroupName in interface SocialWorkspacepublic String getMembersGroupLabel()
SocialWorkspacegetMembersGroupLabel in interface SocialWorkspacepublic String getPublicSectionPath()
SocialWorkspacegetPublicSectionPath in interface SocialWorkspacepublic String getPrivateSectionPath()
SocialWorkspacegetPrivateSectionPath in interface SocialWorkspacepublic String getNewsItemsRootPath()
SocialWorkspacegetNewsItemsRootPath in interface SocialWorkspacepublic String getDashboardSpacesRootPath()
SocialWorkspacegetDashboardSpacesRootPath in interface SocialWorkspacepublic String getPublicDashboardSpacePath()
SocialWorkspacegetPublicDashboardSpacePath in interface SocialWorkspacepublic String getPrivateDashboardSpacePath()
SocialWorkspacegetPrivateDashboardSpacePath in interface SocialWorkspacepublic void handleSubscriptionRequest(Principal principal)
SocialWorkspaceprincipal.handleSubscriptionRequest in interface SocialWorkspacepublic boolean shouldRequestSubscription(Principal principal)
SocialWorkspaceshouldRequestSubscription in interface SocialWorkspacepublic boolean isSubscriptionRequestPending(Principal principal)
SocialWorkspacetrue if there is a pending Subscription Request for the
 given principal, false otherwise.isSubscriptionRequestPending in interface SocialWorkspacepublic String getSubscriptionRequestStatus(Principal principal)
SocialWorkspaceprincipal
 Values returned are: pending, accepted, rejected or null if there is no
 subscription requestgetSubscriptionRequestStatus in interface SocialWorkspacepublic void acceptSubscriptionRequest(SubscriptionRequest subscriptionRequest)
SocialWorkspacesubscriptionRequest.acceptSubscriptionRequest in interface SocialWorkspacepublic void rejectSubscriptionRequest(SubscriptionRequest subscriptionRequest)
SocialWorkspacesubscriptionRequest.rejectSubscriptionRequest in interface SocialWorkspacepublic DocumentModel getDocument()
SocialWorkspacegetDocument in interface SocialWorkspacepublic void setDocument(DocumentModel doc)
SocialWorkspaceMust be the same document (same id), otherwise throw a RuntimeException.
setDocument in interface SocialWorkspaceCopyright © 2014 Nuxeo SA. All rights reserved.