psdi.dm.collection

Class DmCollUtils

  • java.lang.Object
    • psdi.dm.collection.DmCollUtils


  • public class DmCollUtils
    extends java.lang.Object
    Utility class used by Migration Collection.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DmCollUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String findAppForGivenMboName(java.lang.String objectName, UserInfo userInfo)
      Find the Application name for the Mbo Name.
      static int findLowestGroupOrderForGivenMos(java.lang.String mosName, boolean internalOnly, UserInfo userInfo)
      Find the lowest group for a given MOS.
      static java.lang.String findMos(java.lang.String objectName, boolean systemDefinedOnly, UserInfo userInfo)
      Find Migration Object Structure for a given Object.
      static java.lang.String findMosWithLowestMigrationGroup(java.lang.String objectName, boolean systemDefinedOnly, UserInfo userInfo)
      Find Migration Object Structure for a given Object which has lowest migration group.
      static GroupAndMosOrder getGroupAndMosOrder(java.lang.String mosName, UserInfo userInfo)
      Finds the Group and Mos order for the mos.
      static java.lang.String getMigrationGroupforMos(java.lang.String mosName, boolean internamOnly, UserInfo userInfo)
      Find the Migration Group for a given Object Structure.
      static java.util.List getUserListForRole(java.lang.String roleName, UserInfo userInfo)
      Find all users for the given role.
      static boolean isFirstMosHigherOrder(java.lang.String firstMos, java.lang.String secondMos, UserInfo userInfo)
      Find if Group order and Mos order of the first mos has higher values than the second.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DmCollUtils

        public DmCollUtils()
    • Method Detail

      • getMigrationGroupforMos

        public static java.lang.String getMigrationGroupforMos(java.lang.String mosName,
                                                               boolean internamOnly,
                                                               UserInfo userInfo)
                                                        throws MXException,
                                                               java.rmi.RemoteException
        Find the Migration Group for a given Object Structure.
        Parameters:
        mosName - name of the Object Structure
        internamOnly - find olny internal group
        userInfo - UserInfo of current user
        Returns:
        the Migration Group name
        Throws:
        MXException
        java.rmi.RemoteException
      • findMos

        public static java.lang.String findMos(java.lang.String objectName,
                                               boolean systemDefinedOnly,
                                               UserInfo userInfo)
                                        throws MXException,
                                               java.rmi.RemoteException
        Find Migration Object Structure for a given Object.
        Parameters:
        objectName - Object Name
        systemDefinedOnly - find only a system defined Object Structure
        userInfo - UserInfo of current user
        Returns:
        the Migration Object Structure name
        Throws:
        MXException
        java.rmi.RemoteException
      • findMosWithLowestMigrationGroup

        public static java.lang.String findMosWithLowestMigrationGroup(java.lang.String objectName,
                                                                       boolean systemDefinedOnly,
                                                                       UserInfo userInfo)
                                                                throws MXException,
                                                                       java.rmi.RemoteException
        Find Migration Object Structure for a given Object which has lowest migration group.
        Parameters:
        objectName - Object Name
        systemDefinedOnly - find only a system defined Object Structure
        userInfo - UserInfo of current user
        Returns:
        the Migration Object Structure name
        Throws:
        MXException
        java.rmi.RemoteException
      • findLowestGroupOrderForGivenMos

        public static int findLowestGroupOrderForGivenMos(java.lang.String mosName,
                                                          boolean internalOnly,
                                                          UserInfo userInfo)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Find the lowest group for a given MOS.
        Parameters:
        mosName -
        internalOnly -
        userInfo -
        Returns:
        The lowest group order
        Throws:
        MXException
        java.rmi.RemoteException
      • findAppForGivenMboName

        public static java.lang.String findAppForGivenMboName(java.lang.String objectName,
                                                              UserInfo userInfo)
                                                       throws MXException,
                                                              java.rmi.RemoteException
        Find the Application name for the Mbo Name. Returns null if the given Mbo is not a main mbo for any application.
        Parameters:
        objectName - Object Name
        userInfo - UserInfo of current user
        Returns:
        The Application Name
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserListForRole

        public static java.util.List getUserListForRole(java.lang.String roleName,
                                                        UserInfo userInfo)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Find all users for the given role.
        Parameters:
        roleName -
        userInfo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • isFirstMosHigherOrder

        public static boolean isFirstMosHigherOrder(java.lang.String firstMos,
                                                    java.lang.String secondMos,
                                                    UserInfo userInfo)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Find if Group order and Mos order of the first mos has higher values than the second.
        Parameters:
        firstMos -
        secondMos -
        userInfo -
        Returns:
        true if first mos order value is higher
        Throws:
        MXException
        java.rmi.RemoteException
      • getGroupAndMosOrder

        public static GroupAndMosOrder getGroupAndMosOrder(java.lang.String mosName,
                                                           UserInfo userInfo)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Finds the Group and Mos order for the mos.
        Parameters:
        mosName -
        userInfo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException