public class SPWorkAsset extends Mbo implements SPWorkAssetRemote
See Safety Package description.
This object includes non-persistent attributes.
This is a site level object.
The key attributes for this object are SiteID and SPWorkAssetID.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
AssetDescription | Non-persistent attribute. If WorkAsset or WorkLocation is not null, this equals the description of the asset or location. |
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 | Foreign key to SafetyPlan .
|
SiteID | The site to which this record pertains. Foreign key to Site .
|
SPWorkAssetID | Unique identifier for this object, within site. |
WorkAsset | Asset number of work asset. Either WorkAsset or WorkLocation may be specified (not both). Both can be null. |
WorkLocation | Location number of work asset. Either WorkAsset or WorkLocation may be specified (not both). Both can be null. |
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 |
---|
SPWorkAsset(MboSet ms) |
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
appValidate()
Application validation routine.
|
MboSetRemote |
associateHazardToSafetyPlan(java.lang.String hazardid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
Create splexiconlink(s) when adding a hazard to a safetyplan.
|
MboSetRemote |
associateTagOutToSafetyPlan(java.lang.String hazardid,
java.lang.String tagoutid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
Create splexiconlink when adding a tagout 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.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for SafetyPlanID.
|
MboSetRemote |
removeAllLinks()
Remove all SPLexiconLink for this SPWorkAsset.
|
void |
removeHazardFromSafetyPlan(java.lang.String hazardid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
Remove hazard from this spworkasset.
|
MboSetRemote |
removeTagOutFromSafetyPlan(java.lang.String hazardid,
java.lang.String tagoutid,
java.lang.String relatedassetnum,
java.lang.String relatedlocation)
Remove tagout from this spworkasset.
|
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, 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, 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, initRelationship, 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, 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, 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, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public SPWorkAsset(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
Mbo
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
SafetyPlanID | The owner's SafetyPlanID. |
SPWorkAssetID | generateUniqueID |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
Mbo
canDelete
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 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
- The attribute name.keyValue
- The new value of the attribute.MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
checkOneNullRow()
public MboSetRemote associateHazardToSafetyPlan(java.lang.String hazardid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
This method will throw an error if the splexiconlink already exists. This method also adds splexiconlink for all the relevant tagouts (if tagoutenabled and any tagouts exist). See the following in Centura safeplan: dlgSelectHazard, frmTAGOUT/tblHazards, frmHAZMAT/tblHazMat, frmHAZPREC/tblSPHazards.
Can be called from the SafetyPlan version of this method
.
associateHazardToSafetyPlan
in interface SPWorkAssetRemote
hazardid
- The hazard to be associated with this SPWorkAsset.relatedassetnum
- The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the workasset of this 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 this SPWorkAsset!
Cannot specify both assetnum and location. Both can be null.MXException
java.rmi.RemoteException
associateHazardToSafetyPlan(String, String, String, boolean)
public void removeHazardFromSafetyPlan(java.lang.String hazardid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
Can be called from the SafetyPlan version of this method
.
removeHazardFromSafetyPlan
in interface SPWorkAssetRemote
hazardid
- The hazard to be removed from this SPWorkAsset.relatedassetnum
- The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the assetnum of this 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 location of this SPWorkAsset!
Cannot specify both assetnum and location. Both can be null.MXException
java.rmi.RemoteException
getParentSPLLforHazard(java.lang.String, java.lang.String, java.lang.String)
public MboSetRemote associateTagOutToSafetyPlan(java.lang.String hazardid, java.lang.String tagoutid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
associateTagOutToSafetyPlan
in interface SPWorkAssetRemote
hazardid
- The hazardid.
If this installation does not associate tagouts with hazards,
then this will be null.tagoutid
- The tagoutid.assetnum
- The asset number. Can be null. Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.location
- The location. Can be null. Cannot specify both assetnum and location.
Either assetnum or location must be specified for a tagout.MXException
java.rmi.RemoteException
SPLexiconLinkSet.addOneTagout(psdi.mbo.MboRemote, long)
public MboSetRemote removeTagOutFromSafetyPlan(java.lang.String hazardid, java.lang.String tagoutid, java.lang.String relatedassetnum, java.lang.String relatedlocation) throws MXException, java.rmi.RemoteException
removeTagOutFromSafetyPlan
in interface SPWorkAssetRemote
hazardid
- The hazard associated with this tagoutid.
If this installation does not associate tagouts with hazards,
then this will be null.tagoutid
- The tagoutid to be removed.relatedassetnum
- The assetnum to be matched on the SafetyLexicon. Can be null.
Not to be confused with the assetnum of this 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 location of this SPWorkAsset!
Cannot specify both assetnum and location. Both can be null.MXException
java.rmi.RemoteException
removeTagOutFromSafetyPlan(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public MboSetRemote removeAllLinks() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException