public class BusinessContext extends Object implements IBusinessContextSPI
Constructor and Description |
---|
BusinessContext(HttpServletRequest request,
String id,
Document xml)
Creates a new business context with the params.
|
Modifier and Type | Method and 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.
|
public BusinessContext(HttpServletRequest request, String id, Document xml) throws ManagerException, PortalException
request
- the request.id
- identifier business context.xml
- xml content.ManagerException
- if occurs something unexpected.PortalException
- if occurs something unexpected.public String getId()
IBusinessContextSPI
getId
in interface IBusinessContextSPI
public Set<String> getKeySet()
IBusinessContext
getKeySet
in interface IBusinessContext
public String get(String key)
IBusinessContext
get
in interface IBusinessContext
key
- the property´s id.public String getPropertyName(String key)
IBusinessContextSPI
getPropertyName
in interface IBusinessContextSPI
key
- property id.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.