com.sapportals.wcm.repository.service.layout.customizing

Interface ILayoutSet

All Superinterfaces:
Cloneable

public interface ILayoutSet
extends Cloneable

The Parameters is a set of parameters used within the com.sapportals.rendering package. It provides a Properties like access to values with a default mechanism. A default Parameters object can be provided which is used, when a value is not found in the current object and in the getParameter methods a default value can be provided. Null key's or values are not permitted. All values are stored as String and can be retrieved as int or boolean as well. A special paramter with the key IParameterName.PARAMETERSET can be used to include other paramters sets within this paramter set. All included paramters sets are used to search for a key, if this key is not found in the main set.


Method Summary
 IParameterMap[] getAllParameters()
           
 List getMultiValueParameter(IFlavor context, IParameterName key)
          Searches for the parameter with the specified key.
 String getParameter(IFlavor context, IParameterName key)
          Searches for the parameter with the specified key.
 boolean getParameter(IFlavor context, IParameterName key, boolean defaultValue)
          Searches for the parameter with the specified key.
 int getParameter(IFlavor context, IParameterName key, int defaultValue)
          Searches for the parameter with the specified key.
 String getParameter(IFlavor context, IParameterName key, String defaultValue)
           
 IParameterMap getParameters(IFlavor context, IParameterName[] keys)
           
 void removeParameter(IFlavor context, IParameterName key)
           
 IParameterMap setCollectionRendererSet(IFlavor context, IParameterMap impParameters)
           
 Object setParameter(IFlavor context, IParameterName key, Object value)
           
 IParameterMap setResourceRendererSet(IFlavor context, IParameterMap impParameters)
           
 

Method Detail

getMultiValueParameter

public List getMultiValueParameter(IFlavor context,
                                   IParameterName key)
Searches for the parameter with the specified key. If the key is not found in this parameter set, the default parameter set, and its defaults, recursively, are then checked. The method returns null if the parameter is not found. The parameter is returned as java.util.List , even if it is a single Value Parameter. The class of the returned objects in the list can be asked via key.getMetaDate().getParameterClass()

Parameters:
key - the parameters key.
Returns:
the value in this parameter set with the specified key value.

getParameter

public String getParameter(IFlavor context,
                           IParameterName key)
Searches for the parameter with the specified key. If the key is not found in this parameter set, the default parameter set, and its defaults, recursively, are then checked. The method returns null if the parameter is not found.

Parameters:
key - the parameters key.
Returns:
the value in this parameter set with the specified key value.

getParameter

public String getParameter(IFlavor context,
                           IParameterName key,
                           String defaultValue)

getParameter

public int getParameter(IFlavor context,
                        IParameterName key,
                        int defaultValue)
Searches for the parameter with the specified key. If the key is not found in this parameter set, the default parameter set, and its defaults, recursively, are then checked. The method returns the default value argument if the parameter is not found. The value is returned as int if possible.

Parameters:
key - the parameters key.
defaultValue - a default value.
Returns:
the value in this parameter set with the specified key value.

getParameter

public boolean getParameter(IFlavor context,
                            IParameterName key,
                            boolean defaultValue)
Searches for the parameter with the specified key. If the key is not found in this parameter set, the default parameter set, and its defaults, recursively, are then checked. The method returns the default value argument if the parameter is not found. The value is returned as boolean . The boolean returned represents the value true if the parameters value is equal, ignoring case, to the string "true" .

Example: Boolean.valueOf("True") returns true .
Example: Boolean.valueOf("yes") returns false .

Parameters:
key - the parameters key.
defaultValue - a default value.
Returns:
the value in this parameter set with the specified key value.

getParameters

public IParameterMap getParameters(IFlavor context,
                                   IParameterName[] keys)

getAllParameters

public IParameterMap[] getAllParameters()

setParameter

public Object setParameter(IFlavor context,
                           IParameterName key,
                           Object value)
                    throws LayoutServiceConfigLoadException
Throws:
LayoutServiceConfigLoadException

removeParameter

public void removeParameter(IFlavor context,
                            IParameterName key)

setCollectionRendererSet

public IParameterMap setCollectionRendererSet(IFlavor context,
                                              IParameterMap impParameters)
                                       throws LayoutServiceConfigLoadException
Throws:
LayoutServiceConfigLoadException

setResourceRendererSet

public IParameterMap setResourceRendererSet(IFlavor context,
                                            IParameterMap impParameters)
                                     throws LayoutServiceConfigLoadException
Throws:
LayoutServiceConfigLoadException


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.