|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.profile.ValidationWrapper
public class ValidationWrapper
Wrapper class for Validator. All validations should call at least one of the sendXXX
methods from this
class so that either standard fields, standard fields only profile, and/or extended fields are sent to the server as
a PROFVAL_* document. Corresponding wm.tn.profile.validation services are fired when bizdocs are recognized.
Validation errors are passed back as String arrays. Each element of the String array stands for one validation error
found. Null is returned if no validation error found.
Field Summary | |
---|---|
static java.lang.String |
DOC_CONTENT_DOCTYPE
|
static java.lang.String |
DOC_CONTENT_EXTFLDS
|
static java.lang.String |
DOC_CONTENT_STDFLDS
|
static java.lang.String |
DOC_CONTENT_STDPROF
|
static java.lang.String |
DOCTYPE_EXTFLDS
|
static java.lang.String |
DOCTYPE_ID_EXTFLDS
|
static java.lang.String |
DOCTYPE_ID_STDFLDS
|
static java.lang.String |
DOCTYPE_ID_STDPROF
|
static java.lang.String |
DOCTYPE_STDFLDS
|
static java.lang.String |
DOCTYPE_STDPROF
|
Constructor Summary | |
---|---|
ValidationWrapper()
|
Method Summary | |
---|---|
static java.lang.String |
checkCorpNameUniqueness(Profile profile)
|
static java.lang.String |
checkCorpNameUniqueness(java.lang.String newName)
Helper method to check if newly added/updated Corporation display name is unique on this server. |
static int |
getRequiredIDCount(java.lang.String partnerID,
java.util.Vector newIDs)
Deprecated. This will return default id count now |
static boolean |
isDeletedProfile(Profile profile)
|
static boolean |
isDeletedProfile(java.lang.String newName)
|
static java.lang.String[] |
sendExtendedFields(java.util.Vector vFlds)
Validates a vector of extended profile fields. |
static java.lang.String[] |
sendStandardFields(java.util.Vector vFlds)
Validates a vector of standard profile fields. |
static java.lang.String[] |
sendStandardProfile(Profile profile)
Validates a profile containing only standard profile fields. |
static java.lang.String[] |
validateProfile(java.lang.String partnerID)
For internal use only |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DOC_CONTENT_DOCTYPE
public static final java.lang.String DOCTYPE_STDFLDS
public static final java.lang.String DOCTYPE_STDPROF
public static final java.lang.String DOCTYPE_EXTFLDS
public static final java.lang.String DOCTYPE_ID_STDFLDS
public static final java.lang.String DOCTYPE_ID_STDPROF
public static final java.lang.String DOCTYPE_ID_EXTFLDS
public static final java.lang.String DOC_CONTENT_STDFLDS
public static final java.lang.String DOC_CONTENT_STDPROF
public static final java.lang.String DOC_CONTENT_EXTFLDS
Constructor Detail |
---|
public ValidationWrapper()
Method Detail |
---|
public static java.lang.String[] sendStandardFields(java.util.Vector vFlds)
vFlds
- Vector of profile standard fields to be validated
null
if no errors foundpublic static java.lang.String[] sendStandardProfile(Profile profile)
profile
- partner profile containing only standard fields
null
if no errors foundpublic static java.lang.String[] sendExtendedFields(java.util.Vector vFlds)
vFlds
- Vector of profile extended fields to be validated
null
if no errors foundpublic static java.lang.String checkCorpNameUniqueness(java.lang.String newName)
newName
- corporation display name, in the format corpName (unitName)
null
if no error foundpublic static boolean isDeletedProfile(java.lang.String newName)
newName
existspublic static boolean isDeletedProfile(Profile profile)
public static java.lang.String checkCorpNameUniqueness(Profile profile)
public static int getRequiredIDCount(java.lang.String partnerID, java.util.Vector newIDs) throws ProfileStoreException
ProfileStoreException
public static java.lang.String[] validateProfile(java.lang.String partnerID) throws ProfileStoreException
ProfileStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |