|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.Universal
public class Universal
A universal class used for providing base application settings and common tasks.
Copyright ©Zphinx Software Solutions
| Field Summary | |
|---|---|
static int |
SESSION_COUNTER
The value (in seconds) to renew our UserListBeans within the system |
| Fields inherited from interface com.zphinx.spine.UniversalConstants |
|---|
ACCOUNT_DETAILS_DEFAULT, ACCOUNT_SECRETS, ACCOUNT_SECRETS_TYPE, CLEAR, CREATE, DELETE, EDIT, RESET, SAVE, SAVE_UPDATE, VIEW, ZONE_ADMIN, ZONE_GROUP, ZONE_PUBLIC, ZONE_USER |
| Method Summary | |
|---|---|
static String |
createSQLDate(long date)
Creates the java.sql string representation of a date in yyyy-mm-dd |
static Date |
createSQLDateFromString(String s)
Gets a Date object from an sql date string in format yyyy-mm-dd |
static String |
createSQLTime(long time)
Creates an SQL time in string format. |
static int |
generateHashCode(String s)
Generates an int useful for hashcodes using a simple numerical replacement of the alphabet eg L = 12 |
static Date |
getCalenderDate(String dateString)
Parses the string returned from a Calender application as a Date, usually of the form DD/MM/YYYY |
static String |
getCalenderDateString(Date date)
Gets a String that can be displayed to the user by a calender for a date. |
static Date |
getDateFromString(String totalString)
Gets a date from string values usually of the form YYYY-MM-DD hh:mm:ss |
static String |
getGroupLabel(String gId)
Gets the label associated with this groupId |
static List |
getGroupsList()
Gets all the groups in this system. |
static String |
getGroupValue(String gLabel)
Gets the id of the named group |
static org.apache.log4j.Logger |
getLogger(String instance)
Gets the log4j logger instance for use by this system |
static String |
getRandom(int size)
Gets a random character identifier from (A-Z,a-z,0-9) |
static String |
getRealDate(Date date)
Gets a string to insert for date values |
static long |
getUniqueId()
Gets a uniqueId which can be used for Ids |
static void |
setGroupsList(List groupsListExt)
Stores the groups list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SESSION_COUNTER
| Method Detail |
|---|
public static org.apache.log4j.Logger getLogger(String instance)
instance - A string representing the class we are working with
public static long getUniqueId()
public static String getRandom(int size)
size - The number of random characters to generate
public static int generateHashCode(String s)
L = 12
s - The string whose int representation is to be generated
L = 12public static String getRealDate(Date date)
date - The Date object representing this date
public static String createSQLTime(long time)
hh:mm:ss
time - The time in milliseconds from the epoch
public static String createSQLDate(long date)
yyyy-mm-dd
date - The date in milliseconds from the epoch
public static Date createSQLDateFromString(String s)
yyyy-mm-dd
s - The String containing the date usually the type obtained from a db
public static Date getDateFromString(String totalString)
YYYY-MM-DD hh:mm:ss
totalString - The full string from an sql database
public static String getCalenderDateString(Date date)
DD/MM/YYYY
date - The Date to create a string
public static Date getCalenderDate(String dateString)
DD/MM/YYYY
dateString - The string returned from widget
public static List getGroupsList()
StringAttributeBeans of group namespublic static void setGroupsList(List groupsListExt)
groupsListExt - an ArrayList of StringAttributeBeans representing the names of individual groupspublic static String getGroupLabel(String gId)
gId - A String representing the id of individual group
public static String getGroupValue(String gLabel)
gLabel - A String representing the name of individual group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||