public interface SiteService extends Service
Modifier and Type | Field and Description |
---|---|
static String |
SORT_PROPERTY_SHORTNAME
Allowable sorting property : Name of the site.
|
static String |
SORT_PROPERTY_TITLE
Allowable sorting property : Title of the document or folder.
|
Modifier and Type | Method and Description |
---|---|
Site |
addFavoriteSite(Site site)
Adds the given site to the current users list of favorite sites.
|
Site |
cancelRequestToJoinSite(Site site)
Cancels a previous request to join a site made by the current user.
|
List<Person> |
getAllMembers(Site site)
Returns a list of site members.
|
PagingResult<Person> |
getAllMembers(Site site,
ListingContext listingContext)
Returns a paged list of site members.
|
List<Site> |
getAllSites() |
PagingResult<Site> |
getAllSites(ListingContext listingContext) |
Folder |
getDocumentLibrary(Site site)
Get the documents container folder for the given site.
|
List<Site> |
getFavoriteSites() |
PagingResult<Site> |
getFavoriteSites(ListingContext listingContext) |
List<Site> |
getPendingSites()
Returns a list of join site requests from the current user that have yet
to be actioned.
|
PagingResult<Site> |
getPendingSites(ListingContext listingContext)
Returns a list of join site requests from the current user that have yet
to be actioned.
|
Site |
getSite(String siteShortName) |
List<Site> |
getSites() |
PagingResult<Site> |
getSites(ListingContext listingContext) |
boolean |
isMember(Site site,
Person person)
Returns true if the person is a member of the specified site.
|
Site |
joinSite(Site site)
Adds the current user as a member of the given site with an optional
message explaining why they wish to join the site.
|
Site |
leaveSite(Site site)
Removes the current user from the given site.
|
Site |
removeFavoriteSite(Site site)
Removes the given site from the current users list of favorite sites.
|
List<Site> |
search(String keyword) |
PagingResult<Site> |
search(String keyword,
ListingContext listingContext) |
List<Person> |
searchMembers(Site site,
String keywords) |
PagingResult<Person> |
searchMembers(Site site,
String keywords,
ListingContext listingContext) |
static final String SORT_PROPERTY_SHORTNAME
static final String SORT_PROPERTY_TITLE
Site getSite(String siteShortName)
siteShortName
- : Unique identifier name of the site.AlfrescoServiceException
- : if network or internal problems occur
during the process.List<Site> getAllSites()
AlfrescoServiceException
- : if network or internal problems occur
during the process.PagingResult<Site> getAllSites(ListingContext listingContext)
listingContext
- : Listing context that define the behavior of
paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.List<Site> getSites()
AlfrescoServiceException
- : if network or internal problems occur
during the process.PagingResult<Site> getSites(ListingContext listingContext)
listingContext
- : Listing context that define the behaviour of
paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.List<Site> getFavoriteSites()
AlfrescoServiceException
- : if network or internal problems occur
during the process.PagingResult<Site> getFavoriteSites(ListingContext listingContext)
listingContext
- : Listing context that define the behaviour of
paging results
ListingContext
AlfrescoServiceException
- : if network or internal problems occur
during the process.Folder getDocumentLibrary(Site site)
site
- : Unique identifier name of the site.AlfrescoServiceException
- : if network or internal problems occur
during the process.Site addFavoriteSite(Site site)
site
- : site objectAlfrescoServiceException
- : if the request can not be completed
successfully an exception is thrown with error code
SITE_NOT_FAVORITED
Site removeFavoriteSite(Site site)
site
- : site objectAlfrescoServiceException
- : if the request can not be completed
successfully an exception is thrown with error code
SITE_NOT_UNFAVORITED
.Site joinSite(Site site)
site
- : site objectAlfrescoServiceException
- : SITE_ALREADY_MEMBER
. SITE_NOT_JOINED
.List<Site> getPendingSites()
AlfrescoServiceException
PagingResult<Site> getPendingSites(ListingContext listingContext)
AlfrescoServiceException
Site cancelRequestToJoinSite(Site site)
site
- : site objectAlfrescoServiceException
- : If the request can not be completed
successfully an exception is thrown with error code
SITE_CANCEL_JOINED
.Site leaveSite(Site site)
site
- : site objectAlfrescoServiceException
- : If the request can not be completed
successfully an exception is thrown with error code
SITE_NOT_LEFT
or
SITE_LAST_MANAGER
if the user is the last manager of the
site.List<Person> getAllMembers(Site site)
site
- PagingResult<Person> getAllMembers(Site site, ListingContext listingContext)
site
- listingContext
- boolean isMember(Site site, Person person)
site
- person
- List<Person> searchMembers(Site site, String keywords)
site
- PagingResult<Person> searchMembers(Site site, String keywords, ListingContext listingContext)
site
- PagingResult<Site> search(String keyword, ListingContext listingContext)
keyword
- Copyright © 2012-2018 Alfresco Software. All Rights Reserved.