Package com.xwiki.admintools.security
Class RightsResult
- java.lang.Object
-
- com.xwiki.admintools.security.RightsResult
-
@Unstable public class RightsResult extends Object
Stores needed information from the groups and users rights processing.- Since:
- 1.2
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description RightsResult()Default constructor.RightsResult(String type)Constructor with type parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.xwiki.model.reference.DocumentReferencegetDocReference()Retrieves the reference of the document where rights are stored.StringgetEntity()Retrieves the entity for which rights are checked.StringgetLevel()Get the stored level of security.StringgetPolicy()Get the rights level policy.StringgetSpace()Get the space where the document is located.StringgetType()Get the type of rights.inthashCode()voidsetDocReference(org.xwiki.model.reference.DocumentReference docReference)SeegetDocReference().voidsetEntity(String entity)SeegetEntity().voidsetLevel(String level)SeegetLevel().voidsetPolicy(String policy)SeegetPolicy().voidsetSpace(String space)SeegetSpace().voidsetType(String type)SeegetType().
-
-
-
Constructor Detail
-
RightsResult
public RightsResult()
Default constructor.
-
RightsResult
public RightsResult(String type)
Constructor with type parameter.- Parameters:
type- the type of the stored rights info.
-
-
Method Detail
-
getLevel
public String getLevel()
Get the stored level of security.- Returns:
- the level of security.
-
setLevel
public void setLevel(String level)
SeegetLevel().- Parameters:
level- the level of security.
-
getDocReference
public org.xwiki.model.reference.DocumentReference getDocReference()
Retrieves the reference of the document where rights are stored.- Returns:
- the document reference containing the rights.
-
setDocReference
public void setDocReference(org.xwiki.model.reference.DocumentReference docReference)
SeegetDocReference().- Parameters:
docReference- the document reference containing the rights.
-
getEntity
public String getEntity()
Retrieves the entity for which rights are checked.- Returns:
- the entity being checked for rights.
-
setEntity
public void setEntity(String entity)
SeegetEntity().- Parameters:
entity- the entity to check rights for.
-
getPolicy
public String getPolicy()
Get the rights level policy. Used values are Allowed and Denied.- Returns:
- the rights level policy.
-
setPolicy
public void setPolicy(String policy)
SeegetPolicy().- Parameters:
policy- the rights level policy.
-
getSpace
public String getSpace()
Get the space where the document is located.- Returns:
- the space where the document is located.
-
setSpace
public void setSpace(String space)
SeegetSpace().- Parameters:
space- the space where the document is located.
-
getType
public String getType()
Get the type of rights. Used values are Global, Space and Page.- Returns:
- the type of rights.
-
-