|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hyper9.uvapi.impls.BeanImpl
com.hyper9.uvapi.impls.UniqueBeanImpl<java.lang.Integer>
com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
com.hyper9.vangaea.impls.beans.admin.AuthCookieBeanImpl
public class AuthCookieBeanImpl
A bean describing a row in the tbl_auth_cookies table.
Field Summary |
---|
Fields inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
---|
conn, isDeleted, isDirty |
Constructor Summary | |
---|---|
AuthCookieBeanImpl()
The default constructor for serialization. |
|
AuthCookieBeanImpl(java.sql.Connection connection,
int id,
java.lang.String cookieValue,
int userID,
java.util.Date created)
Initializes a new instance of the AuthCookieBeanImpl class. |
Method Summary | |
---|---|
static AuthCookieBean |
add(java.sql.Connection conn,
java.lang.String cookieValue,
int userID)
Adds a new authentication cookie to the table. |
static AuthCookieBean |
add(UserBean user)
Adds a new authentication cookie to the table. |
static AuthCookieBean |
get(java.sql.Connection conn,
int id)
Get an authentication cookie from the data source. |
static AuthCookieBean |
getByCookieValue(java.sql.Connection conn,
java.lang.String cookieValue)
Get an authentication cookie from the data source by its cookie value. |
java.lang.String |
getCookieValue()
Gets the cookie's value. |
java.util.Date |
getCreated()
Gets the date and time this cookie was created. |
UserBean |
getUser()
Gets the user this cookie is for. |
int |
getUserID()
Gets the identifier of the user this cookie is for. |
void |
setCookieValue(java.lang.String toSet)
Sets the cookie's value. |
void |
setCreated(java.util.Date toSet)
Sets the date and time this cookie was created. |
void |
setUserID(int toSet)
Sets the identifier of the user this cookie is for. |
Methods inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
---|
getConnection, isDeleted, isDirty |
Methods inherited from class com.hyper9.uvapi.impls.UniqueBeanImpl |
---|
getID, setID |
Methods inherited from class com.hyper9.uvapi.impls.BeanImpl |
---|
toString, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hyper9.vangaea.types.beans.admin.AdminBean |
---|
getConnection, isDeleted, isDirty |
Methods inherited from interface com.hyper9.common.beans.UniqueBean |
---|
getID, setID |
Methods inherited from interface com.hyper9.common.beans.Bean |
---|
toString, toString, toString, toString |
Constructor Detail |
---|
public AuthCookieBeanImpl()
public AuthCookieBeanImpl(java.sql.Connection connection, int id, java.lang.String cookieValue, int userID, java.util.Date created)
connection
- The underlying data connection.id
- The user ID.cookieValue
- The value of the authentication cookie.userID
- The identifier of the user the cookie is for.created
- When the cookie was created.Method Detail |
---|
public java.lang.String getCookieValue()
AuthCookieBean
getCookieValue
in interface AuthCookieBean
public java.util.Date getCreated()
AuthCookieBean
getCreated
in interface AuthCookieBean
public UserBean getUser() throws java.lang.Exception
AuthCookieBean
getUser
in interface AuthCookieBean
java.lang.Exception
- When an error occurs.public int getUserID()
AuthCookieBean
getUserID
in interface AuthCookieBean
public void setCookieValue(java.lang.String toSet)
AuthCookieBean
setCookieValue
in interface AuthCookieBean
toSet
- The cookie's value.public void setCreated(java.util.Date toSet)
AuthCookieBean
setCreated
in interface AuthCookieBean
toSet
- The date and time this cookie was created.public void setUserID(int toSet)
AuthCookieBean
setUserID
in interface AuthCookieBean
toSet
- The identifier of the user this cookie is for.public static AuthCookieBean get(java.sql.Connection conn, int id) throws java.lang.Exception
id
- The cookie's identifier.conn
- The underlying data connection.
java.lang.Exception
- When an error occurs.public static AuthCookieBean getByCookieValue(java.sql.Connection conn, java.lang.String cookieValue) throws java.sql.SQLException
cookieValue
- The cookie's value.conn
- The underlying data connection.
java.sql.SQLException
- When a SQL error occurs.public static AuthCookieBean add(UserBean user) throws java.sql.SQLException
user
- The user to add the cookie for.
java.sql.SQLException
- When a SQL error occurs.public static AuthCookieBean add(java.sql.Connection conn, java.lang.String cookieValue, int userID) throws java.sql.SQLException
conn
- The data connection to use.cookieValue
- The cookie value.userID
- The identifier of the user this cookie is for.created
- When this cookie was created.
java.sql.SQLException
- When a SQL error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |