org.opensaml.saml1.core.impl
Class AuthorizationDecisionStatementImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml1.core.impl.SubjectStatementImpl
                  extended by org.opensaml.saml1.core.impl.AuthorizationDecisionStatementImpl
All Implemented Interfaces:
SAMLObject, AuthorizationDecisionStatement, Statement, SubjectStatement, ValidatingXMLObject, XMLObject

public class AuthorizationDecisionStatementImpl
extends SubjectStatementImpl
implements AuthorizationDecisionStatement

A concrete implementation of AuthorizationDecisionStatement


Field Summary
private  XMLObjectChildrenList<Action> actions
          Contains the list of Action elements
private  DecisionTypeEnumeration decision
          Contains the Decision attribute
private  Evidence evidence
          Contains the (single) Evidence element
private  String resource
          Contains the Resource attribute
 
Fields inherited from interface org.opensaml.saml1.core.AuthorizationDecisionStatement
DECISION_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, RESOURCE_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected AuthorizationDecisionStatementImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 List<Action> getActions()
          Get the Action Elements
 DecisionTypeEnumeration getDecision()
          Return the contents of the Decision attribute
 Evidence getEvidence()
          Return the Evidence element
 List<XMLObject> getOrderedChildren()
          
 String getResource()
          Return the contents of the Resource attribute
 void setDecision(DecisionTypeEnumeration decision)
          Set the contents of the Decision attribute
 void setEvidence(Evidence evidence)
          Set the Evidence element
 void setResource(String resource)
          Set the contents of the Resource attribute
 
Methods inherited from class org.opensaml.saml1.core.impl.SubjectStatementImpl
getSubject, setSubject
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.saml1.core.SubjectStatement
getSubject, setSubject
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

resource

private String resource
Contains the Resource attribute


decision

private DecisionTypeEnumeration decision
Contains the Decision attribute


actions

private final XMLObjectChildrenList<Action> actions
Contains the list of Action elements


evidence

private Evidence evidence
Contains the (single) Evidence element

Constructor Detail

AuthorizationDecisionStatementImpl

protected AuthorizationDecisionStatementImpl(String namespaceURI,
                                             String elementLocalName,
                                             String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getResource

public String getResource()
Return the contents of the Resource attribute

Specified by:
getResource in interface AuthorizationDecisionStatement

setResource

public void setResource(String resource)
Set the contents of the Resource attribute

Specified by:
setResource in interface AuthorizationDecisionStatement

getDecision

public DecisionTypeEnumeration getDecision()
Return the contents of the Decision attribute

Specified by:
getDecision in interface AuthorizationDecisionStatement

setDecision

public void setDecision(DecisionTypeEnumeration decision)
Set the contents of the Decision attribute

Specified by:
setDecision in interface AuthorizationDecisionStatement

getActions

public List<Action> getActions()
Get the Action Elements

Specified by:
getActions in interface AuthorizationDecisionStatement

getEvidence

public Evidence getEvidence()
Return the Evidence element

Specified by:
getEvidence in interface AuthorizationDecisionStatement

setEvidence

public void setEvidence(Evidence evidence)
                 throws IllegalArgumentException
Set the Evidence element

Specified by:
setEvidence in interface AuthorizationDecisionStatement
Throws:
IllegalArgumentException

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject
Overrides:
getOrderedChildren in class SubjectStatementImpl


Copyright © 1999-2013. All Rights Reserved.