lumis.portal.businesscontext.internal
Class BusinessContextManager

Package class diagram package BusinessContextManager
java.lang.Object
  extended by lumis.portal.businesscontext.internal.BusinessContextManager
All Implemented Interfaces:
IBusinessContextManagerSPI

public class BusinessContextManager
extends Object
implements IBusinessContextManagerSPI

Business context manager implementation.

Since:
7.0.0

Field Summary
static String BUSINESS_CONTEXT_PROPERTY_BAG_ID
          The business context property bag identifier.
 
Constructor Summary
BusinessContextManager()
           
 
Method Summary
 void addBusinessContextAggregationValues(IBusinessContextSPI businessContext)
          Adds the aggregation values.
 IBusinessContextSPI buildBusinessContext(PageConfig pageConfig, HttpServletRequest request)
          Builds a businessContext with data from database.
 IBusinessContextSPI getBusinessContext(HttpServletRequest request)
          Get a businessContext previously built.
 IBusinessContextSPI getBusinessContext(IServiceInterfaceRequest request)
          Get a businessContext previously built.
 BusinessContextUsage getLocalContexts(ChannelConfig channel)
          Returns the business context usage for the given channel.
 BusinessContextUsage getLocalContexts(PageConfig page)
          Returns the business context usage for the given page.
 void register(String id, String name, String xml)
          Registers a new context
 void removeBusinessContext(IBusinessContextSPI businessContext)
          Removes the built business context.
 void unregister(String id)
          Deletes a selected context.
 void updateLocalBusinessContextUsage(ChannelConfig channel, BusinessContextUsage usage)
          Updates the business context usage for the given channel.
 void updateLocalBusinessContextUsage(PageConfig page, BusinessContextUsage usage)
          Updates the business context usage for the given page.
 void updateLocalBusinessContextUsage(String propertyBagId, BusinessContextUsage usage)
          Updates the business context usage for the property bag with the given identifier.
 void updateRegistration(String id, String name, String xml)
          Updates a selected context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUSINESS_CONTEXT_PROPERTY_BAG_ID

public static final String BUSINESS_CONTEXT_PROPERTY_BAG_ID
The business context property bag identifier.

Since:
7.0.0
See Also:
Constant Field Values
Constructor Detail

BusinessContextManager

public BusinessContextManager()
Method Detail

register

public void register(String id,
                     String name,
                     String xml)
              throws PortalObjectAlreadyExistsException,
                     PortalException
Description copied from interface: IBusinessContextManagerSPI
Registers a new context

Specified by:
register in interface IBusinessContextManagerSPI
Parameters:
id - context id.
name - context name.
xml - xml content.
Throws:
PortalObjectAlreadyExistsException - if some context already exists with the same id.
PortalException

updateRegistration

public void updateRegistration(String id,
                               String name,
                               String xml)
                        throws PortalObjectNotFoundException,
                               PortalException
Description copied from interface: IBusinessContextManagerSPI
Updates a selected context.

Specified by:
updateRegistration in interface IBusinessContextManagerSPI
Parameters:
id - context id.
name - context name.
xml - xml content.
Throws:
PortalObjectNotFoundException - if the context was not found.
PortalException

unregister

public void unregister(String id)
                throws PortalObjectNotFoundException,
                       PortalException
Description copied from interface: IBusinessContextManagerSPI
Deletes a selected context.

Specified by:
unregister in interface IBusinessContextManagerSPI
Parameters:
id - context id.
Throws:
PortalObjectNotFoundException - if the context was not found.
PortalException

buildBusinessContext

public IBusinessContextSPI buildBusinessContext(PageConfig pageConfig,
                                                HttpServletRequest request)
Builds a businessContext with data from database.

Parameters:
request - the request.
webResource - the web resource of the business context.
Returns:
the built business context.
Since:
7.0.0

addBusinessContextAggregationValues

public void addBusinessContextAggregationValues(IBusinessContextSPI businessContext)
Adds the aggregation values.

Since:
7.0.0

removeBusinessContext

public void removeBusinessContext(IBusinessContextSPI businessContext)
Removes the built business context.

Since:
7.0.0

getBusinessContext

public IBusinessContextSPI getBusinessContext(HttpServletRequest request)
Description copied from interface: IBusinessContextManagerSPI
Get a businessContext previously built.

Specified by:
getBusinessContext in interface IBusinessContextManagerSPI
Returns:
the previously built business context.

getBusinessContext

public IBusinessContextSPI getBusinessContext(IServiceInterfaceRequest request)
Description copied from interface: IBusinessContextManagerSPI
Get a businessContext previously built.

Specified by:
getBusinessContext in interface IBusinessContextManagerSPI
Returns:
the previously built business context.

updateLocalBusinessContextUsage

public void updateLocalBusinessContextUsage(PageConfig page,
                                            BusinessContextUsage usage)
                                     throws PortalException
Updates the business context usage for the given page.

Parameters:
page - the page.
usage - the business context usage.
Throws:
PortalException
Since:
7.0.0

updateLocalBusinessContextUsage

public void updateLocalBusinessContextUsage(ChannelConfig channel,
                                            BusinessContextUsage usage)
                                     throws PortalException
Updates the business context usage for the given channel.

Parameters:
channel - the channel.
usage - the business context usage.
Throws:
PortalException
Since:
7.0.0

updateLocalBusinessContextUsage

public void updateLocalBusinessContextUsage(String propertyBagId,
                                            BusinessContextUsage usage)
                                     throws PortalException
Updates the business context usage for the property bag with the given identifier.

Parameters:
propertyBagId - the property bag identifier.
usage - the business context usage.
Throws:
PortalException
Since:
7.0.0

getLocalContexts

public BusinessContextUsage getLocalContexts(PageConfig page)
                                      throws PortalException
Returns the business context usage for the given page.

Parameters:
page - the page.
Returns:
the business context usage for the given page.
Throws:
PortalException
Since:
7.0.0

getLocalContexts

public BusinessContextUsage getLocalContexts(ChannelConfig channel)
                                      throws PortalException
Returns the business context usage for the given channel.

Parameters:
channel - the channel.
Returns:
the business context usage for the given channel.
Throws:
PortalException
Since:
7.0.0


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