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 |
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
principal is administrator of this
Social Workspace, false otherwise. |
boolean |
isAdministratorOrMember(NuxeoPrincipal principal)
Returns true if the given
principal is administrator or member of
this Social Workspace, false otherwise. |
boolean |
isMember(NuxeoPrincipal principal)
Returns true if the given
principal is member of this Social
Workspace, false otherwise. |
boolean |
isMembersNotificationEnabled()
Returns
true if the social workspace won't send a notification to
its members when modifications occurred. |
boolean |
isPrivate()
Returns
true if this Social Workspace is private, false
otherwise. |
boolean |
isPublic()
Returns
true if this Social Workspace is public, false
otherwise. |
boolean |
isSubscriptionRequestPending(Principal principal)
Returns
true if there is a pending Subscription Request for the
given principal , false otherwise. |
void |
makePrivate()
Make this Social Workspace private.
|
void |
makePublic()
Make this Social Workspace public.
|
boolean |
mustApproveSubscription()
Returns
true if the subscriptions to this Social Workspace need
an administrator approval, false otherwise. |
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 .
|
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 isSubscriptionRequestPending(Principal principal)
true
if there is a pending Subscription Request for the
given principal
, false
otherwise.void 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 © 2011 Nuxeo SA. All Rights Reserved.