com.sapportals.portal.prt.component

Interface IPortalComponentContext


public interface IPortalComponentContext

The IPortalComponentContext defines a user specific view on a Portal Component.

It gives access to the component's profile; A component may store objects in its context that will be kept as long as the component context is not released.


Method Summary
 IPortalComponentEvent createComponentEvent(IPortalComponentRequest aRequest, String nameSpace, String eventName)
          Deprecated. Do not use anymore
 void fireEvent(IPortalComponentEvent componentEvent, IPortalComponentRequest request)
          Deprecated. Do not use anymore
 String getApplicationName()
          Gets the name of the portal application the component belongs to
 Enumeration getAttributeNames()
          Returns a Enumeration view of the attribute names contained in this context.
 IPortalComponent getComponent()
          Returns the component attached to this context.
 String getComponentName()
          Gets the name of the component associated to this context.
 String getContextName()
          Returns the name of this context.
 IPortalComponentProfile getProfile()
          Returns the profile of the component.
 ResourceBundle getResourceBundle(Locale locale)
          Returns the resourcebundle of the component in a given locale.
 Object getValue(String name)
          Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.
 void initialize(IPortalNode portalNode, INode node)
          Deprecated. Do not use anymore
 void putValue(String name, Object value)
          Associates the specified value with the specified attribute name, specified as a String.
 void register(String eventName, String nameSpace)
          Deprecated. Do not use anymore
 void removeValue(String name)
          Removes the attribute with the specified name from this context.
 void unregister(String name, String nameSpace)
          Deprecated. Do not use anymore
 

Method Detail

getComponent

public IPortalComponent getComponent()
Returns the component attached to this context.

Returns:
The component attached to this context

getContextName

public String getContextName()
Returns the name of this context.

Returns:
The name of the context.

getComponentName

public String getComponentName()
Gets the name of the component associated to this context. A component can be associated to several contexts.

Returns:
The name of the associated component.

getProfile

public IPortalComponentProfile getProfile()
Returns the profile of the component. The profile is personalizable and can be made persistent.

Returns:
The profile of the component

getResourceBundle

public ResourceBundle getResourceBundle(Locale locale)
Returns the resourcebundle of the component in a given locale.

Returns:
The resourcebundle of the component

putValue

public void putValue(String name,
                     Object value)
Associates the specified value with the specified attribute name, specified as a String.

Parameters:
name - the attribute name.
value - the attribute value.

getValue

public Object getValue(String name)
Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.

Parameters:
name - the attribute name as a string
Returns:
the value to which the attribute name is mapped in this hashtable; null if it is not mapped to any value.

removeValue

public void removeValue(String name)
Removes the attribute with the specified name from this context.

Parameters:
name - attribute name

getAttributeNames

public Enumeration getAttributeNames()
Returns a Enumeration view of the attribute names contained in this context.

Returns:
an Enumeration of attributes names held in this context or null if empty.

register

public void register(String eventName,
                     String nameSpace)
Deprecated. Do not use anymore

Adds this context as listener to an event.

Parameters:
eventName - name of the event to register.
nameSpace - the name space of the event to register.

unregister

public void unregister(String name,
                       String nameSpace)
Deprecated. Do not use anymore

Removes this context as listener to event.

Parameters:
name - name of the event to unregister.
nameSpace - name space of the event to unregister.

initialize

public void initialize(IPortalNode portalNode,
                       INode node)
Deprecated. Do not use anymore

Initialize this context for the current Portal Node. It may be used to register all listeners attached to this context on the portal node.

Parameters:
portalNode - the portal node.
node - the node for this context.

fireEvent

public void fireEvent(IPortalComponentEvent componentEvent,
                      IPortalComponentRequest request)
Deprecated. Do not use anymore

Notifies all listeners that have registered interest for notification on the specified component event.

Parameters:
componentEvent - the component event containing potential data.
request - the portal component request.

createComponentEvent

public IPortalComponentEvent createComponentEvent(IPortalComponentRequest aRequest,
                                                  String nameSpace,
                                                  String eventName)
Deprecated. Do not use anymore

Create a component event.

Parameters:
aRequest - the portal component request.
eventName - the name of the event to create.
nameSpace - the name space of the event.
Returns:
the newly created component event.

getApplicationName

public String getApplicationName()
Gets the name of the portal application the component belongs to



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.