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, 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 |
---|
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
addMboSetForRequiredCheck, 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, valueChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, 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, validateAttributes
public MboValue mbv
public TKTemplate(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- the Ticket Template MboSet.MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
protected void save() throws MXException, java.rmi.RemoteException
StatefulMbo
save
in class StatefulMbo
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
Mbo
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
protected 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.RemoteException
MXException
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 boolean skipCopyField(MboValueInfo mvi) throws MXException, java.rmi.RemoteException
skipCopyField
in class Mbo
mvi
- The MboValueInfo object of the MboValue that needs to be copied.MXException
java.rmi.RemoteException
TKTemplate.loadSkipFieldCopyHashSet()
protected StatusHandler getStatusHandler()
getStatusHandler
in class StatefulMbo
Object returned.
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- 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
- MXException
java.rmi.RemoteException
StatefulMbo.canChangeStatus(String)
protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
getStatusHistory
in class StatefulMbo
MXException
java.rmi.RemoteException
public void generateWO(java.lang.String ticketid, java.lang.String ticketclass, MboRemote tk) throws MXException, java.rmi.RemoteException
generateWO
in interface TKTemplateRemote
activitySet
- 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.MXException
java.rmi.RemoteException
Ticket.ticketStatus()
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface TKTemplateRemote
java.rmi.RemoteException
MXException
TKTemplate.clearClassification()
public void setHierarchyPath(MboValue val) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MboValue getHierarchyPath() throws java.rmi.RemoteException, MXException
getHierarchyPath
in interface TKTemplateRemote
java.rmi.RemoteException
MXException
TKTemplate.getHierarchyPath()
public void doClassificationCreate(MboRemote newMbo, MboRemote sourceMbo, java.lang.String keyAttribute) throws MXException, java.rmi.RemoteException
newMbo
- MXException
java.rmi.RemoteException
public void setByPassSortOrderValidation(java.lang.Boolean byPassSortOrderValidation)
byPassSortOrderValidation
- the byPassSortOrderValidation to set