Package lumis.upgrade
Interface IUpgradeManager
-
- All Known Implementing Classes:
UpgradeManager
public interface IUpgradeManager
The upgrade manager interface.- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BuildConfig
executeNextPendingBuild(SessionConfig sessionConfig, ITransaction transaction)
Executes the next pending build.BuildConfig
getCurrentBuildInfo(ITransaction transaction)
Get the current build informationjava.lang.String
getNextBuild(java.lang.String userSessionId, java.lang.String buildNumber, java.lang.String buildSequence, ITransaction transaction)
Deprecated.this method may change during a future refactor.boolean
isUpgradePending()
Returns whether there is upgrade pending to be executed.void
markUpgradesDone(SessionConfig sessionConfig, ITransaction transaction)
Marks all pending upgrades as done.void
rebuildLumisAdministration(SessionConfig sessionConfig)
void
setBuildStatus(SessionConfig sessionConfig, BuildConfig buildConfig, java.lang.String buildStatus, java.lang.String userResponse, ITransaction transaction)
Deprecated.this method may change during a future refactor.
-
-
-
Method Detail
-
getNextBuild
@Deprecated java.lang.String getNextBuild(java.lang.String userSessionId, java.lang.String buildNumber, java.lang.String buildSequence, ITransaction transaction) throws ManagerException, PortalException
Deprecated.this method may change during a future refactor.Gets next build node- Parameters:
userSessionId
-buildNumber
-buildSequence
-transaction
-- Throws:
ManagerException
PortalException
-
setBuildStatus
@Deprecated void setBuildStatus(SessionConfig sessionConfig, BuildConfig buildConfig, java.lang.String buildStatus, java.lang.String userResponse, ITransaction transaction) throws PortalException
Deprecated.this method may change during a future refactor.Sets build status- Parameters:
sessionConfig
-buildConfig
-buildStatus
-userResponse
-transaction
-- Throws:
PortalException
-
markUpgradesDone
void markUpgradesDone(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
Marks all pending upgrades as done.- Parameters:
sessionConfig
- the user session information.transaction
- the transaction for persistence access.- Throws:
ManagerException
PortalException
-
executeNextPendingBuild
BuildConfig executeNextPendingBuild(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
Executes the next pending build.- Parameters:
sessionConfig
- the user session information.transaction
- the transaction for persistence access.- Returns:
- the build executed, or null if there was no pending build to be executed.
- Throws:
UpgradeException
- if an exception was thrown during the build execution.PortalException
- Since:
- 4.0.5
-
rebuildLumisAdministration
void rebuildLumisAdministration(SessionConfig sessionConfig) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
getCurrentBuildInfo
BuildConfig getCurrentBuildInfo(ITransaction transaction) throws ManagerException, PortalException
Get the current build information- Parameters:
transaction
-- Returns:
- Throws:
ManagerException
PortalException
-
isUpgradePending
boolean isUpgradePending()
Returns whether there is upgrade pending to be executed.This method uses its own transaction.
- Returns:
true
if there is upgrade pending to be executed,false
otherwise.- Since:
- 14.1.0
-
-