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

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


    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

    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

        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 );

        assertNotNull( getResourcePropertyResponse );
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

    }

    private GetMultipleResourcePropertiesResponseDocument.GetMultipleResourcePropertiesResponse getMultipleResourceProperties( QName[] propNames )
    {
        GetMultipleResourcePropertiesPortTypeImpl provider = new GetMultipleResourcePropertiesPortTypeImpl( m_resourceContext );
        GetMultipleResourcePropertiesDocument doc = GetMultipleResourcePropertiesDocument.Factory.newInstance();
        GetMultipleResourcePropertiesDocument.GetMultipleResourceProperties getMultipleResourceProperties = doc.addNewGetMultipleResourceProperties();
        for ( int i = 0; i < propNames.length; i++ )
        {
            getMultipleResourceProperties.addResourceProperty( propNames[i] );
        }
        GetMultipleResourcePropertiesResponseDocument responseDoc = provider.getMultipleResourceProperties( doc );
View Full Code Here

    }

    private GetMultipleResourcePropertiesResponseDocument.GetMultipleResourcePropertiesResponse getMultipleResourceProperties( QName[] propNames )
    {
        GetMultipleResourcePropertiesProvider provider = new GetMultipleResourcePropertiesProvider( m_resourceContext );
        GetMultipleResourcePropertiesDocument doc = GetMultipleResourcePropertiesDocument.Factory.newInstance();
        GetMultipleResourcePropertiesDocument.GetMultipleResourceProperties getMultipleResourceProperties = doc.addNewGetMultipleResourceProperties();
        for ( int i = 0; i < propNames.length; i++ )
        {
            getMultipleResourceProperties.addResourceProperty( propNames[i] );
        }
        GetMultipleResourcePropertiesResponseDocument responseDoc = provider.getMultipleResourceProperties( doc );
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

TOP

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

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.