public class ScheduleHandler extends BaseHandler
VALID
Constructor and Description |
---|
ScheduleHandler() |
Modifier and Type | Method and Description |
---|---|
int |
archiveActions(User loggedInUser,
java.util.List<java.lang.Integer> actionIds)
Archive all actions in the given list.
|
int |
cancelActions(User loggedInUser,
java.util.List<java.lang.Integer> actionIds)
Cancel all actions in given list.
|
int |
deleteActions(User loggedInUser,
java.util.List<java.lang.Integer> actionIds)
Delete all archived actions in the given list.
|
int |
failSystemAction(User loggedInUser,
java.lang.Integer serverId,
java.lang.Integer actionId)
Fail specific event on specified system
|
int |
failSystemAction(User loggedInUser,
java.lang.Integer serverId,
java.lang.Integer actionId,
java.lang.String message)
Fail specific event on specified system and let the user provide
some info for this fail.
|
java.lang.Object[] |
listAllActions(User loggedInUser)
List all scheduled actions regardless of status.
|
java.lang.Object[] |
listArchivedActions(User loggedInUser)
List the scheduled actions that have been archived.
|
java.lang.Object[] |
listCompletedActions(User loggedInUser)
List the scheduled actions that have succeeded.
|
java.lang.Object[] |
listCompletedSystems(User loggedInUser,
java.lang.Integer actionId)
List the systems that have completed a specific action.
|
java.lang.Object[] |
listFailedActions(User loggedInUser)
List the scheduled actions that have failed.
|
java.lang.Object[] |
listFailedSystems(User loggedInUser,
java.lang.Integer actionId)
List the systems that have failed a specific action.
|
java.lang.Object[] |
listInProgressActions(User loggedInUser)
List the scheduled actions that are in progress.
|
java.lang.Object[] |
listInProgressSystems(User loggedInUser,
java.lang.Integer actionId)
List the systems that have a specific action in progress.
|
int |
rescheduleActions(User loggedInUser,
java.util.List<java.lang.Integer> actionIds,
boolean onlyFailed)
Reschedule all actions in the given list.
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public int cancelActions(User loggedInUser, java.util.List<java.lang.Integer> actionIds) throws ActionIsChildException, LookupException
loggedInUser
- The current useractionIds
- The list of ids for actions to cancel.ActionIsChildException
- Thrown when attempting to cancel action with
prerequisitesLookupException
- Invalid Action ID providedpublic int failSystemAction(User loggedInUser, java.lang.Integer serverId, java.lang.Integer actionId)
loggedInUser
- The current userserverId
- server idactionId
- action idpublic int failSystemAction(User loggedInUser, java.lang.Integer serverId, java.lang.Integer actionId, java.lang.String message)
loggedInUser
- The current userserverId
- server idactionId
- action idmessage
- some info about this failpublic java.lang.Object[] listAllActions(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object[] listCompletedActions(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object[] listInProgressActions(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object[] listFailedActions(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object[] listArchivedActions(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object[] listCompletedSystems(User loggedInUser, java.lang.Integer actionId)
loggedInUser
- The current useractionId
- The id of the action.public java.lang.Object[] listInProgressSystems(User loggedInUser, java.lang.Integer actionId)
loggedInUser
- The current useractionId
- The id of the action.public java.lang.Object[] listFailedSystems(User loggedInUser, java.lang.Integer actionId)
loggedInUser
- The current useractionId
- The id of the action.public int rescheduleActions(User loggedInUser, java.util.List<java.lang.Integer> actionIds, boolean onlyFailed) throws FaultException
loggedInUser
- The current useractionIds
- The list of ids for actions to reschedule.onlyFailed
- only reschedule failed actionsFaultException
- A FaultException is thrown if one of the actions provided
is invalid.public int archiveActions(User loggedInUser, java.util.List<java.lang.Integer> actionIds) throws FaultException
loggedInUser
- The current useractionIds
- The list of ids for actions to archive.FaultException
- A FaultException is thrown if one of the actions provided
is invalid.public int deleteActions(User loggedInUser, java.util.List<java.lang.Integer> actionIds)
loggedInUser
- The current useractionIds
- The list of ids for actions to delete.FaultException
- In case of an error