com.dtolabs.rundeck.core.authorization.providers
Class ContextDecision

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.dtolabs.rundeck.core.authorization.Explanation
Explanation.Code
 
Constructor Summary
ContextDecision(Explanation.Code id, boolean granted)
           
ContextDecision(Explanation.Code id, boolean granted, java.util.List<ContextEvaluation> evaluations)
          Construct a decision.
 
Method Summary
 void describe(java.io.PrintStream out)
           
 Explanation.Code getCode()
           
 boolean granted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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