Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected FavouritesService |
favouritesService |
protected ImporterService |
importerService |
protected Nodes |
nodes |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected People |
people |
protected org.alfresco.service.cmr.security.PermissionService |
permissionService |
protected PreferenceService |
preferenceService |
protected SiteService |
siteService |
protected SiteServiceImpl |
siteServiceImpl |
protected SiteSurfConfig |
siteSurfConfig |
PARAM_PERMANENT, PARAM_PRESET, PARAM_SITE_DESCRIPTION, PARAM_SITE_ID, PARAM_SITE_ROLE, PARAM_SITE_TITLE, PARAM_SKIP_ADDTOFAVORITES, PARAM_SKIP_SURF_CONFIGURATION, PARAM_VISIBILITY
Constructor and Description |
---|
SitesImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFavouriteSite(String personId,
FavouriteSite favouriteSite) |
SiteMember |
addSiteMember(String siteId,
SiteMember siteMember) |
protected SiteInfo |
createSite(Site site)
Uses site service for creating site info
Extracted this call in a separate method because it might be needed to
call different site service method when creating site info (e.g.
|
Site |
createSite(Site site,
Parameters parameters)
Create default/fixed preset (Share) site - with DocLib container/component
|
void |
deleteSite(String siteId,
Parameters parameters) |
FavouriteSite |
getFavouriteSite(String personId,
String siteId) |
CollectionWithPagingInfo<FavouriteSite> |
getFavouriteSites(String personId,
Parameters parameters) |
MemberOfSite |
getMemberOfSite(String personId,
String siteId)
people/
|
Site |
getSite(String siteId) |
Site |
getSite(String siteId,
boolean includeRole) |
SiteContainer |
getSiteContainer(String siteId,
String containerId) |
org.alfresco.query.PagingResults<SiteContainer> |
getSiteContainers(String siteId,
Paging paging) |
SiteMember |
getSiteMember(String personId,
String siteId) |
CollectionWithPagingInfo<SiteMember> |
getSiteMembers(String siteId,
Parameters parameters) |
String |
getSiteRole(String siteId) |
String |
getSiteRole(String siteId,
String personId) |
CollectionWithPagingInfo<Site> |
getSites(Parameters parameters) |
CollectionWithPagingInfo<MemberOfSite> |
getSites(String personId,
Parameters parameters) |
void |
removeFavouriteSite(String personId,
String siteId) |
void |
removeSiteMember(String personId,
String siteId) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setFavouritesService(FavouritesService favouritesService) |
void |
setImporterService(ImporterService importerService) |
void |
setNodes(Nodes nodes) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPeople(People people) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPreferenceService(PreferenceService preferenceService) |
void |
setSiteService(SiteService siteService) |
void |
setSiteServiceImpl(SiteServiceImpl siteServiceImpl) |
void |
setSiteSurfConfig(SiteSurfConfig siteSurfConfig) |
Site |
updateSite(String siteId,
SiteUpdate update,
Parameters parameters) |
SiteMember |
updateSiteMember(String siteId,
SiteMember siteMember) |
SiteInfo |
validateSite(org.alfresco.service.cmr.repository.NodeRef guid) |
protected Site |
validateSite(Site site) |
SiteInfo |
validateSite(String siteId) |
protected Nodes nodes
protected People people
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected SiteService siteService
protected FavouritesService favouritesService
protected PreferenceService preferenceService
protected ImporterService importerService
protected SiteSurfConfig siteSurfConfig
protected org.alfresco.service.cmr.security.PermissionService permissionService
protected SiteServiceImpl siteServiceImpl
public void setPreferenceService(PreferenceService preferenceService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setNodes(Nodes nodes)
public void setFavouritesService(FavouritesService favouritesService)
public void setPeople(People people)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setImporterService(ImporterService importerService)
public void setSiteSurfConfig(SiteSurfConfig siteSurfConfig)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setSiteServiceImpl(SiteServiceImpl siteServiceImpl)
public SiteInfo validateSite(org.alfresco.service.cmr.repository.NodeRef guid)
validateSite
in interface Sites
public SiteInfo validateSite(String siteId)
validateSite
in interface Sites
public CollectionWithPagingInfo<SiteMember> getSiteMembers(String siteId, Parameters parameters)
getSiteMembers
in interface Sites
public String getSiteRole(String siteId)
getSiteRole
in interface Sites
public String getSiteRole(String siteId, String personId)
getSiteRole
in interface Sites
public MemberOfSite getMemberOfSite(String personId, String siteId)
getMemberOfSite
in interface Sites
siteId
- StringpersonId
- Stringpublic SiteMember getSiteMember(String personId, String siteId)
getSiteMember
in interface Sites
public SiteMember addSiteMember(String siteId, SiteMember siteMember)
addSiteMember
in interface Sites
public void removeSiteMember(String personId, String siteId)
removeSiteMember
in interface Sites
public SiteMember updateSiteMember(String siteId, SiteMember siteMember)
updateSiteMember
in interface Sites
public CollectionWithPagingInfo<MemberOfSite> getSites(String personId, Parameters parameters)
public SiteContainer getSiteContainer(String siteId, String containerId)
getSiteContainer
in interface Sites
public org.alfresco.query.PagingResults<SiteContainer> getSiteContainers(String siteId, Paging paging)
getSiteContainers
in interface Sites
public CollectionWithPagingInfo<Site> getSites(Parameters parameters)
public FavouriteSite getFavouriteSite(String personId, String siteId)
getFavouriteSite
in interface Sites
public void addFavouriteSite(String personId, FavouriteSite favouriteSite)
addFavouriteSite
in interface Sites
public void removeFavouriteSite(String personId, String siteId)
removeFavouriteSite
in interface Sites
public CollectionWithPagingInfo<FavouriteSite> getFavouriteSites(String personId, Parameters parameters)
getFavouriteSites
in interface Sites
public void deleteSite(String siteId, Parameters parameters)
deleteSite
in interface Sites
protected SiteInfo createSite(Site site)
site
- public Site createSite(Site site, Parameters parameters)
createSite
in interface Sites
site
- public Site updateSite(String siteId, SiteUpdate update, Parameters parameters)
updateSite
in interface Sites
Copyright © 2005–2017 Alfresco Software. All rights reserved.