public class SLA extends StatefulMbo implements SLARemote
This is a system level object.
See Service Level Agreements Package Description for details.
The key attribute for this object is SLANUM.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
SLANUM | SLA identification number |
SLATYPE | The SLA type |
OBJECTNAME | The name of the mbo object that this SLA applies to |
DESCRIPTION | Short description of this SLA |
STATUS | The status of this SLA |
STATUSDATE | The date and time when the status of this SLA was last changed |
STARTDATE | Start date of this SLA |
ENDDATE | End date of this SLA |
REVIEWDATE | This is the date when an SLA is up for review/renegotiation |
RANKING | This is the numerical attribute that is used to compare/evaluate multiple SLAs and determine which SLA is applied to a record. If multiple, valid SLAs are applied to a record, this attribute determines the order in which the SLAs are applied. If one SLA is applied, this Ranking determines which single SLA to resolve to |
COMMODITYGROUP | Service catalog group ID |
COMMODITY | Service catalog |
PARENTSLANUM | Parent SLA number |
ORGID | Optional ID of the organization that this SLA is defined for |
SITEID | Optional ID of the site that this SLA is defined for |
COMPANY | Name of the vendor that |
SLAORGID | Organization ID for the SLA calendar |
SLACALENDAR | The Calendar is used in conjunction with the SLA Shift to determine which SLA is eligible to be applied to a record based on the time/date of when the record was created |
SLASHIFT | The Shift is used in conjunction with the SLA Calendar to determine which SLA is eligible to be applied to a record based on the time/date of when the record was created |
CALCORGID | Organization ID for the calculation calendar |
CALCCALENDAR | The Calendar is used in conjunction with the Calculation Shift for setting values on a record when the SLA is applied |
CALCSHIFT | The Shift is used in conjunction with the Calculation Calendar for setting values on a record when the SLA is applied. |
CREATEDBY | The name of the user who created this SLA |
CREATEDATE | The date when this SLA is created |
CHANGEDBY | The name of the user who last updated this SLA |
CHANGEDATE | The date when this SLA is last updated |
ESCALATION | Reference to the associated escalation |
DESCRIPTION_LONGDESCRIPTION | Long description of this SLA |
CONDITION | This is the SQL condition that expresses when an SLA is applicable to a record in MAXIMO |
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 |
---|
SLA(MboSet ms)
Constructs the SLA object.
|
Modifier and Type | Method and Description |
---|---|
void |
actDeactEscalation() |
void |
add()
Add a new SLA object.
|
void |
addAsscoiatedContracts(MboSetRemote contractSet)
This method is called by the SelectContractsBean to added the currently selected contracts to the slacontract
table as relationship.
|
void |
addAssets(MboSetRemote assetSet)
This method is called by the SelectAssetsBean to added the currently selected assets to the slaassetloc
table as relationship.
|
void |
addKPIs(MboSetRemote kpiSet)
This method is called by the SelectKPIsBean to added the currently selected KPIs to the slakpi
table as relationship.
|
void |
addLocations(MboSetRemote locationSet)
This method is called by the SelectLocationsBean to added the currently selected locations to the slaassetloc
table as relationship.
|
void |
addRelatedSLA(MboSetRemote slaSet,
boolean isParent)
This method is called by the SelectSLASBean to added the currently selected SLAs to the relatedslas
table as relationship.
|
void |
appValidate()
Override the appValidate action to sync up the escalation id.
|
void |
calculateMeasurements()
Set the 3 non-persistent fields in SLA to value+uom (unit of measurements) for gui display.
|
void |
canDelete()
Overwitten for SLA's MBO.
|
void |
changeStatus(java.lang.String status,
boolean deactivateEscalation)
Change SLA status.
|
boolean |
checkRelatedSLAs(MboRemote commitment)
Same as validateRelatedSLAs() except that it checks for only one commitment and it does not throw an
exception, only popups a warning message
|
void |
clearClassification()
This method clears the classtructureid of the ticket
|
void |
defineEscalation(int row)
This method is invoked when the Defin Escalation button is clicked.
|
void |
delete(long accessModifier)
Overwitten for SLA to delete the following related objects,
SLACOMMITMENTS SLAASSETLOC SLAKPI SLACONTRACT SLARECORDS RELATEDSLAS |
void |
deleteEscalation() |
MboRemote |
duplicate()
Duplicates an SLA record.
|
void |
enableCalendarFields(boolean setCalcOrg)
Decides if the calendar field set needs to be enabled, based on the Applies To objectname.
|
void |
enableFields(java.lang.String prevStatus)
Central place for disable/enable SLA/commitments fields based on status.
|
java.util.Vector |
getCalcCalendarFields(boolean includeOrg)
Get he calculation calendar field set.
|
java.util.Vector |
getCalendarFields(boolean includeOrg)
Get all the calendar fields.
|
java.lang.String |
getKPISelect()
generate the default KPI select clause
|
java.lang.String |
getKPIWhere()
generate the default KPI where clause
|
MboSetRemote |
getMboSet(java.lang.String name)
Override this method to provide dynamic set for selecting kpis, related slas, etc.
|
MboSetRemote |
getsitesByOrg()
This function gets the MboSet of sites that belong to the currently selected org
|
java.util.Vector |
getSlaCalendarFields(boolean includeOrg)
Get the sla calendar field set
|
java.lang.String |
getStatusListName()
Returns the name os the SLA status list , which is SLASTATUS
|
void |
init()
Initialize the SLA object
|
boolean |
isActive()
Is this SLA in active status
|
boolean |
isInactive()
Is this SLA in inactive status
|
boolean |
isVendorSLA()
Is the current SLA of type VENDOR?
|
void |
resetCalendarFields(java.lang.String whichOrg)
Helper function that clear the calendar field set
The whichOrg parameter tells which calendar set (appliyto or calculation) to clear.
|
void |
setKPIId(long newID)
create slakpi when a new kpi is created
|
void |
setOrgID()
set the default APPLYTO_ORG to be the same as the orgid, if it is null
|
void |
statusValidate(java.lang.String newStatus)
validate and see if the sla can be changed to the new status based on sql validations
|
boolean |
validateCompanyOrg(java.lang.String company,
java.lang.String orgid)
Validates that a company is defined for an organization.
|
void |
validateCriteria() |
void |
validateEscalation() |
boolean |
validateRelatedSLA(MboRemote sla,
boolean isParent) |
boolean |
validateRelatedSLAs()
validate commitment stringency of the commitments against that of the parents/childern
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, 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, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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, undelete, 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, 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, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public SLA(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- MboSetMXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
none
- MXException
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
STATUS | DRAFT |
SLATYPE | CUSTOMER |
add
in interface MboRemote
add
in class Mbo
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)
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void defineEscalation(int row) throws MXException, java.rmi.RemoteException
defineEscalation
in interface SLARemote
MXException
java.rmi.RemoteException
defineEscalation(int row)
public void statusValidate(java.lang.String newStatus) throws MXException, java.rmi.RemoteException
statusValidate
in interface SLARemote
MXException
java.rmi.RemoteException
statusValidate(String newStatus)
public void validateCriteria() throws MXException, java.rmi.RemoteException
validateCriteria
in interface SLARemote
MXException
java.rmi.RemoteException
validateCriteria()
public void validateEscalation() throws MXException, java.rmi.RemoteException
validateEscalation
in interface SLARemote
MXException
java.rmi.RemoteException
validateEscalation()
public void deleteEscalation() throws MXException, java.rmi.RemoteException
deleteEscalation
in interface SLARemote
MXException
java.rmi.RemoteException
deleteEscalation()
public void actDeactEscalation() throws MXException, java.rmi.RemoteException
actDeactEscalation
in interface SLARemote
MXException
java.rmi.RemoteException
actDeactEscalation()
public boolean checkRelatedSLAs(MboRemote commitment) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean validateRelatedSLAs() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean validateRelatedSLA(MboRemote sla, boolean isParent) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String status, boolean deactivateEscalation) throws MXException, java.rmi.RemoteException
changeStatus
in interface SLARemote
MXException
java.rmi.RemoteException
changeStatus(String status, boolean deactivateEscalation)
public void addRelatedSLA(MboSetRemote slaSet, boolean isParent) throws MXException, java.rmi.RemoteException
addRelatedSLA
in interface SLARemote
MXException
java.rmi.RemoteException
addRelatedSLA(MboSetRemote slaSet, boolean isParent)
public void addAsscoiatedContracts(MboSetRemote contractSet) throws MXException, java.rmi.RemoteException
addAsscoiatedContracts
in interface SLARemote
MXException
java.rmi.RemoteException
addAsscoiatedContracts(MboSetRemote contractSet)
public void addKPIs(MboSetRemote kpiSet) throws MXException, java.rmi.RemoteException
addKPIs
in interface SLARemote
MXException
java.rmi.RemoteException
addKPIs(MboSetRemote kpiSet)
public void addAssets(MboSetRemote assetSet) throws MXException, java.rmi.RemoteException
addAssets
in interface SLARemote
MXException
java.rmi.RemoteException
psdi.app.sla.addAssets(MboSetRemote assetSet)
public void addLocations(MboSetRemote locationSet) throws MXException, java.rmi.RemoteException
addLocations
in interface SLARemote
MXException
java.rmi.RemoteException
addLocations(MboSetRemote locationSet)
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void calculateMeasurements() throws MXException, java.rmi.RemoteException
calculateMeasurements
in interface SLARemote
MXException
java.rmi.RemoteException
calculateMeasurements()
public boolean isActive() throws MXException, java.rmi.RemoteException
isActive
in interface SLARemote
MXException
java.rmi.RemoteException
isActive()
public boolean isInactive() throws MXException, java.rmi.RemoteException
isInactive
in interface SLARemote
MXException
java.rmi.RemoteException
isInactive()
public boolean isVendorSLA() throws MXException, java.rmi.RemoteException
isVendorSLA
in interface SLARemote
MXException
java.rmi.RemoteException
isActive()
public void enableFields(java.lang.String prevStatus) throws MXException
MXException
public void enableCalendarFields(boolean setCalcOrg) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void resetCalendarFields(java.lang.String whichOrg) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector getCalendarFields(boolean includeOrg)
public java.util.Vector getSlaCalendarFields(boolean includeOrg)
public java.util.Vector getCalcCalendarFields(boolean includeOrg)
public void setOrgID() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
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 MboSetRemote getsitesByOrg() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean validateCompanyOrg(java.lang.String company, java.lang.String orgid) throws MXException, java.rmi.RemoteException
company
- Company nameorgid
- Organization IDMXException
java.rmi.RemoteException
public java.lang.String getKPISelect() throws MXException, java.rmi.RemoteException
getKPISelect
in interface SLARemote
MXException
java.rmi.RemoteException
getKPISelect()
public java.lang.String getKPIWhere() throws MXException, java.rmi.RemoteException
getKPIWhere
in interface SLARemote
MXException
java.rmi.RemoteException
getKPIWhere()
public void setKPIId(long newID) throws MXException, java.rmi.RemoteException
setKPIId
in interface SLARemote
MXException
java.rmi.RemoteException
setKPIId(long newID)
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface SLARemote
java.rmi.RemoteException
MXException
clearClassification()