|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.vnd.VendorUtils
public class VendorUtils
Utility class with helper methods for Vendor processing
| Field Summary | |
|---|---|
static char |
FIELD_SEPERATOR
|
static char |
LEFT_COLLECTION_SEPERATOR
|
static char |
RIGHT_COLLECTION_SEPERATOR
|
| Constructor Summary | |
|---|---|
VendorUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char LEFT_COLLECTION_SEPERATOR
public static final char RIGHT_COLLECTION_SEPERATOR
public static final char FIELD_SEPERATOR
| Constructor Detail |
|---|
public VendorUtils()
| Method Detail |
|---|
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 number
public static String buildMessageText(String messageKey,
String... parameters)
messageKey - parameters -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||