public class CI extends StatefulMbo implements CIRemote
This is a system level object.
The key attribute for this object is: CINum.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
CIID | Unique ID |
CINum | Authorized CI Identifier |
Description | Description of the Authorized CI |
Assetnum | Identifier of Asset which is the CI. |
Location | Identifier of Location which is the CI. |
Itemnum | Identifier of Item which is the CI. |
Service | Identifier of Service which is the CI. |
AssetLocOrgId | The Organization to which the CI belongs to if the CI is Asset or Location. |
AssetLocSiteId | The Site to which the CI belongs to if the CI is Asset or Location. |
ItemSetId | The setid to which the CI belongs to if the CI is Item or Service. |
ClassStructureId | Classification of the CI. |
CILocation | Location where the CI is physically located. |
Status | Current life cycle state of the CI. |
StatusDate | Date the CI status was last changed. |
ACTCIID | Actual CI Identifier. |
ChangeBy | Name of the user who last modified this CI object. This attribute defaults to the current user unless another value is provided. |
ChangeDate | Date this CI object was last modified.This attribute defaults to the MXServer date/time unless another value is provided. |
Calnum | Calendar used to specify when this CI object is normally in operation.
|
ShiftNum | Shift Shift that is associated with the CI's calendar.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
changeStatus
Boolean flag which indicates if CI has gone through change status functionality
Used in modify method, if gone through changestatus - there is no need to modify
changedate and changeby for parent CI
|
protected static TenantLevelObj |
changeStatusForCIs |
protected static java.lang.String |
CHANGESTATUSFORCIS_KEY |
protected java.lang.String |
sessionKey |
protected static java.util.HashSet |
skipFieldCopy
This is a static HashSet that contains the names of the fields whose values
need not be copied from the source Mbo to the target Mbo and is used only for
duplication the CI Mbo.
|
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
CI(MboSet ms)
Constructs the CI object.
|
Modifier and Type | Method and Description |
---|---|
void |
actionOnAssetNumFld(MboRemote asset)
Handle business logic for Asset mbo when Assetnum is set on CI object.
|
void |
add()
Adds a new CI object.
|
void |
addCIToCollectDetails(java.lang.String collectionNum)
Adds CIs to Collections, on a selected list of CI's or a single CI.
|
void |
canDelete()
CI cannot be deleted for many reasons.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
protected void |
checkAssetUniqueRule()
Check if asset is associated with any CI
|
protected void |
checkLocationUniqueRule()
Check if location is associated with any CI
|
protected void |
checkOtherApplications()
Check if the CI is refered in other applications and throw exception
|
void |
clearChangeStatusCacheForCIs() |
void |
clearChangeStatusForAllSessions() |
void |
clearClassification()
This method clears the classtructureid of the CI.
|
void |
clearStatusChangeFields()
11-17451
This method clears data that is maintained for the user that is
changing the status of a CI.
|
void |
copyCollectionToCollectDetailsSet(MboSetRemote collectionSet)
Adds CIs to one or more Collections, on a selected list of CI's or a single CI.
|
MboRemote |
createChange(java.lang.String jpnum)
creates a Workorder with WOCLASS=CHANGE from CI.
|
MboRemote |
createIncident(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Incident from CI.
|
MboRemote |
createProblem(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Problem from CI.
|
MboRemote |
createRelease(java.lang.String jpnum)
creates a Workorder with WOCLASS=RELEASE from CI.
|
MboRemote |
createServiceRequest(java.lang.String tickettemplateid)
creates a Ticket with Ticket Type = Service Request from CI.
|
void |
createTicket(MboRemote tkMbo)
Sets cinum, reportedbyid, orgid and siteid values for the ticket mbo based on CI.
|
void |
createWO(MboRemote workorderMbo)
Sets cinum, orgid ,siteid and reportedbyid values for the workorder mbo based on CI.
|
MboRemote |
createWorkorder(java.lang.String jpnum)
creates a Workorder with WOCLASS=WORKORDER from CI.
|
void |
delete(long accessModifier)
Override delete to delete this and records associated with CI
If CI is part of collections, throw warning before deleting CI and related records
|
protected void |
delete(long accessModifier,
java.util.Hashtable cisToBeDeleted,
java.util.Hashtable relationsToBeDeleted)
Delete this and records associated with CI using the ToBeDeleted hashtables.
|
protected void |
deleteAssociatedRecords(java.util.Hashtable relationsToBeDeleted)
Delete records associated with this CI
|
protected void |
deleteIfNotMarkedForDelete(MboSetRemote relatedCISet,
java.util.Hashtable relationsToBeDeleted,
java.lang.String identifier)
Delete records if not deleted by the parent ci
|
MboRemote |
duplicate()
Duplicates CI and related objects.
|
void |
generateAutoKey()
Generates an autokey value for a new CI object
|
protected void |
getChildCIsAndChangeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo)
Get immediate Child CIs for a given CI and Change status for them
|
protected void |
getChildCIsAndDelete(long accessModifier)
Get immediate Child CIs for a given CI and delete them
|
protected void |
getChildCIsAndDelete(long accessModifier,
java.util.Hashtable cisToBeDeleted,
java.util.Hashtable relationsToBeDeleted)
Get immediate Child CIs for a given CI and delete them
|
protected void |
getChildCIsAndUndelete()
Get immediate Child CIs for a given CI and delete them
|
protected void |
getChildCIsAndUndelete(java.util.Hashtable cisToBeUndeleted) |
java.lang.String |
getKeyForSession(UserInfo userInfo)
11-14751
Generates a key that is unique for this user and session.
|
MboSetRemote |
getMboSet(java.lang.String name)
Get a related MboSet for the object using the named relationship.
|
protected void |
getParentCIsAndModify(java.util.Date changedate,
java.lang.String changeby)
Get immediate Parent CIs for a given CI and modify changedate and changeby, if propagatechange flag is set for the relationrule
|
protected StatusHandler |
getStatusHandler()
Gets a status handler to change the work order status.
|
protected MboSetRemote |
getStatusHistory()
Return the cistatus object.
|
java.lang.String |
getStatusListName()
Gets the name of the value list that contains all the status's.
|
void |
init()
Initialization routine.
|
protected boolean |
isParentInSelection(CI parent) |
protected static void |
loadSkipFieldCopyHashSet()
Loads the static HashSet with the names of the fields whose values
need not be copied from the source Mbo to the duplicated Mbo when a duplicate operation
is performed.
|
protected void |
mboDelete(long accessModifier)
Only delete this CI.
|
void |
modify()
called whenever a field is modified to update the changedate and changeby attributes
|
protected java.lang.String |
partOfCollection()
Checks if ci is part of collection
Return the empty string if the ci is not part of collection , else return string of all the collections
|
protected void |
refMultiAssetLocCITables(MboSetRemote refMboSet,
java.lang.StringBuffer otherApps)
Loop through the MultiAssetLocCI table and get the uniquesid's of the tables
|
void |
save()
Saves a CI object.
|
protected void |
setCIAttributesForWO(AutoAttrUpdateRemote autoAttrUpdate)
For a given multiasset sets the ci attributes from the given autoattrupdate table
|
void |
setCIAttributesForWO(MboSetRemote autoAttrUpdateSet)
For a given multiassetlocci sets the ci attributes from the autoattrupdate table
|
void |
setLinkToActualCI(java.lang.String actcinum,
long accessModifier)
Sets the actcinum field on the CI to the specified value, using the specified access flags.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
Overrides the skipCopyField() in the Mbo.
|
boolean |
statusAllowsChange()
Returns whether the business rules allow the CI to be updated in its current status.
|
void |
undelete()
Unmark the Mbo for deletion.
|
void |
undelete(java.util.Hashtable cisToBeUndeleted) |
protected void |
undeleteAssociatedRecords()
Delete records associated with this CI
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionName
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, 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, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, 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, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, 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, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, 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, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
protected boolean changeStatus
protected static TenantLevelObj changeStatusForCIs
protected static final java.lang.String CHANGESTATUSFORCIS_KEY
protected java.lang.String sessionKey
protected static java.util.HashSet skipFieldCopy
CI.loadSkipFieldCopyHashSet()
,
CI.skipFieldCopy
public CI(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- MboSetnone
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
none
- none
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
none
- none
MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
Mbo
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 void save() throws MXException, java.rmi.RemoteException
save
in class StatefulMbo
none
- none
MXException
java.rmi.RemoteException
protected boolean isParentInSelection(CI parent) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void getParentCIsAndModify(java.util.Date changedate, java.lang.String changeby) throws MXException, java.rmi.RemoteException
changedate
- The date the change was madechangeby
- User who made the changeMXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
getStatusHistory
in class StatefulMbo
MXException
java.rmi.RemoteException
protected StatusHandler getStatusHandler()
getStatusHandler
in class StatefulMbo
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
protected static void loadSkipFieldCopyHashSet() throws MXException, java.rmi.RemoteException
skipFieldCopy.add("CHANGEDATE")
The following is the list of fields that are not copied from the source CI
to the duplicated CI.
These are the field names that are loaded into the HashSet.
MXException
java.rmi.RemoteException
Mbo.skipCopyField(psdi.mbo.MboValueInfo)
,
CI.skipCopyField(psdi.mbo.MboValueInfo)
,
CI.duplicate()
protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField
in class Mbo
The
- MboValueInfo object of the MboValue that needs to be copied.java.rmi.RemoteException
MXException
CI.loadSkipFieldCopyHashSet()
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.
protected void getChildCIsAndDelete(long accessModifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void getChildCIsAndDelete(long accessModifier, java.util.Hashtable cisToBeDeleted, java.util.Hashtable relationsToBeDeleted) throws MXException, java.rmi.RemoteException
accessModifier
- cisToBeDeleted
- List of CI that have been marked for deletionrelationsToBeDeleted
- List of CIRelations that have been marked for deletionMXException
java.rmi.RemoteException
protected java.lang.String partOfCollection() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void refMultiAssetLocCITables(MboSetRemote refMboSet, java.lang.StringBuffer otherApps) throws MXException, java.rmi.RemoteException
refMboSet
- referenced Mbo SetotherApps
- StringBuffer to store the strings of the tablesMXException
java.rmi.RemoteException
protected void checkOtherApplications() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- 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)
protected void delete(long accessModifier, java.util.Hashtable cisToBeDeleted, java.util.Hashtable relationsToBeDeleted) throws MXException, java.rmi.RemoteException
accessModifier
- cisToBeDeleted
- List of CI that have been marked for deletionrelationsToBeDeleted
- List of CIRelations that have been marked for deletionMXException
java.rmi.RemoteException
protected void mboDelete(long accessModifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void deleteIfNotMarkedForDelete(MboSetRemote relatedCISet, java.util.Hashtable relationsToBeDeleted, java.lang.String identifier) throws MXException, java.rmi.RemoteException
relatedCISet
- MboSet to be deletedrelationsToBeDeleted
- Hashtable that helps to not delete relations more than onceidentifier
- String that identify if CIRelations or CIRelationHis will be deletedMXException
java.rmi.RemoteException
protected void deleteAssociatedRecords(java.util.Hashtable relationsToBeDeleted) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void getChildCIsAndChangeStatus(java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
status
- The new desired status.date
- The effective date of the new status.memo
- A string briefly describing the circumstances of the change. The memo can be null.MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in interface CIRemote
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- The new desired status. This is the translated status.date
- The effective date of the new status.memo
- A string briefly describing the circumstances of the change. The memo can be null.MXException
- Thrown if there is a problem.java.rmi.RemoteException
StatefulMbo.changeStatus(String,java.util.Date,String,long)
public void generateAutoKey() throws java.rmi.RemoteException, MXException
generateAutoKey
in interface MboRemote
generateAutoKey
in class Mbo
MXAccessException
- CantGenAutoKey when this CI is not a newly created onejava.rmi.RemoteException
MXException
MboValue.autoKey()
,
MboValue.generateUniqueID()
protected void checkAssetUniqueRule() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void checkLocationUniqueRule() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface CIRemote
java.rmi.RemoteException
MXException
CI.clearClassification()
public void copyCollectionToCollectDetailsSet(MboSetRemote collectionSet) throws MXException, java.rmi.RemoteException
copyCollectionToCollectDetailsSet
in interface CIRemote
MXException
java.rmi.RemoteException
psdi.app.ci.CI#copyCollectionsToCollectDetailsSet
public void createTicket(MboRemote tkMbo) throws MXException, java.rmi.RemoteException
createTicket
in interface CIRemote
The
- ticket mbo inserted for this location.MXException
java.rmi.RemoteException
CI.createTicket(psdi.mbo.MboRemote)
public void createWO(MboRemote workorderMbo) throws MXException, java.rmi.RemoteException
createWO
in interface CIRemote
The
- workorder mbo inserted for this locationMXException
java.rmi.RemoteException
CI.createWO(psdi.mbo.MboRemote)
public void setCIAttributesForWO(MboSetRemote autoAttrUpdateSet) throws MXException, java.rmi.RemoteException
setCIAttributesForWO
in interface CIRemote
autoAttrUpdateSet
- autoattrupdateSet for a given workorder and assetMXException
java.rmi.RemoteException
CI.setCIAttributesForWO(MboSetRemote)
protected void setCIAttributesForWO(AutoAttrUpdateRemote autoAttrUpdate) throws MXException, java.rmi.RemoteException
autoAttrUpdate
- autoattrupdate record for a attribute changeMXException
java.rmi.RemoteException
public void addCIToCollectDetails(java.lang.String collectionNum) throws MXException, java.rmi.RemoteException
addCIToCollectDetails
in interface CIRemote
MXException
java.rmi.RemoteException
CI.addCIToCollectDetails(String collectionNum)
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
- -job plan need be apply to the new work orderMXException
java.rmi.RemoteException
public MboRemote createRelease(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createRelease
in interface AppActionInterface
jpnum
- -job plan need be apply to the new work orderMXException
java.rmi.RemoteException
public MboRemote createServiceRequest(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createServiceRequest
in interface AppActionInterface
tickettemplateid
- - Ticket Template ID to be applied when this ticket is created.MXException
java.rmi.RemoteException
public MboRemote createProblem(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createProblem
in interface AppActionInterface
tickettemplateid
- - Ticket Template ID to be applied when this ticket is created.MXException
java.rmi.RemoteException
public MboRemote createIncident(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createIncident
in interface AppActionInterface
tickettemplateid
- - Ticket Template ID to be applied when this ticket is created.MXException
java.rmi.RemoteException
public void undelete() throws MXException, java.rmi.RemoteException
Mbo
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void undelete(java.util.Hashtable cisToBeUndeleted) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void undeleteAssociatedRecords() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void getChildCIsAndUndelete() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected void getChildCIsAndUndelete(java.util.Hashtable cisToBeUndeleted) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void clearChangeStatusCacheForCIs() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void clearChangeStatusForAllSessions() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void actionOnAssetNumFld(MboRemote asset) throws java.rmi.RemoteException, MXException
actionOnAssetNumFld
in interface CIRemote
asset
- java.rmi.RemoteException
MXException
public void setLinkToActualCI(java.lang.String actcinum, long accessModifier) throws java.rmi.RemoteException, MXException
setLinkToActualCI
in interface CIRemote
actcinum
- The actcinum of the Actual CI to link the CI to.accessModifier
- The access flags to use when setting the value. These are the same
flags used on Mbo.setValue(String, String, long) and are defined in psdi.mbo.MboConstants.
For no flags, specify MboConstants.NONE.java.rmi.RemoteException
MXException
- "Field is read only" exception will be thrown
if the actcinum attribute is READONLY and the
accessModifier does not specify NOACCESSCHECK.public boolean statusAllowsChange() throws java.rmi.RemoteException, MXException
statusAllowsChange
in interface CIRemote
java.rmi.RemoteException
MXException
public java.lang.String getKeyForSession(UserInfo userInfo) throws java.rmi.RemoteException, MXException
userInfo
- The UserInfo for the logged in user.java.rmi.RemoteException
MXException
public void clearStatusChangeFields() throws java.rmi.RemoteException, MXException
clearStatusChangeFields
in interface CIRemote
java.rmi.RemoteException
MXException