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, 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
|
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, setTargetStatusOption
addMboSetForRequiredCheck, 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, valueChanged
equals, 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, 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, validateAttributes
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 void save() throws MXException, java.rmi.RemoteException
none
- none
MXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
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 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)
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()
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface CIRemote
java.rmi.RemoteException
MXException
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
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
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
setCIAttributesForWO(MboSetRemote)
public void addCIToCollectDetails(java.lang.String collectionNum) throws MXException, java.rmi.RemoteException
addCIToCollectDetails
in interface CIRemote
MXException
java.rmi.RemoteException
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<java.lang.String,java.lang.String> cisToBeUndeleted) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
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