org.xwiki.security.authorization
Interface RightDescription
- All Known Implementing Classes:
- Right
public interface RightDescription
Describe a Right, allow adding new Rights, also implemented by the Right class.
- Since:
- 4.0M2
- Version:
- $Id: 1e698060fe7dc96a182a110516767e7b76a75927 $
getName
String getName()
- Returns:
- The string representation of this right.
getDefaultState
RuleState getDefaultState()
- Returns:
- The default state, in case no matching right is found
at any level. Should be either
RuleState.ALLOW or RuleState.DENY.
getTieResolutionPolicy
RuleState getTieResolutionPolicy()
- Returns:
- Whether this right should be allowed or denied in case
of a tie.
getInheritanceOverridePolicy
boolean getInheritanceOverridePolicy()
- Returns:
- Policy on how this right should be overridden by
lower levels in the entity reference hierarchy. When true,
this right on a document override this right on a wiki.
getImpliedRights
Set<Right> getImpliedRights()
- Returns:
- a set of additional rights implied by this right.
getTargetedEntityType
Set<EntityType> getTargetedEntityType()
- Returns:
- a set of entity type for which this right should be enabled. Special type Right.FARM (==null) could
be used to target the EntityType.WIKI for the main wiki only (i.e. PROGRAM)
isReadOnly
boolean isReadOnly()
- Used to check if this right should be allowed when the wiki is in read-only mode.
From the native right, only EDIT, DELETE, COMMENT and REGISTER returns false.
- Returns:
- true if this right allow a read-only access to the wiki.
Copyright © 2004-2013 XWiki. All Rights Reserved.