Class BusinessContext
- java.lang.Object
-
- lumis.portal.businesscontext.internal.BusinessContext
-
- All Implemented Interfaces:
IBusinessContext
,IBusinessContextSPI
public class BusinessContext extends 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, String id, Document xml)
Creates a new business context with the params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceIBusinessContextSPI
-
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 interfaceIBusinessContext
- 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 interfaceIBusinessContext
- 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 interfaceIBusinessContextSPI
- Parameters:
key
- property id.
-
-