Show TOC

Getting Aliases for All SystemsLocate this document in the navigation structure

Procedure

The ISystems interface provides methods for retrieving aliases for all systems in the PCD.

The examples below use systems, which is an ISystems object that can be obtained as follows:

            ISystems systems = (ISystems)PortalRuntime.getRuntimeResources()
                    .getService(ISystems.KEY);
         
  • Get all aliases.

                      String[] aliases = systems.getAliases();
                   
  • Get all default aliases.

                      String[] defaultAliases = systems.getDefaultAliases();