public class WoSafetyLink extends Mbo implements WoSafetyLinkRemote
See Work Order Safety Mbos Overview.
This object includes non-persistent attributes.
This is a site level object.
The key attributes for this object are SiteID and WoSafetyLinkID.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
ApplySeq | If TagOutID is not null, this can specify the sequence in which TagOuts should be applied. |
AssetDescription | Non-persistent attribute. If AssetNum or Location is not null, this equals the description of the asset or location. |
ContactRating | Non-persistent attribute. If HazardID is not null, this equals the hazard's contactrating. |
AssetNum | Relates a Hazard to a piece of asset.
Foreign key to Asset .
Either AssetNum or Location may be specified (not both). Both can be null. |
FlammabilityRating | Non-persistent attribute. If HazardID is not null, this equals the hazard's flammabilityrating. |
HazardDescription | Non-persistent attribute. If HazardID is not null, this equals the description of the hazard. |
HazardID | Foreign key to WoHazard .
|
HazardType | Non-persistent attribute. If HazardID is not null, this equals the hazard's hazardtype. |
HazardDescription | Non-persistent attribute. If HazardID is not null, this equals the description of the hazard. |
HazMatEnabled | Non-persistent attribute. If HazardID is not null, this equals the hazard's hazmatenabled. |
HealthRating | Non-persistent attribute. If HazardID is not null, this equals the hazard's healthrating. |
Location | Relates a Hazard to a location.
Foreign key to Location .
Either AssetNum or Location may be specified (not both). Both can be null. |
MSDSNum | Non-persistent attribute. If HazardID is not null, this equals the hazard's msdsnum. |
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. |
PrecautionEnabled | Non-persistent attribute. If HazardID is not null, this equals the hazard's precautionenabled. |
ReactivityRating | Non-persistent attribute. If HazardID is not null, this equals the hazard's reactivityrating. |
RemoveSeq | If TagOutID is not null, this can specify the sequence in which TagOuts should be removed. |
RequiredState | Non-persistent attribute. If TagoutID is not null, this equals the tagout's requiredstate. |
SiteID | The site to which this record pertains. Foreign key to Site .
|
TagoutAssetDescription | Non-persistent attribute. If TagoutID is not null, this equals the descripton of the tagout's assetnum or location. |
TagoutDescription | Non-persistent attribute. If TagoutID is not null, this equals the tagout's description. |
TagOutEnabled | Non-persistent attribute. If HazardID is not null, this equals the hazard's tagoutenabled. |
TagoutAssetnum | Non-persistent attribute. If TagoutID is not null, this equals the tagout's Assetnum. |
TagOutID | Foreign key to WoTagOut .
|
TagoutLocation | Non-persistent attribute. If TagoutID is not null, this equals the tagout's location. |
WoNum | Foreign key to Workorder .
|
WoSafetyDataSource | See Work Order Safety Mbos Overview. |
WoSafetyLinkID | Unique identifier for this object, within site. |
Extra Fields HAZ01 thru HAZ20 | Non-persistent attributes.
Same as extra fields on WoHazard .
|
Extra Fields TAG01 thru TAG08 | Non-persistent attributes.
Same as extra fields on WoTagOut .
|
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 |
---|
WoSafetyLink(MboSet ms) |
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
appValidate()
Application validation routine.
|
void |
copyAttributesFromHazard(MboRemote hazardMbo)
Copy values from WoHazard or Hazard to the non-persistent attributes of this
WoSafetyLink mbo.
|
void |
copyAttributesFromTagout(MboRemote tagMbo)
Copy values from WoTagOut or TagOut to the non-persistent attributes of this
WoSafetyLink mbo.
|
void |
delete(long accessModifier)
Delete this mbo.
|
MboSetRemote |
getMboSet(java.lang.String name)
The override logic is used ONLY for the Wotrack Hazards and Precautions subtab,
for parent WoSafetyLink (Hazard) retrieving WoHazardPrec via
relationship "WOHAZARDPREC".
|
void |
init()
Owner must be workorder, wosafetylink, wohazard, or wotagout.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
If the owner is Wosafetylink and the child is Wosafetylink, then store the relation name.
|
boolean |
isHazardEnabled()
Is this hazard hazardous-material enabled?
|
boolean |
isPrecautionEnabled()
Is this hazard precaution-enabled?
|
boolean |
isTagOutEnabled()
Is this hazard tagout-enabled?
|
void |
maintainWoHazard()
We already know that the owner is WO and that this wosafetydatasource is going to be 'WO'.
|
void |
maintainWoTagout()
We already know that the owner is WO and that this wosafetydatasource is going to be 'WO'.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for Wonum.
|
void |
save()
If we added the same hazard to both HazardPrec and HazMat tabs, then remove one
so we don't get a duplicate.
|
void |
setAssetDescription(boolean tagout)
Set the value of "assetdescription" equal to
the value of description from the asset or location.
|
boolean |
toBeSaved()
Does the object need to be saved to persistent storage ?
This will also check for change of non-persistent attributes.
|
void |
undelete()
Unmark the Mbo for deletion.
|
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, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, 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, 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, getMboValueData, getMboValueData, getMboValueData, 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, 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, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public WoSafetyLink(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
setAssetDescription(boolean)
,
setWoHazardInfo()
,
setWoTagoutInfo()
,
WO.canEditRelatedSet(java.lang.String)
public void setAssetDescription(boolean tagout) throws MXException, java.rmi.RemoteException
tagout
- True if we're setting non-persistent tagoutasset description.MXException
java.rmi.RemoteException
public void copyAttributesFromHazard(MboRemote hazardMbo) throws MXException, java.rmi.RemoteException
setWoHazardInfo
and
FldWoSLHazardId
.copyAttributesFromHazard
in interface WoSafetyLinkRemote
hazardMbo
- The WoHazard or Hazard mbo whose values are to be copied into
this WoSafetyLink's nonpersistent attributes.MXException
java.rmi.RemoteException
copyAttributesFromHazard(psdi.mbo.MboRemote)
public void copyAttributesFromTagout(MboRemote tagMbo) throws MXException, java.rmi.RemoteException
setWoTagoutInfo
and
FldWoSLTagoutId
.copyAttributesFromTagout
in interface WoSafetyLinkRemote
tagMbo
- The WoTagOut or TagOut mbo whose values are to be copied into
this WoSafetyLink's nonpersistent attributes.MXException
java.rmi.RemoteException
copyAttributesFromTagout(psdi.mbo.MboRemote)
public void add() throws MXException, java.rmi.RemoteException
If this is a hazard link, the owner is Workorder or WoHazard. If this is a tagout link, the owner is normally the WoSafetyLink for the hazard, but can also be Workorder or WoHazard.
Attribute Name | Attribute Value |
---|---|
AssetDescription | If owner is WoSafetyLink or WoHazard, equals the owner's assetdescription. If the owner is WoTagOut and the wotagout's owner is WoHazard, equals the wohazard's assetdescription. |
AssetNum | If owner is WoSafetyLink or WoHazard, equals the owner's AssetNum. If owner is WoTagOut, equals its WoHazard's AssetNum. |
HazardDescription | If owner is WoHazard, equals the owner's hazarddescription. If the owner is WoTagOut and the wotagout's owner is WoHazard, equals the wohazard's hazarddescription. |
HazardID | If owner is WoSafetyLink, WoHazard, or WoTagOut, equals the owner's HazardID. |
HazardType | If owner is WoHazard, equals the owner's hazardtype. If the owner is WoTagOut and the wotagout's owner is WoHazard, equals the wohazard's hazardtype. |
HazMatEnabled | If owner is WoHazard, equals the owner's hazmatenabled. If the owner is WoTagOut and the wotagout's owner is WoHazard, equals the wohazard's hazmatenabled. |
Location | If owner is WoSafetyLink or WoHazard, equals the owner's Location. If owner is WoTagOut, equals its WoHazard's Location. |
TagOutID | If owner is WoTagOut, equals the owner's TagOutID. |
WoNum | Owner's WoNum |
WoSafetyDataSource | If owner is WoSafetyLink, equals the owner's WoSafetyDataSource. |
WoSafetyLinkID | UniqueID |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- MXException
java.rmi.RemoteException
WoSafetyLinkSet.shouldCascadeDeleteHazard(psdi.app.workorder.WoSafetyLink)
,
WoSafetyLinkSet.shouldCascadeDeleteTagOut(psdi.app.workorder.WoSafetyLink)
public void undelete() throws MXException, java.rmi.RemoteException
Mbo
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
keyName
- Should equal "wonum" or else nothing will be propagated.keyValue
- The new value of wonum.MXException
java.rmi.RemoteException
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
MXException
java.rmi.RemoteException
public boolean toBeSaved() throws java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
WoSafetyLinkSet.tagoutAssetLocMatchesHazard(psdi.app.workorder.WoSafetyLink)
,
maintainWoHazard()
,
maintainWoTagout()
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void maintainWoHazard() throws MXException, java.rmi.RemoteException
appValidate
.
This calls validate on the wohazard.MXException
java.rmi.RemoteException
findWoHazToUpdate(boolean)
,
setWoHazardValues(psdi.mbo.MboRemote)
,
WoHazard.appValidate()
public void maintainWoTagout() throws MXException, java.rmi.RemoteException
appValidate
.
This calls validate on the wotagout.MXException
java.rmi.RemoteException
findWoTagToUpdate()
,
setWoTagValues(psdi.mbo.MboRemote)
,
WoTagOut.appValidate()
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
findWoHazToUpdate
.
(super will be called if this mbo is a zombie mbo)
All other relationships call super.
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- Relationship nameMXException
- "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteException
findWoHazToUpdate(boolean)
,
WoSafetyLinkSetRemote.WOHAZARDPREC
public boolean isHazardEnabled() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
getTempHazard()
,
WoHazard.isHazardEnabled()
public boolean isPrecautionEnabled() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
getTempHazard()
,
WoHazard.isPrecautionEnabled()
public boolean isTagOutEnabled() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
getTempHazard()
,
WoHazard.isTagOutEnabled()