Class AuthorizationDecision
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision
-
public class AuthorizationDecision extends MyDataEntity
Information about the permissiveness of the event. The decision may include instructions for modification or delaying the event.Decisions are provided by the PDP and enforced by a PEP.- Author:
- Fraunhofer IESE
-
-
Field Summary
Fields Modifier and Type Field Description static AuthorizationDecision
DECISION_ALLOW
The default decision for a plain allow.static AuthorizationDecision
DECISION_INHIBIT
The default decision for a plain inhibit.
-
Constructor Summary
Constructors Constructor Description AuthorizationDecision()
Instantiates a new authorization decision.AuthorizationDecision(AuthorizationDecision prototype)
Constructor that takes the component_id and eventAllowed from Prototype.AuthorizationDecision(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, Modifier... modifiers)
Instantiates a new authorization decision.AuthorizationDecision(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, ModifierList modifiers)
Instantiates a new authorization decision.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModifier(Modifier param)
Adds the modifier.void
clearParameters()
Clear modifiers.boolean
equals(Object o)
static AuthorizationDecision
getDecisionAllow()
Get a clone of DECISION_ALLOW.static AuthorizationDecision
getDecisionInhibit()
Get a clone of DECISION_INHIBIT.int
hashCode()
-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
-
-
-
Field Detail
-
DECISION_ALLOW
public static final AuthorizationDecision DECISION_ALLOW
The default decision for a plain allow.
-
DECISION_INHIBIT
public static final AuthorizationDecision DECISION_INHIBIT
The default decision for a plain inhibit.
-
-
Constructor Detail
-
AuthorizationDecision
public AuthorizationDecision()
Instantiates a new authorization decision. Default constructor for JPA
-
AuthorizationDecision
public AuthorizationDecision(AuthorizationDecision prototype)
Constructor that takes the component_id and eventAllowed from Prototype.- Parameters:
prototype
- Prototype to create a new instance.
-
AuthorizationDecision
public AuthorizationDecision(DecisionId id, boolean eventAllowed, List<String> authorizationActionNames, Modifier... modifiers)
Instantiates a new authorization decision.- Parameters:
id
- the ideventAllowed
- the event allowedauthorizationActionNames
- the authorization action namesmodifiers
- the modifiers
-
AuthorizationDecision
public AuthorizationDecision(DecisionId id, boolean eventAllowed, @Nullable List<String> authorizationActionNames, ModifierList modifiers)
Instantiates a new authorization decision.- Parameters:
id
- the ideventAllowed
- the event allowedauthorizationActionNames
- the authorization action namesmodifiers
- the modifiers
-
-
Method Detail
-
getDecisionAllow
public static AuthorizationDecision getDecisionAllow()
Get a clone of DECISION_ALLOW.- Returns:
- a clone of DECISION_ALLOW.
-
getDecisionInhibit
public static AuthorizationDecision getDecisionInhibit()
Get a clone of DECISION_INHIBIT.- Returns:
- DECISION_INHIBIT
-
addModifier
public void addModifier(Modifier param)
Adds the modifier.- Parameters:
param
- the param
-
clearParameters
public void clearParameters()
Clear modifiers.
-
-