Class PeopleDirectoryEnabledCondition
java.lang.Object
com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
com.atlassian.confluence.plugin.descriptor.web.conditions.PeopleDirectoryEnabledCondition
- All Implemented Interfaces:
 com.atlassian.plugin.web.api.baseconditions.BaseCondition,com.atlassian.plugin.web.Condition
Only enabled if:
 
- the Confluence people directory disable properties have not been set
 - the user is anonymous but has the VIEWUSERPROFILE permission
 - Confluence is not running in shared mode
 
- 
Field Summary
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisPeopleDirectoryDisabled(com.atlassian.user.User user) There are a few different ways the people directory can be disabled.voidsetPermissionManager(PermissionManager permissionManager) booleanshouldDisplay(WebInterfaceContext context) Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
init, shouldDisplay 
- 
Constructor Details
- 
PeopleDirectoryEnabledCondition
public PeopleDirectoryEnabledCondition() 
 - 
 - 
Method Details
- 
shouldDisplay
- Specified by:
 shouldDisplayin classBaseConfluenceCondition
 - 
isPeopleDirectoryDisabled
public boolean isPeopleDirectoryDisabled(com.atlassian.user.User user) There are a few different ways the people directory can be disabled. This method encapsulates them.- Parameters:
 user- the user trying to access the people directory- Returns:
 - true if the directory is disabled.
 
 - 
setPermissionManager
 
 -