on 01-02-2015 4:45 AM
Hi,
I am working on KM API in EP 7.3, and i want to get the target URL of the resource fetched. I tried to use the resource.getTargetURL(), but it returns null.
Please suggest the solution.
Message was edited by: Ankur Goyal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have got my answer through below code:
IURLGeneratorService ug =(IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
IHierarchicalUri uri = ug.getAbsoluteUri(PathKey.CONTENT_ACCESS_PATH);
IHierarchicalUri uriRef = uri.appendPath(resource.getRID().toExternalForm());
uriString = uriRef.toExternalForm();
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.