Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument$Factory


    return jobResources.getIndividualDiskSpace();
  }

  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateIndividualPhysicalMemory(JobDefinitionType value) {

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


    return descr.getJobIdentification();
  }

  public static OperatingSystemType getOrCreateOperatingSystem(JobDefinitionType value)
  {
    ResourcesType jobResources = getOrCreateResources(value);       
    if(!jobResources.isSetOperatingSystem()) {
      jobResources.addNewOperatingSystem();
    }
    return jobResources.getOperatingSystem();
  }
View Full Code Here

        GetMultipleResourcePropertiesDocument.GetMultipleResourceProperties getMultipleResourceProperties = doc.addNewGetMultipleResourceProperties();
        for ( int i = 0; i < propNames.length; i++ )
        {
            getMultipleResourceProperties.addResourceProperty( propNames[i] );
        }
        GetMultipleResourcePropertiesResponseDocument responseDoc = provider.getMultipleResourceProperties( doc );
        GetMultipleResourcePropertiesResponseDocument.GetMultipleResourcePropertiesResponse response =
                responseDoc.getGetMultipleResourcePropertiesResponse();
        return response;
    }
View Full Code Here

     *
     * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
     */
    public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
    {
        GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QName[] propNames = requestDoc.getGetMultipleResourceProperties().getResourcePropertyArray();
        ResourceProperty[] props = getMultipleProperties( propNames );
        addPropertiesToResponse( props, responseDoc.getGetMultipleResourcePropertiesResponse() );
        return responseDoc;
    }
View Full Code Here

        return responseDoc;
    }

    private GetMultipleResourcePropertiesResponseDocument createResponseDocument()
    {
        GetMultipleResourcePropertiesResponseDocument responseDoc = GetMultipleResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewGetMultipleResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

        GetMultipleResourcePropertiesDocument.GetMultipleResourceProperties getMultipleResourceProperties = doc.addNewGetMultipleResourceProperties();
        for ( int i = 0; i < propNames.length; i++ )
        {
            getMultipleResourceProperties.addResourceProperty( propNames[i] );
        }
        GetMultipleResourcePropertiesResponseDocument responseDoc = provider.getMultipleResourceProperties( doc );
        GetMultipleResourcePropertiesResponseDocument.GetMultipleResourcePropertiesResponse response =
                responseDoc.getGetMultipleResourcePropertiesResponse();
        return response;
    }
View Full Code Here

        {
            LOG.debug( MSG.getMessage( Keys.GET_MULTI_RP_REQ,
                    requestDoc.toString() ) );
        }

        GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QName[] propNames =
                requestDoc.getGetMultipleResourceProperties().getResourcePropertyArray();

        for ( int i = 0; i < propNames.length; i++ )
        {
            ResourceProperty prop = getProperties().get( propNames[i] );
            if ( prop == null )
            {
                throw new InvalidResourcePropertyQNameFaultException( propNames[i] );
            }
            refreshProperty( prop );
            if ( prop == null )
            {
                throw new InvalidResourcePropertyQNameFaultException( propNames[i] );
            }

            addPropertyToResponse( prop,
                    responseDoc.getGetMultipleResourcePropertiesResponse() );
        }

        return responseDoc;
    }
View Full Code Here

        }
    }

    private GetMultipleResourcePropertiesResponseDocument createResponseDocument()
    {
        GetMultipleResourcePropertiesResponseDocument responseDoc =
                GetMultipleResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewGetMultipleResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

     *
     * @throws org.apache.ws.resource.faults.ResoureKeyHeaderNotFoundFaultException
     */
    public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
    {
        GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QName[] propNames = requestDoc.getGetMultipleResourceProperties().getResourcePropertyArray();
        ResourceProperty[] props = getMultipleProperties( propNames );
        addPropertiesToResponse( props, responseDoc.getGetMultipleResourcePropertiesResponse() );
        return responseDoc;
    }
View Full Code Here

        return responseDoc;
    }

    private GetMultipleResourcePropertiesResponseDocument createResponseDocument()
    {
        GetMultipleResourcePropertiesResponseDocument responseDoc = GetMultipleResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewGetMultipleResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument$Factory

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.