|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.GenericService
atg.svc.repository.service.BaseService
atg.svc.repository.service.SharedService
atg.svc.repository.service.SolutionStatusService
public class SolutionStatusService
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.svc.repository.service.BaseService |
---|
mBeanHomes, mBeanHomesName, mRepositoryHomes, mRepositoryHomesName |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SolutionStatusService()
|
Method Summary | |
---|---|
boolean |
addStatusForTaskElementId(java.lang.String pWorkflowName,
java.lang.String pTaskElementId,
SolutionStatus pSolutionStatus)
Adds a solution status task definition for workflow name and task element id. |
SolutionSolutionStatus |
changeSolutionVersion(atg.versionmanager.VersionManagerURI pSolutionURI,
atg.versionmanager.VersionManagerURI pTargetURI,
boolean pForceDeleteOld,
boolean pMigrateOldValues)
|
SolutionSolutionStatus |
createSolutionStatus(java.lang.String pSolutionId,
int pVersion,
SolutionStatus pSolutionStatus)
Creates solution's status |
SolutionSolutionStatus |
createSolutionStatus(java.lang.String pSolutionId,
int pVersion,
SolutionStatus pSolutionStatus,
boolean pDeployed)
Creates solution's status |
SolutionSolutionStatus |
findDeployedSolutionStatus(java.lang.String pSolutionId)
Finds the deployed solution's status |
SolutionSolutionStatus |
findSolutionStatus(java.lang.String pSolutionId,
int pVersion)
Finds the solution's status |
SolutionStatusTaskDefn |
findStatusForTaskElementId(java.lang.String pWorkflowName,
java.lang.String pTaskElementId)
Finds a solution status task object by workflow name and task element id. |
atg.svc.agent.events.EventTools |
getEventTools()
|
SolutionService |
getSolutionService()
|
boolean |
isSolutionDeployed(java.lang.String pSolutionId)
Returns true if the given solution has been deployed. |
SolutionSolutionStatus |
markSolutionStatusAsDeployed(java.lang.String pSolutionId,
int pVersion)
Marks the solution as deployed for the version specified if not already deployed. |
void |
markSolutionStatusAsUndeployed(java.lang.String pSolutionId)
Finds the deployed solution status (if the solution is currently deployed) and marks that status as undeployed. |
SolutionSolutionStatus |
markSolutionStatusAsUnDeployed(java.lang.String pSolutionId,
int pVersion)
Marks the solution as undeployed for the version specified. |
void |
removeSolutionStatusTaskDefn(java.lang.String pWorkflowName,
java.lang.String pTaskElementId)
Finds a solution status task object by workflow name and task element id. |
void |
saveSolutionStatus(SolutionSolutionStatus pSolutionSolutionStatus)
Saves the SolutionSolutionStatus. |
void |
saveSolutionStatusTaskDefn(SolutionStatusTaskDefn pSolutionStatusTaskDefn)
Saves the SolutionStatusTaskDefn. |
void |
setEventTools(atg.svc.agent.events.EventTools pEventTools)
|
void |
setSolutionService(SolutionService pSolutionService)
|
SolutionSolutionStatus |
updateSolutionStatus(java.lang.String pSolutionId,
int pVersion,
SolutionStatus pSolutionStatus,
boolean pDeployed)
Updates a solution's status |
Methods inherited from class atg.svc.repository.service.SharedService |
---|
getBeanHomes, getRepositoryHomes |
Methods inherited from class atg.svc.repository.service.BaseService |
---|
getBaseBeanHomes, getBaseRepositoryHomes, getBeanHomesName, getRepositoryHomesName, getRepositoryService, getToday, setBeanHomesName, setRepositoryHomesName, setRepositoryService |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setServiceInfo, startService, stopService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SolutionStatusService()
Method Detail |
---|
public atg.svc.agent.events.EventTools getEventTools()
public void setEventTools(atg.svc.agent.events.EventTools pEventTools)
public SolutionService getSolutionService()
public void setSolutionService(SolutionService pSolutionService)
public SolutionStatusTaskDefn findStatusForTaskElementId(java.lang.String pWorkflowName, java.lang.String pTaskElementId) throws ObjectNotFoundException
pWorkflowName
- The workflow process namepTaskElementId
- The task element id of the task in the workflow.
ObjectNotFoundException
- If the id is not found.public boolean addStatusForTaskElementId(java.lang.String pWorkflowName, java.lang.String pTaskElementId, SolutionStatus pSolutionStatus) throws javax.ejb.CreateException, PersistenceException
pWorkflowName
- The workflow process namepTaskElementId
- The task element id of the task in the workflow.pSolutionStatus
- The solution status
javax.ejb.CreateException
PersistenceException
public void removeSolutionStatusTaskDefn(java.lang.String pWorkflowName, java.lang.String pTaskElementId) throws ObjectNotFoundException, PersistenceException
pWorkflowName
- The workflow process namepTaskElementId
- The task element id of the task in the workflow.
ObjectNotFoundException
- If the id is not found.
PersistenceException
public SolutionSolutionStatus createSolutionStatus(java.lang.String pSolutionId, int pVersion, SolutionStatus pSolutionStatus) throws javax.ejb.CreateException, PersistenceException, ObjectNotFoundException
pSolutionId
- The solution rep idpVersion
- The solution versionpSolutionStatus
- The solution status
javax.ejb.CreateException
PersistenceException
ObjectNotFoundException
public SolutionSolutionStatus createSolutionStatus(java.lang.String pSolutionId, int pVersion, SolutionStatus pSolutionStatus, boolean pDeployed) throws javax.ejb.CreateException, PersistenceException, ObjectNotFoundException
pSolutionId
- The solution rep idpVersion
- The solution versionpSolutionStatus
- The solution statuspDeployed
- The deployed status
javax.ejb.CreateException
PersistenceException
ObjectNotFoundException
public SolutionSolutionStatus updateSolutionStatus(java.lang.String pSolutionId, int pVersion, SolutionStatus pSolutionStatus, boolean pDeployed) throws javax.ejb.CreateException, PersistenceException, ObjectNotFoundException
pSolutionId
- The solution rep idpVersion
- The solution versionpSolutionStatus
- The solution statuspDeployed
- Flag to mark this as deployed status
javax.ejb.CreateException
PersistenceException
ObjectNotFoundException
public SolutionSolutionStatus findSolutionStatus(java.lang.String pSolutionId, int pVersion) throws ObjectNotFoundException
pSolutionId
- The solution rep idpVersion
- The solution version
ObjectNotFoundException
- If the id is not found.public SolutionSolutionStatus findDeployedSolutionStatus(java.lang.String pSolutionId)
pSolutionId
- The solution rep id
public boolean isSolutionDeployed(java.lang.String pSolutionId)
pSolutionId
- The repository id of the solution to check.
public SolutionSolutionStatus markSolutionStatusAsDeployed(java.lang.String pSolutionId, int pVersion) throws ObjectNotFoundException, PersistenceException
pSolutionId
- The solution rep idpVersion
- The solution version
ObjectNotFoundException
- when the solution status is not found
PersistenceException
- When unable to save the solution statuspublic SolutionSolutionStatus markSolutionStatusAsUnDeployed(java.lang.String pSolutionId, int pVersion) throws ObjectNotFoundException, PersistenceException
pSolutionId
- The solution rep idpVersion
- The solution version
ObjectNotFoundException
- when the solution status is not found
PersistenceException
- When unable to save the solution statuspublic void markSolutionStatusAsUndeployed(java.lang.String pSolutionId) throws PersistenceException
pSolutionId
- The solution rep idpVersion
- The solution version
PersistenceException
- When unable to save the solution statuspublic SolutionSolutionStatus changeSolutionVersion(atg.versionmanager.VersionManagerURI pSolutionURI, atg.versionmanager.VersionManagerURI pTargetURI, boolean pForceDeleteOld, boolean pMigrateOldValues) throws ObjectNotFoundException, PersistenceException, javax.ejb.RemoveException
pSolutionURI
- the original version of the solutionpTargetURI
- the target version of the solution.pForceDeleteOld
- if set to true, delete the old SolutionSolutionStatus if
the SolutionSolutionStatus already exists for target version and also migrate the
old statusId and lastModifyDate.pMigrateOldValues
- if set to true, copy the statusId and lastModifyDate from
old version to target version. This is valid only if SolutionSolutionStatus exits
for the target version.
ObjectNotFoundException
PersistenceException
javax.ejb.RemoveException
- Unable to delete the existing SolutionSolutionStatus for older versionpublic void saveSolutionStatus(SolutionSolutionStatus pSolutionSolutionStatus) throws PersistenceException
pSolutionSolutionStatus
- the status to be saved
PersistenceException
public void saveSolutionStatusTaskDefn(SolutionStatusTaskDefn pSolutionStatusTaskDefn) throws PersistenceException
pSolutionStatusTaskDefn
- the status to be saved
PersistenceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |