Hi
I am having problems finding how to code in JAVA with the above
plugin:
import com.sapportals.wcm.service.urlgenerator.IURLGeneratorService
I have found a site that shows what methods have been
deprecated in EP5 SP5:
http://devnetmedia.sap.com/html/submitted_docs/knowledgemanagement/deprecated-list.html
We where on EP5 SP4 and the functionality worked, but due to the upgrade to EP5 SP5 this is broken.
But
I cannot find examples of how to find a file on the server and get its path.
IURLGeneratorService urlGenerator = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService("urlgenerator");
//String imageUrl = urlGenerator.getHost() + urlGenerator.getRelativeUri('a' ) + itemImage.getRID().toString();
//return "<img align='left' border=0 alt='' src='"imageUrl"'>";
The above commented lines are the issue.
I need to use the vaild URLGeneratorService methods to get
the url of an image to be uploaded via cm.
Please advise.
Regards
Arun