|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GovernanceArtifact
| Method Summary | |
|---|---|
void |
addAttribute(String key,
String value)
Adding an attribute to the artifact. |
void |
attachLifecycle(String name)
Associates the named lifecycle with the artifact |
void |
checkLCItem(int order,
String aspectName)
Check the checklist item |
String[] |
getAllCheckListItemNames(String aspectName)
Retrieve name set of the checklist items |
String[] |
getAllLifecycleActions(String lifeCycleName)
Get all lifecycle actions for the current state of the lifecycle |
String[] |
getAllVotingItems()
Retrieve action set which need votes |
String |
getAttribute(String key)
Returns the attribute of a given key. |
String[] |
getAttributeKeys()
Returns the available attribute keys |
String[] |
getAttributes(String key)
Returns the attribute values for a key. |
GovernanceArtifact[] |
getDependencies()
Get dependencies of an artifacts. |
GovernanceArtifact[] |
getDependents()
Get dependents of an artifact. |
String |
getId()
Returns the id of the artifact |
String |
getLifecycleName()
Returns the name of the default lifecycle associated with this artifact. |
String[] |
getLifecycleNames()
Returns the names of the lifecycle associated with this artifact. |
String |
getLifecycleState()
Returns the state of the default lifecycle associated with this artifact. |
String |
getLifecycleState(String lifeCycleName)
Returns the state of the lifecycle associated with this artifact. |
String |
getPath()
Returns the path of the artifact, need to save the artifact before getting the path. |
QName |
getQName()
Returns the QName of the artifact. |
void |
invokeAction(String action,
Map<String,String> parameters,
String aspectName)
Promote the artifact to the next state of the lifecycle |
void |
invokeAction(String action,
String aspectName)
Promote the artifact to the next state of the lifecycle |
boolean |
isLCItemChecked(int order,
String aspectName)
Check whether the given ordered lifecycle checklist item is checked or not |
boolean |
isVoted(int order)
Check whether the current user voted for given order event |
void |
removeAttribute(String key)
Remove attribute with the given key. |
void |
setAttribute(String key,
String newValue)
Set/Update an attribute with a single value. |
void |
setAttributes(String key,
String[] newValues)
Set/Update an attribute with multiple values. |
void |
setId(String id)
Set the id |
void |
uncheckLCItem(int order,
String aspectName)
Un-check the checklist item |
void |
unvote(int order)
Unvote for an action |
void |
vote(int order)
Vote for an action |
| Method Detail |
|---|
QName getQName()
String getId()
void setId(String id)
id - the id
String getPath()
throws GovernanceException
GovernanceException - if an error occurred.
String[] getLifecycleNames()
throws GovernanceException
GovernanceException - if an error occurred.
String getLifecycleName()
throws GovernanceException
GovernanceException - if an error occurred.
void attachLifecycle(String name)
throws GovernanceException
name - the name of the lifecycle to be associated with this artifact.
GovernanceException - if an error occurred.
String getLifecycleState()
throws GovernanceException
GovernanceException - if an error occurred.
String getLifecycleState(String lifeCycleName)
throws GovernanceException
lifeCycleName - the name of the lifecycle of which the state is required
GovernanceException - if an error occurred.
void addAttribute(String key,
String value)
throws GovernanceException
key - the key.value - the value.
GovernanceException - throws if the operation failed.
void setAttributes(String key,
String[] newValues)
throws GovernanceException
key - the keynewValues - the value
GovernanceException - throws if the operation failed.
void setAttribute(String key,
String newValue)
throws GovernanceException
key - the keynewValue - the value
GovernanceException - throws if the operation failed.
String getAttribute(String key)
throws GovernanceException
key - the key
GovernanceException - throws if the operation failed.
String[] getAttributeKeys()
throws GovernanceException
GovernanceException - throws if the operation failed.
String[] getAttributes(String key)
throws GovernanceException
key - the key.
GovernanceException - throws if the operation failed.
void removeAttribute(String key)
throws GovernanceException
key - the key
GovernanceException - throws if the operation failed.
GovernanceArtifact[] getDependencies()
throws GovernanceException
GovernanceException - throws if the operation failed.
GovernanceArtifact[] getDependents()
throws GovernanceException
GovernanceException - throws if the operation failed.
String[] getAllLifecycleActions(String lifeCycleName)
throws GovernanceException
lifeCycleName - lifecycle name of which actions are needed
GovernanceException - throws if the operation failed.
void invokeAction(String action,
String aspectName)
throws GovernanceException
action - lifecycle action tobe invokedaspectName - lifecycle name of which action to be invoked
GovernanceException - throws if the operation failed.
void invokeAction(String action,
Map<String,String> parameters,
String aspectName)
throws GovernanceException
action - lifecycle action tobe invokedaspectName - lifecycle name of which action to be invokedparameters - extra parameters needed when promoting
GovernanceException - throws if the operation failed.
String[] getAllCheckListItemNames(String aspectName)
throws GovernanceException
aspectName - lifecycle name of which action to be invoked
GovernanceException - throws if the operation failed.
void checkLCItem(int order,
String aspectName)
throws GovernanceException
order - order of the checklist item need to checkedaspectName - lifecycle name of which action to be invoked
GovernanceException - throws if the operation failed.
boolean isLCItemChecked(int order,
String aspectName)
throws GovernanceException
order - order of the checklist item need to uncheckedaspectName - lifecycle name of which action to be invoked
GovernanceException - throws if the operation failed.
void uncheckLCItem(int order,
String aspectName)
throws GovernanceException
order - order of the checklist item need to uncheckedaspectName - lifecycle name of which action to be invoked
GovernanceException - throws if the operation failed.
String[] getAllVotingItems()
throws GovernanceException
GovernanceException - throws if the operation failed.
void vote(int order)
throws GovernanceException
order - order of the action which need to be voted
GovernanceException - throws if the operation failed.
boolean isVoted(int order)
throws GovernanceException
order - order of the action which need to be voted
GovernanceException - throws if the operation failed.
void unvote(int order)
throws GovernanceException
order - order of the action which need to be un voted
GovernanceException - throws if the operation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||