Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.ResourcesType


    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ResourcesType resourcesType = (ResourcesType) parentXMLObject;
       
        if (childXMLObject instanceof ResourceType){
            resourcesType.getResources().add((ResourceType)childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here


       
        if (resourceList.isEmpty()) {
            return null;
        }

        ResourcesType resources = build();

        for (ResourceType resource : resourceList) {
            resources.getResources().add(resource);
        }

        return resources;
    }
View Full Code Here

        if (resource == null) {
            return null;
        }

        ResourcesType resources = build();
        resources.getResources().add(resource);

        return resources;
    }
View Full Code Here

                attributeList.addAll(SubjectMatchHelper.getAttributeList(subjectList.get(0).getSubjectMatches()));
            }
        }

        // get resources
        ResourcesType resources = target.getResources();

        if (resources != null) {
            List<ResourceType> resourceList = resources.getResources();

            if (!resourceList.isEmpty()) {

                if (resourceList.size() > 1) {
                    throw new UnsupportedTargetException("Only one ResourceType is allowed");
View Full Code Here

                                                                                        attributeWizard.getMatchFunctionDataType()));
            }
        }

        SubjectsType subjects = SubjectsHelper.build(SubjectHelper.build(subjectMatchTypeList));
        ResourcesType resources = ResourcesHelper.build(ResourceHelper.build(resourceMatchTypeList));
        ActionsType actions = ActionsHelper.build(ActionHelper.build(actionMatchTypeList));
        EnvironmentsType environments = EnvironmentsHelper.build(EnvironmentHelper.build(environmentMatchTypeList));

        target = TargetHelper.build(subjects, actions, resources, environments);
    }
View Full Code Here

TOP

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

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.