public class VendorUtils extends Object
Modifier and Type | Field and Description |
---|---|
static char |
FIELD_SEPERATOR |
static char |
LEFT_COLLECTION_SEPERATOR |
static char |
RIGHT_COLLECTION_SEPERATOR |
Constructor and Description |
---|
VendorUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
assembleWithPosition(String full,
String[] collections,
int[] positions)
Builds up a string and a position like so abc, 1 becomes abc[1] it is used for fields that require operations on
collections.
|
static String |
assembleWithPosition(String full,
String collection,
int position)
A helper to call assembleWithPosition(String full, String[] collections, int[] positions) when only one
collection
|
static String |
buildMessageText(String messageKey,
String... parameters)
Composes the text for the note related to parent change to be added to the old parent vendor.
|
static Integer |
getVendorDetailId(String vendorNumber)
Returns the detailId portion from a composite vendor number.
|
static Integer |
getVendorHeaderId(String vendorNumber)
Returns the headerId portion from a composite vendor number.
|
static boolean |
validVendorNumberFormat(String vendorNumber)
Accepts a vendorNumber string, and evaluates it to make sure it is of the correct format.
|
public static final char LEFT_COLLECTION_SEPERATOR
public static final char RIGHT_COLLECTION_SEPERATOR
public static final char FIELD_SEPERATOR
public VendorUtils()
public static String assembleWithPosition(String full, String[] collections, int[] positions)
full
- collections
- pos
- public static String assembleWithPosition(String full, String collection, int position)
full
- collection
- position
- public static Integer getVendorHeaderId(String vendorNumber)
vendorNumber
- - composite vendor number (detail and header)public static Integer getVendorDetailId(String vendorNumber)
vendorNumber
- - composite vendor number (detail and header)public static boolean validVendorNumberFormat(String vendorNumber)
vendorNumber
- - String representing the vendor numberpublic static String buildMessageText(String messageKey, String... parameters)
messageKey
- parameters
- Copyright © 2004–2014 The Kuali Foundation. All rights reserved.