public class UpgradeManager extends Object implements IUpgradeManager
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_TYPE_CUSTOM
Indicates that a custom step handler should be executed.
|
static String |
ACTION_TYPE_REGISTER_SERVICE
Indicates that the step handler for registering a service should be executed.
|
static String |
ACTION_TYPE_RUN_SQL |
static String |
ACTION_TYPE_UNREGISTER_CONTROL_TYPE
Indicates that the step handler for unregister a control type should be executed.
|
static int |
BUILD_STATUS_ERROR |
static int |
BUILD_STATUS_EXECUTING |
static int |
BUILD_STATUS_SUCCESS |
static int |
USER_RESPONSE_EXECUTION_REQUESTED |
static int |
USER_RESPONSE_EXECUTION_SKIPPED |
Constructor and Description |
---|
UpgradeManager() |
Modifier and Type | Method and Description |
---|---|
BuildConfig |
executeNextPendingBuild(SessionConfig sessionConfig,
ITransaction transaction)
Executes the next pending build.
|
BuildConfig |
getCurrentBuildInfo(ITransaction transaction)
Get the current build information
|
String |
getNextBuild(String userSessionId,
String buildNumber,
String buildSequence,
ITransaction transaction)
Gets next build node
|
void |
markUpgradesDone(SessionConfig sessionConfig,
ITransaction transaction)
Marks all pending upgrades as done.
|
void |
rebuildLumisAdministration(SessionConfig sessionConfig) |
void |
setBuildStatus(SessionConfig sessionConfig,
BuildConfig buildConfig,
String buildStatus,
String userResponse,
ITransaction transaction)
Sets build status
|
public static final String ACTION_TYPE_RUN_SQL
public static final String ACTION_TYPE_CUSTOM
public static final String ACTION_TYPE_REGISTER_SERVICE
RegisterServiceStepHandler
,
Constant Field Valuespublic static final String ACTION_TYPE_UNREGISTER_CONTROL_TYPE
UnregisterControlTypeStepHandler
,
Constant Field Valuespublic static final int BUILD_STATUS_EXECUTING
public static final int BUILD_STATUS_SUCCESS
public static final int BUILD_STATUS_ERROR
public static final int USER_RESPONSE_EXECUTION_REQUESTED
public static final int USER_RESPONSE_EXECUTION_SKIPPED
public String getNextBuild(String userSessionId, String buildNumber, String buildSequence, ITransaction transaction) throws ManagerException, PortalException
IUpgradeManager
getNextBuild
in interface IUpgradeManager
ManagerException
PortalException
public void setBuildStatus(SessionConfig sessionConfig, BuildConfig buildConfig, String buildStatus, String userResponse, ITransaction transaction) throws PortalException
IUpgradeManager
setBuildStatus
in interface IUpgradeManager
PortalException
public void markUpgradesDone(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
IUpgradeManager
markUpgradesDone
in interface IUpgradeManager
sessionConfig
- the user session information.transaction
- the transaction for persistence access.ManagerException
PortalException
public BuildConfig executeNextPendingBuild(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
IUpgradeManager
executeNextPendingBuild
in interface IUpgradeManager
sessionConfig
- the user session information.transaction
- the transaction for persistence access.UpgradeException
- if an exception was thrown during the build execution.PortalException
public void rebuildLumisAdministration(SessionConfig sessionConfig) throws ManagerException, PortalException
rebuildLumisAdministration
in interface IUpgradeManager
ManagerException
PortalException
public BuildConfig getCurrentBuildInfo(ITransaction transaction) throws ManagerException, PortalException
IUpgradeManager
getCurrentBuildInfo
in interface IUpgradeManager
ManagerException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.