Package org.apache.muse.ws.resource.properties.set

Examples of org.apache.muse.ws.resource.properties.set.SetRequest


    {
        //
        // Process each top level property from root of doc
        //
        Element[] properties = XmlUtils.getAllElements(newDoc);
        SetRequest set = new SimpleSetRequest();

        for (int i = 0; i < properties.length; i++)
        {
            QName propQName = XmlUtils.getElementQName(properties[i]);
           
            if (getMetadata().isReadOnlyExternal(propQName))
            {
                Object[] filler = { propQName };
                throw new UnableToPutResourcePropertyDocumentFault(_MESSAGES.get("PutRPDocReadOnlyError", filler));
            }
           
            SetRequestComponent insertComp = new InsertRequest(propQName, properties[i]);
            set.addRequestComponent(insertComp);        
        }
       
        return set;
    }
View Full Code Here


            deleteMutableProperties()
         
            //
            // break the operation down into multiple set request insert components
            //
            SetRequest insertRequests = createInsertRequests(newDoc);    
            setResourceProperties(insertRequests);
        }
       
        catch (BaseFault fault)
        {
View Full Code Here

    //
    private static Messages _MESSAGES = MessagesFactory.get(SimpleSetOperationFactory.class);
   
    public SetRequest createDelete(QName qname)
    {
        SetRequest set = new SimpleSetRequest();
        set.addRequestComponent(new DeleteRequest(qname));
        return set;
    }
View Full Code Here

        return set;
    }
   
    public SetRequest createInsert(QName qname, Object[] values)
    {
        SetRequest set = new SimpleSetRequest();
        set.addRequestComponent(new InsertRequest(qname, values));
        return set;
    }
View Full Code Here

        Element[] children = XmlUtils.getAllElements(request, WsrpConstants.NAMESPACE_URI);
       
        if (children.length == 0)
            throw new InvalidMessageFormatFault(_MESSAGES.get("EmptySetRequest"));
       
        SetRequest set = new SimpleSetRequest();
       
        //
        // build the different types of sets from XML. don't bother with a
        // table, we only have three command types
        //
        for (int n = 0; n < children.length; ++n)
        {
            String type = children[n].getLocalName();
           
            SetRequestComponent operation = null;
           
            if (type.equals(DeleteRequest.OPERATION))
                operation = new DeleteRequest(children[n]);
           
            else if (type.equals(InsertRequest.OPERATION))
                operation = new InsertRequest(children[n]);
           
            else if (type.equals(UpdateRequest.OPERATION))
                operation = new UpdateRequest(children[n]);
           
            else
            {
                Object[] filler = { type };
                throw new InvalidMessageFormatFault(_MESSAGES.get("InvalidSet", filler));
            }
           
            set.addRequestComponent(operation);
        }
       
        return set;
    }
View Full Code Here

        return set;
    }
   
    public SetRequest createUpdate(QName qname, Object[] values)
    {
        SetRequest set = new SimpleSetRequest();
        set.addRequestComponent(new UpdateRequest(qname, values));
        return set;
    }
View Full Code Here

    }
   
    public void deleteResourceProperty(QName qname)
        throws SoapFault
    {
        SetRequest set = _SET_FACTORY.createDelete(qname);
        setResourceProperties(set);
    }
View Full Code Here

    }
   
    public void insertResourceProperty(QName qname, Object[] values)
        throws SoapFault
    {
        SetRequest set = _SET_FACTORY.createInsert(qname, values);
        setResourceProperties(set);
    }
View Full Code Here

    }
   
    public void updateResourceProperty(QName qname, Object[] values)
        throws SoapFault
    {
        SetRequest set = _SET_FACTORY.createUpdate(qname, values);
        setResourceProperties(set);
    }
View Full Code Here

    }
   
    public void deleteResourceProperty(QName qname)
        throws SoapFault
    {
        SetRequest set = _SET_FACTORY.createDelete(qname);
        setResourceProperties(set);
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.properties.set.SetRequest

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.