Class CommonWorkers


  • public final class CommonWorkers
    extends java.lang.Object
    Common Workers
    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • getAssociatedStateList

        public static java.util.List<GenericValue> getAssociatedStateList​(Delegator delegator,
                                                                          java.lang.String country)
      • getAssociatedStateList

        public static java.util.List<GenericValue> getAssociatedStateList​(Delegator delegator,
                                                                          java.lang.String country,
                                                                          java.lang.String listOrderBy)
        Returns a list of regional geo associations.
      • hasParentType

        @Deprecated
        public static boolean hasParentType​(Delegator delegator,
                                            java.lang.String entityName,
                                            java.lang.String primaryKey,
                                            java.lang.String childType,
                                            java.lang.String parentTypeField,
                                            java.lang.String parentType)
        Deprecated.
        A generic method to be used on Type enities, e.g. ProductType. Recurse to the root level in the type hierarchy and checks if the specified type childType has parentType as its parent somewhere in the hierarchy.
        Parameters:
        delegator - The Delegator object.
        entityName - Name of the Type entity on which check is performed.
        primaryKey - Primary Key field of the Type entity.
        childType - Type value for which the check is performed.
        parentTypeField - Field in Type entity which stores the parent type.
        parentType - Value of the parent type against which check is performed.
        Returns:
        boolean value based on the check results.