public class BusinessContextRegisterHelper extends Object
Constructor and Description |
---|
BusinessContextRegisterHelper(IComponent component) |
BusinessContextRegisterHelper(IModule module) |
Modifier and Type | Method and Description |
---|---|
List<String> |
findComponentItemDefinitionIds(IComponent component,
File componentArchive)
Returns the list of definitions ids in a component.
|
List<String> |
findModuleItemDefinitionIds(File moduleArchive)
Returns the list of definitions ids in a module.
|
protected boolean |
isAvailable(SessionConfig sessionConfig,
String definitionId,
ITransaction transaction)
Indicates whether a definition item is still available.
|
void |
registerComponentDefinitions(IComponent component)
Register the definitions in a component.
|
void |
registerModuleDefinitions()
Register the definitions in a module.
|
void |
unregisterComponentDefinitions(IComponent component)
Unregister the definitions in a component.
|
void |
unregisterModuleDefinitions()
Unregister the definitions in a module.
|
public BusinessContextRegisterHelper(IModule module)
public BusinessContextRegisterHelper(IComponent component)
protected boolean isAvailable(SessionConfig sessionConfig, String definitionId, ITransaction transaction) throws PortalException
unregister(SessionConfig, String, ITransaction)
so only items no longer available will be unregistered.sessionConfig
- user session information.definitionId
- the definition identifier, as returned by findComponentItemDefinitionIds(IComponent, File)
or findModuleItemDefinitionIds(File)
.transaction
- transaction for persistence access.true
if the item is still available and must not be
unregistered, false
otherwise.PortalException
public List<String> findModuleItemDefinitionIds(File moduleArchive) throws PortalException
moduleArchive
- the module archive.PortalException
- if any error occurs during the process.public List<String> findComponentItemDefinitionIds(IComponent component, File componentArchive) throws PortalException
component
- the component.PortalException
- if any error occurs during the process.public void registerModuleDefinitions() throws PortalException
module
- the module.PortalException
- if any error occurs during the process.public void registerComponentDefinitions(IComponent component) throws PortalException
component
- the component.PortalException
- if any error occurs during the process.public void unregisterModuleDefinitions() throws PortalException
module
- the module.PortalException
- if any error occurs during the process.public void unregisterComponentDefinitions(IComponent component) throws PortalException
component
- the component.PortalException
- if any error occurs during the process.Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.