|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.virginia.dcjs.regulatory.Rules
The methods of this class encapsulate the common business
* rules used by a variety of Private Security applications, such as:
* Watson, Sherlock and the Online Directories. The majority of these
* methods return simple boolean values. Others return a single data
* element like a DCJS ID. More complex rules, returning entire
* RecordSets of data, would likely be better implemented
* as stored procedures within the database itself.
| Field Summary | |
static int |
BUSINESS
Specifies business related type |
static int |
SCHOOL
Specifies school related type |
| Constructor Summary | |
Rules()
|
|
| Method Summary | |
java.lang.String |
getCategories(java.lang.String aptype)
Obtain all categories pertaining to an application type. |
Record |
getCertificationInfo(java.lang.String id,
java.lang.String cert)
Obtain all information for the specified entity's provided * certification. |
java.lang.String |
getCertifications(java.lang.String id)
Obtain all certifications the specified entity has on file. |
RecordSet |
getContactInfo(java.lang.String id)
Obtain all contact information for the specified entity. |
java.lang.String |
getDcjsId(java.lang.String ssn)
Obtain the DCJS ID pertaining to the provided SSN, or an * empty string if no id exists. |
java.lang.String |
getEmployerId(java.lang.String id,
int type)
Obtain specified employer type for the provided person's id. |
java.lang.String |
getExpiration(java.lang.String id,
java.lang.String cert)
Obtain the expiration date for the specified entity of the * certification type provided. |
RecordSet |
getFeeInfo(java.lang.String cert)
Obtain the fee information for the specified certification. |
java.lang.String |
getSSN(java.lang.String id)
Obtain the SSN for the specified DCJS ID. |
static boolean |
isBlankDate(java.lang.String date)
Determine if the date provided is either empty or is the ODBC * sentinal date for "blank" (12/30/1899). |
static boolean |
isBusinessId(java.lang.String id)
Determine if the provided id is a valid Business id. |
boolean |
isCertified(java.lang.String id,
java.lang.String cert)
Determine if the entity provided has an approved certification. |
static boolean |
isDcjsId(java.lang.String id)
Determine if the provided id is either a valid Business, School, * Person or Temporary DCJS ID. |
static boolean |
isEnrollment(java.lang.String aptype)
Determine if the specified application is actually an enrollment. |
boolean |
isExpired(java.lang.String id,
java.lang.String cert)
Determine if the certification specified is beyond its expiration * date for the entity provided. |
static boolean |
isFirearms(java.lang.String cert)
Determine if the certification specified is one of the firearms * types. |
boolean |
isPending(java.lang.String id,
java.lang.String cert)
Determine if the certification pending approval for the entity provided. |
static boolean |
isPersonId(java.lang.String id)
Determine if the provided id is a valid Person ID (final or temporary). |
boolean |
isRenewable(java.lang.String id,
java.lang.String cert)
Determine if the certification specified is within the window * of renewal for the entity provided. |
static boolean |
isSchoolId(java.lang.String id)
Determine if the provided id is a valid School id. |
boolean |
isSubmitted(java.lang.String id,
java.lang.String cert)
Determine if the entity provided has the specified certification * on file. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SCHOOL
public static final int BUSINESS
| Constructor Detail |
public Rules()
| Method Detail |
public static void main(java.lang.String[] args)
public java.lang.String getCertifications(java.lang.String id)
public Record getCertificationInfo(java.lang.String id,
java.lang.String cert)
public RecordSet getContactInfo(java.lang.String id)
public java.lang.String getDcjsId(java.lang.String ssn)
public java.lang.String getEmployerId(java.lang.String id,
int type)
public java.lang.String getExpiration(java.lang.String id,
java.lang.String cert)
public RecordSet getFeeInfo(java.lang.String cert)
public java.lang.String getSSN(java.lang.String id)
public boolean isSubmitted(java.lang.String id,
java.lang.String cert)
true is returned, it does not mean
* that the certification is necessarily approved, but only it is
* either approved or actively in the approval process.
* @param id DCJS ID of entity to check for certification.
* @param cert Certification type to check for.
* @return True when the entity provided has an active certification
* of the type specified.
public boolean isCertified(java.lang.String id,
java.lang.String cert)
public boolean isExpired(java.lang.String id,
java.lang.String cert)
public boolean isRenewable(java.lang.String id,
java.lang.String cert)
public boolean isPending(java.lang.String id,
java.lang.String cert)
public static boolean isFirearms(java.lang.String cert)
public static boolean isBlankDate(java.lang.String date)
public static boolean isDcjsId(java.lang.String id)
public static boolean isBusinessId(java.lang.String id)
public static boolean isSchoolId(java.lang.String id)
public static boolean isPersonId(java.lang.String id)
public java.lang.String getCategories(java.lang.String aptype)
public static boolean isEnrollment(java.lang.String aptype)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||