Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.AttributeSelectorType


        return matchId;
    }

    /** {@inheritDoc} */
    public void setAttributeSelector(AttributeSelectorType selector) {
        AttributeSelectorType currentSelector = getAttributeSelector();
        if (currentSelector != null) {
            attributeChoice.remove(currentSelector);
        }

        attributeChoice.add(selector);
View Full Code Here


        super();
    }
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributeSelectorType attributeSelectorType = (AttributeSelectorType) xmlObject;
       
        if (attribute.getLocalName().equals(AttributeSelectorType.REQUEST_CONTEXT_PATH_ATTRIB_NAME)){
            attributeSelectorType.setRequestContextPath(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else  if (attribute.getLocalName().equals(AttributeSelectorType.DATA_TYPE_ATTRIB_NAME)){
            attributeSelectorType.setDataType(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else  if (attribute.getLocalName().equals(AttributeSelectorType.MUST_BE_PRESENT_ATTRIB_NAME)){
            if (attribute.getValue().equals("True") || attribute.getValue().equals("true")) {
                attributeSelectorType.setMustBePresentXSBoolean(XSBooleanValue.valueOf("1"));
            } else {
                attributeSelectorType.setMustBePresentXSBoolean(XSBooleanValue.valueOf("0"));
            }         
        } else {
            super.processAttribute(xmlObject, attribute);
        }

View Full Code Here

        return matchId;
    }

    /** {@inheritDoc} */
    public void setAttributeSelector(AttributeSelectorType selector) {
        AttributeSelectorType currentSelector = getAttributeSelector();
        if (currentSelector != null) {
            attributeChoice.remove(currentSelector);
        }

        attributeChoice.add(selector);
View Full Code Here

        return matchId;
    }

    /** {@inheritDoc} */
    public void setAttributeSelector(AttributeSelectorType selector) {
        AttributeSelectorType currentSelector = getAttributeSelector();
        if (currentSelector != null) {
            attributeChoice.remove(currentSelector);
        }

        attributeChoice.add(selector);
View Full Code Here

        return matchId;
    }

    /** {@inheritDoc} */
    public void setAttributeSelector(AttributeSelectorType selector) {
        AttributeSelectorType currentSelector = getAttributeSelector();
        if (currentSelector != null) {
            attributeChoice.remove(currentSelector);
        }

        attributeChoice.add(selector);
View Full Code Here

        super();
    }
   
    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributeSelectorType attributeSelectorType = (AttributeSelectorType) xmlObject;
       
        if(!DatatypeHelper.isEmpty(attributeSelectorType.getDataType())){
            domElement.setAttribute(AttributeSelectorType.DATA_TYPE_ATTRIB_NAME,
                    attributeSelectorType.getDataType());
        }
        if(!DatatypeHelper.isEmpty(attributeSelectorType.getRequestContextPath())){
            domElement.setAttribute(AttributeSelectorType.REQUEST_CONTEXT_PATH_ATTRIB_NAME,
                    attributeSelectorType.getRequestContextPath());
        }
        if(attributeSelectorType.getMustBePresentXSBoolean() != null){
            domElement.setAttribute(AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME,
                    Boolean.toString(attributeSelectorType.getMustBePresentXSBoolean().getValue()));
        }
        if(!attributeSelectorType.getMustBePresent()){
            domElement.setAttribute(AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME,
                    Boolean.toString(attributeSelectorType.getMustBePresent()));
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xacml.policy.AttributeSelectorType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.