@ProviderType
public interface CommunityContext
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfUserIsAdmin(UserManager um,
java.lang.String userId)
Check if the specified user id belong to the community administrator group.
|
boolean |
checkIfUserIsGroupAdmin(UserManager um,
java.lang.String userId)
Check if the specified user id belong to the group admin or not.
|
boolean |
checkIfUserIsModerator(UserManager um,
java.lang.String userId)
Check if the specified user id belongs to the moderator group
|
java.lang.String |
getActivityStreamRootPath()
Get activity stream root path
|
java.lang.String |
getCommunityGroupId()
Return the community group name of this context.
|
java.lang.String |
getCommunityGroupPath()
Get the community group path
|
java.lang.String |
getCommunityGroupResourcesPath()
Get the community group resources path.
|
java.lang.String |
getCommunityGroupRootPath() |
java.lang.String |
getCommunityGroupUniqueId()
Return the community group unique id of this context.
|
java.lang.String |
getCommunityUserRootPath() |
java.lang.String |
getContentRootPath()
Get the content root path for the site in this context.
|
java.lang.String |
getDesignRootPath()
Get the design root path
|
java.lang.String |
getFullyQualifiedGroupName(java.lang.String groupName)
Get the fully qualified group name based on this context
|
java.lang.String |
getPageThemePath() |
java.lang.String |
getSiteBannerPath()
Get the site banner path for the specified siteId
|
java.lang.String |
getSiteContentFragmentAssociatedMediaDamRootPath()
Get the current site's content fragment associated media dam root path.
|
java.lang.String |
getSiteContentFragmentDamRootPath()
Get the current site's content fragment dam root path.
|
java.util.List<java.lang.String> |
getSiteContentPaths()
Get the site's content paths.
|
java.lang.String |
getSiteDamCollectionPath()
Get the current site's content fragment collection path.
|
java.lang.String |
getSiteDamRootPath()
Get the current site's dam root path.
|
java.lang.String |
getSiteId()
Return the site id of this context.
|
java.lang.String |
getSiteName()
Get the current site name if not empty, else return siteId.
|
java.lang.String |
getSitePagePath()
This method returns the path of the root page path of the site.
|
java.lang.String |
getSitePath()
Get the site path
|
java.lang.String |
getSitePayloadPath()
Get the location where the site payload is created and replicated
|
java.lang.String |
getSiteResourcesPath()
Get the site's resources path.
|
java.lang.String |
getSiteRootPath()
Get the current site's root path.
|
java.lang.String |
getSiteRootPath(java.lang.String siteId)
Get the site root path of the current tenant's site with the given siteId.
|
java.lang.String |
getSiteThemePath() |
java.lang.String |
getSiteUserGroupName(CommunityUserGroup userGroup) |
SocialResourceConfiguration |
getStorageConfig()
Return the social configuration associated with the tenant.
|
java.lang.String |
getStorageConfigurationPath()
Deprecated.
|
Tenant |
getTenant()
Get {link Tenant}
|
java.lang.String |
getTenantConfigPath()
Get the configuration path
|
java.lang.String |
getTenantGroupRootPath() |
java.lang.String |
getTenantId()
Get the tenant id
|
java.lang.String |
getTenantUserGroupName(java.lang.String groupName)
Get the tenant user group name for the specified group
|
java.lang.String |
getTenantUserRootPath() |
java.lang.String |
getUgcPath()
Get the ugc root path.
|
java.lang.String |
getUgcSitePath()
Get the ugc site path.
|
java.lang.String |
getUserGroupPath(java.lang.String userGroupName)
Get the user group path of a tenant.
|
java.lang.String |
getUserGroupRootPath()
Get the user group root path of this context.
|
java.lang.String |
getUserRootPath()
Get the user root path of this context.
|
boolean |
isMultiTenantSupported()
Check if the multitenant deployment is supported.
|
boolean |
isUserAdmin(UserManager um,
java.lang.String userId)
Check if the specified user id is an administrator base on this context.
|
Tenant getTenant()
java.lang.String getTenantId()
java.lang.String getSiteId()
java.lang.String getCommunityGroupId()
java.lang.String getCommunityGroupUniqueId()
java.lang.String getContentRootPath()
java.lang.String getTenantConfigPath()
java.lang.String getSitePayloadPath()
java.lang.String getSitePagePath()
java.lang.String getDesignRootPath()
java.lang.String getSiteThemePath()
java.lang.String getPageThemePath()
java.lang.String getSitePath()
java.lang.String getCommunityGroupPath()
java.lang.String getSiteBannerPath()
boolean isMultiTenantSupported()
java.lang.String getUgcPath()
java.lang.String getUgcSitePath()
java.lang.String getActivityStreamRootPath()
java.lang.String getTenantUserGroupName(java.lang.String groupName)
groupName
- is name of the groupjava.lang.String getSiteUserGroupName(CommunityUserGroup userGroup)
java.lang.String getFullyQualifiedGroupName(java.lang.String groupName)
groupName
- is name of the groupjava.lang.String getUserGroupRootPath()
java.lang.String getUserRootPath()
java.lang.String getUserGroupPath(java.lang.String userGroupName)
userGroupName
- is user group nameboolean checkIfUserIsAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um
- is user manageruserId
- is user idRepositoryException
- is unexpected repository exceptionto verify if the specified user is a group administrator.
boolean checkIfUserIsGroupAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um
- is user manageruserId
- is user idRepositoryException
- is unexpected repository exceptionboolean isUserAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um
- is user manageruserId
- is user idRepositoryException
- is unexpected repository exception@Deprecated java.lang.String getStorageConfigurationPath()
SocialResourceConfiguration getStorageConfig()
boolean checkIfUserIsModerator(UserManager um, java.lang.String userId) throws RepositoryException
um
- is user manageruserId
- is user idRepositoryException
- is unexpected repository exceptionjava.lang.String getTenantGroupRootPath()
java.lang.String getTenantUserRootPath()
java.lang.String getCommunityGroupRootPath()
java.lang.String getCommunityUserRootPath()
java.lang.String getSiteResourcesPath()
java.lang.String getCommunityGroupResourcesPath()
java.util.List<java.lang.String> getSiteContentPaths()
java.lang.String getSiteRootPath()
java.lang.String getSiteRootPath(java.lang.String siteId)
siteId
- given siteIdjava.lang.String getSiteName()
java.lang.String getSiteDamRootPath()
java.lang.String getSiteContentFragmentDamRootPath()
java.lang.String getSiteContentFragmentAssociatedMediaDamRootPath()
java.lang.String getSiteDamCollectionPath()
Copyright © 2010 - 2020 Adobe. All Rights Reserved