com.sap.portal.pcm.system

Interface ISystems


public interface ISystems

Represents the system landscape service that provides helper methods for working with systems.

Since:
EP6 SP2

Field Summary
static String KEY
          The service identifier
 
Method Summary
 String[] getAliases()
          Retrieves all aliases from the PCD.
 String[] getAliases(IPrincipal principal, boolean usePersonalized)
          Retrieves all aliases from the PCD that are assigned to systems the IPrincipal passed to this method has permission to.
 String[] getDefaultAliases()
          Retrieves all default aliases from the PCD.
 String getSystemId(String alias)
          Retrieves the system ID for a specific alias.
 boolean isDefaultAlias(String alias)
          Indicates whether a specific alias is a default alias.
 

Field Detail

KEY

public static final String KEY
The service identifier

See Also:
Constant Field Values
Method Detail

getDefaultAliases

public String[] getDefaultAliases()
Retrieves all default aliases from the PCD.

Returns:
String[] - Array of alias names

getAliases

public String[] getAliases()
Retrieves all aliases from the PCD.

Returns:
String[] - Array of alias names

getAliases

public String[] getAliases(IPrincipal principal,
                           boolean usePersonalized)
Retrieves all aliases from the PCD that are assigned to systems the IPrincipal passed to this method has permission to.

Parameters:
principal - user representation.
usePersonalized - whether to retrieve aliases associated with systems the user has also "end user" permission on.
true - Aliases pointing to systems that the given user has "end user" permission will be returned.
false - Aliases pointing to systems that the given user does not have "admin" permission will be returned.
Returns:
Array of alias names

getSystemId

public String getSystemId(String alias)
Retrieves the system ID for a specific alias. Dynamic system resolution is supported, so this method first tries to retrieve the system ID from a registered resolving service if one is registered for this alias in the portal registry. Otherwise, it searches for the alias in the PCD and returns the system to which the alias is bound.

Parameters:
alias - by which to extract the system Id.
Returns:
String identifier of the semantic system object.
Throws:
com.sap.portal.pcm.alias.AmbiguousAliasException - If alias is defined both in the prt registry and in the PCD.

isDefaultAlias

public boolean isDefaultAlias(String alias)
Indicates whether a specific alias is a default alias.

Parameters:
alias - the alias to check.
Returns:
true if given alias is default, false otherwise


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.