Examples of ResourcesType


Examples of org.ogf.schemas.jsdl.ResourcesType

    }

    public static org.ogf.schemas.jsdl.RangeValueType getOrCreateIndividualPhysicalMemory(
            JobDefinitionType value) {

        ResourcesType jobResources = getOrCreateResources(value);
        if (!jobResources.isSetIndividualPhysicalMemory()) {
            jobResources.addNewIndividualPhysicalMemory();
        }
        return jobResources.getIndividualPhysicalMemory();
    }
View Full Code Here

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

Examples of org.opensaml.xacml.policy.ResourcesType

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

        ResourcesType resources = build();

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

        return resources;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.ResourcesType

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

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

        return resources;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.ResourcesType

                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

Examples of org.opensaml.xacml.policy.ResourcesType

                                                                                        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

Examples of org.woped.pnml.ResourcesType

            iNetToolSpec.setTreeHeightOverview(layoutInfo.getTreeHeightOverview());
            iNetToolSpec.setTreePanelVisible(layoutInfo.getTreePanelVisible());
            //verticalLayout
            iNetToolSpec.setVerticalLayout(editor.isRotateSelected());
            // resources
            ResourcesType iNetResources = iNetToolSpec.addNewResources();
            // Rescources
            ResourceType iResourceType;
            ResourceModel rModelTemp;

            for (Iterator<ResourceModel> iter = petrinetModel.getResources().iterator(); iter.hasNext();)
            {
                rModelTemp = (ResourceModel) iter.next();
                iResourceType = iNetResources.addNewResource();
                iResourceType.setName(rModelTemp.getName());
                for (int i = 0; i < statusBars.length; i++)
                    statusBars[i].nextStep();
            }
            // Roles

            RoleType iRoleType;
            ResourceClassModel roleModelTemp;
            for (Iterator<ResourceClassModel> iter = petrinetModel.getRoles().iterator(); iter.hasNext();)
            {
                roleModelTemp = (ResourceClassModel) iter.next();
                iRoleType = iNetResources.addNewRole();
                iRoleType.setName(roleModelTemp.getName());
                if(roleModelTemp.getSuperModels()!= null){
                  for (Iterator<ResourceClassModel> i = roleModelTemp.getSuperModels();i.hasNext();)
                  {               
                    ResourceClassModel superMe = i.next();
                    SuperModelType newSuper =iRoleType.addNewSuperModel();
                    newSuper.setName(superMe.getName());
                  }
                }
                for (int i = 0; i < statusBars.length; i++)
                    statusBars[i].nextStep();
            }
            // Orga Units
            OrganizationUnitType iOrganizationUnitType;
            ResourceClassModel orgunitModelTemp;
            for (Iterator<ResourceClassModel> iter = petrinetModel.getOrganizationUnits().iterator(); iter.hasNext();)
            {
                orgunitModelTemp = (ResourceClassModel) iter.next();
                iOrganizationUnitType = iNetResources.addNewOrganizationUnit();
                iOrganizationUnitType.setName(orgunitModelTemp.getName());
                if(orgunitModelTemp.getSuperModels()!=null){
                  for (Iterator<ResourceClassModel> i = orgunitModelTemp.getSuperModels();i.hasNext();)
                  {
                    ResourceClassModel superMe = i.next();
                    SuperModelType newSuper= iOrganizationUnitType.addNewSuperModel();
                    newSuper.setName(superMe.getName());
                  }
                }
                for (int i = 0; i < statusBars.length; i++)
                    statusBars[i].nextStep();
            }
            // ResourceMap
            ResourceMappingType iNetResourceMap;           
            for (Iterator<String> iter = petrinetModel.getResourceMapping().keySet().iterator();iter.hasNext();)
            {
                String tempResourceClass = (String) iter.next();
                Vector<String> values = petrinetModel.getResourceMapping().get(tempResourceClass);
                // TODO check if mapping exists NullPointerExeption bei
                // speicherung ge�nderter orgUnit die keine zugeordnete Resource
                // hat!
                for (Iterator<String> iterator = values.iterator(); iterator.hasNext();)
                {
                    iNetResourceMap = iNetResources.addNewResourceMapping();
                    iNetResourceMap.setResourceClass(tempResourceClass);
                    iNetResourceMap.setResourceID(iterator.next().toString());
                }
                for (int i = 0; i < statusBars.length; i++)
                    statusBars[i].nextStep();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.