public interface EnablementSiteService
Modifier and Type | Method and Description |
---|---|
void |
applyACLs(Resource resource,
CommunityContext context,
Session session)
Apply Enablement-specific ACLs on Community Site resources.
|
void |
applyACLs(Resource site,
CommunityContext context,
Session aclSession,
Session userManagerSession)
Apply Enablement-specific ACLs on Community Site resources.
|
void |
createGroupFolders(Resource site,
Session session,
ResourceResolver userManagerResolver,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create default Enablement-specific folders for a Community Group.
|
void |
createSiteFolders(Resource site,
CommunityContext context,
Session session,
java.util.Map<java.lang.String,java.lang.Object> properties)
Deprecated.
|
void |
createSiteFolders(Resource site,
CommunityContext context,
Session session,
ResourceResolver userManagerResolver,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create default Enablement-specific folders for a Community Site.
|
void |
createSiteUGCPath(Resource resource,
CommunityContext context,
Session session)
Create Enablement-specific site UGC nodes (i.e.
|
void |
createSiteUGCPath(Resource site,
CommunityContext context,
Session aclSession,
Session userManagerSession)
Create Enablement-specific site UGC nodes (i.e.
|
void |
createSiteUserGroups(Resource site,
CommunityContext context,
Session session,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create default Enablement-specific user groups for a Community Site.
|
java.lang.String |
getGroupAssetsPath(CommunityContext context,
ResourceResolver resolver)
Gets the Enablement Assets DAM path for the given community group.
|
java.lang.String |
getSiteAssetsPath(CommunityContext context)
Gets the Enablement Assets path for the given Site.
|
java.lang.String |
getSiteResourceGroupsPath(CommunityContext context)
Gets the Enablement Resource-groups path for the given context.
|
java.lang.String |
getSiteResourcesPath(CommunityContext context)
Gets the Enablement Resources path for the given context.
|
boolean |
isPublishMode()
Checks whether the current instance is running in Publisher mode.
|
void |
updateSiteUserGroups(Resource site,
CommunityContext context,
Session session,
java.util.Map<java.lang.String,java.lang.Object> properties)
Update Enablement-specific user groups for a Community Site.
|
void createSiteUserGroups(Resource site, CommunityContext context, Session session, java.util.Map<java.lang.String,java.lang.Object> properties) throws RepositoryException, OperationException
site
- the site's root resourcecontext
- community Contextsession
- user sessionproperties
- request parametersOperationException
- - thrown if unable to create site user groupsRepositoryException
- - thrown if unable to create site user groupsvoid applyACLs(Resource resource, CommunityContext context, Session session) throws OperationException, RepositoryException
resource
- the site's root resourcecontext
- community Contextsession
- user sessionOperationException
- - thrown if unable to apply ACLsRepositoryException
- - thrown if unable to apply ACLsvoid applyACLs(Resource site, CommunityContext context, Session aclSession, Session userManagerSession) throws RepositoryException, OperationException
site
- - resource the site's root resourcecontext
- community ContextaclSession
- session with ACL management permissions on site content.userManagerSession
- session with permissions to lookup site users and groups.OperationException
- - thrown if unable to apply ACLsRepositoryException
- - thrown if unable to apply ACLs@Deprecated void createSiteFolders(Resource site, CommunityContext context, Session session, java.util.Map<java.lang.String,java.lang.Object> properties) throws RepositoryException, OperationException
site
- the site's root resourcecontext
- community Contextsession
- user sessionproperties
- request parametersOperationException
- - thrown if unable to create site foldersRepositoryException
- - thrown if unable to create site folders.void createSiteFolders(Resource site, CommunityContext context, Session session, ResourceResolver userManagerResolver, java.util.Map<java.lang.String,java.lang.Object> properties) throws RepositoryException, OperationException
site
- the site's root resourcecontext
- community Contextsession
- user session, a session with read/write and replicate access to /content.userManagerResolver
- a resolver for a user with access to manage users.properties
- request parametersOperationException
- - thrown if unable to create site foldersRepositoryException
- - thrown if unable to create site folders.void createGroupFolders(Resource site, Session session, ResourceResolver userManagerResolver, java.util.Map<java.lang.String,java.lang.Object> properties) throws RepositoryException, OperationException
site
- the group's root resourcesession
- user session, a session with read/write and replicate access to /content.userManagerResolver
- a resolver for a user with access to manage users.properties
- request parametersOperationException
- - thrown if unable to create group foldersRepositoryException
- - thrown if unable to create group folders.void createSiteUGCPath(Resource resource, CommunityContext context, Session session) throws OperationException, RepositoryException
resource
- site's root resourcecontext
- community contextsession
- session with permissions to post to the site, read/write UGC nodes and change/add ACLs on site
UGC nodes.OperationException
- - thrown if unable to create site UGC node(s)RepositoryException
- - thrown if unable to create site UGC node(s)void createSiteUGCPath(Resource site, CommunityContext context, Session aclSession, Session userManagerSession) throws OperationException, RepositoryException
site
- - site's root resource must be from a resolver with permissions to post to the site and read/write
site UGC nodescontext
- community contextaclSession
- session with permissions to change/add ACLs to the site UGC nodesuserManagerSession
- session with permissions to lookup site groups and membersOperationException
- - thrown if unable to create site UGC node(s)RepositoryException
- - thrown if unable to create site UGC node(s)void updateSiteUserGroups(Resource site, CommunityContext context, Session session, java.util.Map<java.lang.String,java.lang.Object> properties) throws RepositoryException, OperationException
site
- site's root resourcecontext
- community Contextsession
- user sessionproperties
- request parametersOperationException
- - thrown if unable to create site user groupsRepositoryException
- - thrown if unable to create site user groupsboolean isPublishMode()
java.lang.String getSiteAssetsPath(CommunityContext context)
context
- CommunityContext
java.lang.String getGroupAssetsPath(CommunityContext context, ResourceResolver resolver)
context
- - CommunityContextresolver
- - ResourceResolverjava.lang.String getSiteResourcesPath(CommunityContext context)
context
- CommunityContext
java.lang.String getSiteResourceGroupsPath(CommunityContext context)
context
- CommunityContext
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"