public abstract class PromoteAction extends java.lang.Object implements ActionCustomClass
Constructor and Description |
---|
PromoteAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptPromotedMbo(MboRemote mbo)
Check if the promoted object is accepted.
|
void |
applyCustomAction(MboRemote promotedMbo,
java.lang.Object[] args)
Performs the action for escalation action TLOAMPROMOTE by calling
PromoteNode#promote(PromoteValuesRemote) . |
protected void |
applyDefaults(PromoteNodeRemote promtionObject,
PromoteValuesRemote defaults)
Apply Defaults
|
protected PromoteValuesRemote |
getPromoteValues(MboRemote mbo,
java.lang.String defaultsKey)
Gets and caches the default promoteValues.
|
protected java.lang.String |
getPromotionDefaultsKey(MboRemote mbo)
Obtain the key for the promotion defaults.
|
protected void |
validateDefaults(MboRemote mbo,
PromoteValuesRemote defaults)
Validate the promotion defaults.
|
protected void |
validatePromotedMbo(MboRemote mbo)
Validate the promoted object.
|
public void applyCustomAction(MboRemote promotedMbo, java.lang.Object[] args) throws MXException, java.rmi.RemoteException
PromoteNode#promote(PromoteValuesRemote)
.applyCustomAction
in interface ActionCustomClass
mbo
- A PromoteNodeRemote objectargs
- Defaultname from TLOAMPRMDFLT table. The defaultname updateable through the UI is called
'DO_NOT_CHANGE_THIS_DPLDASSET' for computers, 'DO_NOT_CHANGE_THIS_NDASSET' for network
devices, 'DO_NOT_CHANGE_THIS_NPASSET' for network printers. Additional defaultNames may be
added to update site and related attributes for escalation points satisfying appropriate
criteria.
The MBO itself can be any deployed asset, but it is expected to match the type of defaults - therefore a filter needs to select between DEPLOYEDASSET.ASSETCLASS = (COMPUTER, NETDEVICE, NETPRINTER) in the escalation query
Exceptions logged to maximo.crontask.ESCALATION.ESCPROMOTE
MXApplicationException
- if mbo is not an instance of non-persistent promotion valuesMXApplicationException
- if anything goes wrong with action.java.rmi.RemoteException
MXException
ComputerSystem#promote(PromoteValuesRemote)}
protected void applyDefaults(PromoteNodeRemote promtionObject, PromoteValuesRemote defaults) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected boolean acceptPromotedMbo(MboRemote mbo)
mbo
- - the business object being promotedprotected void validatePromotedMbo(MboRemote mbo) throws MXApplicationException
mbo
- - the business object being promotedMXApplicationException
- - announce and error to the escalation frameworkprotected void validateDefaults(MboRemote mbo, PromoteValuesRemote defaults) throws MXException, java.rmi.RemoteException, MXApplicationException
mbo
- - the business object being promoteddefaults
- - the values of the defaults used to promote that defaultMXApplicationException
- - announce and error to the escalation frameworkMXException
java.rmi.RemoteException
protected PromoteValuesRemote getPromoteValues(MboRemote mbo, java.lang.String defaultsKey) throws java.rmi.RemoteException, MXException
mbo
- from which to get MboSet of valuesdefaultsKey
- defaultname of values to fetch.java.rmi.RemoteException
MXException
protected java.lang.String getPromotionDefaultsKey(MboRemote mbo) throws java.rmi.RemoteException
mbo
- - the business object being promotedjava.rmi.RemoteException