Package org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01

Examples of org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01.PropertyType


     * @throws org.apache.ws.resource.faults.ResourceKeyHeaderNotFoundFaultException
     *
     */
    public GetResourcePropertyResponseDocument getResourceProperty( GetResourcePropertyDocument requestDoc )
    {
        GetResourcePropertyResponseDocument responseDoc = createResponseDocument();
        QName propName = requestDoc.getGetResourceProperty();
        ResourceProperty prop = getProperty( propName );
        addPropertyToResponse( prop, responseDoc.getGetResourcePropertyResponse() );
        return responseDoc;
    }
View Full Code Here


        return responseDoc;
    }

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

     * @return DOCUMENT_ME
     */
    public InsertResourcePropertiesResponseDocument insertResourceProperties(
            InsertResourcePropertiesDocument requestDoc )
    {
        InsertResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        InsertResourcePropertiesDocument.InsertResourceProperties requestElem = requestDoc.getInsertResourceProperties();
        XmlObject[] propElemsToBeInserted = XmlBeanUtils.getChildElements( requestElem.getInsert() );
        insertResourceProperty( propElemsToBeInserted );
        return responseDoc;
    }
View Full Code Here

        return responseDoc;
    }

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

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

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprType = requestDoc.getQueryResourceProperties().getQueryExpression();
        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprType );
        refreshAllProperties();
        Object result = null;
        try
        {
View Full Code Here

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

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprType = requestDoc.getQueryResourceProperties().getQueryExpression();
        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprType );
        refreshAllProperties();
        Object result = null;
        try
        {
            result = QUERY_ENGINE.executeQuery( queryExpr,
                    getProperties() );
        }
        catch ( UnknownQueryExpressionDialectException uqede )
        {
            throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET, uqede.getDialect() );
        }
        catch ( QueryEvaluationErrorException qeee )
        {
            throw new QueryEvaluationErrorFaultException(NAMESPACE_SET,  qeee.getMessage() );
        }
        catch ( InvalidQueryExpressionException iqee )
        {
            throw new InvalidQueryExpressionFaultException(NAMESPACE_SET,  queryExpr );
        }

        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
                responseDoc.getQueryResourcePropertiesResponse();
        if ( result.getClass().isArray() )
        {
            for ( int i = 0; i < Array.getLength( result ); i++ )
            {
                Object resultItem = Array.get( result, i );
View Full Code Here

        return responseDoc;
    }

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

        super(oldValue, newValue);
    }

    protected XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue, Object[] newValue )
    {
        ResourcePropertyValueChangeNotificationDocument propValueChangeNotifDocXBean = ResourcePropertyValueChangeNotificationDocument.Factory.newInstance();
        ResourcePropertyValueChangeNotificationType propValueChangeNotifXBean = propValueChangeNotifDocXBean.addNewResourcePropertyValueChangeNotification();
        ResourcePropertyValueChangeNotificationType.OldValue oldValueXBean = propValueChangeNotifXBean.addNewOldValue();
        if ( oldValue != null )
        {
            for ( int i = 0; i < oldValue.length; i++ )
            {
View Full Code Here

    }

    protected XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue, Object[] newValue )
    {
        ResourcePropertyValueChangeNotificationDocument propValueChangeNotifDocXBean = ResourcePropertyValueChangeNotificationDocument.Factory.newInstance();
        ResourcePropertyValueChangeNotificationType propValueChangeNotifXBean = propValueChangeNotifDocXBean.addNewResourcePropertyValueChangeNotification();
        ResourcePropertyValueChangeNotificationType.OldValue oldValueXBean = propValueChangeNotifXBean.addNewOldValue();
        if ( oldValue != null )
        {
            for ( int i = 0; i < oldValue.length; i++ )
            {
                XmlBeanUtils.addChildElement( oldValueXBean, (XmlObject) oldValue[i] );
            }
        }
        else
        {
            oldValueXBean.setNil();
        }
        ResourcePropertyValueChangeNotificationType.NewValue newValueXBean = propValueChangeNotifXBean.addNewNewValue();
        if ( newValue != null )
        {
            for ( int i = 0; i < oldValue.length; i++ )
            {
                XmlBeanUtils.addChildElement( newValueXBean, (XmlObject) newValue[i] );
View Full Code Here

        if ( LOG.isDebugEnabled() )
        {
            LOG.debug( MSG.getMessage( Keys.SET_RP_REQ, requestDoc ) );
        }

        SetResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        SetResourcePropertiesDocument.SetResourceProperties requestElem = requestDoc.getSetResourceProperties();

        InsertType[] insertElems = requestElem.getInsertArray();
        for ( int i = 0; i < insertElems.length; i++ )
        {
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x10.wsrfWSResourceMetadataDescriptor10Draft01.PropertyType

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.