public class JpAssetSpLink extends Mbo implements JpAssetSpLinkRemote
This is system level object that can be defined to exist at the system level, organization level or site level.
The key attributes for this object are OrgId,SiteId,JpAssetSpLinkId.
The attributes in this object are as follows::
Attribute Name | Description |
---|---|
AssetDescription | A non-persistent attribute that identifies the description of the asset, location, or item, if they are not null. |
Assetdescription_longdescription | A non-persistent attribute that identifies the long description of the asset, location, or item, if they are not null. |
Assetnum | Identifier of the Asset associated with a work asset. If the work asset has an asset associated with it, both "itemnum" and "location" attributes are set to null. |
IsDefaultAssetSp | A boolean field that indicates whether there is a default safety plan for an asset,location, or item. |
Itemnum | Identifier of the Item associated with a work asset. If the work asset has an item associated with it, then "location" and "asset" attributes are set to null. |
JpAssetSpLinkId | Unique identifier of the link between a Job Plan, an Asset,Location, or Item, and a Safety Plan. |
Jobplanid | A system generated unique identifier for the job plan. This will be copied from owner Job Plan to the Work Asset. |
Jpassetsplinkid | A system generated unique identifier for the Work Asset. |
Jpnum | Identifier for the Job Plan. This will be copied from owner Job Plan to the Work Asset. |
LDKey | A non-persistent attribute that identifies a Long Description Key. This is a link to text stored in the LongDescription table. |
Location | Identifier of the location associated with a work asset. If the work asset has a loation associated with it, both "assetnum" and "itemnum" attributes are set to null. |
OrgId | Identifier of the organization for the work asset.
|
SafetyPlanId | Identifier of the Safety Plan associated with a work asset. |
SiteId | Identifier of the site for the work asset.
|
WoReqWhenPurch | A boolean field that indicates whether there is a required work order when a particular item is purchased. |
WoTypeWhenPurch | Identifier of the work type for a work order. |
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 |
---|
JpAssetSpLink(MboSet ms)
Construct the JpAssetSpLink object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a new JpAssetSpLink.
When a new work asset is added, the following attributes are set to the default values. |
void |
appValidate()
This method is called before save for last minute validations.
|
void |
delete(long accessmodifier)
Delete JPASSETSPLINK.
|
MboSetRemote |
getRelevantJPAssetRecords(java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String assetnum,
java.lang.String location,
java.lang.String siteid)
Fetches all the records for the current Job Plan that have the same asset as this
JpAssetSpLink object.
|
void |
init()
Initialize the JpAssetSpLink object
Set the orgid READONLY flag to true if there is an orgid on the jobplan Set the siteid READONLY flag to true if there is a siteid on the jobplan |
boolean |
isCalibrationInstalled()
Return true if License Key CALIBRATION is installed.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for jpnum.
|
void |
setReadOnlyFields(java.lang.String status) |
void |
undelete()
Undelete JPASSETSPLINK.
|
void |
validateItemAssetLoc(boolean newItem,
boolean newAssetnum,
boolean newLocation)
validates item/ asset /location fields
If item entered, asset & location field set to null. If asset entered, item & location field set to null. If location entered, item & asset field set to null. when item is null, the woreqwhenpurch and wotypewhenpurch are not editable |
void |
validWoreqWhenPruch(java.lang.String item,
java.lang.String itemsetid)
Checks for the duplicate work assets with woreqwhenpurch 'Y' for an item.
|
void |
validWorkAsset(MboSetRemote dbJpAssetSet,
java.lang.String item,
java.lang.String itemsetid,
java.lang.String asset,
java.lang.String loc)
Checks for the duplicate work assets with default 'Y'
only one work asset can have 'Y' for default.
|
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, 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 JpAssetSpLink(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
setAssetDescription()
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
MboValue.generateUniqueID()
,
JobPlan.componentAdded()
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 "jpnum" or else nothing will be propagated.keyValue
- The new value of jpnum.MXException
java.rmi.RemoteException
public void validateItemAssetLoc(boolean newItem, boolean newAssetnum, boolean newLocation) throws MXException, java.rmi.RemoteException
newItem
- Itemnum of a workAsset Mbo.newAssetnum
- asset number of a workAsset Mbo.newLocation
- location info of a workAsset Mbo.MXException
java.rmi.RemoteException
setAssetDescription()
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
- If no Asset, item, or Loc, then MXApplicationException("jobplan","asset_item_loc")java.rmi.RemoteException
validWorkAsset(psdi.mbo.MboSetRemote, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public MboSetRemote getRelevantJPAssetRecords(java.lang.String itemnum, java.lang.String itemsetid, java.lang.String assetnum, java.lang.String location, java.lang.String siteid) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validWorkAsset(MboSetRemote dbJpAssetSet, java.lang.String item, java.lang.String itemsetid, java.lang.String asset, java.lang.String loc) throws MXException, java.rmi.RemoteException
item
- Itemnum of a workAsset Mbo to be added.itemsetid
- Item set for Itemnum of a workAsset Mbo to be added.asset
- Assetnum of a workAsset Mbo to be added.loc
- Location info of a workAsset Mbo to be added.MXException
java.rmi.RemoteException
MXApplicationException("jobplan",
- "defaultsetOnce")public void validWoreqWhenPruch(java.lang.String item, java.lang.String itemsetid) throws MXException, java.rmi.RemoteException
item
- Itemnum of a workAsset Mbo to be added.itemsetid
- Item set for the Itemnum of a workAsset Mbo to be added.MXException
java.rmi.RemoteException
MXApplicationException("jobplan",
- "defaultWoreqWhenPurch")public void setReadOnlyFields(java.lang.String status) throws MXException, java.rmi.RemoteException
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 undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public boolean isCalibrationInstalled() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException