java webservice content transformation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2014 08:15 PM
I am interested how transform method from ContentServiceSoapBindingStub works for java webservice
link 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?

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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2014 11:39 AM
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
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
