com.atlassian.confluence.plugin.descriptor.web.conditions
Class PeopleDirectoryEnabledCondition

java.lang.Object
  extended by com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
      extended by com.atlassian.confluence.plugin.descriptor.web.conditions.NotSharedModeCondition
          extended by com.atlassian.confluence.plugin.descriptor.web.conditions.PeopleDirectoryEnabledCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class PeopleDirectoryEnabledCondition
extends NotSharedModeCondition

Only enabled if -


Constructor Summary
PeopleDirectoryEnabledCondition()
           
 
Method Summary
 boolean isPeopleDirectoryDisabled(com.atlassian.user.User user)
          There are a few different ways the people directory can be disabled.
 void setPermissionManager(PermissionManager permissionManager)
           
 boolean shouldDisplay(WebInterfaceContext context)
           
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.NotSharedModeCondition
setSettingsManager
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
init, shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeopleDirectoryEnabledCondition

public PeopleDirectoryEnabledCondition()
Method Detail

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)


Copyright © 2003-2013 Atlassian. All Rights Reserved.