Package com.xwiki.admintools.security
Class RightsResult
java.lang.Object
com.xwiki.admintools.security.RightsResult
Stores needed information from the groups and users rights processing.
- Since:
- 1.2
- Version:
- $Id$
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RightsResult(String type) Constructor with type parameter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.xwiki.model.reference.DocumentReferenceRetrieves the reference of the document where rights are stored.Retrieves the entity for which rights are checked.getLevel()Get the stored level of security.Get the rights level policy.getSpace()Get the space where the document is located.getType()Get the type of rights.inthashCode()voidsetDocReference(org.xwiki.model.reference.DocumentReference docReference) SeegetDocReference().voidSeegetEntity().voidSeegetLevel().voidSeegetPolicy().voidSeegetSpace().voidSeegetType().
-
Constructor Details
-
RightsResult
public RightsResult()Default constructor. -
RightsResult
Constructor with type parameter.- Parameters:
type- the type of the stored rights info.
-
-
Method Details
-
getLevel
Get the stored level of security.- Returns:
- the level of security.
-
setLevel
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
Retrieves the entity for which rights are checked.- Returns:
- the entity being checked for rights.
-
setEntity
SeegetEntity().- Parameters:
entity- the entity to check rights for.
-
getPolicy
Get the rights level policy. Used values are Allowed and Denied.- Returns:
- the rights level policy.
-
setPolicy
SeegetPolicy().- Parameters:
policy- the rights level policy.
-
getSpace
Get the space where the document is located.- Returns:
- the space where the document is located.
-
setSpace
SeegetSpace().- Parameters:
space- the space where the document is located.
-
getType
Get the type of rights. Used values are Global, Space and Page.- Returns:
- the type of rights.
-
setType
SeegetType().- Parameters:
type- the type of rights.
-
equals
-
hashCode
public int hashCode()
-