cancel
Showing results for 
Search instead for 
Did you mean: 

java webservice content transformation

leftright
Champ on-the-rise
Champ on-the-rise
I am interested how transform method from ContentServiceSoapBindingStub works for java webserviceSmiley Sadlink below)
http://dev.alfresco.com/resource/docs/java/web-service-client/generated/org/alfresco/webservice/cont...(org.alfresco.webservice.types.Reference, java.lang.String, org.alfresco.webservice.types.Reference, java.lang.String, org.alfresco.webservice.types.ContentFormat)
Method has the following parameters
(Reference source, java.lang.String property, Reference destinationReference, java.lang.String destinationProperty, ContentFormat destinationFormat)
So if I understand correctly:  source is the reference to source of transformation, destinationReference is the target of transformation, content fromat is a pair of mimetype and encoding(ContentFormat format = new ContentFormat("image/jpeg", "UTF-8");  ).

But what are the other two parameters java.lang.String destinationProperty  and java.lang.String property.
Also how does this method work does it actually create new transormed Node or does it just return the transformed node content.
How does one know if the transformation fails with this method?
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
source: the source node ref;
property:the source node 's content property to be transformed  (a content node may have more than one cm:content property,cm:content type has define one cm content property named cm:content,your custom type can define more)
destinationReference: destination node ref
destinationProperty:  the destination node 's content property is where the transformed result will be saved (default is cm:content)

It will not  create a new transormed node ,you must specify an existing node as destination node

If the transformation fails , it will throw exception