Class BusinessContext
- java.lang.Object
-
- lumis.portal.businesscontext.internal.BusinessContext
-
- All Implemented Interfaces:
IBusinessContext
,IBusinessContextSPI
public class BusinessContext extends java.lang.Object implements IBusinessContextSPI
Business context implementation.- Since:
- 7.0.0
- Version:
- $Revision: 20413 $ $Date: 2017-07-20 16:57:40 -0300 (Thu, 20 Jul 2017) $
-
-
Constructor Summary
Constructors Constructor Description BusinessContext(HttpServletRequest request, java.lang.String id, org.w3c.dom.Document xml)
Creates a new business context with the params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get(java.lang.String key)
Gets the value from context property.java.lang.String
getId()
Returns the registration id for this business context.java.util.Set<java.lang.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.java.lang.String
getPropertyName(java.lang.String key)
Returns the name for the registered BusinessContext.
-
-
-
Constructor Detail
-
BusinessContext
public BusinessContext(HttpServletRequest request, java.lang.String id, org.w3c.dom.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 java.lang.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 interfaceIBusinessContextSPI
-
getKeySet
public java.util.Set<java.lang.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 interfaceIBusinessContext
- Returns:
- keyset containing this context's keys and this context's parent keys.
-
get
public java.lang.String get(java.lang.String key)
Description copied from interface:IBusinessContext
Gets the value from context property.- Specified by:
get
in interfaceIBusinessContext
- Parameters:
key
- the property´s id.- Returns:
- the property´s value.
-
getPropertyName
public java.lang.String getPropertyName(java.lang.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 interfaceIBusinessContextSPI
- Parameters:
key
- property id.
-
-