|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Community
A community is a collection of portal users and content. A typical community shares a common purpose or hobby. The community might be a company department, such as a human resources group, or it might be a group of users with a common interest, such as a social group. Each community has its own portal pages, with content and functionality specific to the needs and interests of the community.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
COMMUNITY_LEVEL_PERSONALIZATION
Identifier for community level personalization |
static java.lang.String |
GUEST_ROLE
Identifier for guest role |
static java.lang.String |
LEADER_ROLE
Identifier for leader role |
static java.lang.String |
MEMBER_ROLE
Identifier for memeber role |
static java.lang.String |
MEMBERSHIP_REQUEST_ALLOW
Identifier for allow membership request |
static java.lang.String |
MEMBERSHIP_REQUEST_AUTO
Identifier for auto membership request |
static java.lang.String |
MEMBERSHIP_REQUEST_DISALLOW
Identifier for disallow membership request |
static java.lang.String |
NO_PERSONALIZATION
Identifier for no personalization |
static java.lang.String |
PAGE_LEVEL_PERSONALIZATION
Identifier for page level personalization |
Method Summary | |
---|---|
Gear |
addGear(GearDefinition pGearDefinition,
java.lang.String pName,
java.lang.String pDescription,
boolean pShared,
int pAccessLevel)
Creates and adds a gear to this community with the given required properties |
void |
addGearInstance(Gear pGear)
Adds a gear instance to the community. |
void |
assignRole(DirectoryPrincipal pPrincipal,
java.lang.String pRoleName)
Assigns a community relative role to the principal. |
atg.portal.framework.CommunityTemplate |
createCommunityTemplate(java.lang.String pName,
java.lang.String pDescription)
create a community template using this community as the basis for the template |
MembershipRequest |
createMembershipRequest(java.security.Principal pUser,
java.lang.String pRequestType)
create a membership request for this community |
Page |
createPage(java.lang.String pName,
java.lang.String pURL,
java.lang.String pDescription,
int pPosition,
boolean pMakeDefault,
boolean pAllowCustomization,
atg.portal.framework.folder.PageFolder pParentFolder,
Layout pLayoutTemplate,
ColorPalette pColorPalette)
Create a new non personalized page with the given values in the given community |
void |
deleteMembershipRequest(java.security.Principal pPrincipal)
Remove the membership request made by the given Principal for the given community. |
boolean |
deletePage(Page pPage)
Deletes a page |
atg.portal.framework.Template |
getAccessDeniedTemplate()
Access the communities access denied template |
int |
getAccessLevel()
Access the community's Access Level |
java.lang.String |
getCommunityPath()
Access the path of the community in the community folder tree |
java.lang.String |
getCommunityURI()
Access the community uri |
java.util.Date |
getCreationDate()
Access the creation date of the community |
Page |
getDefaultPage()
Access the default community page |
java.lang.String |
getDescription()
Deprecated. |
java.lang.String |
getDescription(java.util.Locale locale)
Access the localized form of the community description, returning a default if one is not available. |
java.lang.String |
getFullyQualifiedRoleName(java.lang.String pRoleName)
Deprecated. |
atg.portal.framework.folder.GearDefinitionFolder[] |
getGearDefinitionFolders()
Deprecated. |
java.util.Set |
getGearDefinitionFolderSet()
Access the community's allowed gear definition folders as java.util.Set |
java.util.Set |
getGearDefinitionFolderSet(java.util.Comparator pComparator)
Returns the gear definition folders assigned for use by communities in this folder sorted based on the given comparator. |
java.util.Set |
getGears()
Deprecated. |
java.util.Set |
getGearSet()
Access the gears in the community |
java.util.Set |
getGearSet(java.util.Comparator pComparator)
Access the gears in the community sorted based on the given comparator if pComparator is null gears are returned unsorted. |
java.util.Set |
getGearsShared()
Access the gears shared by this community or its source community if the community is personalized. |
java.util.Set |
getGearsShared(java.util.Comparator pComparator)
Access the gears shared by this community or its source community if the community is personalized. |
GearTitleBarDefinition |
getGearTitleBarDefinition()
Access the community's Gear TitleBar Definition |
atg.portal.framework.GearTitleTemplate |
getGearTitleTemplate()
Access the community's Gear Title Template |
java.lang.String |
getId()
Access the id of the community |
atg.portal.framework.Template |
getInactiveTemplate()
Access the communities inactive template |
java.util.Date |
getLastModified()
Access the last modified date of the community |
atg.portal.framework.Template |
getLoginTemplate()
Access the communities login template |
atg.portal.framework.Template |
getLogoutTemplate()
Access the communities logout template |
java.util.Set |
getMembershipRequestSet()
get set of membership requests |
java.lang.String |
getName()
Deprecated. |
java.lang.String |
getName(java.util.Locale locale)
Access the localized form of the community name, returning a default if one is not available. |
Page[] |
getPages()
Deprecated. |
java.util.Set |
getPageSet()
Returns a set of pages contained in this community. |
java.util.Set |
getPageSet(java.util.Comparator pComparator)
Returns a set of pages contained in this community sorted using the comparator. |
PageTemplate |
getPageTemplate()
Access the community's Page Template |
atg.portal.framework.folder.CommunityFolder |
getParentFolder()
Access the community's parent folder |
java.util.Set |
getPersonalizedCommunitySet()
get all the personalized communities tha have this community as the source community |
Portal |
getPortal()
Returns the portal that this community is a part of. |
atg.portal.framework.Template |
getRegistrationTemplate()
Access the communities registration template |
Role |
getRole(java.lang.String pName)
Returns the user directory Role associated with the supplied community relative role name. |
atg.portal.framework.folder.PageFolder |
getRootPageFolder()
Returns the root page folder for this community. |
java.security.Principal |
getSecurityPrincipal(java.lang.String pName)
Returns the principal associated with the supplied community relative role name. |
Style |
getStyle()
Access the style for the community |
atg.portal.framework.Template |
getUpdateProfileTemplate()
Access the communities update profile template |
java.lang.String |
getURLName()
Access the url of the community |
Page |
getWirelessPage()
Access the community's Wireless Enabled Page |
boolean |
hasAccess(AccessRight pRight)
Returns true if the current user has the indicated access to this community. |
boolean |
hasAccess(BaseEnvironment pEnv)
Deprecated. |
java.lang.String |
hasGearFolder(java.lang.String pFolderId)
Returns true if the community has the folder in gearFolders property |
boolean |
hasRole(java.lang.String communityRole)
Returns true if the user has the named community relative role. |
boolean |
isAllowMembershipRequest()
True if the community allows membership request |
java.lang.String |
isAllowMembershipRequestString()
True if the community allows membership request |
boolean |
isAllowPersonalizedCommunities()
True if the community is allowed to be personalized |
boolean |
isAllowPersonalizedPages()
True if the community allows personalized pages |
boolean |
isAutoMembershipRequest()
True is membership requests is automatic |
boolean |
isEnabled()
Returns true if the community is enabled |
java.lang.String |
isEnabledString()
Returns true if the community is enabled |
boolean |
isGuest()
Returns true if the current user is a guest, member, community leader, or portal administrator. |
boolean |
isGuest(Environment pEnv)
Deprecated. |
boolean |
isLeader()
Returns true if the user is a community leader or the portal administrator. |
boolean |
isLeader(Environment pEnv)
Deprecated. |
boolean |
isMember()
Returns true if the user is a member, community leader, or portal administrator. |
boolean |
isMember(Environment pEnv)
Deprecated. |
boolean |
isPersonalizedCommunity()
True if the community a personalized community |
void |
removeGear(Gear pGear)
Remove the gear(pGear) from the this community. |
void |
revokeRole(DirectoryPrincipal pPrincipal,
java.lang.String pAccesType)
Revokes a community relative role from the principal. |
void |
setAccessLevel(int pAccessLevel)
Sets the community's Access Level |
void |
setAllowMembershipRequest(boolean pAllowMembershipRequest)
Sets if the community allows membership request |
void |
setAllowPersonalizedCommunities(boolean pAllowPersonalizedCommunities)
Sets whether the community should allow personalized communities |
void |
setAllowPersonalizedPages(boolean pAllowPersonalizedPages)
Sets whether the community should allow personalized pages |
void |
setAutoMembershipRequest(boolean pAutoMembershipRequest)
Sets if membership requests is automatic |
void |
setDefaultPage(Page pPage)
Make the given page the default page of this community |
void |
setDescription(java.lang.String pDescription)
Sets the description of the community |
void |
setDescription(java.lang.String pDescription,
java.util.Locale pLocale)
Sets the description of the community for the given locale |
void |
setEnabled(boolean pEnabled)
Sets the active status of the community |
void |
setGearDefinitionFolders(atg.portal.framework.folder.GearDefinitionFolder[] pGearDefinitionFolder)
Sets the community's allowed gear definition folders |
void |
setGearTitleTemplate(atg.portal.framework.GearTitleTemplate pGearTitleTemplate)
Sets the community's Gear Title Template |
void |
setName(java.lang.String pName)
Set the name of the community |
void |
setName(java.lang.String pURLName,
java.util.Locale pLocale)
Sets the url of the community |
void |
setPageTemplate(PageTemplate pPageTemplate)
Sets the community's Page Template |
void |
setParentFolder(atg.portal.framework.folder.CommunityFolder pParentFolder)
Access the community's parent folder |
void |
setStyle(Style pStyle)
Sets the style for the community |
void |
setURLName(java.lang.String pURLName)
Sets the url of the community |
void |
setWirelessPage(Page pWirelessPage)
Access the community's Wireless Enabled Page |
Methods inherited from interface atg.security.SecuredObject |
---|
getAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
static final java.lang.String LEADER_ROLE
static final java.lang.String MEMBER_ROLE
static final java.lang.String GUEST_ROLE
static final java.lang.String COMMUNITY_LEVEL_PERSONALIZATION
static final java.lang.String PAGE_LEVEL_PERSONALIZATION
static final java.lang.String NO_PERSONALIZATION
static final java.lang.String MEMBERSHIP_REQUEST_AUTO
static final java.lang.String MEMBERSHIP_REQUEST_ALLOW
static final java.lang.String MEMBERSHIP_REQUEST_DISALLOW
Method Detail |
---|
java.lang.String getId()
Portal getPortal()
java.lang.String getURLName()
void setURLName(java.lang.String pURLName)
java.lang.String getName()
getLocalizedName
void setName(java.lang.String pName)
a
- urljava.lang.String getName(java.util.Locale locale)
void setName(java.lang.String pURLName, java.util.Locale pLocale)
java.lang.String getDescription()
getLocalizedDescription
void setDescription(java.lang.String pDescription)
java.lang.String getDescription(java.util.Locale locale)
void setDescription(java.lang.String pDescription, java.util.Locale pLocale)
java.lang.String getCommunityPath()
java.util.Date getCreationDate()
java.util.Date getLastModified()
boolean isEnabled()
void setEnabled(boolean pEnabled)
java.lang.String isEnabledString()
java.lang.String hasGearFolder(java.lang.String pFolderId)
atg.portal.framework.folder.PageFolder getRootPageFolder()
Page[] getPages()
Page
,
getPageSet()
java.util.Set getPageSet()
Page
java.util.Set getPageSet(java.util.Comparator pComparator)
Page
Page getDefaultPage()
Page
void setDefaultPage(Page pPage)
Page
java.util.Set getGears()
Gear
,
getGearSet()
java.util.Set getGearSet()
Gear
java.util.Set getGearsShared()
Gear
java.util.Set getGearsShared(java.util.Comparator pComparator)
Gear
java.util.Set getGearSet(java.util.Comparator pComparator)
Gear
Style getStyle()
Style
void setStyle(Style pStyle)
Style
boolean isAllowPersonalizedPages()
void setAllowPersonalizedPages(boolean pAllowPersonalizedPages)
boolean isAllowPersonalizedCommunities()
void setAllowPersonalizedCommunities(boolean pAllowPersonalizedCommunities)
boolean isPersonalizedCommunity()
boolean isAllowMembershipRequest()
java.lang.String isAllowMembershipRequestString()
void setAllowMembershipRequest(boolean pAllowMembershipRequest)
boolean isAutoMembershipRequest()
void setAutoMembershipRequest(boolean pAutoMembershipRequest)
java.lang.String getCommunityURI()
java.lang.String getFullyQualifiedRoleName(java.lang.String pRoleName)
pRoleName
- a role name
getRole(java.lang.String)
java.util.Set getPersonalizedCommunitySet()
PersonalizedCommunity
boolean isLeader(Environment pEnv)
pEnv
- an environment
isMember(atg.portal.framework.Environment)
,
isGuest(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean isLeader()
isMember(atg.portal.framework.Environment)
,
isGuest(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean isMember(Environment pEnv)
pEnv
- an environment
isLeader(atg.portal.framework.Environment)
,
isGuest(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean isMember()
isLeader(atg.portal.framework.Environment)
,
isGuest(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean isGuest(Environment pEnv)
pEnv
- an environment
isLeader(atg.portal.framework.Environment)
,
isMember(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean isGuest()
isLeader(atg.portal.framework.Environment)
,
isMember(atg.portal.framework.Environment)
,
Portal.isPortalAdministrator
,
Portal.isRegisteredUser
boolean hasRole(java.lang.String communityRole)
Portal.getCommunityRoleManager
,
getRole(java.lang.String)
,
getSecurityPrincipal(java.lang.String)
Role getRole(java.lang.String pName)
pName
- Name of a community relative role
Portal.getCommunityRoleManager
,
hasRole(java.lang.String)
,
getSecurityPrincipal(java.lang.String)
java.security.Principal getSecurityPrincipal(java.lang.String pName)
pName
- Name of a community relative role
Portal.getCommunityRoleManager
,
hasRole(java.lang.String)
,
getRole(java.lang.String)
boolean hasAccess(BaseEnvironment pEnv)
pEnv
- an environment
boolean hasAccess(AccessRight pRight) throws SecurityException
SecurityException
PortalAccessRights
,
PortalAccessRights.COMMUNITY_RIGHTS
PageTemplate getPageTemplate()
PageTemplate
void setPageTemplate(PageTemplate pPageTemplate)
atg.portal.framework.Template getLoginTemplate()
Template
atg.portal.framework.Template getLogoutTemplate()
Template
atg.portal.framework.Template getAccessDeniedTemplate()
Template
atg.portal.framework.Template getRegistrationTemplate()
Template
atg.portal.framework.Template getUpdateProfileTemplate()
Template
atg.portal.framework.Template getInactiveTemplate()
Template
atg.portal.framework.GearTitleTemplate getGearTitleTemplate()
GearTitleTemplate
void setGearTitleTemplate(atg.portal.framework.GearTitleTemplate pGearTitleTemplate)
GearTitleTemplate
GearTitleBarDefinition getGearTitleBarDefinition()
GearTitleBarDefinition
atg.portal.framework.folder.GearDefinitionFolder[] getGearDefinitionFolders()
GearDefinitionFolder
java.util.Set getGearDefinitionFolderSet()
java.util.Set getGearDefinitionFolderSet(java.util.Comparator pComparator)
the
- comparator to use for sorting the collection of GearDefinitionFolders
void setGearDefinitionFolders(atg.portal.framework.folder.GearDefinitionFolder[] pGearDefinitionFolder)
GearDefinitionFolder
int getAccessLevel()
void setAccessLevel(int pAccessLevel)
Page getWirelessPage()
Page
void setWirelessPage(Page pWirelessPage)
Page
atg.portal.framework.folder.CommunityFolder getParentFolder()
Folder
void setParentFolder(atg.portal.framework.folder.CommunityFolder pParentFolder)
Page
void assignRole(DirectoryPrincipal pPrincipal, java.lang.String pRoleName)
pPrincipal
- Principal to assign access to.pRoleName
- The name of the community relative role to provide to
the principal.void revokeRole(DirectoryPrincipal pPrincipal, java.lang.String pAccesType)
pPrincipal
- Principal to revoke access from.pRoleName
- The name of the community relative role to provide
to the principal.atg.portal.framework.CommunityTemplate createCommunityTemplate(java.lang.String pName, java.lang.String pDescription) throws CommunitySpawnException
pCommunityTemplateName
- the name of the template to be generated
CommunitySpawnException
- if there was an error creating the community templateMembershipRequest createMembershipRequest(java.security.Principal pUser, java.lang.String pRequestType)
pUser
- the principal to create the membership request forpRequestType
- the type for this request
java.util.Set getMembershipRequestSet()
void deleteMembershipRequest(java.security.Principal pPrincipal) throws PortalException, SecurityException
pPrincipal
- the principal which has made the membership request
PortalException
- if an error occurs deleting the membership request.
SecurityException
Gear addGear(GearDefinition pGearDefinition, java.lang.String pName, java.lang.String pDescription, boolean pShared, int pAccessLevel) throws PortalException, SecurityException
pGearDefinition
- the GearDefinition to use for creating the gearpShared
- if the gears should be shared across communitiespDescription
- the gear's descriptionpAccessLevel
- the access level for the new gear
PortalException
- if there were any errors creating the gear.
SecurityException
void addGearInstance(Gear pGear) throws PortalException, SecurityException
pGear
- the Gear to add
PortalException
- if there were any errors creating the gear.
SecurityException
void removeGear(Gear pGear) throws PortalException, SecurityException
pGear
- the Gear to remove
PortalException
- if there were any errors removing the gear.
SecurityException
- if current user is not allowed to perform the operation.Page createPage(java.lang.String pName, java.lang.String pURL, java.lang.String pDescription, int pPosition, boolean pMakeDefault, boolean pAllowCustomization, atg.portal.framework.folder.PageFolder pParentFolder, Layout pLayoutTemplate, ColorPalette pColorPalette) throws PortalException, SecurityException
pName
- Page' namepURL
- Page's URLpDescription
- Page's descriptionpPosition
- Page's positionpMakeDefault
- Whether to make this the default page of the given communitypAllowCustomization
- Whether to allow users to customize this pagepParentFolder
- The PageFolder to include the page inpLayoutTemplate
- The LayoutTemplate to use. If null the LayoutTemplate of the
default page of the given community.pColorPalette
- The ColorPalette to use. If null the ColorPalette of the
default page of the given community.
PortalException
- If an error occurs creating the page
SecurityException
- if the current user does not have the required privileges.boolean deletePage(Page pPage) throws PortalException, SecurityException
pPage
- The page to delete
PortalException
- if there were any errors deleting the page.
SecurityException
- in case of insufficient privileges to perform the opertation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |