public class ActionManagerImpl extends Object implements ActionManager
Action Library Operations
. Constructor and Description |
---|
ActionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Action |
checkin(String invariantUuId,
String user)
Checkin a checked out action.
|
Action |
checkout(String invariantUuId,
String user)
Checkout an existing action.
|
Action |
createAction(Action action,
String user)
Create a new Action.
|
void |
deleteAction(String actionInvariantUuId,
String user)
Delete an action.
|
void |
deleteArtifact(String actionInvariantUuId,
String artifactUuId,
String user) |
ActionArtifact |
downloadArtifact(String actionUuId,
String artifactUuId)
Download an artifact of an action.
|
List<Action> |
getActionsByActionInvariantUuId(String invariantId)
List All Major, Last Minor and Candidate version (if any) for Given Action Invariant UUID.
|
Action |
getActionsByActionUuId(String actionUuId)
Get the properties of an action version by its UUID.
|
static Date |
getCurrentTimeStampUtc()
Get Current Timestamp in UTC format.
|
List<EcompComponent> |
getEcompComponents()
List ECOMP Components supported by Action Library
|
List<Action> |
getFilteredActions(String filterType,
String filterValue)
Get list of actions based on a filter criteria.
|
Action |
submit(String invariantUuId,
String user)
Submit a checked in action.
|
void |
undoCheckout(String invariantUuId,
String user)
Undo an already checked out action.
|
Action |
updateAction(Action action,
String user)
Update an existing action.
|
void |
updateArtifact(ActionArtifact artifact,
String actionInvariantUuId,
String user)
Update an existing artifact.
|
ActionArtifact |
uploadArtifact(ActionArtifact artifact,
String actionInvariantUuId,
String user)
Upload an artifact to an action.
|
public static Date getCurrentTimeStampUtc()
public List<Action> getActionsByActionInvariantUuId(String invariantId) throws ActionException
getActionsByActionInvariantUuId
in interface ActionManager
invariantId
- Invariant UUID of the action for which the information is required.Action
with given
actionInvariantUuId.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred during the operation.public List<Action> getFilteredActions(String filterType, String filterValue) throws ActionException
getFilteredActions
in interface ActionManager
filterType
- Filter by Vendor/Category/Model/Component/None.filterValue
- Filter Parameter Value (Vendor ID/Category ID/Model ID/Component ID).Action
objects based on a filter criteria ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public Action getActionsByActionUuId(String actionUuId) throws ActionException
getActionsByActionUuId
in interface ActionManager
actionUuId
- UUID of the specific action version.Action
object corresponding the version represented by the UUID.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public List<EcompComponent> getEcompComponents() throws ActionException
getEcompComponents
in interface ActionManager
EcompComponent
objects supported by Action Library ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public void deleteAction(String actionInvariantUuId, String user) throws ActionException
deleteAction
in interface ActionManager
actionInvariantUuId
- Invariant UUID of the action to be deleted.user
- User id of the user performing the operation.ActionException
public Action createAction(Action action, String user) throws ActionException
createAction
in interface ActionManager
action
- Action object model of the user request for creating an action.user
- AT&T id of the user sending the create request.Action
model object for the created action.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public Action updateAction(Action action, String user) throws ActionException
updateAction
in interface ActionManager
action
- Action object model of the user request for creating an action.user
- AT&T id of the user sending the update request.Action
model object for the update action.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public Action checkout(String invariantUuId, String user) throws ActionException
checkout
in interface ActionManager
invariantUuId
- actionInvariantUuId of the action to be checked out.user
- AT&T id of the user sending the checkout request.Action
model object for the checkout action.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public void undoCheckout(String invariantUuId, String user) throws ActionException
undoCheckout
in interface ActionManager
invariantUuId
- actionInvariantUuId of the checked out action.user
- AT&T id of the user sending the request.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public Action checkin(String invariantUuId, String user) throws ActionException
checkin
in interface ActionManager
invariantUuId
- actionInvariantUuId of the checked out action.user
- AT&T id of the user sending the request.Action
model object for the updated action.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public Action submit(String invariantUuId, String user) throws ActionException
submit
in interface ActionManager
invariantUuId
- actionInvariantUuId of the checked in action.user
- AT&T id of the user sending the request.Action
model object for the updated action.ActionException
- Exception with an action library specific code, short description and
detailed message for the error occurred for the error occurred during
the operation.public ActionArtifact downloadArtifact(String actionUuId, String artifactUuId) throws ActionException
downloadArtifact
in interface ActionManager
artifactUuId
- ActionArtifact
object representing the artifact and its metadata.actionUuId
- UUID of the action for which the artifact has to be downloaded.ActionException
public ActionArtifact uploadArtifact(ActionArtifact artifact, String actionInvariantUuId, String user)
uploadArtifact
in interface ActionManager
artifact
- ActionArtifact
object representing the artifact and its
metadata.actionInvariantUuId
- Invariant UUID of the action to which the artifact has to be
uploaded.user
- User ID of the user sending the request.public void deleteArtifact(String actionInvariantUuId, String artifactUuId, String user) throws ActionException
deleteArtifact
in interface ActionManager
ActionException
public void updateArtifact(ActionArtifact artifact, String actionInvariantUuId, String user)
updateArtifact
in interface ActionManager
artifact
- ActionArtifact
object representing the artifact and its
metadata.actionInvariantUuId
- Invariant UUID of the action to which the artifact has to be
uploaded.user
- User ID of the user sending the request.Copyright © 2017. All rights reserved.