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 Details

    • RightsResult

      public RightsResult()
      Default constructor.
    • RightsResult

      public RightsResult(String type)
      Constructor with type parameter.
      Parameters:
      type - the type of the stored rights info.
  • Method Details

    • getLevel

      public String getLevel()
      Get the stored level of security.
      Returns:
      the level of security.
    • setLevel

      public void setLevel(String level)
      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)
      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)
      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)
      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)
      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.
    • setType

      public void setType(String type)
      Parameters:
      type - the type of rights.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object