Show TOC Start of Content Area

Syntax documentation IDynamicSystemService  Locate the document in its SAP Library structure

Every system resolving service must implement IDynamicSystemService, which exposes a single method, getAlternativeSystem().

IDynamicSystemService

Method

Description

Arguments

Return value

getAlternativeSystem

Returns as a string the PCD path for the given alias

(IUser user, String alias)

Java.lang.String

Example

The following shows the class declaration and the getAlternativeSystem() method  for implementing the IDynamicSystemService interface.

The methods for implementing the IService interface are not shown.

public class MyAliasMapping implements IDynamicSystemService, IService {
     .
     .
     .
  
public String getAlternativeSystem(IUser user, String alias)
  {
    String system = 
"pcd:portal_content/systems/db2_us";
    
return system;
  }

}

The getAlternativeSystem()method provides the logic for resolving an alias to the PCD path of a system. Generally, this logic is based on the user and the system alias that are passed to the method.

The user object that is passed into the getAlternativeSystem() method is of type IUser. You can query the IUser object for such things as the user’s groups and roles. For more information on the IUser interface, see the User Management Engine documentation in the Portal Development Kit.

 

End of Content Area