Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Portal services parameters

Hello!

Thers is a code to get URL to some portal service:

private String getServiceLink() {
    IURLGeneratorService generatorService;
    try {
        generatorService =
            (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(
                IServiceTypesConst.URLGENERATOR_SERVICE);
    } catch (ResourceException e1) {
        logger.severe(e1.getLocalizedMessage());
        return null;
    }
    
    IUriReference reference;
    try {
        reference = generatorService.getRelativeUri(PathKey.EXPLORER_PAGE);
        UriQuery query = new UriQuery();
        query.add("Param1", ...);
        query.add("Param2", ...);
 
        reference = reference.setQuery(query.toExternalForm());
        return reference.toExternalForm();
    } catch (WcmException e) {
        logger.severe(e.getLocalizedMessage());
        return null;
    }
}

In this case it’s for KM explorer service (PathKey.EXPLORER_PAGE). Can anybody tell me where I can get a list of possible parameters for each service (and for KM explorer service especially)?

Not what you were looking for? View more on this topic or Ask a question