com.atlassian.confluence.plugin.descriptor.web.conditions
Class PeopleDirectoryEnabledCondition
java.lang.Object
com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
com.atlassian.confluence.plugin.descriptor.web.conditions.NotSharedModeCondition
com.atlassian.confluence.plugin.descriptor.web.conditions.PeopleDirectoryEnabledCondition
- All Implemented Interfaces:
- Condition
public class PeopleDirectoryEnabledCondition
- extends NotSharedModeCondition
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeopleDirectoryEnabledCondition
public PeopleDirectoryEnabledCondition()
shouldDisplay
public boolean shouldDisplay(WebInterfaceContext context)
- Overrides:
shouldDisplay
in class NotSharedModeCondition
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
public void setPermissionManager(PermissionManager permissionManager)