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

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceLifetime12Draft01.CurrentTimeDocument


    *
    * @return DOCUMENT_ME
    */
   public SetTerminationTimeResponseDocument setTerminationTime( SetTerminationTimeDocument requestDoc )
   {
      SetTerminationTimeResponseDocument responseDoc       = createResponseDocument(  );
      Calendar                           currentTime       = Calendar.getInstance(  );
      Calendar                           requestedTermTime =
         requestDoc.getSetTerminationTime(  ).getRequestedTerminationTime(  );
      Calendar                           newTermTime = null;

View Full Code Here


      return NAMESPACE_SET;
   }

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

      CurrentTimeDocument currTimeDoc = CurrentTimeDocument.Factory.newInstance(  );
      currTimeDoc.setCurrentTime( getCurrentTime(  ) );
      prop.setCallback( new CurrentTimeCallback(  ) );
      prop.add( currTimeDoc );
      prop = m_propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
      TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance(  );
      termTimeDoc.setTerminationTime( getTerminationTime(  ) );
      prop.add( termTimeDoc );

      // wsntw:SubscriptionManager props
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE );
      ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance(  );
View Full Code Here

        CurrentTimeDocument currTimeDoc = CurrentTimeDocument.Factory.newInstance();
        currTimeDoc.setCurrentTime(getCurrentTime());
        prop.setCallback( new CurrentTimeCallback() );
        prop.add(currTimeDoc);
        prop = m_propSet.get(ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME);
        TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance();
        termTimeDoc.setTerminationTime(getTerminationTime());
        prop.add(termTimeDoc);
        // wsntw:SubscriptionManager props
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE);
        ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance();
        consumerRefDoc.setConsumerReference((EndpointReferenceType) ((XmlObjectWrapper) m_consumerReference).getXmlObject());
View Full Code Here

        currTime.setCurrentTime( Calendar.getInstance() );
        prop.add( currTime );
        prop.setCallback( new CurrentTimeCallback() );

        prop = m_propSet.get( ResourceLifetime1_2Constants.PROP_QNAME_TERMINATION_TIME );
        TerminationTimeDocument termTime = TerminationTimeDocument.Factory.newInstance();
        termTime.setNilTerminationTime();
    }
View Full Code Here

      CurrentTimeDocument currTimeDoc = CurrentTimeDocument.Factory.newInstance(  );
      currTimeDoc.setCurrentTime( getCurrentTime(  ) );
      prop.setCallback( new CurrentTimeCallback(  ) );
      prop.add( currTimeDoc );
      prop = propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
      TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance(  );
      termTimeDoc.setTerminationTime( getTerminationTime(  ) );
      prop.add( termTimeDoc );

      // wsntw:SubscriptionManager props
      prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE );
      prop.setCallback( new ConsumerReferenceResourcePropertyCallback( this ) );
View Full Code Here

    public void testDeleteOpenContent() throws IOException, XmlException
    {
        m_resourceContext = new SushiResourceContext( true );
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.FUGU );
        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );
        //todo better way to validate
        assertNotNull( getResourcePropertyResponse );
View Full Code Here

        //setup callback on resource prop
        SushiResource resource = (SushiResource) m_resourceContext.getResource();
        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.IKA );
        resourceProp.setCallback( m_callback );

        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.IKA );

        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );
View Full Code Here

    }

    private void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( propName );
        set_provider.deleteResourceProperty( deleteType );
    }
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

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceLifetime12Draft01.CurrentTimeDocument

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.