com.xmatters.ibm.tivoli.commtmplt
Class XMattersCommTemplate

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by psdi.mbo.Mbo
                  extended by psdi.common.commtmplt.CommTemplate
                      extended by com.xmatters.ibm.tivoli.commtmplt.XMattersCommTemplate
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, psdi.common.commtmplt.CommTemplateRemote, psdi.mbo.MboConstants, psdi.mbo.MboRemote

public class XMattersCommTemplate
extends psdi.common.commtmplt.CommTemplate

Custom class to handle injection of communications sent through this channel so that it uses xMatters rather than the current notification process

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface psdi.mbo.MboConstants
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, 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 Summary
XMattersCommTemplate(psdi.mbo.MboSet ms)
          Creates a new instance of XMattersCommTemplate
 
Method Summary
 java.util.List<java.lang.String> convertSendTo(java.lang.String relationship, psdi.mbo.MboRemote owner, java.util.List<java.lang.String> recipients)
          Returns a list of usernames that will receive notifications from xMatters
 java.util.Map<java.lang.String,java.lang.String> getAdditionalTokens()
           
 java.lang.String getFyi()
           
 java.lang.String getPublishChannel()
           
 void sendMessage(psdi.mbo.MboRemote targetMbo)
           
 void sendMessage(psdi.mbo.MboRemote targetMbo, psdi.mbo.MboRemote originatingMbo)
           
 void setAdditionalTokens(java.util.Map<java.lang.String,java.lang.String> additionalTokens)
           
 void setFyi(java.lang.String fyi)
           
 void setPublishChannel(java.lang.String publishChannel)
           
 
Methods inherited from class psdi.common.commtmplt.CommTemplate
add, addGroupRecipients, addPersonRecipients, addRoleRecipients, canDeactivate, canDelete, changeStatus, checkDeleteRole, convertSendTo, delete, duplicate, exists, getDocLinksFromSelectedFolder, getRefAppsRels, needRefresh, sendMessage, setTreeAttrs, skipCopyField, updateRecipientList
 
Methods inherited from class psdi.mbo.Mbo
addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, enableMethod, evaluateCondition, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getFetchIndex, getFieldExceptions, getFlags, getFloat, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLinesRelationship, getList, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getRecordIdentifer, getRecordType, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getTranslator, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasHierarchyLink, hasRelatedQbe, init, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isModified, isModified, isNew, isNull, isSelected, isValid, isZombie, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, rollbackToCheckpoint, save, select, setAppDefaultValue, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReadonlyWhenParentIsReadonly, setRecordType, setUniqueIDValue, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface psdi.mbo.MboRemote
addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getFlags, getFloat, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, 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, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isModified, isModified, isNew, isNull, isSelected, isZombie, propagateKeyValue, rollbackToCheckpoint, select, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unselect, validate, validateAttributes
 

Constructor Detail

XMattersCommTemplate

public XMattersCommTemplate(psdi.mbo.MboSet ms)
                     throws psdi.util.MXException,
                            java.rmi.RemoteException
Creates a new instance of XMattersCommTemplate

Parameters:
ms -
Throws:
psdi.util.MXException
java.rmi.RemoteException
Method Detail

sendMessage

public void sendMessage(psdi.mbo.MboRemote targetMbo)
                 throws psdi.util.MXException,
                        java.rmi.RemoteException
Specified by:
sendMessage in interface psdi.common.commtmplt.CommTemplateRemote
Overrides:
sendMessage in class psdi.common.commtmplt.CommTemplate
Throws:
psdi.util.MXException
java.rmi.RemoteException

sendMessage

public void sendMessage(psdi.mbo.MboRemote targetMbo,
                        psdi.mbo.MboRemote originatingMbo)
                 throws psdi.util.MXException,
                        java.rmi.RemoteException
Specified by:
sendMessage in interface psdi.common.commtmplt.CommTemplateRemote
Overrides:
sendMessage in class psdi.common.commtmplt.CommTemplate
Throws:
psdi.util.MXException
java.rmi.RemoteException

convertSendTo

public java.util.List<java.lang.String> convertSendTo(java.lang.String relationship,
                                                      psdi.mbo.MboRemote owner,
                                                      java.util.List<java.lang.String> recipients)
                                               throws psdi.util.MXException,
                                                      java.rmi.RemoteException
Returns a list of usernames that will receive notifications from xMatters

Parameters:
relationship -
owner -
recipients -
Returns:
collection of recipients
Throws:
psdi.util.MXException
java.rmi.RemoteException

setPublishChannel

public void setPublishChannel(java.lang.String publishChannel)

getPublishChannel

public java.lang.String getPublishChannel()

setAdditionalTokens

public void setAdditionalTokens(java.util.Map<java.lang.String,java.lang.String> additionalTokens)

getAdditionalTokens

public java.util.Map<java.lang.String,java.lang.String> getAdditionalTokens()

setFyi

public void setFyi(java.lang.String fyi)

getFyi

public java.lang.String getFyi()