public class PublicAPISiteServiceImpl extends AbstractSiteServiceImpl
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PublicAPISiteServiceImpl> |
CREATOR |
DEFAULT_ROLE, extraPropertiesCache
CONTENT_CACHE, RENDITION_CACHE, session
SORT_PROPERTY_SHORTNAME, SORT_PROPERTY_TITLE
Constructor and Description |
---|
PublicAPISiteServiceImpl(AlfrescoSession repositorySession)
Default constructor for service.
|
PublicAPISiteServiceImpl(android.os.Parcel o) |
Modifier and Type | Method and Description |
---|---|
Site |
addFavoriteSite(Site site)
Adds the given site to the current users list of favorite sites.
|
protected PagingResult<Site> |
computeAllSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url,
ListingContext listingContext) |
protected PagingResult<Site> |
computeFavoriteSites(ListingContext listingContext)
Returns a list of sites that the session user has a explicit membership
to and has marked as a favourite.
|
protected PagingResult<Site> |
computeSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url,
boolean isAllSite) |
protected PagingResult<Site> |
computeSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url,
ListingContext listingContext) |
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.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getAllSitesUrl(ListingContext listingContext)
Allows to retrieve URL to list all sites.
|
protected String |
getCancelJoinSiteRequestUrl(JoinSiteRequestImpl joinSiteRequest)
Allow to retrieve specific cancel join site url.
|
protected String |
getDocContainerSiteUrl(Site site)
Allow to retrieve specific site document container URL.
|
protected List<JoinSiteRequestImpl> |
getJoinSiteRequests() |
protected PagingResult<JoinSiteRequestImpl> |
getJoinSiteRequests(ListingContext listingContext) |
protected String |
getLeaveSiteUrl(Site site)
Retrieve specific leave site url.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getSiteUrl(String siteIdentifier)
Allows to retrieve specific site url.
|
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getUserSitesUrl(String personIdentifier,
ListingContext listingContext)
Allows to retrieve URL to list sites for a specific user.
|
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.
|
protected String |
parseContainer(String link) |
protected Site |
parseData(String siteIdentifier,
Map<String,Object> json)
Responsible to create a Site object based on json response from the
server.
|
Site |
removeFavoriteSite(Site site)
Removes the given site from the current users list of favorite sites.
|
protected void |
retrieveExtraProperties(String personIdentifier)
Retrieve sites extra properties.
|
List<Person> |
searchMembers(Site site,
String keywords) |
PagingResult<Person> |
searchMembers(Site site,
String keywords,
ListingContext listingContext) |
cancelJoinSiteRequest, cancelRequestToJoinSite, clear, computeLegacySites, getAllSites, getAllSites, getDocumentLibrary, getFavoriteSites, getFavoriteSites, getPendingSites, getPendingSites, getSite, getSites, getSites, leaveSite, refresh, retrieveExtraProperties, search, search, updateExtraPropertyCache, validateUpdateSite
convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
public static final android.os.Parcelable.Creator<PublicAPISiteServiceImpl> CREATOR
public PublicAPISiteServiceImpl(AlfrescoSession repositorySession)
AbstractServiceRegistry
.repositorySession
- public PublicAPISiteServiceImpl(android.os.Parcel o)
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getAllSitesUrl(ListingContext listingContext)
AbstractSiteServiceImpl
getAllSitesUrl
in class AbstractSiteServiceImpl
listingContext
- : determine characteristics of the result (paging)protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getUserSitesUrl(String personIdentifier, ListingContext listingContext)
AbstractSiteServiceImpl
getUserSitesUrl
in class AbstractSiteServiceImpl
personIdentifier
- : unique identifier of the userlistingContext
- : determine characteristics of the result (paging)protected PagingResult<Site> computeFavoriteSites(ListingContext listingContext)
computeFavoriteSites
in class AbstractSiteServiceImpl
AlfrescoServiceException
- : if network or internal problems occur
during the process.protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getSiteUrl(String siteIdentifier)
AbstractSiteServiceImpl
getSiteUrl
in class AbstractSiteServiceImpl
siteIdentifier
- : Unique identifier of the site.protected Site parseData(String siteIdentifier, Map<String,Object> json)
AbstractSiteServiceImpl
parseData
in class AbstractSiteServiceImpl
json
- : response from the server.protected String getDocContainerSiteUrl(Site site)
AbstractSiteServiceImpl
getDocContainerSiteUrl
in class AbstractSiteServiceImpl
site
- : Sitepublic Site addFavoriteSite(Site site)
site
- : site objectpublic Site removeFavoriteSite(Site site)
site
- : site objectpublic Site joinSite(Site site)
site
- : site objectprotected List<JoinSiteRequestImpl> getJoinSiteRequests()
getJoinSiteRequests
in class AbstractSiteServiceImpl
protected PagingResult<JoinSiteRequestImpl> getJoinSiteRequests(ListingContext listingContext)
getJoinSiteRequests
in class AbstractSiteServiceImpl
protected String getCancelJoinSiteRequestUrl(JoinSiteRequestImpl joinSiteRequest)
AbstractSiteServiceImpl
getCancelJoinSiteRequestUrl
in class AbstractSiteServiceImpl
protected String getLeaveSiteUrl(Site site)
AbstractSiteServiceImpl
getLeaveSiteUrl
in class AbstractSiteServiceImpl
site
- : Siteprotected PagingResult<Site> computeSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url, boolean isAllSite)
protected String parseContainer(String link)
parseContainer
in class AbstractSiteServiceImpl
protected PagingResult<Site> computeSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url, ListingContext listingContext)
computeSites
in class AbstractSiteServiceImpl
protected PagingResult<Site> computeAllSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url, ListingContext listingContext)
computeAllSites
in class AbstractSiteServiceImpl
protected void retrieveExtraProperties(String personIdentifier)
AbstractSiteServiceImpl
retrieveExtraProperties
in class AbstractSiteServiceImpl
public List<Person> getAllMembers(Site site)
SiteService
public PagingResult<Person> getAllMembers(Site site, ListingContext listingContext)
SiteService
public boolean isMember(Site site, Person person)
SiteService
public PagingResult<Person> searchMembers(Site site, String keywords, ListingContext listingContext)
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.