Examples of ResourceType


Examples of org.opensaml.xacml.ctx.ResourceType

            }
        }
        SubjectType subjectType = RequestComponentBuilder.createSubjectType(attributes, null);
       
        // Resource
        ResourceType resourceType = createResourceType(message);
       
        // Action
        AttributeValueType actionAttributeValue =
            RequestComponentBuilder.createAttributeValueType(actionToUse);
        AttributeType actionAttribute =
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResourceType

                    null,
                    Collections.singletonList(resourceAttributeValue)
            );
        attributes.clear();
        attributes.add(resourceAttribute);
        ResourceType resource = RequestComponentBuilder.createResourceType(attributes, null);
       
        // Action
        AttributeValueType actionAttributeValue =
            RequestComponentBuilder.createAttributeValueType(
                    "execute"
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResourceType

       
        List<ResourceType> resources = request.getResources();
        assertNotNull(resources);
        assertEquals(1, resources.size());
       
        ResourceType resource = resources.get(0);
        assertEquals(4, resource.getAttributes().size());
       
        boolean resourceIdSatisfied = false;
        boolean soapServiceSatisfied = false;
        boolean soapOperationSatisfied = false;
        boolean resourceURISatisfied = false;
        for (AttributeType attribute : resource.getAttributes()) {
            String attributeValue = attribute.getAttributeValues().get(0).getValue();
            if (XACMLConstants.RESOURCE_ID.equals(attribute.getAttributeID())
                && "{http://www.example.org/contract/DoubleIt}DoubleItService#DoubleIt".equals(
                    attributeValue)) {
                resourceIdSatisfied = true;
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResourceType

       
        List<ResourceType> resources = request.getResources();
        assertNotNull(resources);
        assertEquals(1, resources.size());
       
        ResourceType resource = resources.get(0);
        assertEquals(4, resource.getAttributes().size());
       
        boolean resourceIdSatisfied = false;
        boolean soapServiceSatisfied = false;
        boolean soapOperationSatisfied = false;
        boolean resourceURISatisfied = false;
        String expectedResourceId =
            service + "#" + operation;
        for (AttributeType attribute : resource.getAttributes()) {
            String attributeValue = attribute.getAttributeValues().get(0).getValue();
            if (XACMLConstants.RESOURCE_ID.equals(attribute.getAttributeID())
                && expectedResourceId.equals(attributeValue)) {
                resourceIdSatisfied = true;
            } else if (XACMLConstants.RESOURCE_WSDL_SERVICE_ID.equals(attribute.getAttributeID())
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResourceType

       
        List<ResourceType> resources = request.getResources();
        assertNotNull(resources);
        assertEquals(1, resources.size());
       
        ResourceType resource = resources.get(0);
        assertEquals(1, resource.getAttributes().size());
       
        for (AttributeType attribute : resource.getAttributes()) {
            String attributeValue = attribute.getAttributeValues().get(0).getValue();
            assertEquals(attributeValue, resourceURL);
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResourceType

       
        List<ResourceType> resources = request.getResources();
        assertNotNull(resources);
        assertEquals(1, resources.size());
       
        ResourceType resource = resources.get(0);
        assertEquals(1, resource.getAttributes().size());
       
        for (AttributeType attribute : resource.getAttributes()) {
            String attributeValue = attribute.getAttributeValues().get(0).getValue();
            assertEquals(attributeValue, resourceURL);
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.ResourceType

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

Examples of org.rhq.core.domain.resource.ResourceType

   * org.rhq.core.pluginapi.inventory.CreateChildResourceFacet#createResource
   * (org.rhq.core.pluginapi.inventory.CreateResourceReport)
   */
  @Override
  public CreateResourceReport createResource(CreateResourceReport report) {
    ResourceType resourceType = report.getResourceType();
    // if (resourceType.getName().equals("Translators")) {
    // createConfigurationBasedResource(report);
    // } else {
    createContentBasedResource(report);
    // }
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceType

    return report;
  }

  private CreateResourceReport createConfigurationBasedResource(
      CreateResourceReport createResourceReport) {
    ResourceType resourceType = createResourceReport.getResourceType();
    Configuration defaultPluginConfig = getDefaultPluginConfiguration(resourceType);
    Configuration resourceConfig = createResourceReport
        .getResourceConfiguration();
    String resourceName = getResourceName(defaultPluginConfig,
        resourceConfig);
    ComponentType componentType = ProfileServiceUtil
        .getComponentType(resourceType);
    ManagementView managementView = null;
    ;
    managementView = getConnection().getManagementView();

    if (ProfileServiceUtil.isManagedComponent(getConnection(),
        resourceName, componentType)) {
      createResourceReport.setStatus(CreateResourceStatus.FAILURE);
      createResourceReport.setErrorMessage("A " + resourceType.getName() //$NON-NLS-1$
          + " named '" + resourceName + "' already exists."); //$NON-NLS-1$ //$NON-NLS-2$
      return createResourceReport;
    }

    createResourceReport.setResourceName(resourceName);
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceType

   *
   * @return will not be <code>null</code>
   */
  private org.rhq.core.pluginapi.content.version.PackageVersions loadPackageVersions() {
    if (this.versions == null) {
      ResourceType resourceType = resourceContext.getResourceType();
      String pluginName = resourceType.getPlugin();
      File dataDirectoryFile = resourceContext.getDataDirectory();
      dataDirectoryFile.mkdirs();
      String dataDirectory = dataDirectoryFile.getAbsolutePath();
      log.trace("Creating application versions store with plugin name [" //$NON-NLS-1$
          + pluginName + "] and data directory [" + dataDirectory //$NON-NLS-1$
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.