public class SPLexiconLink extends Mbo implements SPLexiconLinkRemote
See Safety Package description.
This object includes non-persistent attributes.
This is a site level object.
The key attributes for this object are SiteID, SPWorkAssetID and SafetyLexiconID.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
ApplySeq | Same as SafetyLexicon ApplySeq.
This can specify the sequence in which
TagOuts should be applied within a safety plan.
See SafetyLexicon .
|
AssetDescription | If SafetyLexicon TagoutID is null, this is the non-persistent attribute for the related asset (asset or location) on SafetyLexicon. If SafetyLexicon TagoutID is NOT null, this is the non-persistent attribute for the asset to be tagged out (asset or location) on TagOut. |
ContactRating | Non-persistent attribute, same as hazard contactrating. Pertains only to hazardous-material-enabled hazards. |
AssetNum | Non-persistent attribute for "related asset," same as SafetyLexicon AssetNum. Supports SafetyPlan owning SPLexiconLink set, adding a new SPLexiconLink that points to the SafetyLexicon mbo with the assetnum specified by this value. |
FlammabilityRating | Non-persistent attribute, same as hazard flammabilityrating. Pertains only to hazardous-material-enabled hazards. |
HazardDescription | Non-persistent attribute for the hazard. |
HazardID | Non-persistent attribute, same as SafetyLexicon HazardID. (Although on the Hazardous Materials UI this is labelled "Material.") Supports SafetyPlan owning SPLexiconLink set, adding a new SPLexiconLink that points to the SafetyLexicon mbo with the hazardid specified by this value. |
HealthRating | Non-persistent attribute, same as hazard healthrating. Pertains only to hazardous-material-enabled hazards. |
Location | Non-persistent attribute for "related location," same as SafetyLexicon Location. Supports SafetyPlan owning SPLexiconLink set, adding a new SPLexiconLink that points to the SafetyLexicon mbo with the location specified by this value. |
MsdsNum | Non-persistent attribute, same as hazard Msdsnum. Pertains only to hazardous-material-enabled hazards. |
OrgID | The organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table. |
ReactivityRating | Non-persistent attribute, same as hazard reactivityrating. Pertains only to hazardous-material-enabled hazards. |
RemoveSeq | Same as SafetyLexicon RemoveSeq.
This can specify the sequence in which
TagOuts should be removed within a safety plan.
See SafetyLexicon .
|
SafetyLexiconID | Foreign key to SafetyLexicon .
|
SiteID | The site to which this record pertains. Foreign key to Site .
|
SPWorkAssetID | Foreign key to SPWorkAsset .
|
TagoutDescription | Non-persistent attribute for the tagout description on TagOut. |
TagoutAssetNum | Non-persistent attribute for "tagout asset," same as Tagout AssetNum. Supports SPLexiconLink that points to a SafetyLexicon that has non-null tagoutid. |
TagoutID | Non-persistent attribute for the tagout ID. Will be null if this represents the owning hazard or the hazard is not tagout-enabled. Points to value on SafetyLexicon. |
TagoutLocation | Non-persistent attribute for "tagout location," same as Tagout Location. Supports SPLexiconLink that points to a SafetyLexicon that has non-null tagoutid. |
WorkAssetDescription | Non-persistent attribute for the work asset (asset or location) on SPWorkAsset. |
WorkAsset | Non-persistent attribute for "work asset," same as SPWorkAsset WorkAsset. Supports adding a tagout-enabled hazard to a Safety Plan. |
WorkLocation | Non-persistent attribute for "work location," same as SPWorkAsset WorkLocation. Supports adding a tagout-enabled hazard to a Safety Plan. |
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 |
---|
SPLexiconLink(MboSet ms) |
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
appValidate()
If adding a mbo and safetylexiconid is null, then we are adding a hazard to our
safety plan, and we have to do the following:
Find the SafetyLexicon mbo for the hazard;
Set our own value of safetylexiconid;
If the hazard is tagout-enabled, add the tagouts to our safety plan.
|
void |
delete(long accessModifier)
If this is a tagout-enabled hazard, also delete its tagouts.
|
MboRemote |
getSafetyLexicon()
Method for getting SafetyLexicon mbo for the hazard.
|
java.lang.String[] |
getValidateOrder()
Validation Order for splexiconlink attributes.
|
void |
init()
If not toBeAdded, set values for non-persistent attributes as follows.
|
void |
save()
If we added the same hazard to both ASSOCHAZPREC and ASSOCHAZMAT then remove one
so we don't get a duplicate key error.
|
void |
setDupSP(boolean value)
Set the flag that we're in the process of duplicating a safety plan.
|
void |
setTAGOUTSRelationshipFromParentHazard(java.lang.String relToParent)
sets the relationship to be used by the TagOuts table window based on the selected parent Hazard
|
void |
undelete()
If this is a tagout-enabled hazard, also undelete its tagouts.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, duplicate, 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, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, 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, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, duplicate, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public SPLexiconLink(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException, java.lang.RuntimeException
Attribute Name | Attribute Value |
---|---|
AssetDescription | Asset description from SafetyLexicon. |
AssetNum | AssetNum from SafetyLexicon |
HazardDescription | Description from Hazard. |
HazardID | HazardID from SafetyLexicon |
Location | Location from SafetyLexicon |
TagoutAssetnum | Assetnum from TagOut (if tagoutid is not null on safetylexicon). |
TagoutID | TagoutID from SafetyLexicon |
TagoutLocation | Location from TagOut (if tagoutid is not null on safetylexicon). |
WorkAssetDescription | Asset description from SPWorkAsset. |
WorkAsset | WorkAsset from SPWorkAsset |
WorkLocation | WorkLocation from SPWorkAsset |
init
in class Mbo
MXException
java.lang.RuntimeException
attachNonPersistentListeners()
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
SPWorkAssetID | The owner's SPWorkAssetID. |
ChangeDate | Current date |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
checkTagouts()
,
attachNonPersistentListeners()
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
getSafetyLexicon()
,
getDupSP()
,
SafetyLexicon.isTagOutEnabled()
,
SPLexiconLinkSet.addTagouts(psdi.mbo.MboSetRemote, long)
public void setDupSP(boolean value) throws MXException, java.rmi.RemoteException
SafetyPlan duplicate
.setDupSP
in interface SPLexiconLinkRemote
MXException
java.rmi.RemoteException
setDupSP(boolean)
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getSafetyLexicon() throws MXException, java.rmi.RemoteException
appValidate
when adding a SPLexiconLink mbo
and we don't have the safetylexiconid.getSafetyLexicon
in interface SPLexiconLinkRemote
MXException
java.rmi.RemoteException
getSafetyLexicon()
public void setTAGOUTSRelationshipFromParentHazard(java.lang.String relToParent) throws MXException, java.rmi.RemoteException
setTAGOUTSRelationshipFromParentHazard
in interface SPLexiconLinkRemote
MXException
java.rmi.RemoteException
setTAGOUTSRelationshipFromParentHazard(String)
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
checkTagouts()
,
deletingSPWA()
,
SPLexiconLinkSetRemote.SPLLTAGOUTS
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
checkTagouts()
,
deletingSPWA()
,
SPLexiconLinkSetRemote.SPLLTAGOUTS