public interface IDeploymentManagerSPI extends IDeploymentManager
Modifier and Type | Method and Description |
---|---|
void |
changeComponentResolved(String componentId,
ITransaction transaction)
Changes the resolved value of the component based on the given component
identifier.
|
void |
changeModuleResolved(String moduleId,
ITransaction transaction)
Changes the resolved value of the module based on the given module
identifier.
|
IDeploymentExecutionPlan |
createModuleDeploymentExecutionPlan(IFile moduleFolder,
boolean forceReprocess,
boolean syncStructure)
Creates, validates and returns a module deployment execution plan.
|
IDeploymentExecutionPlan |
createModuleDeploymentExecutionPlan(IFile moduleFolder,
boolean forceReprocess,
boolean syncStructure,
boolean wasClosedModule)
Creates, validates and returns a module deployment execution plan.
|
IDeploymentExecutionPlan |
createPackageDeploymentProcess(File packageArchive,
boolean reprocessAllComponents,
boolean syncStructure)
Creates a
deployment execution plan for
deploying the given package. |
void |
deployModuleSource(IFile moduleSourceFolder)
Deploys the module source folder.
|
void |
deployModuleSource(IFile moduleSourceFolder,
boolean syncStructure)
Deploys the module source folder.
|
void |
deployModuleSource(IModule module)
Deploys the module source folder.
|
void |
destroy()
Destroys the Deployment Manager.
|
IComponent |
getChannelComponent(String channelId)
Returns the component associated to the channel.
|
List<IComponent> |
getComponents()
Returns the list of all installed components.
|
String |
getLastDeployInstallationId()
Returns the Last Deploy Installation identifier.
|
String |
getResourceModuleId(String resource)
Returns the module id corresponding to a resource.
|
Set<String> |
getResources(URI basePath,
boolean recursively,
IResourceFilter resourceFilter)
Returns the available resources within the given base path.
|
boolean |
isInstallInProgress()
Returns whether a deploy installation is in progress.
|
void |
resetDeployment()
Resets the deployment status (and performs all required actions) to make a new deployment possible.
This method can make the portal unstable. |
void |
updateChannelId(String componentId,
String channelId)
Updates the channelId of the given component.
|
void |
updateChannelId(String componentId,
String channelId,
boolean allowUpdateIfChannelBelongsToOtherComponent)
Updates the channelId of the given component.
|
createModuleDeploymentProcess, createModuleUndeploymentProcess, createPackageDeploymentProcess, detectModuleType, getClass, getClassLoader, getComponent, getModule, getModules, getPortalDeployer, registerDeployer, submit, unregisterDeployer
String getLastDeployInstallationId() throws PortalException
PortalException
- if any error occurs during the process.boolean isInstallInProgress() throws PortalException
PortalException
- if any error occurs during the process.void changeModuleResolved(String moduleId, ITransaction transaction) throws PortalException
moduleId
- the module identifier to be changes the signal value.transaction
- the transaction to be used to change the module signal value.PortalException
- if any error occurs during the process.PortalObjectNotFoundException
- if the module cannot be located.void changeComponentResolved(String componentId, ITransaction transaction) throws PortalException
componentId
- the component identifier to be changes the signal value.transaction
- the transaction to be used to change the component signal
value.PortalException
- if any error occurs during the process.PortalObjectNotFoundException
- if the component cannot be located.List<IComponent> getComponents() throws PortalException
PortalException
- if any error occurs during the process.void updateChannelId(String componentId, String channelId) throws PortalException
PortalException
will be
raised.componentId
- the component identifier to be updated.channelId
- the channelId to be assigned.PortalException
- if any error occurs during the process.void updateChannelId(String componentId, String channelId, boolean allowUpdateIfChannelBelongsToOtherComponent) throws PortalException
PortalException
will be raised only if allowUpdateIfChannelBelongsToOtherComponent is set to false.componentId
- the component identifier to be updated.channelId
- the channelId to be assigned.allowUpdateIfChannelBelongsToOtherComponent
- true if the update is to be performed even if there is another
component associated to the channel. In this case, that component will no longer be associated with the channel.PortalException
- if any error occurs during the process.IComponent getChannelComponent(String channelId) throws PortalException
channelId
- the channel of the component searching for.PortalException
IDeploymentExecutionPlan createModuleDeploymentExecutionPlan(IFile moduleFolder, boolean forceReprocess, boolean syncStructure) throws PortalException
moduleFolder
- the folder that corresponds to the module root.forceReprocess
- indicates if must reprocess the module and its components.syncStructure
- indicates whether the components structures will be
synchronized if modified.PortalException
- if any error occurs during the process.IDeploymentExecutionPlan createModuleDeploymentExecutionPlan(IFile moduleFolder, boolean forceReprocess, boolean syncStructure, boolean wasClosedModule) throws PortalException
moduleFolder
- the folder that corresponds to the module root.forceReprocess
- indicates if must reprocess the module and its components.syncStructure
- indicates whether the components structures will be
synchronized if modified.wasClosedModule
- Indicates whether the given module was closed before calling this method.PortalException
- if any error occurs during the process.IDeploymentExecutionPlan createPackageDeploymentProcess(File packageArchive, boolean reprocessAllComponents, boolean syncStructure) throws IllegalPackageArchiveException, PortalException
deployment execution plan
for
deploying the given package.packageArchive
- the package file.reprocessAllComponents
- indicates if all components present in the package must be
reprocessed.syncStructure
- indicates whether the components structures will be
synchronized if modified.IllegalPackageArchiveException
- if the given archive is not a valid package archive.PortalException
IDeploymentManager.submit(IDeploymentExecutionPlan)
void deployModuleSource(IModule module) throws PortalException
module
- the module that needs to be deployed.PortalException
void deployModuleSource(IFile moduleSourceFolder) throws PortalException
module
- the module that needs to be deployed.PortalException
void deployModuleSource(IFile moduleSourceFolder, boolean syncStructure) throws PortalException
moduleSourceFolder
- the source folder of module that needs to be deployed.syncStructure
- true if structure should be synchronizedPortalException
String getResourceModuleId(String resource) throws PortalException
name
- PortalException
Set<String> getResources(URI basePath, boolean recursively, IResourceFilter resourceFilter) throws PortalException
It is important to notice that the given base path must include
a scheme
, which will be used to decide how and
where the resources will be searched.
basePath
- the base path to be used as root of search.recursively
- indicates whether the search will be recursive.resourceFilter
- optional resource filter to limit the resources returned.IllegalArgumentException
- if basePath
is null
.PortalException
void resetDeployment() throws PortalException
PortalException
void destroy()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.