Class AttributePolicyCollection

java.lang.Object
cz.metacentrum.perun.core.api.AttributePolicyCollection

public class AttributePolicyCollection extends Object
Represents a policy collection of an attribute.

User has rights to perform an action (READ/WRITE) on the attribute, if he satisfies all policies in at least one of the attribute policy collections with given action.

Author:
Radoslav Čerhák invalid input: '<'r.cerhak@gmail.com>
  • Constructor Details

    • AttributePolicyCollection

      public AttributePolicyCollection()
    • AttributePolicyCollection

      public AttributePolicyCollection(int id, int attributeId, AttributeAction action, List<AttributePolicy> policies)
  • Method Details

    • addPolicy

      public void addPolicy(AttributePolicy policy)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getAction

      public AttributeAction getAction()
    • setAction

      public void setAction(AttributeAction action)
    • getAttributeId

      public int getAttributeId()
    • setAttributeId

      public void setAttributeId(int attributeId)
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getPolicies

      public List<AttributePolicy> getPolicies()
    • setPolicies

      public void setPolicies(List<AttributePolicy> policies)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object