Package org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument


   * @param reference
   *
   */
  public void makeActive(EndpointReference referenceToWcConfigEpr) {
    XmlObject newEpr = ((XmlBeansEndpointReference)wsEpr).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
    SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();
        UpdateType updateType = UpdateType.Factory.newInstance();
        WeatherStationReferenceDocument weatherDoc = WeatherStationReferenceDocument.Factory.newInstance();
        weatherDoc.setWeatherStationReference((EndpointReferenceType) newEpr);
        XmlBeanUtils.addChildElement(updateType,weatherDoc);
View Full Code Here


        return XmlBeanUtils.getChildElements( response );
    }

    public void updateResourceProperty( XmlObject[] propElems ) throws FaultException
    {
        SetResourcePropertiesDocument requestDoc = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = requestDoc.addNewSetResourceProperties();
        UpdateType updateType = setResourceProperties.addNewUpdate();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( updateType, propElems[i] );
        }
View Full Code Here

     * @param status
     */
    public void changeOperationalStatus(OperationalStatusDocument.OperationalStatus.Enum status)
    {
        SetResourcePropertiesPortTypeImpl setResourcePropertiesPortType = new SetResourcePropertiesPortTypeImpl(getResourceContext());
        SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();
        UpdateType updateType = UpdateType.Factory.newInstance();

        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
        operationalStatusDocument.setOperationalStatus(status);

View Full Code Here

    }

    protected void insertResourceProperty( XmlObject[] propElems )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        InsertType insertType = setType.addNewInsert();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( insertType, propElems[i] );
        }
View Full Code Here

    }

    protected void updateResourceProperty( XmlObject[] propElems )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        UpdateType updateType = setType.addNewUpdate();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( updateType, propElems[i] );
        }
View Full Code Here

    }

    protected void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        DeleteType deleteType = setType.addNewDelete();
        deleteType.setResourceProperty( propName );       
        setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse();
    }
View Full Code Here

    public void testSetWeatherStation() throws Exception
    {
        EndpointReferenceDocument weatherStationEprDoc = WEATHER_STATION_2_EPR_DOC;
        EndpointReferenceDocument clientConfigEpr = CLIENT_CONFIG_EPR;
        SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();
        UpdateType update = UpdateType.Factory.newInstance();
        WeatherStationReferenceDocument weatherStationReferenceDocument = WeatherStationReferenceDocument.Factory.newInstance();
        weatherStationReferenceDocument.setWeatherStationReference(weatherStationEprDoc.getEndpointReference());
        XmlBeanUtils.addChildElement(update, weatherStationReferenceDocument);
        setResourceProperties.setUpdateArray(new UpdateType[]{update});
View Full Code Here

        return XmlBeanUtils.getChildElements( response );
    }

    public void updateResourceProperty( XmlObject[] propElems ) throws FaultException
    {
        SetResourcePropertiesDocument requestDoc = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = requestDoc.addNewSetResourceProperties();
        UpdateType updateType = setResourceProperties.addNewUpdate();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( updateType, propElems[i] );
        }
View Full Code Here

    */
   protected void deleteResourceProperty( QName propName )
   {
      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties(  );
      DeleteType                                          deleteType = setType.addNewDelete(  );
      deleteType.setResourceProperty( propName );
      setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse(  );
   }
View Full Code Here

    */
   protected void insertResourceProperty( XmlObject[] propElems )
   {
      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties(  );
      InsertType                                          insertType = setType.addNewInsert(  );
      for ( int i = 0; i < propElems.length; i++ )
      {
         XmlBeanUtils.addChildElement( insertType, propElems[i] );
      }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument

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.