lumis.portal.businesscontext.internal
Class BusinessContext

Package class diagram package BusinessContext
java.lang.Object
  extended by lumis.portal.businesscontext.internal.BusinessContext
All Implemented Interfaces:
IBusinessContext, IBusinessContextSPI

public class BusinessContext
extends Object
implements IBusinessContextSPI

Business context implementation.

Since:
7.0.0

Constructor Summary
BusinessContext(HttpServletRequest request, String id, Document xml)
          Creates a new business context with the params.
 
Method Summary
 String get(String key)
          Gets the value from context property.
 String getId()
          Returns the registration id for this business context.
 Set<String> getKeySet()
          Returns a Set with the keys contained in this BusinessContext, will bring parent's key set and it's parent's key set if the parent has a business context configured.
 String getPropertyName(String key)
          Returns the name for the registered BusinessContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessContext

public BusinessContext(HttpServletRequest request,
                       String id,
                       Document xml)
                throws ManagerException,
                       PortalException
Creates a new business context with the params.

Parameters:
request - the request.
id - identifier business context.
xml - xml content.
Throws:
ManagerException - if occurs something unexpected.
PortalException - if occurs something unexpected.
Since:
7.0.0
Method Detail

getId

public String getId()
Description copied from interface: IBusinessContextSPI
Returns the registration id for this business context. This represents the attribute "id" in the context node in the registered xml.

Specified by:
getId in interface IBusinessContextSPI

getKeySet

public Set<String> getKeySet()
Description copied from interface: IBusinessContext
Returns a Set with the keys contained in this BusinessContext, will bring parent's key set and it's parent's key set if the parent has a business context configured.

Specified by:
getKeySet in interface IBusinessContext
Returns:
keyset containing this context's keys and this context's parent keys.

get

public String get(String key)
Description copied from interface: IBusinessContext
Gets the value from context property.

Specified by:
get in interface IBusinessContext
Parameters:
key - the property´s id.
Returns:
the property´s value.

getPropertyName

public String getPropertyName(String key)
Description copied from interface: IBusinessContextSPI
Returns the name for the registered BusinessContext. The returned value corresponds to the "name" in the context node in the registered xml.

Specified by:
getPropertyName in interface IBusinessContextSPI
Parameters:
key - property id.


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.