Class PeopleDirectoryEnabledCondition

  • All Implemented Interfaces:
    com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

    public class PeopleDirectoryEnabledCondition
    extends BaseConfluenceCondition
    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
    • Constructor Detail

      • PeopleDirectoryEnabledCondition

        public PeopleDirectoryEnabledCondition()
    • Method Detail

      • 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)