public class Asset extends StatefulMbo implements AssetRemote, MboRemote, LinkedMboRemote, HierarchicalMboRemote, AncMbo, AddressableMbo
This is a site level object.
The key attributes for this object are as follows: SiteId and Assetnum.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
Assettag | In-house accounting identification for this asset. |
AutoWogen | Y/N flag indicating whether, upon entry or update of a meterreading, the work order generation process should be started. |
Binnum | Inventory bin number. Binnum applies to rotating asset only. |
Budgetcost | The budget for the year for work on this asset. |
Calnum | Calendar used to specify when this asset object is normally in operation.
|
ChangeBy,ChangeDate | Name of the user who last modified this asset object. This attribute defaults to the current user unless another value is provided. Date this asset object was last modified.This attribute defaults to the MXServer date/time unless another value is provided. |
Children | Boolean flag that indicates whether this asset is a parent to at least one other asset. |
Classification | Obsolete-to be removed in a future release. |
ClassStructureId | Class structure identifier. Class structures are the hierarchies of
classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
|
Description | Short description for this object. A long description may be associated with this object via the Ldkey attribute. |
Disabled | Boolean flag to indicate whether or not this asset is disabled. This differs from the Isrunning attribute. An asset cannot be running if it is disabled. Nothing can be done with a disabled asset. |
Assetnum | Unique identifier for this asset. |
Failurecode | Top level of the failure hierarchy applied to this asset. |
Glaccount | General ledger account. |
GroupName | Meter group associated with this asset. When the meter group is applied, AssetMeters for this asset will be created for all meters in the meter group. |
Installdate | Date asset was installed. |
Invcost | Applies only to not capitalized, rotating asset. A rotating asset shares attributes of both asset and items. As an asset, rotating asset is an asset against which work orders can be created. Inventory Costis the repair cost accumulated against this rotating asset on a work order when the work order 'Chargestore' attribute is set to true. The Inventory costs are accrued from labor,material, service and tool usage on the work order. Inventory costs also come from services received directly to a not capitalized, rotating asset when the po line chargestore attribute is set to true. As an item, rotating asset can be issued as material to a work order created against another asset. If the default cost for not capitalized rotating items is set to asset Cost, then inventory cost is the cost charged to work orders to which not capitalized rotating items/asset are issued. When the rotating asset is issued to a workorder the Inventory Cost is added to the Average Cost for the rotating asset. The Inventory Cost is then set to 0 (zero). If the rotating item/asset is then returned from the work order, the Inventory Cost is set to the Average Cost. |
Isrunning | Boolean flag to indicate whether this asset object is up (true) or down (false). The default is true. This value is set by the work order object. |
Itemnum | Identifier for the item related to this asset object. A non-null value for this attribute indicates that this object is stocked asset that can be stored in inventory and used as rotating stock. |
ItemSetId | Item set identifier for the asset. ItemSetId applies only to rotating assets and will subsequently be null and read-only if the Itemnum attribute is null. |
Ldkey | Long description key. |
Location | Physical location of this asset. |
Manufacturer | Identification code for the manufacturer of this asset. Manufacturer need not exist in the Companies table. |
OrgId | Identifier of the organization for this asset.
|
Parent | Assetnum for this asset object's parent. An asset can have zero or one parent. The parent, however, may have multiple children. |
Priority | Copied to work orders created for this asset, asset priority can be used in conjunction with work order priority to determine the importance of this asset's work orders versus other work orders during peventive work order generation. |
Purchaseprice | Original purchase price or capital cost. |
Replacecost | Current replacement cost for an identical or substitute asset. |
Rotsuspacct | Rotating repairs general ledger suspense account.Used in apply item assembly structure for the rotating child asset. |
Serialnum | Manufacturer's identification number for this asset object. |
SiteId | Identifier of the site for this asset.
|
Statusdate | Date of most recent status change, from up (Isrunning = true) to down (Isrunning = false) or vice versa, for this asset. |
Totalcost | Total cost of all transactions written to matusetrans, labtrans, tooltrans and servrectrans against this asset and any of its children, that is, subassemblies. |
Totdowntime | Total time that this asset has been down, that is, not operational. This value is updated by the work order object. |
Totunchargedcost | Obsolete-to be removed in a future release. |
Unchargedcost | Obsolete-to be removed in a future release. |
Vendor | Identification code for the vendor of this asset. |
Warrantyexpdate | Date manufacturer's warranty expires. |
Ytdcost | Year-to-date cost of all transactions written to matusetrans, labtrans, tooltrans and servrectrans against this asset and any of its children, that is, subassemblies. |
Externalrefid, Ownersysid, Sourcesysid | Used by MAXIMO Enterprise Adapter(MEA) for interface to external financial system |
Eq1 - Eq24 | Extra fields. |
Modifier and Type | Field and Description |
---|---|
java.util.Vector |
assetsMovedDirectly
Reference to the vector of set of assets moved
|
boolean |
assetTransAlreadyCreated
Flag is set if the assettrans record has already been created
|
boolean |
createNewAssetNum
Flag is set in checkNewAssetSite(), is used to set field 'NewAssetNum' to read/write
|
static java.util.Vector |
invBalVector
Deprecated.
|
static java.util.Vector |
inventoryVector
Deprecated.
|
boolean |
isFromAssetTemplate
IV73397:indicates this asset is created by AssetTemplate because the asset template code just
conveniently using newAssetForAssetMove to prevent from creating assetmeter even though it is not
cross-site move assets
|
boolean |
matRecTransAlreadyCreated
Flag is set if the matrectrans record has already been created
|
boolean |
newAssetForAssetMove
Flag is set if the new asset is created in 'Asset move', used in save() for updating parent
|
static java.lang.String |
PLUSC_DUE_DATE |
static java.lang.String |
PLUSC_DUE_DATE_NP |
static java.lang.String |
PLUSC_IS_CALIBRATION |
static java.lang.String |
PLUSC_IS_CON_DESC |
static java.lang.String |
PLUSC_IS_CON_DESC_LONGDESC |
static java.lang.String |
PLUSC_IS_CONTAM |
static java.lang.String |
PLUSC_IS_MTE |
static java.lang.String |
PLUSC_IS_MTE_CLASS |
static java.lang.String |
PLUSC_OP_RGE_FROM |
static java.lang.String |
PLUSC_OP_RGE_TO |
boolean |
rollStatusToChildren |
boolean |
sameAssetMovedBackForAssetMove
IV46140: Indicates this asset is the same asset moved back to the original site
|
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
DOMAIN_VALUE_INVOICE, DOMAIN_VALUE_RECEIPT, FIELD_ACTUALDATE, FIELD_ASSETID, FIELD_DEPRECIATIONPENDING, FIELD_DEPSTARTINGCOSTNP, FIELD_PURCHASEPRICE, FIELD_UNITCOST, MBOSET_DEPTARGETASSET
ADDRESSABLE_SERVICEADDRESS_REL, NPADDRESSCODE_ATTRNAME, NPADDRESSDESC_ATTRNAME, NPADDRESSLONGDESC_ATTRNAME, SERVICEADDRESS_NATIVE_RELATIONSHIPNAME
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
Modifier and Type | Method and Description |
---|---|
void |
acceptMyNewSet(MboSetRemote myNewSet)
called from ItemStruct when applying an Item Assembly Structure to provide this object with related SparePart, PM
and child Asset sets
|
void |
add()
sets field defaults for a new Asset object
|
void |
addMoreAssetsToSet(MboSetRemote selectedMoreMboSet,
MboSetRemote selectedMboSet)
Adds the more selected assets to the existing selected set
|
boolean |
alreadyAppliedIAS()
identifies whether Item Assembly Structure (IAS) has already been applied to this piece of asset.
|
void |
appendDescription(java.lang.String descSpec)
appends the passed description from an AssetSpec to the Asset.Description attribute The method needs to get
classtructure related description first.
|
void |
applyIAS(boolean autokey)
applies Item Assembly Structure (IAS) to this Asset object.
|
void |
applyIASAutoNumAll()
Auto key the rotating child asset when apply IAS is being done on this asset.
|
MboRemote |
applyIASCreateChild(MboRemote itemStruct,
boolean autokey)
Applies IAS for the asset based on the next level rotating item specified in the passed ItemStruct; ie, create a
child asset.
|
MboSetRemote |
applyIASGenPMs(boolean autokey)
Applies IAS for the asset; create pms if there are master pms.
|
MboSetRemote |
applyIASGenSpareParts(MboSetRemote itemStructSet)
Applies IAS for the asset; create spareparts based on the non-rotating IAS of the item.
|
void |
appValidate()
Perform regular appValidate() in regularAppValidate() and process LinkMbo's deletion.
|
void |
assetMoved()
Determines if the asset can be moved or swapped or status can be changed, throws exception if not.
|
void |
autoKeyAll(boolean doChildren)
when applying an Item Assembly Structure (IAS), begins the process of generating autokeyed assetnums for all
rotating itemnums in the IAS, propagating these newly autokeyed assetnums to related objects in SPAREPART, PM and
ASSET, and generating autokeyed pmnums wherever a PM is needed in the IAS
|
void |
autoKeyAssetnumForChildSet(boolean doChildren)
when applying an Item Assembly Structure (IAS), coordinates the creation of assetnums and the propagation of
these newly autokeyed assetnums to related objects in SPAREPART, PM and ASSET
|
void |
autoKeyPmnumForSet(boolean doChildren)
when applying an Item Assembly Structure (IAS), creates autokeyed pmnums wherever a pmnum is needed for each
rotating asset from the top to the bottom of the IAS
|
void |
autoWogen() |
void |
autoWogen(MboRemote assetMeter)
For use with meter reading entry via integration, for example, the
Maximo Integration Framework (MIF).
|
double |
calculateDownTime(java.util.Date lastChangeDate,
java.util.Date currentChangeDate)
begins the downtime calculation process for Asset objects with and without a calendar.
|
java.util.Date |
calculateNextCalDueDate() |
void |
canApplyIAS()
Can we apply IAS for this asset?
|
void |
canChangeStatus(java.lang.String changeToStatus,
long accessModifier)
Identifies whether the status of this object be changed to the specified value.
|
void |
canDelete()
answers question: Can this asset be deleted ? Asset cannot be deleted for many reasons.
|
void |
canMoveAssetWithinInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String newBinnum,
java.lang.String ponum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
java.lang.String matRecTransID)
checks the target location and gl accounts, sets parameters and flags and calls the setupMove in class
MoveDetails to prepare the move
|
void |
canMoveAssetWithinInventoryCrossOrgFromHolding(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String newBinnum,
java.lang.String orgid,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
java.lang.String matRecTransID) |
void |
canMoveAssetWithinNonInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
java.lang.String toParent,
boolean checkMismatch,
boolean checkOccupied,
boolean updateWo)
prepares the move between non-inventory locations by checking the target location, ensuring that the asset's
itemnum matches the location's itemnum, setting parameters and flags and calling the setupMove in class
MoveDetails
|
void |
canMoveAssetWithinNonInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String enterBy,
java.lang.String wonum,
java.lang.String toParent,
boolean checkMismatch,
boolean checkOccupied,
boolean updateWo)
prepares the move between non-inventory locations by checking the target location, ensuring that the asset's
itemnum matches the location's itemnum, setting parameters and flags and calling the setupMove in class
MoveDetails
|
void |
canReturnAsset(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
java.lang.String newBinnum,
java.lang.String ponum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
boolean updateWo,
java.lang.String matRecTransID)
checks the target location, sets parameters and flags, and calls the setupMove in class MoveDetails to prepare
the move.
|
void |
changeMaxStatus(java.lang.String internalStatus,
java.util.Date date,
java.lang.String memo)
IV95332: Change status in Async passes the non-default synonym status.
|
void |
changeStatus(java.lang.String status,
boolean rollToAllChildren,
boolean removeFromActiveRoutes,
boolean removeFromActiveSP,
boolean changePMStatus) |
void |
changeStatus(java.lang.String status,
boolean rollToAllChildren,
boolean removeFromActiveRoutes,
boolean removeFromActiveSP,
boolean changePMStatus,
java.util.Hashtable changedStatusPMs)
Change the status of the Asset(s) Depending of the check boxes of the Status dialog box - change the status of
all children assets - remove asset reference from all active job plan - remove asset reference from all active
routes - remove asset reference from all active safety plans - make asset's PM inactive
If the status of the asset is changing to NOT READY or OPERATING, check if the PM's are in 'ACTIVE' status and
have forecast and delete the PM forecast
|
void |
changeStatus(java.lang.String status,
boolean rollToAllChildren,
boolean removeFromActiveRoutes,
boolean removeFromActiveSP,
boolean changePMStatus,
java.util.Hashtable changedStatusPMs,
LocationRemote topLevelLocationOnStatusChangeFromLocStatChangeRollDown)
Change the status of the Asset(s) Depending of the check boxes of the Status dialog box - change the status of
all children assets - remove asset reference from all active job plan - remove asset reference from all active
routes - remove asset reference from all active safety plans - make asset's PM inactive
If the status of the asset is changing to NOT READY or OPERATING, check if the PM's are in 'ACTIVE' status and
have forecast and delete the PM forecast
|
void |
checkForAssetSite(java.lang.String siteid)
Validates if the asset and its children and site combination already exists in the database
|
void |
checkForChildrenAssetSite(java.lang.String siteid)
Validates if the asset's children and site combination already exists in the database
|
void |
checkForDuplicateMeterSequenceValues() |
void |
checkForNewAssetSite(boolean replaceAssetFlag)
Validates if the asset and site combination already exists in the database
|
void |
childInBundle()
Determines if the asset is the child and is part of hierarchy, throws exception if it is.
|
static void |
cleanupAssetsMap() |
void |
clearClassification()
This method clears the classtructureid and delete assetspec
|
void |
copyAdditionalPMAttributes(MboRemote copyToMbo,
MboRemote copyFromMbo) |
void |
copyAssetSpecToAssetSpec(MboRemote newAsset)
09-14550: in receive rotating item, if there are attributes and a large number of attributes, use copy in this
method, not calling assetcatalogservice.generatspecset to avoid mbosets initiated.
|
void |
copyAssetToCollectDetailsSet(MboSetRemote collectionSet)
Add one or multiple Selected Collections to CollectDetails that contains the current Asset.
|
void |
copySpareParts(MboSetRemote spareParts)
begins the process to copy the selected MBOs in the passed in SparePart Mbo Set to this Asset object.
|
Asset |
createAssetToBeMoved()
When moving an asset across sites, creates the destination site asset or
gets the already-existing destination site asset record that represents
the asset that is returning to the site via the current ASSET to destination site
asset relationship
AssetSetRemote.MOVEDASSET . |
MboRemote |
createAssetTrans()
Create AssetTrans to record the creating of asset at a location or has a parent
|
MboRemote |
createChange(java.lang.String jpnum)
creates a Workorder with WOCLASS=CHANGE from Asset.
|
void |
createDepreciationScheduleBasedOnItem(MboRemote itemMbo)
Copy the drepreciation schedule from Item and generate the periods
|
MboRemote |
createDepreciationScheduleBasedOnItemFromMatrecTrans(java.lang.String itemNum,
java.lang.String itemSetId,
MboRemote matrecTrans)
Copy the drepreciation schedule from Item on matrecTrans and generate the periods
|
void |
createHistoryForWorkOrder(java.lang.String wonum)
creates a snapshot of the asset hierarchy and costs for reporting purposes.
|
MboRemote |
createIncident(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Incident from Asset.
|
MboRemote |
createMatRecTrans()
Create MatRecTRans when rotating asset is added to storeroom
|
MboRemote |
createNewDepreciation()
Transportation - Depreciation Module
Create new Depreciation for Manage Depreciation option
|
MboRemote |
createProblem(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Problem from Asset.
|
MboRemote |
createRelease(java.lang.String jpnum)
creates a Workorder with WOCLASS=RELEASE from Asset.
|
MboRemote |
createServiceRequest(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Service Request from Asset.
|
void |
createTicket(MboRemote tkMbo)
Sets location, reportedpriority,reportedbyid, orgid and siteid values for the ticket mbo based on asset.
|
void |
createWO(MboRemote workorderMbo)
Sets location, wopriority,orgid ,siteid and reportedbyid values for the workorder mbo based on asset.
|
MboRemote |
createWorkorder(java.lang.String jpnum)
creates a Workorder with WOCLASS=WORKORDER from Asset.
|
void |
delete(long modifier)
delete this Asset object and references to it
|
MboRemote |
duplicate()
duplicates Asset and related objects.
|
MboRemote |
duplicateCalAsset(MboRemote newAssetRemote) |
MboSetRemote |
generateAssetSpec()
generates a new asset set based on the classstructureid and copies the attriubtes from the ClassSpec/ItemSpec if
item is rotating
|
void |
generateAutoKey()
generates an autokey value for a new Asset object
|
java.lang.String |
getAddressString()
Return a string with the address of the current entitty.
|
java.lang.Double |
getAltitude() |
java.lang.Double |
getAltitudeAccuracy() |
java.lang.String[] |
getAssetBeingReplacedByThisInSwap()
Used when swapping assets between each others' operating locations when both assets are instances of the same
rotating item, and both locations have the same itemnum.
|
java.util.Date |
getAssetMeterNowDate()
called to establish a current date to be used when obtaining the most recent historical meter readings for all of
this Asset's AssetMeters.
|
MboRemote |
getAutoLocateObject()
Returns an autolocate object instance if present.
|
MboRemote |
getAutoLocateObject(AutoLocatable nextInChain)
Returns an autolocate object instance if present.
|
void |
getBinnum()
gets the binnum from Inventory if the itemnum/location combination is in inventory table.
|
MboRemote |
getChild(int row)
used by Apply IAS
|
MboSetRemote |
getChildren()
gets the MBO set of Asset objects that are children to this Asset object
|
boolean |
getClearDupSeqNumsOnMeterGroupChange() |
java.lang.Double |
getCurrentMeterLife(java.lang.String meterName)
Return the total of meter file to date.
|
java.lang.String |
getDefSiteId()
Get the value for default siteid
|
java.lang.String |
getDefStoreloc()
Get the value for default Storeloc
|
java.lang.Double |
getDepreciationCurrentValue() |
java.lang.Double |
getHeading() |
java.lang.String[] |
getHierarchies()
not used by the Asset object.
|
boolean |
getInCopyingAssetSpecReceiveRotating()
09-14550
|
java.lang.String |
getIssueUnitForItem(java.lang.String location)
Determines if the inventory record exists for a given itemnum and returns the issueunit for first record found.
|
java.util.Date |
getLastUpdate() |
java.lang.Double |
getLatitudeY()
Return a double value with the the Latitude (or Y) coordinate of the current entitty.
|
java.lang.Double |
getLBSLatitudeY()
Return a double value with the Latitude (or Y coordinate) of the current entity.
|
java.lang.Double |
getLBSLongitudeX()
Return a double value with the Longitude (or X coordinate) of the current entity.
|
MboSetRemote |
getLeaseContractForAsset()
Returns the reference of the Lease contract that contains this asset.
|
java.lang.Double |
getLocationAccuracy() |
java.lang.Double |
getLongitudeX()
Return a double value with the the Longitude (or X) coordinate of the current entitty.
|
MboSetRemote |
getMboSet(java.lang.String name)
Per FSM spec if the asset does not have any Service Address associated
it will 'use' its location's service address (based on the selected Address System) if any. |
MboSetRemote |
getMyChildAssetSet()
used by Apply IAS
|
MboRemote |
getMyParent()
used by Apply IAS
|
MboSetRemote |
getMyPMSet()
used by Apply IAS
|
MboSetRemote |
getMySparePartSet()
used by Apply IAS
|
MboRemote |
getParentAsset(java.util.Date date)
For a given date, get parent for this asset
|
MboSetRemote |
getParents()
gets the MBO set the Asset object that is parent to this Asset object.
|
java.lang.String |
getPeriodTypeValue()
Transportation - Depreciation Module
returns the internal value of the PeriodType value from the
DEPPERIODTYPE domain.
|
int |
getPMMeterTally(MboRemote pmMeter)
used when deleting a meter from the asset to determine whether PM flags
PMASSETWOGEN and PMACTMETER need to be set to false.
|
MboSetRemote |
getPurchaseContractForAsset()
Returns the reference of the set of Purchase contracts that contain this asset.
|
MboRemote |
getRootParent()
Get the root parent for this asset
|
ServiceAddressRemote |
getServiceAddress() |
java.lang.Double |
getSpeed() |
java.lang.String |
getStatusListName()
Return the string "LOCASSETSTATUS".
|
LocationRemote |
getTagLocation()
Returns the location associated with this asset, if that location can be considered a tag id (i.e., it has only
one asset associated with it).
|
MboSetRemote |
getTop()
Get the Asset object that is at the top of this Asset object's hierarchy.
|
java.lang.String[] |
getValidateOrder()
validation order for asset attributes
|
MboSetRemote |
getWarranty() |
MboSetRemote |
getWarrantyContractForAsset()
Gets the warranty contract which contains the asset identifier passed in and also has the coverschildren flag
turned on.
|
java.util.List<Mbo> |
getWarrantyInfo(java.util.Date woDate,
boolean isParent)
For a given date, get warranty information for this asset
|
java.util.List<Mbo> |
getWarrantyInfo(java.util.Date woDate,
boolean isParent,
java.lang.String type)
For a given date, get warranty information for this asset
|
boolean |
hasAssetSpecBeenCreated()
IV90682:true means assetspec has been created, false means no.
|
boolean |
hasChildren()
Does this Asset object have children?
|
java.lang.Boolean |
hasCoords()
Check if this autolocatable object has coordinates filled (LAT,LONG)
|
void |
hasMeters()
Determines if the asset has meters associated with it, if not throws exception.
|
boolean |
hasParents()
Does this Asset object have a parent?
|
void |
hasReadings()
Determines if the asset has readings associated with it, if not throws exception.
|
boolean |
hasServiceAddress() |
void |
incrInvCost(double amount)
provides functionality to add to this Asset object's inventory cost from outside the object
|
void |
init()
initialization rountine.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
SafetyLexicon needs to behave differently depending on the relationship it was obtained with (hazards and
precautions, hazardous materials, or tagouts).
|
boolean |
intermediateAssetStatusExists(java.util.Date newDTStart,
java.util.Date mostRecentNotRunningAssetStatusDate) |
boolean |
isActivePM()
Check if there are active PMs
|
boolean |
isActiveRoutes()
Check if there are active routes
|
boolean |
isActiveSP()
Check if there are active SPs
|
boolean |
isAssetBeingCreatedViaApplyIAS() |
boolean |
isAssetSpecSetModified()
09-16727
|
boolean |
isDecommissionedLocation()
checks if this Asset object's location is a decommissioned location, that is, status is "DECOMMISSIONED"
|
boolean |
isGISDataReadonly()
Indicate if the current GIS entity is editable or not.
|
void |
isGLAccountPartialValid(java.lang.String glAccount)
checks if the given partial glaccount is valid
|
void |
isGLAccountValid(java.lang.String glAccount,
java.lang.String glType)
check if the given full glaccount is valid
|
void |
isGLAccountValid(java.lang.String glAccount,
java.lang.String glType,
java.lang.String orgId)
check if the given full glaccount is valid
|
boolean |
isInventoryLocation()
checks if this Asset object's location is an inventory-type location, that is, STOREROOM, LABOR or COURIER
|
boolean |
isInventoryTypeLocation()
checks if this Asset object's location is an inventory-type location, that is, STOREROOM, LABOR or COURIER.
|
void |
isLocAuthorized(MboRemote ofloc)
checks if the specified user allowed to access this store room
|
boolean |
isRotating()
checks if this Asset object is rotating
|
void |
issueAsset(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
boolean checkMismatch,
boolean checkOccupied,
boolean updateWo,
java.lang.String matUseTransID)
interface routine for Inventory Issues App.
|
boolean |
isTop()
Is this Asset object top level, that is, is it without a parent?
|
MboRemote |
lastAssetStatusForAssetnum()
returns the most recent AssetStatus mbo for this Asset object if and only if the most recent
AssetStatus.Isrunning = false.
|
MboRemote |
lastUpOrDownAssetStatusForAssetnum()
returns the most recent AssetStatus mbo for this Asset object regardless of the
AssetStatus.Isrunning value.
|
void |
managePMMeterTallyOnMeterDeleteUndelete(MboRemote pmMeter,
java.lang.String action)
used when deleting a meter from the asset to keep track of the number of PMMETERs
on PMs impacted by the deletion of the meter.
|
void |
modify()
called whenever a field is modified to update the changedate and changeby attributes
|
void |
moveAssetWithinInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String newBinnum,
java.lang.String ponum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
java.lang.String matRecTransID)
interface routine to move Asset.
|
void |
moveAssetWithinInventoryAcrossOrgFromHolding(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String newBinnum,
java.lang.String orgid,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
java.lang.String matRecTransID) |
void |
moveAssetWithinNonInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
java.lang.String toParent,
boolean checkMismatch,
boolean checkOccupied,
boolean updateWo)
interface routine for Move/Modify Asset.
|
void |
moveAssetWithinNonInventory(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String enterBy,
java.lang.String wonum,
java.lang.String toParent,
boolean checkMismatch,
boolean checkOccupied,
boolean updateWo)
interface routine for Move/Modify Asset.
|
void |
notifyAssetSpecValueChanged(boolean valueChanged)
09-16727
|
void |
queryDataSheets(PlusCWODSSetRemote woDsSet,
boolean loopCalibrations,
java.util.Date fromDate,
java.util.Date toDate)
Sets up the where clause of the given WO DS MBO Set to return the list of calibrations in a given time frame for
this location
|
void |
querySpotChecks(MboSetRemote plusWOSet,
java.util.Date fromDate,
java.util.Date toDate) |
void |
queryToolWoActuals(MboSetRemote plusWoSet,
java.util.Date fromDate,
java.util.Date toDate) |
void |
recordAssetStatusChange(MboRemote woMbo,
java.util.Date changeDate,
java.lang.String code,
boolean operational)
changes asset status from isrunning=true to isrunning=false or vice versa.
|
void |
reportDowntime(MboRemote woMbo,
java.util.Date startDate,
java.util.Date endDate,
double hoursDown,
java.lang.String code,
boolean operational)
updates and/or inserts AssetStatus records to complete the two-MBO cycle that brings a piece of Asset from a
"DOWN" status (that is, Isrunning=false) to an "UP" status (that is, Isrunning=true), and calculates the
downtime, that is, the elapsed time between these two MBOs.
|
void |
returnAsset(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
java.lang.String newBinnum,
java.lang.String ponum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
boolean updateWo,
java.lang.String matRecTransID)
interface routine for Inventory Returns App.
|
void |
returnAssetForAsset(java.lang.String newLocation,
java.lang.String memo,
java.util.Date dateMoved,
java.lang.String wonum,
java.lang.String newBinnum,
java.lang.String ponum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct,
boolean updateWo)
interface routine for Asset/Work Order.
|
void |
save()
saves this Asset object.
|
void |
saveGISData(java.lang.String address,
java.lang.String lat,
java.lang.String lng)
Implement the logic to save the GIS Data
|
void |
saveLBSData(java.lang.Double lat,
java.lang.Double lng,
java.lang.Double locationAccuracy,
java.lang.Double altitudeAccuracy,
java.lang.Double altitude,
java.lang.Double heading,
java.lang.Double speed) |
void |
setAssetAttributesForWO()
For a given workorder sets the asset attributes from the autoattrupdate table
|
void |
setAssetAttributesForWO(AutoAttrUpdateSetRemote autoAttrUpdateSet)
For a given workorder sets the asset attributes from the autoattrupdate table
|
void |
setAssetBeingReplacedByThisInSwap(java.lang.String[] assetBeingReplacedByThisInSwap)
Used when swapping assets between each others' operating locations when both assets are instances of the same
rotating item, and both locations have the same itemnum.
|
void |
setAssetnumOnRelated()
when assigning a value for assetnum while applying an Item Assembly Structure (IAS), propagate that value to
related mbos.
|
void |
setAssetSpecCreated(boolean created)
IV90682: set the flag.
|
void |
setChildren(boolean value)
set children attribute to be passed boolean value
|
void |
setDefaults(java.lang.String siteid,
java.lang.String storeloc)
Sets the value for siteid and storeloc from Default section of 'Issue Items from Storeroom'.
|
void |
setInCopyingAssetSpecReceiveRotating(boolean inCopying)
09-14550
|
void |
setItemNum(java.lang.String newItem,
java.lang.String itemSetID,
java.lang.String conditionCode)
changes the item number on this Asset object.
|
void |
setParent(java.lang.String newParent)
used by Item Assembly Structure (IAS) to set the value of the parent attribute
|
void |
setPhysicalLoc()
Additional Physical Location Field - Issue #93941
|
void |
setPoNumAssetMv(java.lang.String ponum)
Sets the Purchase order number when asset is moved in PO app
|
void |
setRememberToClearAssesInHash(boolean remberToClear)
09-15293: pre-store all the assets being moved in MultiAssetLocCI table in the hashtable
|
void |
setValuesForMboSet(MboSetRemote mboSet)
set new site and new assetnum for the mboset passed in Defined for Asset Move functionality
|
void |
setWoNumAssetMv(java.lang.String wonum)
Sets the workorder number when asset is moved in workorder app
|
MboSetRemote |
showHierarchy()
Get a MboSet of of this asset's ancestors.
|
void |
swapDepreciationSchedule()
Change the depreciation schedule between two assets.
|
void |
swapDepreciationScheduleValidate()
valide the depreciation schedule swap rules
|
void |
updateDesc()
sets the description field to the generated value obtained from the setup of the classstructureid (in asset
catalog setup) and the values/measureunits in the assetspec set.
|
void |
updateRelatedCI(java.lang.String newlocation,
java.lang.String newsite,
java.lang.String newassetnum,
boolean isChild,
java.lang.String ChangeBy,
java.lang.String ChangeDate) |
void |
validateAssetSite(java.lang.String asset_type,
java.lang.String siteid)
Validates if the asset and site combination already exists in the database
|
boolean |
validateCopySpecAcrossOrgSite(java.lang.String siteid)
Validates whether asset specifications can be copied across organizations or across sites
|
void |
validateMoveAcrossOrg(java.lang.String siteid)
Validates whether asset can be moved across organizations
|
void |
validateOperatingRange() |
MboSetRemote |
viewDataSheets(MboRemote newDS) |
java.util.Vector |
walkUpHierarchy()
Get the Vector of of this asset's ancestors.
|
void |
zeroCosts(boolean ytd,
boolean total)
sets Asset cost attributes to 0
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
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, 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, 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, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, 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, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
public static java.util.Vector invBalVector
public static java.util.Vector inventoryVector
public boolean newAssetForAssetMove
public boolean matRecTransAlreadyCreated
public boolean assetTransAlreadyCreated
public boolean createNewAssetNum
public java.util.Vector assetsMovedDirectly
public boolean sameAssetMovedBackForAssetMove
public boolean isFromAssetTemplate
public static final java.lang.String PLUSC_OP_RGE_FROM
public static final java.lang.String PLUSC_OP_RGE_TO
public static final java.lang.String PLUSC_IS_CON_DESC
public static final java.lang.String PLUSC_IS_CON_DESC_LONGDESC
public static final java.lang.String PLUSC_IS_CONTAM
public static final java.lang.String PLUSC_IS_MTE_CLASS
public static final java.lang.String PLUSC_IS_MTE
public static final java.lang.String PLUSC_DUE_DATE_NP
public static final java.lang.String PLUSC_DUE_DATE
public static final java.lang.String PLUSC_IS_CALIBRATION
public boolean rollStatusToChildren
public Asset(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
Mbo
initFieldFlagsOnMbo
in class Mbo
MXException
public java.util.Date getAssetMeterNowDate() throws MXException, java.rmi.RemoteException
getAssetMeterNowDate
in interface AssetRemote
MXException
java.rmi.RemoteException
psdi.app.asset.AssetMeter.getPreviousMeterReading()
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void updateDesc() throws MXException, java.rmi.RemoteException
updateDesc
in interface AssetRemote
MXException
java.rmi.RemoteException
updateDesc()
public void save() throws MXException, java.rmi.RemoteException
MXApplicationException("asset",
- "ReqFieldItem") if the item field is empty for inventory locationMXException
java.rmi.RemoteException
public MboRemote createAssetTrans() throws MXException, java.rmi.RemoteException
createAssetTrans
in interface AssetRemote
MXException
java.rmi.RemoteException
createAssetTrans()
public MboRemote createMatRecTrans() throws MXException, java.rmi.RemoteException
createMatRecTrans
in interface AssetRemote
MXException
java.rmi.RemoteException
createMatRecTrans()
public void delete(long modifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
modifier
- 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 canDelete() throws MXException, java.rmi.RemoteException
WORKORDER, SERVICECONTRACT, POLINE, PRLINE, MRLINE, INVOICECOST, JPASSETSPLINK, LOCKOUT, MATUSETRANS, SAFETYLEXICON, SPRELATEDASSET, SPWORKASSET, TAGOUT, PM, WORKORDER*, POLINE*, PRLINE* or MRLINE*.
*if the WORKORDER, PO, PR or MR has a status of CANCEL or CLOSE, that is, if historyflag=true, then asset deletion is not stopped
Additionally, an Asset object that has children,cannot be deleted
canDelete
in class Mbo
MXApplicationException("asset","assetexistintables",params)
- if Asset is referenced in any of above
listed tablesMXApplicationException("asset","assetexistsintables_active")
- if Asset is on an open work order, an
open purchase order, an open purchase requisition or an open material requestMXApplicationException("asset","subrelation",params)
- if Asset has childrenMXException
java.rmi.RemoteException
delete
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public boolean isInventoryTypeLocation() throws MXException, java.rmi.RemoteException
isInventoryTypeLocation
in interface AssetRemote
MXException
java.rmi.RemoteException
isInventoryTypeLocation()
public boolean isInventoryLocation() throws MXException, java.rmi.RemoteException
isInventoryLocation
in interface AssetRemote
MXException
java.rmi.RemoteException
public boolean isDecommissionedLocation() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getBinnum() throws MXException, java.rmi.RemoteException
MXApplicationException("asset","nosuchinventory")
- if the combination does not exist in inventoryMXException
java.rmi.RemoteException
FldAssetLocation.action()
,
FldAssetItemnum.action()
public void createHistoryForWorkOrder(java.lang.String wonum) throws MXException, java.rmi.RemoteException
createHistoryForWorkOrder
in interface AssetRemote
wonum
- MXException
java.rmi.RemoteException
createHistoryForWorkOrder(String wonum)
public void setChildren(boolean value) throws MXException, java.rmi.RemoteException
setChildren
in interface AssetRemote
value
- - boolean valueMXException
java.rmi.RemoteException
setChildren(boolean value)
public boolean isRotating() throws MXException, java.rmi.RemoteException
isRotating
in interface AssetRemote
MXException
java.rmi.RemoteException
isRotating()
public void recordAssetStatusChange(MboRemote woMbo, java.util.Date changeDate, java.lang.String code, boolean operational) throws MXException, java.rmi.RemoteException
recordAssetStatusChange
in interface AssetRemote
woMbo
- work order mbo from which this object has been createdchangeDate
- date on which the status change is occurring. This value is from the MXServer by default. The
UI can override the default.code
- reason for reported downtime. Valid values are from the DOWNCODE value list.operational
- boolean that flags an asset status change from isrunning = true to isrunning = false as being
Operational, that is, a time when the asset is normally in use, or non-Operational, that is, a time when
the asset is not normally in use or its being off line does not affect production.MXApplicationException("asset","cannotfindworkorder")
- if the MboRemote passed in woMbo is not a work
order mboMXApplicationException("asset","providechangedate")
- if changeDate is nullMXException
java.rmi.RemoteException
recordAssetStatusChange(MboRemote woMbo, Date changedate, String code, boolean operational)
public void reportDowntime(MboRemote woMbo, java.util.Date startDate, java.util.Date endDate, double hoursDown, java.lang.String code, boolean operational) throws MXException, java.rmi.RemoteException
when reporting asset down time and Asset.Isrunning before the down time report = ... |
---|
|
reportDowntime
in interface AssetRemote
woMbo
- work order mbo from which this object has been created
startDate
- start of the down time interval. This can be defaulted to one of three values:
|
|
The UI can override this default. |
endDate
- end of the down time interval. This value is from the MXServer by default. The UI can override the
default.
hoursDown
- calculation based on interval between startDate and endDate and this asset object's calendar. If
object does not have a calendar, that is, Calnum is null, then calculation is just the startDate - endDate
interval. UI can, however, override the calculated value. hoursDown may not reflect the actual startDate -
endDate interval for two reasons:
|
code
- reason for reported downtime. Valid values are from the DOWNCODE value list. Code should be null when
Isrunning is going from true to false.operational
- boolean that flags an asset status change from isrunning = true to isrunning = false as being
Operational, that is, a time when the asset is normally in use, or non-Operational, that is, a time when
the asset is not normally in use or its being off line does not affect production.MXApplicationException("asset","cannotfindworkorder")
- if the MboRemote passed in woMbo is not a work
order mboMXApplicationException("asset","downtimedatereq")
- if startDate or endDate is nullMXApplicationException("asset","downtimeenddate")
- if startDate is greater than the endDate.MXException
java.rmi.RemoteException
reportDowntime(MboRemote woMbo, Date startDate, Date endDate, double hoursDown, String code, boolean operational)
public MboRemote lastAssetStatusForAssetnum() throws MXException, java.rmi.RemoteException
lastAssetStatusForAssetnum
in interface AssetRemote
MXApplicationException("asset","assetstatupderror")
- if AssetStatus mbo Isrunning attribute is true, or
if attempt is being made to update this attribute.MXException
java.rmi.RemoteException
void recordAssetStatusChange(MboRemote woMbo, Date changeDate, String code, boolean operational)
,
void reportDowntime(MboRemote woMbo, Date startDate, Date endDate, double hoursDown, String
code,boolean operational)
public MboRemote lastUpOrDownAssetStatusForAssetnum() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean intermediateAssetStatusExists(java.util.Date newDTStart, java.util.Date mostRecentNotRunningAssetStatusDate) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double calculateDownTime(java.util.Date lastChangeDate, java.util.Date currentChangeDate) throws MXException, java.rmi.RemoteException
calculateDownTime
in interface AssetRemote
lastChangeDate
- start of down time intervalcurrentChangeDate
- end of down time intervalMXException
java.rmi.RemoteException
double calculateDownTime(Date lastChangeDate, Date currentChangeDate, String calnum)
public void issueAsset(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, boolean checkMismatch, boolean checkOccupied, boolean updateWo, java.lang.String matUseTransID) throws MXException, java.rmi.RemoteException
issueAsset
in interface AssetRemote
newLocation
- new location mbo (move to location)memo
- memo fielddateMoved
- date movedwonum
- work order numbercheckMismatch
- check if rotating asset matches location's item number. If mismatch has been found and the
flag is true, stop the move asset process. If the flag is false, ignore the mismatch and continue the move
asset process.checkOccupied
- check if the location is occupied by certain item. If location is occupied and the flag is
true, stop the move asset process. If the flag is false, ignore fact that location is already occupied and
continue the move asset process.updateWo
- if true, update priorities on open work ordermatUseTransID
- MatUseTrans IDMXException
java.rmi.RemoteException
issueAsset(String newLocation, String memo, Date dateMoved, String wonum, boolean checkMismatch, boolean checkOccupied, boolean updateWo, String matUseTransID)
public void returnAsset(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, java.lang.String newBinnum, java.lang.String ponum, java.lang.String glCreditAcct, java.lang.String glDebitAcct, boolean updateWo, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
returnAsset
in interface AssetRemote
newLocation
- - new location mbo (move to location)memo
- - memo fielddateMoved
- - date movedwonum
- - work order numbernewBinnum
- - new binnum (move to binnum)ponum
- - po numberglCreditAcct
- - credit gl accountglDebitAcct
- - debit gl accountupdateWo
- - update priorities on open work order if the flag is true.matRecTransID
- - MatRecTrans IDMXException
java.rmi.RemoteException
returnAsset(String newLocation, String memo, Date dateMoved, String wonum, String newBinnum, String ponum, String glCreditAcct, String glDebitAcct, boolean updateWo, String matRecTransID)
public void canReturnAsset(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, java.lang.String newBinnum, java.lang.String ponum, java.lang.String glCreditAcct, java.lang.String glDebitAcct, boolean updateWo, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
newLocation
- - new location mbo (move to location)memo
- - memo fielddateMoved
- - date movedwonum
- - work order numbernewBinnum
- - new binnum (move to binnum)ponum
- - po numberglCreditAcct
- - credit gl accountglDebitAcct
- - debit gl accountupdateWo
- - update priorities on open work order if the flag is true.matRecTransID
- - MatRecTrans IDMXApplicationException("asset","notvalidrotatingasset")
- if the Asset object's itemnum is null, or if
the itemnum's Item object does not have its rotating attribute set to true.MXException
java.rmi.RemoteException
returnAsset
public void returnAssetForAsset(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, java.lang.String newBinnum, java.lang.String ponum, java.lang.String glCreditAcct, java.lang.String glDebitAcct, boolean updateWo) throws MXException, java.rmi.RemoteException
returnAssetForAsset
in interface AssetRemote
newLocation
- - new location mbo (move to location)memo
- - memo fielddateMoved
- - date movedwonum
- - work order numbernewBinnum
- - new binnum (move to binnum)ponum
- - po numberglCreditAcct
- - credit gl accountglDebitAcct
- - debit gl accountupdateWo
- - update priorities on open work order if the flag is trueMXException
java.rmi.RemoteException
AssetSet.moveAsset()
public void moveAssetWithinNonInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String enterBy, java.lang.String wonum, java.lang.String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo) throws MXException, java.rmi.RemoteException
moveAssetWithinNonInventory
in interface AssetRemote
newLocation
- new location mbo (move to location)memo
- memo fielddateMoved
- date movedenterBy
- user entering move transactionwonum
- work order numbertoParent
- new parentcheckMismatch
- check if rotating asset matches location's item number.checkOccupied
- check if the location is occupied by certain item. updateWo
- update priorities on open work order if the flag is true.MXException
java.rmi.RemoteException
moveAssetWithinNonInventory(String newLocation, String memo, Date dateMoved, String enterBy, String wonum, String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo)
public void canMoveAssetWithinNonInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String enterBy, java.lang.String wonum, java.lang.String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo) throws MXException, java.rmi.RemoteException
newLocation
- new location mbo (move to location)memo
- memo fielddateMoved
- date movedenterBy
- user entering move transactionwonum
- work order numbertoParent
- new parentcheckMismatch
- check if rotating asset matches location's item number.checkOccupied
- check if the location is occupied by certain item. updateWo
- update priorities on open work order if the flag is true.MXException
java.rmi.RemoteException
moveAssetWithinNonInventory
public void moveAssetWithinNonInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, java.lang.String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo) throws MXException, java.rmi.RemoteException
moveAssetWithinNonInventory
in interface AssetRemote
newLocation
- new location mbo (move to location)memo
- memo fielddateMoved
- date movedwonum
- work order numbertoParent
- new parentcheckMismatch
- check if rotating asset matches location's item number.checkOccupied
- check if the location is occupied by certain item. updateWo
- update priorities on open work order if the flag is true.MXException
java.rmi.RemoteException
moveAssetWithinNonInventory(String newLocation, String memo, Date dateMoved, String wonum, String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo)
public void canMoveAssetWithinNonInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String wonum, java.lang.String toParent, boolean checkMismatch, boolean checkOccupied, boolean updateWo) throws MXException, java.rmi.RemoteException
newLocation
- new location mbo (move to location)memo
- memo fielddateMoved
- date movedwonum
- work order numbertoParent
- new parentcheckMismatch
- check if rotating asset matches location's item number.checkOccupied
- check if the location is occupied by certain item. updateWo
- update priorities on open work order if the flag is true.MXException
java.rmi.RemoteException
moveAssetWithinNonInventory
public void moveAssetWithinInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String newBinnum, java.lang.String ponum, java.lang.String glCreditAcct, java.lang.String glDebitAcct, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
moveAssetWithinInventory
in interface AssetRemote
newLocation
- - new location mbo (move to location)memo
- - memo fielddateMoved
- - date movednewBinnum
- - new binnum (move to binnum)ponum
- - po numberglCreditAcct
- - credit gl accountglDebitAcct
- - debit gl accountmatRecTransID
- - MatRecTrans IDMXException
java.rmi.RemoteException
moveAssetWithinInventory(String newLocation, String memo, Date dateMoved, String newBinnum, String ponum, String glCreditAcct, String glDebitAcct, String matRecTransID)
public void moveAssetWithinInventoryAcrossOrgFromHolding(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String newBinnum, java.lang.String orgid, java.lang.String glCreditAcct, java.lang.String glDebitAcct, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
moveAssetWithinInventoryAcrossOrgFromHolding
in interface AssetRemote
MXException
java.rmi.RemoteException
moveAssetWithinInventoryAcrossOrgFromHolding(String newLocation, String memo, Date dateMoved, String newBinnum, String orgid, String glCreditAcct, String glDebitAcct, String matRecTransID)
public void canMoveAssetWithinInventory(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String newBinnum, java.lang.String ponum, java.lang.String glCreditAcct, java.lang.String glDebitAcct, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
newLocation
- - new location mbo (move to location)memo
- - memo fielddateMoved
- - date movednewBinnum
- - new binnum (move to binnum)ponum
- - po numberglCreditAcct
- - credit gl accountglDebitAcct
- - debit gl accountmatRecTransID
- - MatRecTrans IDMXException
java.rmi.RemoteException
moveAssetWithinInventory
public void canMoveAssetWithinInventoryCrossOrgFromHolding(java.lang.String newLocation, java.lang.String memo, java.util.Date dateMoved, java.lang.String newBinnum, java.lang.String orgid, java.lang.String glCreditAcct, java.lang.String glDebitAcct, java.lang.String matRecTransID) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void isLocAuthorized(MboRemote ofloc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
canReturnAsset
,
canMoveAssetWithinInventory
public void isGLAccountValid(java.lang.String glAccount, java.lang.String glType) throws MXException, java.rmi.RemoteException
glAccount
- glType
- Type of Account credit or debitMXApplicationException("asset","glaccountnotfull",params)
- if the given full gl account is not validMXException
java.rmi.RemoteException
canReturnAsset
,
canMoveAssetWithinInventory
public void isGLAccountValid(java.lang.String glAccount, java.lang.String glType, java.lang.String orgId) throws MXException, java.rmi.RemoteException
glAccount
- glType
- Type of Account credit or debitorgId
- MXApplicationException("asset","glaccountnotfull",params)
- if the given full gl account is not validMXException
java.rmi.RemoteException
canReturnAsset
,
canMoveAssetWithinInventory
public void isGLAccountPartialValid(java.lang.String glAccount) throws MXException, java.rmi.RemoteException
glAccount
- MXApplicationException("asset","glaccountnotfull",params)
- if the given partial gl account is not validMXException
java.rmi.RemoteException
psdi.app.asset.MoveDetails.setMoveDetails
public void incrInvCost(double amount) throws MXException, java.rmi.RemoteException
incrInvCost
in interface AssetRemote
amount
- amount to add to invcostMXException
java.rmi.RemoteException
incrInvCost(double amount)
public boolean isTop() throws MXException, java.rmi.RemoteException
isTop
in interface HierarchicalMboRemote
MXException
java.rmi.RemoteException
public boolean hasChildren() throws MXException, java.rmi.RemoteException
hasChildren
in interface HierarchicalMboRemote
MXException
java.rmi.RemoteException
public boolean hasParents() throws MXException, java.rmi.RemoteException
hasParents
in interface HierarchicalMboRemote
MXException
java.rmi.RemoteException
public MboSetRemote getChildren() throws MXException, java.rmi.RemoteException
getChildren
in interface AssetRemote
MXException
java.rmi.RemoteException
public MboSetRemote getParents() throws MXException, java.rmi.RemoteException
getParents
in interface AssetRemote
MXException
java.rmi.RemoteException
public MboSetRemote showHierarchy() throws MXException, java.rmi.RemoteException
showHierarchy
in interface AssetRemote
MXException
java.rmi.RemoteException
showHierarchy()
public java.util.Vector walkUpHierarchy() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getTop() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getHierarchies() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean alreadyAppliedIAS() throws MXException, java.rmi.RemoteException
alreadyAppliedIAS
in interface AssetRemote
MXException
java.rmi.RemoteException
alreadyAppliedIAS()
public void canApplyIAS() throws MXException, java.rmi.RemoteException
canApplyIAS
in interface AssetRemote
MXException
java.rmi.RemoteException
canApplyIAS()
public void applyIAS(boolean autokey) throws MXException, java.rmi.RemoteException
applyIAS
in interface AssetRemote
autokey
- if true, Asset method autoKeyAll will be called. This is to allow the MAXIMO Integration Gateway
(MIG) to autokey all the assetnums when it applies an IAS. The autokey methods can be called independently
if this parameter is false.MXException
java.rmi.RemoteException
applyIAS(boolean autokey)
public void applyIASAutoNumAll() throws MXException, java.rmi.RemoteException
applyIASAutoNumAll
in interface AssetRemote
MXException
java.rmi.RemoteException
psdi.app.asset.asset#applyIASAutoNumAll()
public MboRemote applyIASCreateChild(MboRemote itemStruct, boolean autokey) throws MXException, java.rmi.RemoteException
applyIASCreateChild
in interface AssetRemote
itemStruct
- the asset.item's rotating child.autokey
- true to autokey the new asset and the new pms.MXException
java.rmi.RemoteException
psdi.app.asset.Asset#applyIASCreate(MboRemote itemStruct,boolean autokey)
public boolean isAssetBeingCreatedViaApplyIAS() throws java.rmi.RemoteException
isAssetBeingCreatedViaApplyIAS
in interface AssetRemote
java.rmi.RemoteException
isAssetBeingCreatedViaApplyIAS()
public MboSetRemote applyIASGenPMs(boolean autokey) throws MXException, java.rmi.RemoteException
applyIASGenPMs
in interface AssetRemote
autokey
- true to autokey the new pms.MXException
java.rmi.RemoteException
applyIASGenPMs(boolean autokey)
public MboSetRemote applyIASGenSpareParts(MboSetRemote itemStructSet) throws MXException, java.rmi.RemoteException
applyIASGenSpareParts
in interface AssetRemote
autokey
- true to autokey the new pms.MXException
java.rmi.RemoteException
applyIASGenSpareParts(MboSetRemote itemStruct)
public void autoKeyAll(boolean doChildren) throws MXException, java.rmi.RemoteException
autoKeyAll
in interface AssetRemote
doChildren
- if true, assetnums and pmnums will be automatically autokeyed and propagated to related objects
for all the rotating items from the top to the bottom of the Item Assembly Structure. If false, then the
autokey-related methods will need to be called independently for each rotating itemnum in the IAS to
generate and propagate the assetnums and pmnums.MXException
java.rmi.RemoteException
autoKeyAll(boolean doChildren)
public void setAssetnumOnRelated() throws MXException, java.rmi.RemoteException
setAssetnumOnRelated
in interface AssetRemote
MXException
java.rmi.RemoteException
setAssetnumOnRelated()
public void generateAutoKey() throws java.rmi.RemoteException, MXException
generateAutoKey
in interface MboRemote
generateAutoKey
in class Mbo
java.rmi.RemoteException
MXException
MboValue.autoKey()
,
MboValue.generateUniqueID()
public void autoKeyAssetnumForChildSet(boolean doChildren) throws MXException, java.rmi.RemoteException
autoKeyAssetnumForChildSet
in interface AssetRemote
doChildren
- if true, this method walks from the top to the bottom of the IAS performing its functionality
on each nodeMXException
java.rmi.RemoteException
autoKeyAssetnumForChildSet(boolean doChildren)
public void autoKeyPmnumForSet(boolean doChildren) throws MXException, java.rmi.RemoteException
autoKeyPmnumForSet
in interface AssetRemote
doChildren
- if true, this method walks from the top to the bottom of the IAS performing its functionality
on each nodeMXException
java.rmi.RemoteException
autoKeyPmnumForSet(boolean doChildren)
public void setParent(java.lang.String newParent) throws MXException, java.rmi.RemoteException
setParent
in interface AssetRemote
newParent
- String value that represents this Asset object's parent assetnumMXException
java.rmi.RemoteException
setChildrenFlag
public void acceptMyNewSet(MboSetRemote myNewSet) throws MXException, java.rmi.RemoteException
acceptMyNewSet
in interface AssetRemote
myNewSet
- SparePart, PM or child Asset set created in ItemStructMXException
java.rmi.RemoteException
acceptMyNewSet(MboSetRemote myNewSet)
public MboSetRemote getMyChildAssetSet() throws MXException, java.rmi.RemoteException
getMyChildAssetSet
in interface AssetRemote
MXException
java.rmi.RemoteException
acceptMyNewSet
public MboSetRemote getMySparePartSet() throws MXException, java.rmi.RemoteException
getMySparePartSet
in interface AssetRemote
MXException
java.rmi.RemoteException
acceptMyNewSet
public MboSetRemote getMyPMSet() throws MXException, java.rmi.RemoteException
getMyPMSet
in interface AssetRemote
MXException
java.rmi.RemoteException
acceptMyNewSet
public MboRemote getMyParent() throws MXException, java.rmi.RemoteException
getMyParent
in interface AssetRemote
MXException
java.rmi.RemoteException
getMyParent()
public MboRemote getChild(int row) throws MXException, java.rmi.RemoteException
getChild
in interface AssetRemote
row
- index to the set of asset children created in ItemStructMXException
java.rmi.RemoteException
getChild(int row)
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void zeroCosts(boolean ytd, boolean total) throws MXException, java.rmi.RemoteException
zeroCosts
in interface AssetRemote
ytd
- zero out this Asset's year-to-date cost?total
- zero out this Asset's total cost?MXException
java.rmi.RemoteException
zeroCosts(boolean ytd,boolean total)
public void setItemNum(java.lang.String newItem, java.lang.String itemSetID, java.lang.String conditionCode) throws MXException, java.rmi.RemoteException
setItemNum
in interface AssetRemote
MXException
java.rmi.RemoteException
setItemNum(String newItem, String itemSetID, String conditionCode)
public void appendDescription(java.lang.String descSpec) throws MXException, java.rmi.RemoteException
descSpec
- the numvalue/alnvalue + measureunitid/abbreviation from one AssetSpec objectMXException
java.rmi.RemoteException
public MboSetRemote generateAssetSpec() throws java.rmi.RemoteException, MXException
generateAssetSpec
in interface AssetRemote
java.rmi.RemoteException
MXException
generateAssetSpec()
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface AssetRemote
java.rmi.RemoteException
MXException
clearClassification()
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
Related objects that will also be duplicated are:
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
psdi.mbo.Mbo#isAutoKeyed.
public void copySpareParts(MboSetRemote spareParts) throws MXException, java.rmi.RemoteException
copySpareParts
in interface AssetRemote
spareParts
- Spare Part Mbo Set to copy to this Asset object. Only those MBOs that have been selected will
be copied.MXException
java.rmi.RemoteException
psdi.mbo.MboSet#copy(MboSetRemote, String, String)
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
relationName
- The relationship name of the related MboSet which need to initialize.mboSet
- The related MboSet which need to initialize.MXException
java.rmi.RemoteException
SafetyLexiconSet.setThisRelationName(java.lang.String)
public void validateAssetSite(java.lang.String asset_type, java.lang.String siteid) throws MXException, java.rmi.RemoteException
validateAssetSite
in interface AssetRemote
assettype
- Asset type, parent or child , used in error messagesiteid
- New site specified by the userMXApplicationException("asset","assetsiteexists")
- if the asset does exists in the given siteMXException
java.rmi.RemoteException
psdi.app.asset.Asset#validateAssetSite()
public void checkForAssetSite(java.lang.String siteid) throws MXException, java.rmi.RemoteException
checkForAssetSite
in interface AssetRemote
siteid
- New site specified by the userMXException
java.rmi.RemoteException
psdi.app.asset.Asset#checkForAssetSite()
public void checkForChildrenAssetSite(java.lang.String siteid) throws MXException, java.rmi.RemoteException
checkForChildrenAssetSite
in interface AssetRemote
siteid
- Site specified by the userMXException
java.rmi.RemoteException
psdi.app.asset.Asset#checkForChildrenAssetSite()
public void checkForNewAssetSite(boolean replaceAssetFlag) throws MXException, java.rmi.RemoteException
checkForNewAssetSite
in interface AssetRemote
replaceAssetFlag
- Indicates if it is replace assetMXException
java.rmi.RemoteException
checkForNewAssetSite(boolean replaceAssetFlag)
public void setWoNumAssetMv(java.lang.String wonum) throws MXException, java.rmi.RemoteException
wonum
- Workorder number where asset is movedMXException
java.rmi.RemoteException
public void setPoNumAssetMv(java.lang.String ponum) throws MXException, java.rmi.RemoteException
ponum
- Purchase order number where asset is movedMXException
java.rmi.RemoteException
public boolean getClearDupSeqNumsOnMeterGroupChange() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkForDuplicateMeterSequenceValues() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void canChangeStatus(java.lang.String changeToStatus, long accessModifier) throws MXException, java.rmi.RemoteException
canChangeStatus
in class StatefulMbo
changeToStatus
- The new desired status. This is the translated status (that is, the status code as it would
have been entered by a user, or valuelist.value
), not the internal status value (
valuelist.maxvalue
).accessModifier
- If set to NOACCESSCHECK, allows status changes when not normally allowed.MXException
- Thrown if the status cannot be changed.java.rmi.RemoteException
public void changeStatus(java.lang.String status, boolean rollToAllChildren, boolean removeFromActiveRoutes, boolean removeFromActiveSP, boolean changePMStatus) throws MXException, java.rmi.RemoteException
changeStatus
in interface AssetRemote
MXException
java.rmi.RemoteException
changeStatus(java.lang.String,boolean,boolean,boolean,boolean)
public void changeStatus(java.lang.String status, boolean rollToAllChildren, boolean removeFromActiveRoutes, boolean removeFromActiveSP, boolean changePMStatus, java.util.Hashtable changedStatusPMs, LocationRemote topLevelLocationOnStatusChangeFromLocStatChangeRollDown) throws MXException, java.rmi.RemoteException
status
- New statusrollToAllChildren
- Flag indicate if the status is rolled to all childrenremoveFromActiveRoutes
- Flag indicates if asset reference from all active routes need to be removedremoveFromActiveSP
- Flag indicates if asset reference from all active safety plans need to be removedchangePMStatus
- Flag indicates if asset reference from all active PM need to be removedchangedStatusPMs
- Hashtable with the PM's whose status is changedtopLevelLocationOnStatusChangeFromLocStatChangeRollDown
- top-level location on location status change that is
rolled down the location hierarchy and to any asset hierarchies in the locations. This top-level location is used to
keep track of the asset status changes for the entire hierarchy via
Location.trackStatusChangedAssetInLocations(long)
and
{@link psdi.app.location.Location#hasAssetStatusChangedAlready(long)MXException
java.rmi.RemoteException
Location.trackStatusChangedAssetInLocations(long)
,
Location.hasAssetStatusChangedAlready(long)
public void changeStatus(java.lang.String status, boolean rollToAllChildren, boolean removeFromActiveRoutes, boolean removeFromActiveSP, boolean changePMStatus, java.util.Hashtable changedStatusPMs) throws MXException, java.rmi.RemoteException
changeStatus
in interface AssetRemote
status
- New statusrollToAllChildren
- Flag indicate if the status is rolled to all childrenremoveFromActiveRoutes
- Flag indicates if asset reference from all active routes need to be removedremoveFromActiveSP
- Flag indicates if asset reference from all active safety plans need to be removedchangePMStatus
- Flag indicates if asset reference from all active PM need to be removedchangedStatusPMs
- Hashtable with the PM's whose status is changedMXException
java.rmi.RemoteException
changeStatus(java.lang.String,boolean,boolean,boolean,boolean,java.util.Hashtable)
public boolean isActiveRoutes() throws MXException, java.rmi.RemoteException
isActiveRoutes
in interface AssetRemote
MXException
java.rmi.RemoteException
isActiveRoutes()
public boolean isActiveSP() throws MXException, java.rmi.RemoteException
isActiveSP
in interface AssetRemote
MXException
java.rmi.RemoteException
isActiveSP()
public boolean isActivePM() throws MXException, java.rmi.RemoteException
isActivePM
in interface AssetRemote
MXException
java.rmi.RemoteException
isActivePM()
public Asset createAssetToBeMoved() throws MXException, java.rmi.RemoteException
AssetSetRemote.MOVEDASSET
.
When an asset is moved from a site, the asset record is not deleted. Its status is set to DECOMMISSIONED and its ASSET.MOVED flag is set to true. When the asset returns to the site, the ASSET.MOVED flag is set to false and the status is changed to NOT READY.
MXException
java.rmi.RemoteException
public void setValuesForMboSet(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
mboSet
- MboSetMXException
java.rmi.RemoteException
public void validateMoveAcrossOrg(java.lang.String siteid) throws MXException, java.rmi.RemoteException
validateMoveAcrossOrg
in interface AssetRemote
MXApplicationException("asset","notAcrossOrg")
MXException
java.rmi.RemoteException
validateMoveAcrossOrg(String siteid)
public boolean validateCopySpecAcrossOrgSite(java.lang.String siteid) throws MXException, java.rmi.RemoteException
siteid
- New siteMXException
java.rmi.RemoteException
public void setAssetAttributesForWO() throws MXException, java.rmi.RemoteException
setAssetAttributesForWO
in interface AssetRemote
MXException
java.rmi.RemoteException
setAssetAttributesForWO()
public void setAssetAttributesForWO(AutoAttrUpdateSetRemote autoAttrUpdateSet) throws MXException, java.rmi.RemoteException
setAssetAttributesForWO
in interface AssetRemote
autoAttrUpdateSet
- autoattrupdateSet for a given workorder and assetMXException
java.rmi.RemoteException
setAssetAttributesForWO(AutoAttrUpdateSetRemote autoAttrUpdateSet)
public java.util.List<Mbo> getWarrantyInfo(java.util.Date woDate, boolean isParent) throws MXException, java.rmi.RemoteException
getWarrantyInfo
in interface AssetRemote
Date
- woDate date warranty applis toisParent
- true if is a parent assetMXException
java.rmi.RemoteException
getWarrantyInfo(Date, boolean)
public java.util.List<Mbo> getWarrantyInfo(java.util.Date woDate, boolean isParent, java.lang.String type) throws MXException, java.rmi.RemoteException
Date
- woDate date warranty applis toisParent
- true if is a parent assetMXException
java.rmi.RemoteException
public MboRemote getParentAsset(java.util.Date date) throws MXException, java.rmi.RemoteException
Date
- when the asset has the parentMXException
java.rmi.RemoteException
public MboRemote getRootParent() throws MXException, java.rmi.RemoteException
getRootParent
in interface AssetRemote
MXException
java.rmi.RemoteException
getRootParent()
public void assetMoved() throws MXException, java.rmi.RemoteException
assetMoved
in interface AssetRemote
MXApplicationException
- (movedAsset) thrown if the asset is movedMXException
java.rmi.RemoteException
assetMoved()
public void childInBundle() throws MXException, java.rmi.RemoteException
childInBundle
in interface AssetRemote
MXApplicationException
- (movedAsset) thrown if the asset is the child and is part of hierarchyMXException
java.rmi.RemoteException
childInBundle()
public void addMoreAssetsToSet(MboSetRemote selectedMoreMboSet, MboSetRemote selectedMboSet) throws java.rmi.RemoteException, MXException
addMoreAssetsToSet
in interface AssetRemote
selectedMoreMboSet
- the more selected assetsselectedMboSet
- the selected assetsjava.rmi.RemoteException
MXException
psdi.app.asset.Asset#addMoreAssetsToSet()
public void hasMeters() throws MXException, java.rmi.RemoteException
hasMeters
in interface AssetRemote
MXApplicationException
- (noMeterForAsset) thrown if the asset does not have metersMXException
java.rmi.RemoteException
hasMeters()
public void hasReadings() throws MXException, java.rmi.RemoteException
hasReadings
in interface AssetRemote
MXApplicationException
- (noReadingsForAsset) thrown if the asset does not have readingsMXException
java.rmi.RemoteException
hasReadings()
public java.lang.String getIssueUnitForItem(java.lang.String location) throws MXException, java.rmi.RemoteException
getIssueUnitForItem
in interface AssetRemote
location
- Location of asset or the newlocation of the assetMXException
java.rmi.RemoteException
psdi.app.asset.Asset#getIssueUnitForItem()
public MboSetRemote getLeaseContractForAsset() throws MXException, java.rmi.RemoteException
getLeaseContractForAsset
in interface AssetRemote
MXException
java.rmi.RemoteException
getLeaseContractForAsset()
public MboSetRemote getWarrantyContractForAsset() throws MXException, java.rmi.RemoteException
getWarrantyContractForAsset
in interface AssetRemote
assetId
- - The asset identifier.MXException
java.rmi.RemoteException
getWarrantyContractForAsset()
public MboSetRemote getPurchaseContractForAsset() throws MXException, java.rmi.RemoteException
getPurchaseContractForAsset
in interface AssetRemote
MXException
java.rmi.RemoteException
getPurchaseContractForAsset()
public MboSetRemote getWarranty() throws MXException, java.rmi.RemoteException
getWarranty
in interface AssetRemote
MXException
java.rmi.RemoteException
getWarranty()
public void autoWogen() throws MXException, java.rmi.RemoteException
autoWogen
in interface AssetRemote
MXException
java.rmi.RemoteException
autoWogen()
public void autoWogen(MboRemote assetMeter) throws MXException, java.rmi.RemoteException
autoWogen
in interface AssetRemote
MXException
java.rmi.RemoteException
autoWogen(MboRemote)
public void setDefaults(java.lang.String siteid, java.lang.String storeloc) throws MXException, java.rmi.RemoteException
setDefaults
in interface AssetRemote
MXException
java.rmi.RemoteException
psdi.app.asset.Asset#setDefaults()
public java.lang.String getDefSiteId() throws MXException, java.rmi.RemoteException
getDefSiteId
in interface AssetRemote
MXException
java.rmi.RemoteException
getDefSiteId()
public java.lang.String getDefStoreloc() throws MXException, java.rmi.RemoteException
getDefStoreloc
in interface AssetRemote
MXException
java.rmi.RemoteException
getDefStoreloc()
public void createTicket(MboRemote tkMbo) throws MXException, java.rmi.RemoteException
createTicket
in interface AssetRemote
The
- ticket mbo inserted for this asset.MXException
java.rmi.RemoteException
psdi.app.asset.Asset#createTicket()
public void createWO(MboRemote workorderMbo) throws MXException, java.rmi.RemoteException
createWO
in interface AssetRemote
The
- workorder mbo inserted for this assetMXException
java.rmi.RemoteException
psdi.app.asset.Asset#createWorkorder()
public void copyAssetToCollectDetailsSet(MboSetRemote collectionSet) throws MXException, java.rmi.RemoteException
copyAssetToCollectDetailsSet
in interface AssetRemote
MXException
java.rmi.RemoteException
psdi.app.asset.Asset#copyAssetToCollectDetailsSet()
public MboRemote createWorkorder(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createWorkorder
in interface AppActionInterface
jpnum
- -job plan need be apply to the new work orderMXException
java.rmi.RemoteException
public MboRemote createChange(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createChange
in interface AppActionInterface
jpnum
- Parameter that refers to a job plan, based on which the change is created.MXException
java.rmi.RemoteException
public MboRemote createRelease(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createRelease
in interface AppActionInterface
jpnum
- Parameter that refers to a job plan, based on which the release is created.MXException
java.rmi.RemoteException
public MboRemote createServiceRequest(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createServiceRequest
in interface AppActionInterface
tickettemplateid
- Parameter that refers to a ticket template, based on which the service request is created.MXException
java.rmi.RemoteException
public MboRemote createProblem(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createProblem
in interface AppActionInterface
tickettemplateid
- Parameter that refers to a ticket template, based on which the problem is created.MXException
java.rmi.RemoteException
public MboRemote createIncident(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createIncident
in interface AppActionInterface
tickettemplateid
- Parameter that refers to a ticket template, based on which the incident is created.MXException
java.rmi.RemoteException
public void copyAdditionalPMAttributes(MboRemote copyToMbo, MboRemote copyFromMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateRelatedCI(java.lang.String newlocation, java.lang.String newsite, java.lang.String newassetnum, boolean isChild, java.lang.String ChangeBy, java.lang.String ChangeDate) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyAssetSpecToAssetSpec(MboRemote newAsset) throws MXException, java.rmi.RemoteException
newAsset
- MXException
java.rmi.RemoteException
public void setInCopyingAssetSpecReceiveRotating(boolean inCopying) throws MXException, java.rmi.RemoteException
toCallSuperInAdd
- MXException
java.rmi.RemoteException
public boolean getInCopyingAssetSpecReceiveRotating() throws MXException, java.rmi.RemoteException
toCallSuperInAdd
- MXException
java.rmi.RemoteException
public void setRememberToClearAssesInHash(boolean remberToClear) throws MXException, java.rmi.RemoteException
malcSet
- java.rmi.RemoteException
MXException
public void notifyAssetSpecValueChanged(boolean valueChanged) throws MXException, java.rmi.RemoteException
valueChanged
- MXException
java.rmi.RemoteException
public boolean isAssetSpecSetModified() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote duplicateCalAsset(MboRemote newAssetRemote) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPhysicalLoc() throws MXException, java.rmi.RemoteException
setPhysicalLoc
in interface AssetRemote
MXException
java.rmi.RemoteException
public void querySpotChecks(MboSetRemote plusWOSet, java.util.Date fromDate, java.util.Date toDate) throws MXException, java.rmi.RemoteException
querySpotChecks
in interface AssetRemote
MXException
java.rmi.RemoteException
public void queryDataSheets(PlusCWODSSetRemote woDsSet, boolean loopCalibrations, java.util.Date fromDate, java.util.Date toDate) throws java.rmi.RemoteException, MXApplicationException, MXException
queryDataSheets
in interface AssetRemote
woDsSet
- WO DS set whose where clause will be changedloopCalibrations
- whether to select loop or normal calibrationsfromDate
- start date to be used when filtering resultstoDate
- end date to be used when filtering resultsjava.rmi.RemoteException
MXApplicationException
MXException
public void queryToolWoActuals(MboSetRemote plusWoSet, java.util.Date fromDate, java.util.Date toDate) throws MXException, java.rmi.RemoteException
queryToolWoActuals
in interface AssetRemote
MXException
java.rmi.RemoteException
public MboSetRemote viewDataSheets(MboRemote newDS) throws MXException, java.rmi.RemoteException
viewDataSheets
in interface AssetRemote
MXException
java.rmi.RemoteException
public void validateOperatingRange() throws MXException, java.rmi.RemoteException
validateOperatingRange
in interface AssetRemote
MXException
java.rmi.RemoteException
public java.util.Date calculateNextCalDueDate() throws MXException, java.rmi.RemoteException
calculateNextCalDueDate
in interface AssetRemote
MXException
java.rmi.RemoteException
public LocationRemote getTagLocation() throws java.rmi.RemoteException, MXException
getTagLocation
in interface AssetRemote
null
otherwise.java.rmi.RemoteException
MXException
public java.lang.String[] getAssetBeingReplacedByThisInSwap()
public void setAssetBeingReplacedByThisInSwap(java.lang.String[] assetBeingReplacedByThisInSwap)
assetBeingReplacedByThisInSwap
- the assetBeingReplacedByThisInSwap to setpublic boolean hasServiceAddress() throws MXException, java.rmi.RemoteException
hasServiceAddress
in interface AddressableMbo
MXException
java.rmi.RemoteException
public void saveGISData(java.lang.String address, java.lang.String lat, java.lang.String lng) throws MXException, java.rmi.RemoteException
GISable
saveGISData
in interface GISable
MXException
java.rmi.RemoteException
public boolean isGISDataReadonly() throws MXException, java.rmi.RemoteException
GISable
isGISDataReadonly
in interface GISable
MXException
java.rmi.RemoteException
public java.lang.Double getLatitudeY() throws MXException, java.rmi.RemoteException
GISable
getLatitudeY
in interface GISable
MXException
java.rmi.RemoteException
public java.lang.Double getLongitudeX() throws MXException, java.rmi.RemoteException
GISable
getLongitudeX
in interface GISable
MXException
java.rmi.RemoteException
public java.lang.String getAddressString() throws MXException, java.rmi.RemoteException
GISable
getAddressString
in interface GISable
MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException
- "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
Mbo.getMboSet(String)
public ServiceAddressRemote getServiceAddress() throws MXException, java.rmi.RemoteException
getServiceAddress
in interface AddressableMbo
MXException
java.rmi.RemoteException
public MboRemote getAutoLocateObject(AutoLocatable nextInChain) throws MXException, java.rmi.RemoteException
AutoLocatable
getAutoLocateObject
in interface AutoLocatable
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic MboRemote getAutoLocateObject() throws MXException, java.rmi.RemoteException
AutoLocatable
getAutoLocateObject
in interface AutoLocatable
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic java.lang.Boolean hasCoords() throws MXException, java.rmi.RemoteException
GISable
hasCoords
in interface GISable
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic java.lang.Double getLocationAccuracy() throws MXException, java.rmi.RemoteException
getLocationAccuracy
in interface LBS
MXException
java.rmi.RemoteException
public java.lang.Double getAltitude() throws MXException, java.rmi.RemoteException
getAltitude
in interface LBS
MXException
java.rmi.RemoteException
public java.lang.Double getAltitudeAccuracy() throws MXException, java.rmi.RemoteException
getAltitudeAccuracy
in interface LBS
MXException
java.rmi.RemoteException
public java.lang.Double getHeading() throws MXException, java.rmi.RemoteException
getHeading
in interface LBS
MXException
java.rmi.RemoteException
public java.util.Date getLastUpdate() throws MXException, java.rmi.RemoteException
getLastUpdate
in interface LBS
MXException
java.rmi.RemoteException
public java.lang.Double getSpeed() throws MXException, java.rmi.RemoteException
getSpeed
in interface LBS
MXException
java.rmi.RemoteException
public void saveLBSData(java.lang.Double lat, java.lang.Double lng, java.lang.Double locationAccuracy, java.lang.Double altitudeAccuracy, java.lang.Double altitude, java.lang.Double heading, java.lang.Double speed) throws MXException, java.rmi.RemoteException
saveLBSData
in interface LBS
MXException
java.rmi.RemoteException
public java.lang.Double getLBSLatitudeY() throws MXException, java.rmi.RemoteException
CombinedLBS
getLBSLatitudeY
in interface CombinedLBS
MXException
java.rmi.RemoteException
public java.lang.Double getLBSLongitudeX() throws MXException, java.rmi.RemoteException
CombinedLBS
getLBSLongitudeX
in interface CombinedLBS
MXException
java.rmi.RemoteException
public java.lang.String getPeriodTypeValue() throws MXException, java.rmi.RemoteException
getPeriodTypeValue
in interface AssetRemote
MXException
java.rmi.RemoteException
getPeriodTypeValue()
public MboRemote createNewDepreciation() throws MXException, java.rmi.RemoteException
createNewDepreciation
in interface AssetRemote
MXException
java.rmi.RemoteException
createNewDepreciation()
public void swapDepreciationSchedule() throws java.rmi.RemoteException, MXException
swapDepreciationSchedule
in interface AssetRemote
MXException
java.rmi.RemoteException
public void swapDepreciationScheduleValidate() throws MXException, java.rmi.RemoteException
swapDepreciationScheduleValidate
in interface AssetRemote
MXException
java.rmi.RemoteException
public void managePMMeterTallyOnMeterDeleteUndelete(MboRemote pmMeter, java.lang.String action) throws MXException, java.rmi.RemoteException
managePMMeterTallyOnMeterDeleteUndelete
in interface AssetRemote
MXException
java.rmi.RemoteException
managePMMeterTallyOnMeterDeleteUndelete(MboRemote,String)
public int getPMMeterTally(MboRemote pmMeter) throws MXException, java.rmi.RemoteException
getPMMeterTally
in interface AssetRemote
MXException
java.rmi.RemoteException
getPMMeterTally(MboRemote)
public java.lang.Double getCurrentMeterLife(java.lang.String meterName) throws java.rmi.RemoteException, MXException
getCurrentMeterLife
in interface AssetRemote
MXException
java.rmi.RemoteException
psdi.app.asset.Asset#getCurrentMeterLife()
public java.lang.Double getDepreciationCurrentValue() throws java.rmi.RemoteException, MXException
getDepreciationCurrentValue
in interface AssetRemote
java.rmi.RemoteException
MXException
getDepreciationCurrentValue()
public MboRemote createDepreciationScheduleBasedOnItemFromMatrecTrans(java.lang.String itemNum, java.lang.String itemSetId, MboRemote matrecTrans) throws MXException, java.rmi.RemoteException
createDepreciationScheduleBasedOnItemFromMatrecTrans
in interface AssetRemote
MXException
java.rmi.RemoteException
createDepreciationScheduleBasedOnItemFromMatrecTrans( String itemNum, String itemSetId, MboRemote matrecTrans)
public void createDepreciationScheduleBasedOnItem(MboRemote itemMbo) throws MXException, java.rmi.RemoteException
createDepreciationScheduleBasedOnItem
in interface AssetRemote
MXException
java.rmi.RemoteException
createDepreciationScheduleBasedOnItem(MboRemote itemMbo)
public static void cleanupAssetsMap()
public boolean hasAssetSpecBeenCreated() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setAssetSpecCreated(boolean created) throws MXException, java.rmi.RemoteException
created
- MXException
java.rmi.RemoteException
public void changeMaxStatus(java.lang.String internalStatus, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeMaxStatus
in interface StatefulMboRemote
changeMaxStatus
in class StatefulMbo
date
- The effective date of the new status (java.util.Date
).memo
- A string briefly describing the circumstances of the change. The
memo can be null.MXException
- Thrown if there is a problem, or the status cannot be changed,
as determined by canChangeStatus(String)
.java.rmi.RemoteException
StatefulMbo.changeStatus(String,java.util.Date,String,long)