Package cz.metacentrum.perun.core.api
Class AttributePolicyCollection
java.lang.Object
cz.metacentrum.perun.core.api.AttributePolicyCollection
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 Summary
ConstructorDescriptionAttributePolicyCollection
(int id, int attributeId, AttributeAction action, List<AttributePolicy> policies) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPolicy
(AttributePolicy policy) boolean
int
int
getId()
int
hashCode()
void
setAction
(AttributeAction action) void
setAttributeId
(int attributeId) void
setId
(int id) void
setPolicies
(List<AttributePolicy> policies) toString()
-
Constructor Details
-
AttributePolicyCollection
public AttributePolicyCollection() -
AttributePolicyCollection
public AttributePolicyCollection(int id, int attributeId, AttributeAction action, List<AttributePolicy> policies)
-
-
Method Details
-
addPolicy
-
equals
-
getAction
-
setAction
-
getAttributeId
public int getAttributeId() -
setAttributeId
public void setAttributeId(int attributeId) -
getId
public int getId() -
setId
public void setId(int id) -
getPolicies
-
setPolicies
-
hashCode
public int hashCode() -
toString
-