com.ibm.tivoli.maximo.mfmail.util

Class MfMailCfgUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.mfmail.util.MfMailCfgUtil


  • public final class MfMailCfgUtil
    extends java.lang.Object
    The Class EmailCfgUtil.
    • Field Detail

      • logger

        protected static final MXLogger logger
        The logger.
    • Constructor Detail

      • MfMailCfgUtil

        public MfMailCfgUtil()
    • Method Detail

      • getEmailCfg

        public static MfMailCfgRemote getEmailCfg(MboRemote mbo)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Gets EmailCfg MBO from MboRemote.getOwner() method recursively. If the MBO was not found, return null.
        Parameters:
        mbo - the mbo
        Returns:
        EmailCfgRemote or null
        Throws:
        MXException
        java.rmi.RemoteException
      • convertKeyValueToCommaSepValue

        public static java.lang.String convertKeyValueToCommaSepValue(MboRemote mbo)
                                                               throws java.rmi.RemoteException,
                                                                      MXException
        Convert array to comma separated value.
        Parameters:
        mbo - the mbo
        Returns:
        the string for comma-separated key=value string
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • convertStringListToCommaSepValue

        public static java.lang.String convertStringListToCommaSepValue(java.util.List values)
        Convert list containing strings to comma separated string.
        Parameters:
        values - the values
        Returns:
        the string for comma-separated value
      • setAttributes

        public static void setAttributes(MboRemote mbo,
                                         java.lang.String attribute,
                                         java.util.List attributeList)
                                  throws MXException,
                                         java.rmi.RemoteException
        Sets the each attribute in the list to ATTRIBUTES field by comma-separated text.
        Parameters:
        mbo - the mbo
        attribute - the attribute
        attributeList - the List of attributes
        Throws:
        MXException
        java.rmi.RemoteException
      • hasCommLogRelationship

        public static boolean hasCommLogRelationship(java.lang.String mboName)
                                              throws MXException,
                                                     java.rmi.RemoteException
        Check whether the object supports communication log (COMMLOG).
        Parameters:
        MBO - object name
        Returns:
        true if the mbo has COMMLOG relationship
        Throws:
        MXException
        java.rmi.RemoteException
      • createAttributesWhereClause

        public static java.lang.String createAttributesWhereClause(MboSetRemote mboSet,
                                                                   java.lang.String objectName)
                                                            throws java.rmi.RemoteException,
                                                                   MXException
        Creates the attributes where clause.
        Parameters:
        mboSet - the mbo set
        objectname - mbo's name
        Returns:
        the string
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • checkDuplicatedSelectionValue

        public static final void checkDuplicatedSelectionValue(MboRemote mbo,
                                                               boolean isSkipToBeDeleted)
                                                        throws java.rmi.RemoteException,
                                                               MXException
        Check MBO's Selection Value is duplicated. The MBO itself is always skiped to check duplicability.
        Parameters:
        mbo - the mbo
        isSkipToBeDeleted - the is checking to be deleted
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception