|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable org.paneris.util.ExtendedHash org.paneris.jal.model.DDRecord org.paneris.user.model.User
public class User
A User.
Field Summary |
---|
Fields inherited from class org.paneris.jal.model.DDRecord |
---|
connMgr, database, dataCache, debug, metaData |
Constructor Summary | |
---|---|
User(java.lang.String db)
Constructor |
|
User(java.lang.String db,
java.lang.Integer record)
Constructor |
|
User(java.lang.String db,
java.sql.ResultSet rs)
Constructor |
Method Summary | |
---|---|
void |
announce(int boardid,
java.lang.String mess)
Announce this user to a messageboard. |
static java.lang.String |
checkLoggedIn(java.lang.String resourceType,
java.lang.String resource,
java.lang.String db,
org.webmacro.servlet.WebContext context,
java.lang.String message)
|
static java.lang.String |
checkLoggedIn(java.lang.String resourceType,
java.lang.String resource,
java.lang.String db,
org.webmacro.servlet.WebContext context,
java.lang.String message,
boolean force)
|
static java.lang.String |
checkLoggedIn(java.lang.String resourceType,
java.lang.String resource,
java.lang.String db,
org.webmacro.servlet.WebContext context,
java.lang.String message,
boolean force,
java.lang.String wmtemplate)
Checks whether a user has access rights for a particular resource. |
static java.lang.String |
checkLoggedIn(java.lang.String resourceType,
java.lang.String resource,
org.webmacro.servlet.WebContext context,
java.lang.String message)
check if we are logged in, |
static java.lang.String |
checkLoggedIn(java.lang.String resourceType,
java.lang.String resource,
org.webmacro.servlet.WebContext context,
java.lang.String message,
boolean force)
|
static java.lang.String |
checkLoggedInForParentRecord(DDRecord record,
org.webmacro.servlet.WebContext context,
java.lang.String message)
Check if we are logged in for the table and record we are trying to edit, this is done by looking at the record for fields that lookup directly to a this users user record. |
static java.lang.String |
checkLoggedInForRecord(DDRecord record,
org.webmacro.servlet.WebContext context,
java.lang.String message)
Check if we are logged in by the table and record we are trying to edit. |
boolean |
checkPassword(java.lang.String c)
|
void |
generateDetails()
generates a unique login id and a random password for this user also set the username to the password if it is blank |
void |
generateId()
|
java.lang.Integer |
getId()
|
static User |
getInstance(org.webmacro.servlet.WebContext context)
|
static User |
getInstance(org.webmacro.servlet.WebContext context,
java.lang.String db)
|
static java.lang.String |
getLoginPage(org.webmacro.servlet.WebContext context,
java.lang.String message)
|
static java.lang.String |
getLoginPage(org.webmacro.servlet.WebContext context,
java.lang.String db,
java.lang.String message)
|
static java.lang.String |
getLoginPage(org.webmacro.servlet.WebContext context,
java.lang.String db,
java.lang.String message,
java.lang.String wmtemplate)
|
static User |
getSystemUser(java.lang.String db)
|
boolean |
isAdministrator()
|
boolean |
isLoggedOn()
|
User |
refresh(org.webmacro.servlet.WebContext context)
|
void |
setLoggedOn(boolean value)
|
static void |
setReturnURL(org.webmacro.servlet.WebContext context)
|
Methods inherited from class org.paneris.jal.model.DDRecord |
---|
appendFieldValue, delete, get, getChildren, getField, getFieldValue, getLinksToThis, getLinksToThis, getMetaData, getOrderedChildren, getProblems, getResultSet, init, isDuplicated, setFieldValue, setFieldValue, setFromDefaults, setFromForm, setFromForm, setFromForm, write, write |
Methods inherited from class org.paneris.util.ExtendedHash |
---|
clear, elements, joinKeys, keys, put, remove |
Methods inherited from class java.util.Hashtable |
---|
clone, contains, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public User(java.lang.String db, java.sql.ResultSet rs) throws java.lang.Exception
java.lang.Exception
public User(java.lang.String db) throws java.lang.Exception
java.lang.Exception
public User(java.lang.String db, java.lang.Integer record) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static User getInstance(org.webmacro.servlet.WebContext context) throws java.lang.Exception
java.lang.Exception
public static User getInstance(org.webmacro.servlet.WebContext context, java.lang.String db) throws java.lang.Exception
java.lang.Exception
public User refresh(org.webmacro.servlet.WebContext context) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getLoginPage(org.webmacro.servlet.WebContext context, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getLoginPage(org.webmacro.servlet.WebContext context, java.lang.String db, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getLoginPage(org.webmacro.servlet.WebContext context, java.lang.String db, java.lang.String message, java.lang.String wmtemplate) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedInForParentRecord(DDRecord record, org.webmacro.servlet.WebContext context, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedInForRecord(DDRecord record, org.webmacro.servlet.WebContext context, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedIn(java.lang.String resourceType, java.lang.String resource, org.webmacro.servlet.WebContext context, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedIn(java.lang.String resourceType, java.lang.String resource, java.lang.String db, org.webmacro.servlet.WebContext context, java.lang.String message) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedIn(java.lang.String resourceType, java.lang.String resource, org.webmacro.servlet.WebContext context, java.lang.String message, boolean force) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedIn(java.lang.String resourceType, java.lang.String resource, java.lang.String db, org.webmacro.servlet.WebContext context, java.lang.String message, boolean force) throws java.lang.Exception
java.lang.Exception
public static java.lang.String checkLoggedIn(java.lang.String resourceType, java.lang.String resource, java.lang.String db, org.webmacro.servlet.WebContext context, java.lang.String message, boolean force, java.lang.String wmtemplate) throws java.lang.Exception
java.lang.Exception
public static void setReturnURL(org.webmacro.servlet.WebContext context)
public void setLoggedOn(boolean value)
public boolean isLoggedOn()
public boolean isAdministrator()
public java.lang.Integer getId()
public boolean checkPassword(java.lang.String c) throws java.lang.Exception
java.lang.Exception
public void generateDetails()
public void generateId() throws java.lang.Exception
java.lang.Exception
public static User getSystemUser(java.lang.String db)
public void announce(int boardid, java.lang.String mess) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |