com.dtolabs.rundeck.core.authorization.providers
Class ContextDecision
java.lang.Object
com.dtolabs.rundeck.core.authorization.providers.ContextDecision
- All Implemented Interfaces:
- Explanation
public class ContextDecision
- extends java.lang.Object
- implements Explanation
ContextDecision provides the decision id and the evaluation up to the decision point.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContextDecision
public ContextDecision(Explanation.Code id,
boolean granted,
java.util.List<ContextEvaluation> evaluations)
- Construct a decision.
- Parameters:
id
- The decision code id.granted
- Is the decision granted or not.evaluations
- A list of evaluations that includes the final decision.
ContextDecision
public ContextDecision(Explanation.Code id,
boolean granted)
granted
public boolean granted()
getCode
public Explanation.Code getCode()
- Specified by:
getCode
in interface Explanation
describe
public void describe(java.io.PrintStream out)
- Specified by:
describe
in interface Explanation
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object