public class OnPremiseSiteServiceImpl extends AbstractSiteServiceImpl
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<OnPremiseSiteServiceImpl> |
CREATOR |
DEFAULT_ROLE, extraPropertiesCache
CONTENT_CACHE, RENDITION_CACHE, session
SORT_PROPERTY_SHORTNAME, SORT_PROPERTY_TITLE
Constructor and Description |
---|
OnPremiseSiteServiceImpl(android.os.Parcel o) |
OnPremiseSiteServiceImpl(RepositorySession repositorySession)
Default constructor for service.
|
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) |
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.
|
List<Site> |
getFavoriteSites() |
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, 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<OnPremiseSiteServiceImpl> CREATOR
public OnPremiseSiteServiceImpl(RepositorySession repositorySession)
AbstractServiceRegistry
.repositorySession
- public OnPremiseSiteServiceImpl(android.os.Parcel o)
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getAllSitesUrl(ListingContext listingContext)
getAllSitesUrl
in class AbstractSiteServiceImpl
listingContext
- : determine characteristics of the result (paging)protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getUserSitesUrl(String personIdentifier, ListingContext listingContext)
getUserSitesUrl
in class AbstractSiteServiceImpl
personIdentifier
- : unique identifier of the userlistingContext
- : determine characteristics of the result (paging)public List<Site> getFavoriteSites()
getFavoriteSites
in interface SiteService
getFavoriteSites
in class AbstractSiteServiceImpl
protected PagingResult<Site> computeFavoriteSites(ListingContext listingContext)
computeFavoriteSites
in class AbstractSiteServiceImpl
protected org.apache.chemistry.opencmis.commons.impl.UrlBuilder getSiteUrl(String siteIdentifier)
getSiteUrl
in class AbstractSiteServiceImpl
siteIdentifier
- : Unique identifier of the site.protected Site parseData(String siteIdentifier, Map<String,Object> json)
parseData
in class AbstractSiteServiceImpl
json
- : response from the server.protected String getDocContainerSiteUrl(Site site)
getDocContainerSiteUrl
in class AbstractSiteServiceImpl
site
- : Sitepublic Site addFavoriteSite(Site site)
site
- : site objectpublic Site removeFavoriteSite(Site site)
site
- : site objectpublic boolean isMember(Site site, Person person)
SiteService
public 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)
getCancelJoinSiteRequestUrl
in class AbstractSiteServiceImpl
protected String getLeaveSiteUrl(Site site)
getLeaveSiteUrl
in class AbstractSiteServiceImpl
site
- : Sitepublic PagingResult<Person> getAllMembers(Site site, ListingContext listingContext)
public PagingResult<Person> searchMembers(Site site, String keywords, ListingContext listingContext)
protected PagingResult<Site> computeSites(org.apache.chemistry.opencmis.commons.impl.UrlBuilder url, ListingContext listingContext)
computeSites
in class AbstractSiteServiceImpl
protected String parseContainer(String link)
parseContainer
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
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.