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.
  | 
onListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, phantomList, phantomQueueALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description | 
|---|
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 
 | 
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 
 | 
MboRemote | 
duplicate()
Duplicates CI and related objects. 
 | 
void | 
generateAutoKey()
Generates an autokey value for a new CI object 
 | 
java.lang.String | 
getKeyForSession(UserInfo userInfo)
11-14751
 Generates a key that is unique for this user and session. 
 | 
java.lang.String | 
getStatusListName()
Gets the name of the value list that contains all the status's. 
 | 
void | 
init()
Initialization routine. 
 | 
void | 
modify()
called whenever a field is modified to update the changedate and changeby attributes 
 | 
void | 
save()
Saves a CI object. 
 | 
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. 
 | 
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<java.lang.String,java.lang.String> cisToBeUndeleted)  | 
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, 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, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic CI(MboSet ms) throws MXException, java.rmi.RemoteException
ms - MboSetnoneMXExceptionjava.rmi.RemoteExceptionpublic void init()
          throws MXException
init in class Mbonone - noneMXExceptionpublic void add()
         throws MXException,
                java.rmi.RemoteException
add in interface MboRemoteadd in class Mbonone - noneMXExceptionjava.rmi.RemoteExceptionpublic void save()
          throws MXException,
                 java.rmi.RemoteException
none - noneMXExceptionjava.rmi.RemoteExceptionpublic void modify()
            throws MXException,
                   java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic MboRemote duplicate() throws MXException, java.rmi.RemoteException
Related objects that will also be duplicated are:
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionpsdi.mbo.Mbo#isAutoKeyed.public void canDelete()
               throws MXException,
                      java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
            throws MXException,
                   java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - The bitwise flag specified to determine
                                                         if certain normal security checks are to be
                                                         bypassed for this delete request.
                                                         For example:
                                                         if the accessModifer is NOACCESSCHECK, then the
                                                         check for the object's NODELETE flag and the
                                                         call to the object's canDelete() method
                                                         will not be performed.
                                                     If the accessModifer is NONE, then all the
                                                         access checks are performed before this object
                                                         is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void changeStatus(java.lang.String status,
                java.util.Date date,
                java.lang.String memo)
                  throws MXException,
                         java.rmi.RemoteException
changeStatus in interface CIRemotechangeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - 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.RemoteExceptionStatefulMbo.changeStatus(String,java.util.Date,String,long)public void generateAutoKey()
                     throws java.rmi.RemoteException,
                            MXException
generateAutoKey in interface MboRemotegenerateAutoKey in class MboMXAccessException - CantGenAutoKey when this CI is not a newly created onejava.rmi.RemoteExceptionMXExceptionMboValue.autoKey(), 
MboValue.generateUniqueID()public void clearClassification()
                         throws java.rmi.RemoteException,
                                MXException
clearClassification in interface CIRemotejava.rmi.RemoteExceptionMXExceptionclearClassification()public void copyCollectionToCollectDetailsSet(MboSetRemote collectionSet) throws MXException, java.rmi.RemoteException
copyCollectionToCollectDetailsSet in interface CIRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.ci.CI#copyCollectionsToCollectDetailsSetpublic void createTicket(MboRemote tkMbo) throws MXException, java.rmi.RemoteException
createTicket in interface CIRemoteThe - ticket mbo inserted for this location.MXExceptionjava.rmi.RemoteExceptioncreateTicket(psdi.mbo.MboRemote)public void createWO(MboRemote workorderMbo) throws MXException, java.rmi.RemoteException
createWO in interface CIRemoteThe - workorder mbo inserted for this locationMXExceptionjava.rmi.RemoteExceptioncreateWO(psdi.mbo.MboRemote)public void setCIAttributesForWO(MboSetRemote autoAttrUpdateSet) throws MXException, java.rmi.RemoteException
setCIAttributesForWO in interface CIRemoteautoAttrUpdateSet - autoattrupdateSet for a given workorder and assetMXExceptionjava.rmi.RemoteExceptionsetCIAttributesForWO(MboSetRemote)public void addCIToCollectDetails(java.lang.String collectionNum)
                           throws MXException,
                                  java.rmi.RemoteException
addCIToCollectDetails in interface CIRemoteMXExceptionjava.rmi.RemoteExceptionaddCIToCollectDetails(String collectionNum)public MboRemote createWorkorder(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createWorkorder in interface AppActionInterfacejpnum - -job plan need be apply to the new work orderMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createChange(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createChange in interface AppActionInterfacejpnum - -job plan need be apply to the new work orderMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createRelease(java.lang.String jpnum) throws MXException, java.rmi.RemoteException
createRelease in interface AppActionInterfacejpnum - -job plan need be apply to the new work orderMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createServiceRequest(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createServiceRequest in interface AppActionInterfacetickettemplateid - - Ticket Template ID to be applied when this ticket is created.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createProblem(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createProblem in interface AppActionInterfacetickettemplateid - - Ticket Template ID to be applied when this ticket is created.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createIncident(java.lang.String tickettemplateid) throws MXException, java.rmi.RemoteException
createIncident in interface AppActionInterfacetickettemplateid - - Ticket Template ID to be applied when this ticket is created.MXExceptionjava.rmi.RemoteExceptionpublic void undelete()
              throws MXException,
                     java.rmi.RemoteException
Mboundelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void undelete(java.util.Hashtable<java.lang.String,java.lang.String> cisToBeUndeleted)
              throws MXException,
                     java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void clearChangeStatusCacheForCIs()
                                  throws java.rmi.RemoteException,
                                         MXException
java.rmi.RemoteExceptionMXExceptionpublic void clearChangeStatusForAllSessions()
                                     throws java.rmi.RemoteException,
                                            MXException
java.rmi.RemoteExceptionMXExceptionpublic void actionOnAssetNumFld(MboRemote asset) throws java.rmi.RemoteException, MXException
actionOnAssetNumFld in interface CIRemoteasset - java.rmi.RemoteExceptionMXExceptionpublic void setLinkToActualCI(java.lang.String actcinum,
                     long accessModifier)
                       throws java.rmi.RemoteException,
                              MXException
setLinkToActualCI in interface CIRemoteactcinum - 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.RemoteExceptionMXException - "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 CIRemotejava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getKeyForSession(UserInfo userInfo) throws java.rmi.RemoteException, MXException
userInfo - The UserInfo for the logged in user.java.rmi.RemoteExceptionMXExceptionpublic void clearStatusChangeFields()
                             throws java.rmi.RemoteException,
                                    MXException
clearStatusChangeFields in interface CIRemotejava.rmi.RemoteExceptionMXException