public class Action extends Mbo implements ActionRemote
MULTILANGCOPY, phantomList, phantomQueue
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
Action(MboSet ms)
Construct the Action object
|
Modifier and Type | Method and Description |
---|---|
void |
addMembers(MboSetRemote actionSet)
Method to add the selected actions to the action group.
|
void |
canDelete()
Can the object be deleted ?
This is object specific and should be overridden.
|
MboRemote |
copy(MboSetRemote mboset,
long mboAddFlags)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
void |
executeAction(MboRemote mbo)
Executes an action.
|
void |
executeAction(MboRemote target,
java.lang.Object[] parameters)
Executes an action.
|
protected void |
executeActionGroup(MboRemote mbo,
java.lang.Object[] parameters)
Execute an action of type GROUP.
|
protected void |
executeAppAction(MboRemote mbo,
java.lang.String value,
java.lang.String parameter)
Executes an application action.
|
protected void |
executeApplySLA(MboRemote mbo)
Execute application action ApplySLA.
|
protected void |
executeChangeStatus(MboRemote mbo,
java.lang.String newStatus,
java.lang.String memo)
Executes a change status action.
|
protected void |
executeCommandLine(java.lang.String commandLine)
Executes a command line executable.
|
protected void |
executeCustomClass(MboRemote mbo,
java.lang.String className,
java.lang.Object[] parameters)
Executes an action of type "CUSTOM".
|
protected void |
executeSetValue(MboRemote curMbo,
MboRemote sourceMbo,
java.lang.String attributeName,
java.lang.String value)
Executes a setValue action on the mbo.
|
protected void |
executeWFAccept(MboRemote mbo,
java.lang.String value)
Completes the workflow assignment with the accept action.
|
protected void |
executeWFEscalate(MboRemote mbo,
java.lang.String value)
Performs the basic workflow assignment escalation.
|
protected void |
executeWFInitiate(MboRemote mbo,
java.lang.String value)
Initiate workflow on the target Mbo.
|
protected void |
executeWFReject(MboRemote mbo,
java.lang.String value)
Completes the workflow assignment with the reject action.
|
protected void |
executeWOTktAppAction(java.lang.String appAction,
MboRemote mbo,
java.lang.String param)
Execute wo/ticket/pm application actions.
|
java.lang.String |
getType()
Returns the action type.
|
void |
init()
Mbo Initialization routine.
|
boolean |
isObjectStatusable()
Checks whether the action's object is a statusable.
|
boolean |
isParameterInvoiceAppAction()
Returns true if the action is one of these appactions (REVERSEINVOICE) for INVOICE object.
|
boolean |
isParameterPMAppAction()
Returns true if the action is one of these appactions (GENERATEFORCAST, GENERATEWORKORDER) for PM object.
|
boolean |
isWoTktAppAction()
Returns true if the action is one of these appactions (CREATESR, CREATEINCIDENT, CREATEPROBLEM, CREATEWO,
CREATECHANGE, CREATERELEASE) for one of these objects (SR, Incident, Problem, WO, Change, Release, Activity).
|
protected void |
save()
Save the object and other linked objects.
|
void |
setFieldFlags(java.lang.String type)
Method to set readonly flags for fields based on the type of action.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
Overrides the skipCopyField() in the Mbo.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public Action(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void setFieldFlags(java.lang.String type) throws MXException, java.rmi.RemoteException
type
- Type of the action.MXException
java.rmi.RemoteException
public boolean isWoTktAppAction() throws MXException, java.rmi.RemoteException
isWoTktAppAction
in interface ActionRemote
MXException
java.rmi.RemoteException
public boolean isParameterPMAppAction() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isParameterInvoiceAppAction() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void addMembers(MboSetRemote actionSet) throws MXException, java.rmi.RemoteException
addMembers
in interface ActionRemote
actionSet
- Selected action setMXException
java.rmi.RemoteException
public void executeAction(MboRemote target, java.lang.Object[] parameters) throws MXException, java.rmi.RemoteException
executeAction
in interface ActionRemote
mbo
- The mbo on which the action is executed.parameters
- Members of this array are added to the parameter array, used for custom
actions.MXException
java.rmi.RemoteException
psdi.common.action
public void executeAction(MboRemote mbo) throws MXException, java.rmi.RemoteException
executeAction
in interface ActionRemote
mbo
- The mbo on which the action is executed.MXException
java.rmi.RemoteException
psdi.common.action.executeAction(MboRemote mbo)
protected void executeActionGroup(MboRemote mbo, java.lang.Object[] parameters) throws MXException, java.rmi.RemoteException
mbo
- The target of the actionparameters
- The parameters for any member of the group which is a custom action.MXException
java.rmi.RemoteException
protected void executeCustomClass(MboRemote mbo, java.lang.String className, java.lang.Object[] parameters) throws MXException, java.rmi.RemoteException
mbo
- The mbo on which the action is executed.className
- The name of the custom class.parameter
- The parameters to pass the target of the action to the custom class. The
parameters[0] is the value from the Action's Parameter attribute. The rest were passed by
to the executeAction method.MXException
java.rmi.RemoteException
protected void executeCommandLine(java.lang.String commandLine) throws MXException, java.rmi.RemoteException
commandLine
- The command line exe file with path.MXException
java.rmi.RemoteException
protected void executeSetValue(MboRemote curMbo, MboRemote sourceMbo, java.lang.String attributeName, java.lang.String value) throws MXException, java.rmi.RemoteException
curMbo
- The current mbo in the context of a recursive call.sourceMbo
- The original mbo that the action applies to.attributeName
- The attribute name of the value to be set.value
- The new value of the attribute, which can be an expression.MXException
java.rmi.RemoteException
protected void executeChangeStatus(MboRemote mbo, java.lang.String newStatus, java.lang.String memo) throws MXException, java.rmi.RemoteException
mbo
- The mbo whose status will be changed.newStatus
- The new status to change to.MXException
java.rmi.RemoteException
protected void executeAppAction(MboRemote mbo, java.lang.String value, java.lang.String parameter) throws MXException, java.rmi.RemoteException
value
- Indicates what type of app action to execute.parameter
- Parameter of the app action if needed.MXException
java.rmi.RemoteException
protected void executeWOTktAppAction(java.lang.String appAction, MboRemote mbo, java.lang.String param) throws java.lang.Throwable
mbo
- The mbo on which the action is applied.param
- The parameter for creating the service request.MXException
java.rmi.RemoteException
java.lang.Throwable
protected void executeApplySLA(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo
- The mbo on which the action is applied.MXException
java.rmi.RemoteException
protected void executeWFInitiate(MboRemote mbo, java.lang.String value) throws MXException, java.rmi.RemoteException
mbo
- Target Mbo.value
- The name of the workflow process to initiate.MXApplicationException
- Thrown with "workflow", "BgInitFailure" if the workflow
can't be initiated in the background. The nested exception will have additional details.MXException
java.rmi.RemoteException
This method
is used to initiate workflow.
protected void executeWFAccept(MboRemote mbo, java.lang.String value) throws MXException, java.rmi.RemoteException
mbo
- The target Mbo which must be a WFAssignment.value
- Used as the memo.MXApplicationException
- Thrown with "workflow", "NotWorkflowAssignment" if
the target Mbo isn't a WFAssignment.MXApplicationException
- Thrown with "workflow", "BgCompFailure" if the workflow
assignment can't be completed in the background. The nested exception will have additional details.MXException
java.rmi.RemoteException
This method
is used to complete the workflow assignment.
protected void executeWFReject(MboRemote mbo, java.lang.String value) throws MXException, java.rmi.RemoteException
mbo
- The target Mbo which must be a WFAssignment.value
- Used as the memo.MXApplicationException
- Thrown with "workflow", "NotWorkflowAssignment" if
the target Mbo isn't a WFAssignment.MXApplicationException
- Thrown with "workflow", "BgCompFailure" if the workflow
assignment can't be completed in the background. The nested exception will have additional details.MXException
java.rmi.RemoteException
This method
is used to complete the workflow assignment.
protected void executeWFEscalate(MboRemote mbo, java.lang.String value) throws MXException, java.rmi.RemoteException
mbo
- The target Mbo which must be a WFAssignment.value
- Used as the memo.MXApplicationException
- Thrown with "workflow", "NotWorkflowAssignment" if
the target Mbo isn't a WFAssignment.MXException
java.rmi.RemoteException
This does the escalation.
public java.lang.String getType() throws MXException, java.rmi.RemoteException
getType
in interface ActionRemote
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
Mbo
canDelete
in interface ActionRemote
canDelete
in class Mbo
MXException
java.rmi.RemoteException
psdi.common.action
protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField
in class Mbo
MboValueInfo
- object of the MboValue that needs to be copied.java.rmi.RemoteException
MXException
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mbo
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
Mbo
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXException
java.rmi.RemoteException
Mbo.delete(long)
public boolean isObjectStatusable() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote copy(MboSetRemote mboset, long mboAddFlags) throws MXException, java.rmi.RemoteException
Mbo
copy
in interface MboRemote
copy
in class Mbo
mboset
- The set into which the new mbo will be added.mboAddFlags
- Flags to use when adding the new Mbo.
Values on the attribute are always set with NOACCESSCHECK|NOVALIDATION_AND_NOACTION.MXException
java.rmi.RemoteException
protected void save() throws MXException, java.rmi.RemoteException
Mbo
save
in class Mbo
MXException
java.rmi.RemoteException