public class TKTemplate extends StatefulMbo implements TKTemplateRemote
This is a system level object.
The key attribute for this object is TemplateId.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| Class | Classification of Ticket that can be either a Service Request, Problem or Incident. |
| Classstructureid | Defines the class structure of the Ticket. |
Commodity | Commodity. |
Commoditygroup | Commodity Group. |
| Description | Description of the Ticket. |
| Description_LongDescription | Long Description of the Ticket. |
| Impact | Specifies the business Impact/severity of the Ticket |
| InternalPriority | Attribute that indicates the Priority of an Issue as determined by the Servoce Desk Agent |
Owner | Attribute that identifies the Owner for the ticket. |
OwnerGroup | Attribute that identifies the Owner group for the ticket. |
| Status | The status of the Ticket Template. |
| StatusDate | Ticket Template's Status Date. |
| TemplateId | Attribute that identifies Template Identifier. |
| TKTemplateId | Unique identifier of the template Template. |
| Urgency | Attribute that identifies reflection of the speed in which a Ticket should be resolved. |
Vendor | The Company associated with the ticket. |
| Modifier and Type | Field and Description |
|---|---|
MboValue |
mbv
Define the MboValue mbv to be utilized by the getHierarchyPath method.
|
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 |
|---|
TKTemplate(MboSet ms)
Constructs the Ticket Template object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new Ticket Template.
|
void |
appValidate()
Pre-save validation method.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
Change Status
A string briefly describing the circumstances of the change.
|
void |
clearClassification()
This method clears the classtructureid of the Ticket Template
|
protected void |
copyRelationshipMboSet(MboRemote targetMbo,
java.lang.String relationshipName)
Given a target MBO and the relationship name, copy the MBOSet from this
MBO relationship to the target MBO relationship with the same name.
|
void |
delete(long accessModifier)
Method that deletes a Ticket Template
|
void |
doClassificationCreate(MboRemote newMbo,
MboRemote sourceMbo,
java.lang.String keyAttribute)
08-11008: copy ticketspec to tktactivityspec to workorderspec
|
MboRemote |
duplicate()
Duplicates a Ticket Template record.
|
void |
generateWO(java.lang.String ticketid,
java.lang.String ticketclass,
MboRemote tk)
Generate Work Orders (Activities)
|
MboValue |
getHierarchyPath()
Fetches the Classstructure mbovalue set in the setHierarchyPath
|
protected StatusHandler |
getStatusHandler()
Gets a status handler to change the template status.
|
protected MboSetRemote |
getStatusHistory()
Gets the templatestatus objects.
|
java.lang.String |
getStatusListName()
Gets the name of the value list that contains all the status's.
|
void |
init()
init()
|
protected void |
save()
Overrides the save of Mbo so that a row is added to the status history
table when a new object is saved.
|
void |
setByPassSortOrderValidation(java.lang.Boolean byPassSortOrderValidation) |
void |
setHierarchyPath(MboValue val)
This methods sets the MboValue from the Classstructure Hierarchy Path Field Class validation.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
Overrides the skipCopyField() in the Mbo.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionNameaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, 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, generateAutoKey, 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, 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, modify, 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, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, 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, undelete, unlock, unselect, validate, validateAttributespublic MboValue mbv
public TKTemplate(MboSet ms) throws MXException, java.rmi.RemoteException
ms - the Ticket Template MboSet.MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionprotected void save()
throws MXException,
java.rmi.RemoteException
StatefulMbosave in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
MboappValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionprotected void copyRelationshipMboSet(MboRemote targetMbo, java.lang.String relationshipName) throws java.rmi.RemoteException, MXException
targetMbo - the mbo that will have this current relationship copied
to.relationshipName - the name of the realtionship to be copied.java.rmi.RemoteExceptionMXExceptionpublic 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)protected boolean skipCopyField(MboValueInfo mvi) throws MXException, java.rmi.RemoteException
skipCopyField in class Mbomvi - The MboValueInfo object of the MboValue that needs to be copied.MXExceptionjava.rmi.RemoteExceptionTKTemplate.loadSkipFieldCopyHashSet()protected StatusHandler getStatusHandler()
getStatusHandler in class StatefulMboObject returned.public java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - 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).date - The effective date of the new status (java.util.Date). If null
the current date/time is used.memo - A string briefly describing the circumstances of the change. The
memo can be null.accessModifier - MXExceptionjava.rmi.RemoteExceptionStatefulMbo.canChangeStatus(String)protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
getStatusHistory in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic void generateWO(java.lang.String ticketid,
java.lang.String ticketclass,
MboRemote tk)
throws MXException,
java.rmi.RemoteException
generateWO in interface TKTemplateRemoteactivitySet - A set from the tktempltactivity table where the templateid equals the template that is being applied.ticketid - The ticketid of the current ticket on which the template if being applied.ticketclass - The class of the current ticket on which the template if being applied.tk - The ticket mbo.MXExceptionjava.rmi.RemoteExceptionTicket.ticketStatus()public void clearClassification()
throws java.rmi.RemoteException,
MXException
clearClassification in interface TKTemplateRemotejava.rmi.RemoteExceptionMXExceptionTKTemplate.clearClassification()public void setHierarchyPath(MboValue val) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic MboValue getHierarchyPath() throws java.rmi.RemoteException, MXException
getHierarchyPath in interface TKTemplateRemotejava.rmi.RemoteExceptionMXExceptionTKTemplate.getHierarchyPath()public void doClassificationCreate(MboRemote newMbo, MboRemote sourceMbo, java.lang.String keyAttribute) throws MXException, java.rmi.RemoteException
newMbo - MXExceptionjava.rmi.RemoteExceptionpublic void setByPassSortOrderValidation(java.lang.Boolean byPassSortOrderValidation)
byPassSortOrderValidation - the byPassSortOrderValidation to set