public class AutoScript extends StatefulMbo implements AutoScriptRemote
Modifier and Type | Field and Description |
---|---|
protected static boolean |
isHashSetLoaded
This is a protected boolean variable to check if the HashSet has already been loaded.
|
protected static java.util.Set |
skipFieldCopy
This is a static HashSet that contains the names of the fields whose values
need not be copied from the source Mbo to the target Mbo and is used only for
duplication the Script Mbo.
|
onListTab, statusChangeButtonSigoption, targetStatusOption
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 |
---|
AutoScript(MboSet ms) |
Modifier and Type | Method and Description |
---|---|
void |
add()
Default value for some of the fields of the new Script.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
scripts cannot be deleted when they are in archived state or when they
are being referenced by objects
|
void |
componentAdded() |
void |
delete(long accessModifier)
override delete to delete this and records associated with this script
|
MboRemote |
duplicate()
Duplicate method only throws exception now
|
protected java.lang.String |
getIfaceBa() |
protected java.lang.String |
getIfaceDirection() |
protected java.lang.String |
getIfaceExit() |
protected int |
getIfaceType() |
protected StatusHandler |
getStatusHandler()
Return the status handler object to be used for the actual changing of the status.
|
protected MboSetRemote |
getStatusHistory()
Return the MboSet object used for storing the status change history.
|
java.lang.String |
getStatusListName()
Return the name of the value list which contains the list of status's.
|
void |
init()
initialization rountine.
|
protected void |
loadSkipFieldCopyHashSet()
Loads the static HashSet with the names of the fields whose values
need not be copied from the source Mbo to the target Mbo when a duplicate operation
is performed.
|
void |
modify()
called whenever a field is modified to update the changedate and changeby
attributes
|
boolean |
preCompileScript() |
protected java.lang.String |
processingClassESIC(MboSetRemote ifaceSet) |
protected java.lang.String |
processingClassIface() |
protected void |
save()
Overrides the save of Mbo so that a row is added to the status history
table when a new object is saved.
|
protected void |
setScriptIfaceRequiredFields() |
protected void |
setScriptIfaceValues() |
protected boolean |
skipCopyField(MboValueInfo mvi)
Overrides the skipCopyField() in the Mbo.
|
protected void |
validateScriptIfaceFields() |
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionName
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, 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
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, 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
protected static java.util.Set skipFieldCopy
protected static boolean isHashSetLoaded
public AutoScript(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
userdefined | true |
createdby | Current username |
statusdate | Current date |
changeby | Current username |
changedate | Current date |
status | Draft |
createddate | Current date |
scriptlanguage | First supported script engine name |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void componentAdded() throws MXException, java.rmi.RemoteException
componentAdded
in interface AutoScriptRemote
MXException
java.rmi.RemoteException
protected StatusHandler getStatusHandler()
StatefulMbo
getStatusHandler
in class StatefulMbo
protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
StatefulMbo
getStatusHistory
in class StatefulMbo
MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
StatefulMbo
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
protected void save() throws MXException, java.rmi.RemoteException
StatefulMbo
save
in class StatefulMbo
MXException
java.rmi.RemoteException
public boolean preCompileScript() throws java.rmi.RemoteException, MXException
preCompileScript
in interface AutoScriptRemote
java.rmi.RemoteException
MXException
public void appValidate() throws MXException, java.rmi.RemoteException
Mbo
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- With the key "autoscript", and one of the
"AUTOSCRIPTNoDeleteArchive", "AUTOSCRIPTNoDeleteActive"MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
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 void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Mbo
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
protected void loadSkipFieldCopyHashSet() throws MXException, java.rmi.RemoteException
skipFieldCopy.add("STATUSDATE")
The following is a list of fields that are not copied from the source script to the target
script and these are the field names that are loaded into the HashSet.MXException
java.rmi.RemoteException
Mbo.skipCopyField(psdi.mbo.MboValueInfo)
protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField
in class Mbo
The
- MboValueInfo object of the MboValue that needs to be copied.java.rmi.RemoteException
MXException
protected int getIfaceType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String getIfaceDirection() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String getIfaceExit() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String getIfaceBa() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void setScriptIfaceValues() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void setScriptIfaceRequiredFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void validateScriptIfaceFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String processingClassIface() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String processingClassESIC(MboSetRemote ifaceSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException