[ 
http://issues.apache.org/jira/browse/MUSE-29?page=comments#action_12428243 ] 
            
Dan Jemiolo commented on MUSE-29:
---------------------------------


>From Mohammad Fakhar's contribution (originally MUSE-55):

I implemented put resource property doc operation in 
SimpleResourcePropertyCollection.

    public synchronized Element putResourcePropertyDocument(Element newDoc) 
throws
    UnableToPutResourcePropertyDocumentFault, BaseFault

The algorithm is:
1) if newDoc is null, throw fault
2) delete all NON-READ-ONLY properties - The spec states that this operation is 
supposed to be a full replacement
of the resource properties, which means all old properties, with the exception 
of read-only properties, need to be deleted.
3) Break down the newDoc into InsertRequest components - Basically I iterate 
through all top level properties in newDoc and
create InsertRequests for them. If a read-only property is being inserted, i 
throw a fault.
4) Then finally i execute all the InsertRequest components.

I have attached binary and source in jar.

> Implementation of WSRP PutResourcePropertyDocument
> --------------------------------------------------
>
>                 Key: MUSE-29
>                 URL: http://issues.apache.org/jira/browse/MUSE-29
>             Project: Muse
>          Issue Type: New Feature
>          Components: WSRF WSRP ResourcePropertyCollection and Capabilities
>    Affects Versions: 2.0.0 M1
>         Environment: Axis2 and OSGi
>            Reporter: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: putRPDoc.jar
>
>
> Muse's WSRP 1.2 does not have a complete implementation for the 
> PutResourcePropertyDocument operation (found in the SetCapability interface). 
> The semantics of this operation are quite tricky, but it would be ideal if it 
> could be implemented using the other WSRP operations rather than creating a 
> dependency on SimpleResourcePropertyCollection.
> We need to have this operation implemented before we can release 2.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to