| java.lang.Object org.kuali.module.vendor.util.VendorUtils
VendorUtils | public class VendorUtils (Code) | | Utility class with helper methods for Vendor processing
|
FIELD_SEPERATOR | final public static char FIELD_SEPERATOR(Code) | | |
LEFT_COLLECTION_SEPERATOR | final public static char LEFT_COLLECTION_SEPERATOR(Code) | | |
RIGHT_COLLECTION_SEPERATOR | final public static char RIGHT_COLLECTION_SEPERATOR(Code) | | |
assembleWithPosition | public static String assembleWithPosition(String full, String[] collections, int[] positions)(Code) | | Builds up a string and a position like so abc, 1 becomes abc[1] it is used for fields that require operations on
collections.
Parameters: full - Parameters: collections - Parameters: pos - Newly formatted string |
assembleWithPosition | public static String assembleWithPosition(String full, String collection, int position)(Code) | | A helper to call assembleWithPosition(String full, String[] collections, int[] positions) when only one
collection
Parameters: full - Parameters: collection - Parameters: position - Newly formatted string |
getVendorDetailId | public static Integer getVendorDetailId(String vendorNumber)(Code) | | Returns the detailId portion from a composite vendor number.
Parameters: vendorNumber - - composite vendor number (detail and header) returns the detailId number |
getVendorHeaderId | public static Integer getVendorHeaderId(String vendorNumber)(Code) | | Returns the headerId portion from a composite vendor number.
Parameters: vendorNumber - - composite vendor number (detail and header) returns the headerId number |
validVendorNumberFormat | public static boolean validVendorNumberFormat(String vendorNumber)(Code) | | Accepts a vendorNumber string, and evaluates it to make sure it is of the correct format. This method does not
test whether the given vendor number exists in the database, rather it just tests that the format is correct.
Parameters: vendorNumber - - String representing the vendor number - returns an empty string on success, or an error message on a failure |
|
|