com.ibm.commerce.tools.epromotion.util

Class EproUtil

  • java.lang.Object
    • com.ibm.commerce.tools.epromotion.util.EproUtil


  • public final class EproUtil
    extends java.lang.Object
    This Util class provides all the utility methods for epromotion component.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.text.SimpleDateFormat displayDateFormat
      This format is used for output by default
      static java.text.SimpleDateFormat displayTimeFormat
      This format is used for output by default
      static java.text.SimpleDateFormat displayTimestampFormat
      This format is used for output by default
      static java.lang.String jdbcTimestampFormat
      This format is a default JDBC timestamp escape format without nanoseconds.
      static java.text.SimpleDateFormat[] supportedDateFormats
      These formats supported for converting strings to dates
      static java.text.SimpleDateFormat[] supportedTimeFormats
      These formats supported for converting strings to time
      static java.text.SimpleDateFormat[] supportedTimestampFormats
      These formats supported for converting strings to date and time format.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EproUtil()
      Util constructor comment.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String dateToString(java.sql.Date date)
      Returns the date as a String formatted by the default format displayDateFormat.
      static java.lang.String dateToString(java.sql.Date date, java.lang.String format)
      Returns the date as a String formatted by the supplied format A null date is converted to a null String.
      static java.lang.Object doCheckParameterFound(java.util.Map h, java.lang.String parameterName)
      Return the value of the key in the Map, if value of the key doesn't exist, throw exception.
      static java.lang.String endTag(java.lang.String tagName)
      Return the XML end tag with tag name included.
      java.lang.String getCategoryName(java.lang.String storeId, java.lang.String langId, java.lang.String catIdentifier)
      Returns category name in string type by passing its store ID, language ID and identifier
      java.lang.String getCatEntryId(java.lang.String partNumber, java.lang.String dN)
      Return CATENTRY ID (Reference Number) in string type by passing its unique index.
      java.lang.String getCatGroupId(java.lang.String identifier, java.lang.String dN)
      Returns category ID in string type by passing its unique index.
      static java.lang.Long getMbrGrpId(java.lang.String mbrGrpName, java.lang.String ownerDN)
      Returns member group ID with the given name & owner
      static java.lang.Long getOwnerId(java.lang.String dn)
      Returns owner ID of the store with a given owner
      static java.lang.Integer[] getRelatedStoreIds(StoreKey skey)
      This Static method returns the StoreIdss of all the Stores related to this Store by com.ibm.commerce.promotions relationship.
      static StoreKey[] getRelatedStores(StoreKey sKey)
      This Static method returns the StoreKeys of all the Stores related to this Store through com.ibm.commerce.promotions relationship.
      java.lang.String getShipModeId(java.lang.String code, java.lang.String carrier, java.lang.String storeName, java.lang.String ownerDN)
      Return shipping mode id in string type by passing its unique index.
      java.lang.String getSKU(java.lang.String catentry_id)
      Return SKU of string type by passing its CATENTRY ID.
      java.lang.String getSKUName(java.lang.String langId, java.lang.String catentry_id)
      Returns SKU name by passing its CATENTRY ID.
      java.util.Vector getSKUs(java.util.Vector catentryIds)
      Returns SKU Vector by passing its CATENTRY ID vector.
      java.lang.String getSKUType(java.lang.String catentry_id)
      Returns SKU type by passing its CATENTRY ID.
      static java.lang.Integer getStoreId(StoreKey key)
      Returns Store Id of the store with a given store key
      static boolean isBlank(java.lang.String s)
      Takes a string and returns true if it is null, an empty string, or string containing only white space.
      static boolean isValidDate(java.lang.String s)
      Returns true if the string is a valid date or is an empty string, false otherwise.
      static boolean isValidDateFormat(java.lang.String format)
      Tests if the date format pattern specified is valid.
      static boolean isValidTime(java.lang.String s)
      Returns true if the string is a valid date or is an empty string, false otherwise.
      static boolean isValidTimestamp(java.lang.String s)
      Returns true if the string is a valid timestamp or is an empty string false otherwise.
      static java.lang.String normalizeDatetime(java.lang.String s)
      Gets rid of unnecessary punctuation, multiple white space and other anomalies in a Datetime string.
      static java.lang.String replaceSubstring(java.lang.String str, java.lang.String substr1, java.lang.String substr2, int startFromLocation)
      Utility function used to replace all occurrences of substring 1 (substr1) with substring 2 (substr2) in string object.
      static void requireParameterNotNull(java.lang.String className, java.lang.String methodName, java.lang.String parameterName, java.lang.Object object)
      Clients should call this when they receive a parameter that may not be null.
      static java.lang.String spacesToUnderscores(java.lang.String s)
      Takes a String and converts the blank spaces inside the String to underscores, then returns this new String
      static java.lang.String startTag(java.lang.String tagName)
      Return an XML start tag with given tag name.
      static java.sql.Date stringToDate(java.lang.String s)
      Converts a String to a Date.
      static java.sql.Date stringToDate(java.lang.String s, java.lang.String format)
      Converts a String to a Dateusing the given format.
      static java.sql.Time stringToTime(java.lang.String s)
      Converts a String to a Time.
      static java.sql.Time stringToTime(java.lang.String s, java.lang.String format)
      Converts a String to a Timeusing the given format.
      static java.sql.Timestamp stringToTimestamp(java.lang.String s)
      Converts a String to a Timestamp.
      static java.sql.Timestamp stringToTimestamp(java.lang.String s, java.lang.String format)
      Converts a String to a Timestampusing the given format.
      static java.sql.Timestamp stringToTimestamp(java.lang.String s, java.lang.String format, java.util.Locale lcl)
      Converts a String to a Timestampusing the given format and lcl.
      static java.lang.String timestampToString(java.util.Date date)
      Returns the date as a String formatted by the default format displayDateFormat.
      static java.lang.String timestampToString(java.util.Date date, java.lang.String format)
      Returns the date as a String formatted by the supplied format A null date is converted to a null String.
      static java.lang.String timestampToString(java.sql.Timestamp date)
      Returns the date as a String formatted by the default format displayDateFormat.
      static java.lang.String timestampToString(java.sql.Timestamp date, java.lang.String format)
      Returns the date as a String formatted by the supplied format A null date is converted to a null String.
      static java.lang.String timestampToString(java.sql.Timestamp date, java.lang.String format, java.util.Locale lcl)
      Returns the date as a String formatted by the supplied format and locale A null date is converted to a null String.
      static java.lang.String timeToString(java.sql.Time time)
      Returns the date as a String formatted by the default format displayDateFormat.
      static java.lang.String timeToString(java.sql.Time time, java.lang.String format)
      Returns the date as a String formatted by the supplied format A null date is converted to a null String.
      static boolean toBoolean(java.lang.Object value)
      Convert Object into a boolean primitive type
      static boolean toBoolean(java.lang.String value)
      Convert String into a boolean primitive type
      static int toInt(java.lang.Object value)
      Convert Object into an int primitive type
      static int toInt(java.lang.String value)
      Convert String into an int primitive type
      static java.util.Vector toReversedVector(java.util.Vector originalVector)
      This method is using to reverse the order of Vector's objects.
      static java.util.Vector toVector(java.lang.Object value)
      This method will convert an Object type of vector into a Vector type.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • jdbcTimestampFormat

        public static java.lang.String jdbcTimestampFormat
        This format is a default JDBC timestamp escape format without nanoseconds. Note that java.text.SimpleDataFormat does not allow for the nanoseconds component of a Timestamp object. This format could be used to filter out the nanoseconds from the Timestamp object read via JDBC.
      • displayDateFormat

        public static java.text.SimpleDateFormat displayDateFormat
        This format is used for output by default
      • displayTimeFormat

        public static java.text.SimpleDateFormat displayTimeFormat
        This format is used for output by default
      • displayTimestampFormat

        public static java.text.SimpleDateFormat displayTimestampFormat
        This format is used for output by default
      • supportedDateFormats

        public static java.text.SimpleDateFormat[] supportedDateFormats
        These formats supported for converting strings to dates
      • supportedTimeFormats

        public static java.text.SimpleDateFormat[] supportedTimeFormats
        These formats supported for converting strings to time
      • supportedTimestampFormats

        public static java.text.SimpleDateFormat[] supportedTimestampFormats
        These formats supported for converting strings to date and time format.
    • Constructor Detail

      • EproUtil

        public EproUtil()
        Util constructor comment.
    • Method Detail

      • dateToString

        public static java.lang.String dateToString(java.sql.Date date)
        Returns the date as a String formatted by the default format displayDateFormat. A null date is converted to a null String.
        Parameters:
        date - Date
        Returns:
        date formatted by the default format displayDateFormat or null.
      • dateToString

        public static java.lang.String dateToString(java.sql.Date date,
                                                    java.lang.String format)
        Returns the date as a String formatted by the supplied format A null date is converted to a null String.
        Parameters:
        date - Date
        format - format to use
        Returns:
        A formatted String, or null if the date parameter is null.
        Throws:
        java.lang.IllegalArgumentException - An exception will be thrown if the format specified by the format parameter is invalid.
      • doCheckParameterFound

        public static java.lang.Object doCheckParameterFound(java.util.Map h,
                                                             java.lang.String parameterName)
                                                      throws ParameterNotFoundException
        Return the value of the key in the Map, if value of the key doesn't exist, throw exception.
        Parameters:
        h - java.util.Map containing key value pairs.
        parameterName - java.lang.String the key used for searching in the map.
        Returns:
        java.lang.Object the value of key in the map. If it is not found, then a null is returned.
        Throws:
        ParameterNotFoundException
      • endTag

        public static java.lang.String endTag(java.lang.String tagName)
        Return the XML end tag with tag name included.
        Parameters:
        tagName - java.lang.String the tag name.
        Returns:
        java.lang.String of the XML end tag with tag name included.
      • isBlank

        public static boolean isBlank(java.lang.String s)
        Takes a string and returns true if it is null, an empty string, or string containing only white space.
        Parameters:
        s - The String to check.
        Returns:
        true if the parameter is empty; false otherwise.
      • isValidDate

        public static boolean isValidDate(java.lang.String s)
        Returns true if the string is a valid date or is an empty string, false otherwise.
        Parameters:
        s - String to validate
        Returns:
        true if the date is valid
      • isValidDateFormat

        public static boolean isValidDateFormat(java.lang.String format)
        Tests if the date format pattern specified is valid.
        Parameters:
        format - The format string to test.
        Returns:
        true if the format parameter contains a valid formatting string; false otherwise.
      • isValidTime

        public static boolean isValidTime(java.lang.String s)
        Returns true if the string is a valid date or is an empty string, false otherwise.
        Parameters:
        s - String to validate
        Returns:
        true if the date is valid
      • isValidTimestamp

        public static boolean isValidTimestamp(java.lang.String s)
        Returns true if the string is a valid timestamp or is an empty string false otherwise.
        Parameters:
        s - String to validate
        Returns:
        true if the date is valid
      • normalizeDatetime

        public static java.lang.String normalizeDatetime(java.lang.String s)
        Gets rid of unnecessary punctuation, multiple white space and other anomalies in a Datetime string. Converts all characters to caps and inserts spaces between digits and letters.
        Parameters:
        s - String to normalize
        Returns:
        java.lang.String a right format of date-time
      • replaceSubstring

        public static java.lang.String replaceSubstring(java.lang.String str,
                                                        java.lang.String substr1,
                                                        java.lang.String substr2,
                                                        int startFromLocation)
        Utility function used to replace all occurrences of substring 1 (substr1) with substring 2 (substr2) in string object.
        Parameters:
        str - The original string
        substr1 - The substring 1 to be replaced (all occurrences of it)
        substr2 - The substring 2 that is inserted in place of substring 1.
        startFromLocation - The starting location in string (if the whole string put 0)
        Returns:
        A new string where all occurrences of substring 1 are replaced with substring 2 starting at given location of string.
      • requireParameterNotNull

        public static final void requireParameterNotNull(java.lang.String className,
                                                         java.lang.String methodName,
                                                         java.lang.String parameterName,
                                                         java.lang.Object object)
        Clients should call this when they receive a parameter that may not be null. The impletementation of this method should be updated since the service being called is deprecated.
        Parameters:
        className - java.lang.String is the name of class.
        methodName - java.lang.String is the name of method.
        parameterName - java.lang.String is the name of parameter.
        object - java.lang.Object the object.
      • spacesToUnderscores

        public static java.lang.String spacesToUnderscores(java.lang.String s)
        Takes a String and converts the blank spaces inside the String to underscores, then returns this new String
        Parameters:
        s - String to convert
        Returns:
        java.lang.String from the input while the replacement is completed.
      • startTag

        public static java.lang.String startTag(java.lang.String tagName)
        Return an XML start tag with given tag name.
        Parameters:
        tagName - java.lang.String the tag name.
        Returns:
        java.lang.String tag name in angle brackets <>.
      • stringToDate

        public static java.sql.Date stringToDate(java.lang.String s)
                                          throws java.text.ParseException
        Converts a String to a Date. Any of the formats #dateFormat_DASH, #dateFormat_SLASH, #dateFormat_DOT, #dateFormat_SPACE, and #dateFormat_NONE with 2 or 4 digit years are accepted (2 digit years have the range 1921-2020). An isBlank(String) String is converted to a null Date.
        Parameters:
        s - String to parse
        Returns:
        the Date parsed or null
        Throws:
        java.text.ParseException - thrown if s is improperly formatted.
      • stringToDate

        public static java.sql.Date stringToDate(java.lang.String s,
                                                 java.lang.String format)
                                          throws java.text.ParseException
        Converts a String to a Dateusing the given format. An isBlank(String) String is converted to a null Date.
        Parameters:
        s - String to parse
        format - Format to use
        Returns:
        the Date parsed or null
        Throws:
        java.text.ParseException - if s is improperly formatted.
        java.lang.IllegalArgumentException - if the format specified by format is invalid.
      • stringToTime

        public static java.sql.Time stringToTime(java.lang.String s)
                                          throws java.text.ParseException
        Converts a String to a Time. Any of the formats in the supportedTimeFormat array are supported, separated by any punctuation. An isBlank(String) String is converted to a null Time.
        Parameters:
        s - String to parse
        Returns:
        the Time parsed or null
        Throws:
        java.text.ParseException - thrown if s is improperly formatted.
      • stringToTime

        public static java.sql.Time stringToTime(java.lang.String s,
                                                 java.lang.String format)
                                          throws java.text.ParseException
        Converts a String to a Timeusing the given format. An isBlank(String) String is converted to a null Time.
        Parameters:
        s - String to parse
        format - Format to use
        Returns:
        the Time parsed or null
        Throws:
        java.text.ParseException - if s is improperly formatted.
        java.lang.IllegalArgumentException - if the format specified by format is invalid.
      • stringToTimestamp

        public static java.sql.Timestamp stringToTimestamp(java.lang.String s)
                                                    throws java.text.ParseException
        Converts a String to a Timestamp. Any of the formats #timestampFormat_DASH, #timestampFormat_SLASH, #timestampFormat_DOT, #timestampFormat_SPACE, and #timestampFormat_NONE with 2 or 4 digit years are accepted (2 digit years have the range 1921-2020). An isBlank(String) String is converted to a null Timestamp.
        Parameters:
        s - String to parse
        Returns:
        the Timestamp parsed or null
        Throws:
        java.text.ParseException - thrown if s is improperly formatted.
      • stringToTimestamp

        public static java.sql.Timestamp stringToTimestamp(java.lang.String s,
                                                           java.lang.String format)
                                                    throws java.text.ParseException
        Converts a String to a Timestampusing the given format. An isBlank(String) String is converted to a null Timestamp.
        Parameters:
        s - String to parse
        format - Format to use
        Returns:
        the Timestamp parsed or null
        Throws:
        java.text.ParseException - if s is improperly formatted.
        java.lang.IllegalArgumentException - if the format specified by format is invalid.
      • stringToTimestamp

        public static java.sql.Timestamp stringToTimestamp(java.lang.String s,
                                                           java.lang.String format,
                                                           java.util.Locale lcl)
                                                    throws java.text.ParseException
        Converts a String to a Timestampusing the given format and lcl. An isBlank(String) String is converted to a null Timestamp.
        Parameters:
        s - String to parse
        format - java.lang.String
        lcl - java.lang.Locale
        Returns:
        the Timestamp parsed or null
        Throws:
        java.text.ParseException - if s is improperly formatted.
        java.lang.IllegalArgumentException - if the format specified by format is invalid.
      • timestampToString

        public static java.lang.String timestampToString(java.sql.Timestamp date)
        Returns the date as a String formatted by the default format displayDateFormat. A null date is converted to a null String.
        Parameters:
        date - Date
        Returns:
        date formatted by the default format displayDateFormat or null.
      • timestampToString

        public static java.lang.String timestampToString(java.sql.Timestamp date,
                                                         java.lang.String format)
        Returns the date as a String formatted by the supplied format A null date is converted to a null String.
        Parameters:
        date - Date
        format - format to use
        Returns:
        A formatted String, or null if the date parameter is null.
        Throws:
        java.lang.IllegalArgumentException - An exception will be thrown if the format specified by the format parameter is invalid.
      • timestampToString

        public static java.lang.String timestampToString(java.util.Date date)
        Returns the date as a String formatted by the default format displayDateFormat. A null date is converted to a null String.
        Parameters:
        date - Date
        Returns:
        date formatted by the default format displayDateFormat or null.
      • timestampToString

        public static java.lang.String timestampToString(java.util.Date date,
                                                         java.lang.String format)
        Returns the date as a String formatted by the supplied format A null date is converted to a null String.
        Parameters:
        date - Date
        format - format to use
        Returns:
        A formatted String, or null if the date parameter is null.
        Throws:
        java.lang.IllegalArgumentException - An exception will be thrown if the format specified by the format parameter is invalid.
      • timestampToString

        public static java.lang.String timestampToString(java.sql.Timestamp date,
                                                         java.lang.String format,
                                                         java.util.Locale lcl)
        Returns the date as a String formatted by the supplied format and locale A null date is converted to a null String.
        Parameters:
        date - Date
        format - format to use
        lcl - java.util.Locale
        Returns:
        A formatted String, or null if the date parameter is null.
        Throws:
        java.lang.IllegalArgumentException - An exception will be thrown if the format specified by the format parameter is invalid.
      • timeToString

        public static java.lang.String timeToString(java.sql.Time time)
        Returns the date as a String formatted by the default format displayDateFormat. A null date is converted to a null String.
        Parameters:
        date - Date
        Returns:
        date formatted by the default format displayDateFormat or null.
      • timeToString

        public static java.lang.String timeToString(java.sql.Time time,
                                                    java.lang.String format)
        Returns the date as a String formatted by the supplied format A null date is converted to a null String.
        Parameters:
        date - Date
        format - format to use
        Returns:
        A formatted String, or null if the date parameter is null.
        Throws:
        java.lang.IllegalArgumentException - An exception will be thrown if the format specified by the format parameter is invalid.
      • toBoolean

        public static boolean toBoolean(java.lang.Object value)
        Convert Object into a boolean primitive type
        Parameters:
        value - java.lang.Object the object value to be converted
        Returns:
        a boolean value converted from the object
      • toBoolean

        public static boolean toBoolean(java.lang.String value)
        Convert String into a boolean primitive type
        Parameters:
        value - java.lang.String the string value to be converted
        Returns:
        a boolean value converted from the string
      • toInt

        public static int toInt(java.lang.Object value)
        Convert Object into an int primitive type
        Parameters:
        value - java.lang.Object the object value to be converted
        Returns:
        an int value converted from the object
      • toInt

        public static int toInt(java.lang.String value)
        Convert String into an int primitive type
        Parameters:
        value - java.lang.String the string value to be converted
        Returns:
        an int value converted from the string
      • toReversedVector

        public static java.util.Vector toReversedVector(java.util.Vector originalVector)
        This method is using to reverse the order of Vector's objects.
        Parameters:
        originalVector - java.util.Vector is the original vector
        Returns:
        Vector containing reversed order of its objects.
      • toVector

        public static java.util.Vector toVector(java.lang.Object value)
        This method will convert an Object type of vector into a Vector type.
        Parameters:
        value - java.lang.Object is the object of type vector.
        Returns:
        java.util.Vector is a vector converted from the object.
      • getCatEntryId

        public java.lang.String getCatEntryId(java.lang.String partNumber,
                                              java.lang.String dN)
                                       throws ECException
        Return CATENTRY ID (Reference Number) in string type by passing its unique index.
        Parameters:
        partNumber - java.lang.String SKU number
        dN - java.lang.String is the DN
        Returns:
        Catalog Entry Reference Number
        Throws:
        ECException
      • getShipModeId

        public java.lang.String getShipModeId(java.lang.String code,
                                              java.lang.String carrier,
                                              java.lang.String storeName,
                                              java.lang.String ownerDN)
                                       throws ECException
        Return shipping mode id in string type by passing its unique index. code, carrier, store Identifier, distinguished name,
        Parameters:
        code - java.lang.String code for the shipping mode search
        carrier - java.lang.String carrier for the shipping mode search
        storeName - java.lang.String store name
        ownerDN - java.lang.String user's DN
        Returns:
        shipping mode ID in the format of java.lang.String
        Throws:
        FinderException
        RemoteException
        NamingException
        CreateException
        ECException
      • getSKU

        public java.lang.String getSKU(java.lang.String catentry_id)
                                throws ECException
        Return SKU of string type by passing its CATENTRY ID.
        Parameters:
        catentry_id - catentry id of java.lang.String type.
        Returns:
        SKU of java.lang.String type.
        Throws:
        ECException
      • getSKUType

        public java.lang.String getSKUType(java.lang.String catentry_id)
                                    throws ECException
        Returns SKU type by passing its CATENTRY ID.
        Parameters:
        catentry_id - java.lang.String is the category id.
        Returns:
        SKU of type java.lang.String
        Throws:
        ECException
      • getSKUName

        public java.lang.String getSKUName(java.lang.String langId,
                                           java.lang.String catentry_id)
                                    throws ECException
        Returns SKU name by passing its CATENTRY ID.
        Parameters:
        langId - java.lang.String lang id.
        catentry_id - java.lang.String catentry id.
        Returns:
        SKU name of type java.lang.String.
        Throws:
        ECException
      • getSKUs

        public java.util.Vector getSKUs(java.util.Vector catentryIds)
                                 throws ECException
        Returns SKU Vector by passing its CATENTRY ID vector.
        Parameters:
        catentryIds - catEntryIds is the java.util.Vector of catEntry ids.
        Returns:
        SKU Vector list corresponding to the catentry ids.
        Throws:
        ECException
      • getCatGroupId

        public java.lang.String getCatGroupId(java.lang.String identifier,
                                              java.lang.String dN)
                                       throws ECException
        Returns category ID in string type by passing its unique index.
        Parameters:
        identifier - java.lang.String the user id for catalog group search.
        dN - java.lang.String the DN
        Returns:
        categoryId java.lang.String by passing its unique index.
        Throws:
        ECException
      • getCategoryName

        public java.lang.String getCategoryName(java.lang.String storeId,
                                                java.lang.String langId,
                                                java.lang.String catIdentifier)
                                         throws ECException
        Returns category name in string type by passing its store ID, language ID and identifier
        Parameters:
        storeId - java.lang.String the store ID
        langId - java.lang.String the language ID
        catIdentifier - java.lang.String the the user id for catalog group search
        Returns:
        categoryName java.lang.String by passing its store ID, language ID and identifier
        Throws:
        ECException
      • getRelatedStores

        public static StoreKey[] getRelatedStores(StoreKey sKey)
        This Static method returns the StoreKeys of all the Stores related to this Store through com.ibm.commerce.promotions relationship.
        Parameters:
        sKey - StoreKey
        Returns:
        list of StoreKey related through com.ibm.commerce.promotions relationship.
      • getRelatedStoreIds

        public static java.lang.Integer[] getRelatedStoreIds(StoreKey skey)
        This Static method returns the StoreIdss of all the Stores related to this Store by com.ibm.commerce.promotions relationship.
        Parameters:
        skey - StoreKey
        Returns:
        list of StoreIds
      • getStoreId

        public static java.lang.Integer getStoreId(StoreKey key)
                                            throws ECException
        Returns Store Id of the store with a given store key
        Parameters:
        key - StoreKey
        Returns:
        Integer StoreId
        Throws:
        ECException
      • getMbrGrpId

        public static java.lang.Long getMbrGrpId(java.lang.String mbrGrpName,
                                                 java.lang.String ownerDN)
        Returns member group ID with the given name & owner
        DN
        Parameters:
        mbrGrpName - java.lang.String the member group name
        ownerDN - java.lang.String the user DN
        Returns:
        Long MemberGroupId
        Throws:
        ECException
      • getOwnerId

        public static java.lang.Long getOwnerId(java.lang.String dn)
                                         throws ECException
        Returns owner ID of the store with a given owner
        DN
        Parameters:
        dn - java.lang.String the user DN
        Returns:
        Long Member ID of the owner of the store
        Throws:
        ECException