Show TOC

IDynamicSystemServiceLocate this document in the navigation structure

Every system resolving service must implement the IDynamicSystemService interface, which exposes a single method, getAlternativeSystem(IUser user, String alias) that returns the Java.lang.String PCD path for the given alias.

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.

Sample Code
                  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. This logic is based on the user and the system alias that are passed to the method.

The user object that is passed to the getAlternativeSystem() method is of type IUser. You can query the IUser object for the user's groups and roles.

For more information about the IUser interface, see Adding User Management Functions to Applications .