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

java.lang.Object
  extended by com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
      extended by com.atlassian.confluence.plugin.descriptor.web.conditions.SpaceFunctionPermissionCondition
All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

public class SpaceFunctionPermissionCondition
extends BaseConfluenceCondition

A condition for checking the space function level permissions such as create space. The conditions to check should be specified within the permission parameter as a comma separated list.

Since:
2.10.2
See Also:
for the String representations of the available permissions

Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
 
Constructor Summary
SpaceFunctionPermissionCondition()
           
 
Method Summary
 void init(java.util.Map<java.lang.String,java.lang.String> params)
           
 void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
           
 boolean shouldDisplay(WebInterfaceContext context)
           
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceFunctionPermissionCondition

public SpaceFunctionPermissionCondition()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> params)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.web.Condition
Overrides:
init in class BaseConfluenceCondition
Throws:
com.atlassian.plugin.PluginParseException

shouldDisplay

public boolean shouldDisplay(WebInterfaceContext context)
Specified by:
shouldDisplay in class BaseConfluenceCondition

setSpacePermissionManager

public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.