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 id of this context.
|
java.lang.String |
getCommunityGroupPath()
Get the community group path
|
java.lang.String |
getCommunityGroupRootPath() |
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 |
getSiteBannerPath()
Get the site banner path for the specified siteId
|
java.util.List<java.lang.String> |
getSiteContentPaths()
Get the site's content paths.
|
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()
Get the storage configuration path.
|
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 getContentRootPath()
java.lang.String getTenantConfigPath()
java.lang.String getSitePayloadPath()
java.lang.String getSitePagePath()
CommunitySiteConstants.RESOURCE_TYPE type.java.lang.String getDesignRootPath()
java.lang.String getSiteThemePath()
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 - getTenantSiteGroupPath(String, String, UserGroup)java.lang.String getSiteUserGroupName(CommunityUserGroup userGroup)
java.lang.String getFullyQualifiedGroupName(java.lang.String groupName)
groupName - getTenantSiteGroupPath(String, String, UserGroup)java.lang.String getUserGroupRootPath()
tenantId - java.lang.String getUserRootPath()
java.lang.String getUserGroupPath(java.lang.String userGroupName)
tenantId - boolean checkIfUserIsAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um - userId - RepositoryExceptionto verify if the specified user is a group administrator.boolean checkIfUserIsGroupAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um - userId - RepositoryExceptionboolean isUserAdmin(UserManager um, java.lang.String userId) throws RepositoryException
um - userId - RepositoryExceptionjava.lang.String getStorageConfigurationPath()
SocialResourceConfiguration getStorageConfig()
boolean checkIfUserIsModerator(UserManager um, java.lang.String userId) throws RepositoryException
um - userId - RepositoryExceptionjava.lang.String getTenantGroupRootPath()
java.lang.String getTenantUserRootPath()
java.lang.String getCommunityGroupRootPath()
java.lang.String getCommunityUserRootPath()
java.lang.String getSiteResourcesPath()
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()
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"