com.sap.workspaces.module

Interface IModuleContext


public interface IModuleContext

Represents the context for a specific module instance at runtime


Method Summary
 Locale getLocale()
          Returns the locale associated with the current request or user
 IModuleID getModuleID()
          Returns the identifier of the module instance with which context is associated.
 IModuleRuntimeInfo getModuleRuntimeInfo()
          Returns the runtime information of the module instance
 String getProperty(String propertyID)
          Returns the string value of the specified configuration property or null if this property is not defined
 String getPropertyAttribute(String propertyID, String attributeID)
          Returns the value of the specified attribute or null if this attribute is not defined
 String[] getPropertyAttributeIDs(String propertyID)
          Returns an array of all attributes of the property
 String[] getPropertyIDs()
          Returns an array of all property IDs
 com.sap.security.api.IUser getUser()
          Returns the current user.
 

Method Detail

getUser

com.sap.security.api.IUser getUser()
Returns the current user.

Returns:
the current user

getLocale

Locale getLocale()
Returns the locale associated with the current request or user

Returns:
The Locale of the current request or user

getModuleID

IModuleID getModuleID()
Returns the identifier of the module instance with which context is associated.

Returns:
the identifier of the module instance

getModuleRuntimeInfo

IModuleRuntimeInfo getModuleRuntimeInfo()
Returns the runtime information of the module instance

Returns:
the runtime information of the module instance

getProperty

String getProperty(String propertyID)
Returns the string value of the specified configuration property or null if this property is not defined

Parameters:
propertyID - the ID of the configuration property
Returns:
the string value of the configuration property or null

getPropertyAttribute

String getPropertyAttribute(String propertyID,
                            String attributeID)
Returns the value of the specified attribute or null if this attribute is not defined

Parameters:
propertyID - the ID of the configuration property
attributeID - the ID of the attribute
Returns:
value of the specified attribute or null if this attribute is not defined

getPropertyIDs

String[] getPropertyIDs()
Returns an array of all property IDs

Returns:
an array of all configuration properties ID

getPropertyAttributeIDs

String[] getPropertyAttributeIDs(String propertyID)
Returns an array of all attributes of the property

Parameters:
propertyID - the ID of the configuration property
Returns:
an array of all attributes of the configuration property


Copyright 2010 SAP AG Complete Copyright Notice