public class ThemeRegisterHelper extends Object
Constructor and Description |
---|
ThemeRegisterHelper(IComponent component,
Collection<IModule> currentlyInstalledModules,
boolean forceReprocess) |
ThemeRegisterHelper(IModule module,
Collection<IModule> currentlyInstalledModules,
boolean forceReprocess) |
Modifier and Type | Method and Description |
---|---|
protected Collection<IDeployObject> |
findComponentDefinitions(IComponent component,
EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds objects in the given component.
|
protected Collection<IDeployObject> |
findModuleObjects(Module module,
IDeployObject.ObjectType objectType,
EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds the objects of the given type in the given module.
|
void |
registerComponentDefinitions(IComponent component)
Register the definitions in a component.
|
void |
registerModuleDefinitions()
Register the definitions in a module.
|
protected boolean |
shouldUnregister(SessionConfig sessionConfig,
IDeployObject definition,
ITransaction transaction)
Indicates whether a definition item is to be unregistered.
|
void |
unregisterComponentDefinitions(IComponent component)
Unregister the definitions in a component.
|
void |
unregisterModuleDefinitions()
Unregister the definitions in a module.
|
public ThemeRegisterHelper(IModule module, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
public ThemeRegisterHelper(IComponent component, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
protected boolean shouldUnregister(SessionConfig sessionConfig, IDeployObject definition, ITransaction transaction) throws PortalException
This method is called before calling #unregister(SessionConfig, String, ITransaction)
to decide which
items will be unregistered.
sessionConfig
- user session information.transaction
- transaction for persistence access.true
if the item is to be unregistered, false
otherwise.PortalException
public void registerModuleDefinitions() throws PortalException
module
- the module.PortalException
- if any error occurs during the process.protected Collection<IDeployObject> findModuleObjects(Module module, IDeployObject.ObjectType objectType, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
module
- the module.objectType
- the object type.allowedInnerObjects
- the allowed inner object types.public void registerComponentDefinitions(IComponent component) throws PortalException
component
- the component.PortalException
- if any error occurs during the process.protected Collection<IDeployObject> findComponentDefinitions(IComponent component, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
component
- the component.allowedInnerObjects
- the allowed inner object types.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.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.