public interface SocialWorkspace
DocumentModel having the facet
 SocialWorkspace.| 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 | 
String getId()
String getTitle()
String getPath()
boolean isPublic()
true if this Social Workspace is public, false
 otherwise.boolean isPrivate()
true if this Social Workspace is private, false
 otherwise.void makePublic()
void makePrivate()
boolean mustApproveSubscription()
true if the subscriptions to this Social Workspace need
 an administrator approval, false otherwise.boolean isMembersNotificationEnabled()
true if the social workspace won't send a notification to
 its members when modifications occurred.boolean addAdministrator(Principal principal)
boolean addMember(Principal principal)
true if the user was successfully added to the members
         group, false otherwise.void removeAdministrator(Principal principal)
void removeMember(Principal principal)
boolean isAdministrator(NuxeoPrincipal principal)
principal is administrator of this
 Social Workspace, false otherwise.boolean isMember(NuxeoPrincipal principal)
principal is member of this Social
 Workspace, false otherwise.boolean isAdministratorOrMember(NuxeoPrincipal principal)
principal is administrator or member of
 this Social Workspace, false otherwise.List<String> searchMembers(String pattern)
List<String> searchAdministrators(String pattern)
List<String> searchUsers(String pattern)
List<String> getAdministrators()
String getAdministratorsGroupName()
String getAdministratorsGroupLabel()
String getMembersGroupName()
String getMembersGroupLabel()
String getPublicSectionPath()
String getPrivateSectionPath()
String getNewsItemsRootPath()
String getDashboardSpacesRootPath()
String getPublicDashboardSpacePath()
String getPrivateDashboardSpacePath()
void handleSubscriptionRequest(Principal principal)
principal.boolean shouldRequestSubscription(Principal principal)
boolean isSubscriptionRequestPending(Principal principal)
true if there is a pending Subscription Request for the
 given principal, false otherwise.String getSubscriptionRequestStatus(Principal principal)
principal
 Values returned are: pending, accepted, rejected or null if there is no
 subscription requestvoid acceptSubscriptionRequest(SubscriptionRequest subscriptionRequest)
subscriptionRequest.void rejectSubscriptionRequest(SubscriptionRequest subscriptionRequest)
subscriptionRequest.DocumentModel getDocument()
void setDocument(DocumentModel doc)
Must be the same document (same id), otherwise throw a RuntimeException.
Copyright © 2014 Nuxeo SA. All rights reserved.