public class SafetyPlan extends Mbo implements SafetyPlanRemote
See Safety Package description.
This is a site level object.
The key attributes for this object are SiteID and SafetyPlanID.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| ChangeBy, ChangeDate | self-explanatory |
| Description | Freeform description. Also accommodates a long description. |
| 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. |
| SafetyPlanID | Unique identifier for this object, within site. |
| SiteID | The site to which this record pertains. Foreign key to Site.
|
MULTILANGCOPY, phantomList, phantomQueueALLROWS, 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 |
|---|
SafetyPlan(MboSet ms) |
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
appValidate()
If toBeAdded and no row in SPWorkAsset, then add one.
|
void |
associateHazardToSafetyPlan(MboRemote spw,
MboRemote spRelatedAsset,
MboSetRemote hazardSet)
Apply the passed hazard set to this SafetyPlan, for the given work asset and related asset.
|
void |
associateHazardToSafetyPlan(MboRemote spw,
MboSetRemote safetyLexiconSet)
Apply the passed safetyLexicon set to this SafetyPlan, for the given work asset.
|
void |
associateHazardToSafetyPlan(MboSetRemote safetyLexiconSet)
Apply the passed safetyLexicon set to this SafetyPlan, for the given work asset.
|
MboSetRemote |
associateHazardToSafetyPlan(MboSetRemote spwset,
java.lang.String hazardid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
This is used when adding hazard(s) to a safetyplan.
|
MboSetRemote |
associateTagOutToSafetyPlan(MboSetRemote spwset,
java.lang.String hazardid,
java.lang.String tagoutid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
This is used when adding tagout(s) to a safetyplan.
|
void |
canDelete()
Can the object be deleted ?
This is object specific and should be overridden.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
MboRemote |
duplicate()
Creates a duplicate safetyplan with its related objects.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
SPLexiconLink needs to behave differently depending on the relationship it was
obtained with (hazards and precautions, hazardous materials, or tagouts).
|
void |
modify()
Prepare to modify a mbo, defaulting the attributes shown below.
|
MboSetRemote |
removeHazardFromSafetyPlan(MboSetRemote spwset,
java.lang.String hazardid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
Remove a specific hazard from this safety plan.
|
MboSetRemote |
removeTagOutFromSafetyPlan(MboSetRemote spwset,
java.lang.String hazardid,
java.lang.String tagoutid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
This is used when removing tagout(s) from a safetyplan.
|
void |
undelete()
Unmark the Mbo for deletion.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, 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, 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, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, 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, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, 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, 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, validateAttributespublic SafetyPlan(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
Mboinit in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| ChangeBy | Current user |
| ChangeDate | Current date |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| ChangeBy | Current user |
| ChangeDate | Current date |
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
MbocanDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
Mbodelete in interface MboRemotedelete in class MboaccessModifier - 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.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void undelete()
throws MXException,
java.rmi.RemoteException
Mboundelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote associateHazardToSafetyPlan(MboSetRemote spwset, java.lang.String hazardid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
This method supports:
This SafetyPlan method is the same as calling the method of the same name
that's on SPWorkAsset, for
the main spworkasset mbo (where workasset and worklocation are null).
To attach a hazard to a non-null workasset or worklocation, you must call
the SPWorkAsset version of this method (see
associateHazardToSafetyPlan.
A similar SafetyPlan method, associateHazardToSafetyPlan,
supports multi-select of Hazards and specification of a work asset.
associateHazardToSafetyPlan in interface SafetyPlanRemotespwset - MboSet of SPWorkAsset for this safety plan. Can be passed in as null.
If passed in as null, this method will get the set MAINSPWORKASSET, which contains
one mbo.hazardid - The hazard to be associated with this safety plan.relatedassetnum - The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the workasset of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location. Both can be null
if the hazard is not tagout-enabled.
Either assetnum or location must be specified for a tagout.relatedlocation - The location to be matched on the SafetyLexicon. Can be null.
Not to be confused with the worklocation of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location. Both can be null
if the hazard is not tagout-enabled.
Either assetnum or location must be specified for a tagout.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.associateHazardToSafetyPlan(String, String, String)public void associateHazardToSafetyPlan(MboRemote spw, MboRemote spRelatedAsset, MboSetRemote hazardSet) throws MXException, java.rmi.RemoteException
A similar SafetyPlan method, associateHazardToSafetyPlan.
allows selection of a single HazardID for the main spworkasset mbo
(where workasset and worklocation are null).
associateHazardToSafetyPlan in interface SafetyPlanRemotespw - SPWorkAsset mbo of the work asset.spRelatedAsset - SPRelatedAsset mbo of the related asset, used to obtain the related assetnum and related location.hazardSet - The hazard set to be applied to this work asset and related asset.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.associateHazardToSafetyPlan(String, String, String)public void associateHazardToSafetyPlan(MboSetRemote safetyLexiconSet) throws MXException, java.rmi.RemoteException
A similar SafetyPlan method, associateHazardToSafetyPlan.
allows selection of a single HazardID for the main spworkasset mbo
(where workequipment and worklocation are null).
associateHazardToSafetyPlan in interface SafetyPlanRemotespw - SPWorkAsset mbo of the work asset.safetyLexiconSet - The safetyLexicon set to be applied to this work asset and related asset.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.associateHazardToSafetyPlan(String, String, String)public void associateHazardToSafetyPlan(MboRemote spw, MboSetRemote safetyLexiconSet) throws MXException, java.rmi.RemoteException
A similar SafetyPlan method, associateHazardToSafetyPlan.
allows selection of a single HazardID for the main spworkasset mbo
(where workequipment and worklocation are null).
associateHazardToSafetyPlan in interface SafetyPlanRemotespw - SPWorkAsset mbo of the work asset.safetyLexiconSet - The safetyLexicon set to be applied to this work asset and related asset.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.associateHazardToSafetyPlan(String, String, String)public MboSetRemote removeHazardFromSafetyPlan(MboSetRemote spwset, java.lang.String hazardid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
removeHazardFromSafetyPlan.
(See Centura safeplan frmHAZMAT, frmHAZPREC, frmTAGOUT/tblHazards.)
removeHazardFromSafetyPlan in interface SafetyPlanRemotespwset - MboSet of SPWorkAsset for this safety plan. Can be passed in as null.
If passed in as null, this method will get the set MAINSPWORKASSET, which contains
one mbo.hazardid - The hazard to be removed from this safety plan.relatedassetnum - The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the workasset of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location. Both can be null.relatedlocation - The location to be matched on the SafetyLexicon. Can be null.
Not to be confused with the worklocation of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location. Both can be null.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.removeHazardFromSafetyPlan(java.lang.String, java.lang.String, java.lang.String)public MboSetRemote associateTagOutToSafetyPlan(MboSetRemote spwset, java.lang.String hazardid, java.lang.String tagoutid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
This SafetyPlan method is the same as calling the method of the same name
that's on SPWorkAsset, for
the main spworkasset mbo (where workasset and worklocation are null).
To attach a tagout to a non-null workasset or worklocation, you must call
the SPWorkAsset version of this method (see
associateTagOutToSafetyPlan.
spwset - MboSet of SPWorkAsset for this safety plan. Can be passed in as null.
If passed in as null, this method will get the set MAINSPWORKASSET, which contains
one mbo.hazardid - The hazard to be associated with this safety plan.
If this installation does not associate tagouts with hazards,
then this will be null.tagoutid - The tagoutid to be associated with this safety plan.relatedassetnum - The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the workasset of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.relatedlocation - The location to be matched on the SafetyLexicon. Can be null.
Not to be confused with the worklocation of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.associateTagOutToSafetyPlan(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public MboSetRemote removeTagOutFromSafetyPlan(MboSetRemote spwset, java.lang.String hazardid, java.lang.String tagoutid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
This SafetyPlan method is the same as calling the method of the same name
that's on SPWorkAsset, for
the main spworkasset mbo (where workasset and worklocation are null).
To remove a tagout from a non-null workasset or worklocation, you must call
the SPWorkAsset version of this method (see
removeTagOutFromSafetyPlan.
spwset - MboSet of SPWorkAsset for this safety plan. Can be passed in as null.
If passed in as null, this method will get the set MAINSPWORKASSET, which contains
one mbo.hazardid - The hazard of the tagout to be removed from this safety plan.
If this installation does not associate tagouts with hazards,
then this will be null.tagoutid - The tagoutid to be removed from this safety plan.relatedassetnum - The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the workasset of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.relatedlocation - The location to be matched on the SafetyLexicon. Can be null.
Not to be confused with the worklocation of the SPWorkAsset! The link will
be made to the main SPWorkAsset.
Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.MXExceptionjava.rmi.RemoteExceptionSPWorkAsset.removeTagOutFromSafetyPlan(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionpsdi.app.safety.SPLexiconLinkSetRemote#setDupSPpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
initRelationship in class MborelationName - The relationship name of the related MboSet which need to initialize.mboSet - The related MboSet which need to initialize.MXExceptionjava.rmi.RemoteExceptionSPLexiconLinkSet.setThisRelationName(java.lang.String)