|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.security.torque.UserPeerManager
This class capsulates all direct Peer access for the User entities. It allows the exchange of the default Turbine supplied TurbineUserPeer class against a custom class.
Field Summary |
Constructor Summary | |
UserPeerManager()
|
Method Summary | |
static org.apache.torque.util.Criteria |
buildCriteria(User user)
Calls buildCriteria(User user) in the configured UserPeer. |
static boolean |
checkExists(User user)
Checks if a User is defined in the system. |
static void |
doDelete(org.apache.torque.util.Criteria criteria)
Invokes doDelete(Criteria c) on the configured Peer Object |
static void |
doInsert(org.apache.torque.util.Criteria criteria)
Invokes doInsert(Criteria c) on the configured Peer Object |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria)
Invokes doSelect(Criteria c) on the configured Peer Object |
static void |
doUpdate(org.apache.torque.util.Criteria criteria)
Invokes doUpdate(Criteria c) on the configured Peer Object |
static java.lang.String |
getColumnName(java.lang.String name)
Returns the full name of a column. |
static java.lang.String |
getConfirmColumn()
Returns the fully qualified name of the Column to use as the Confirm Column for a role |
static java.lang.String |
getCreateDateColumn()
Returns the fully qualified name of the Column to use as the CreateDate Column for a role |
static java.lang.String |
getEmailColumn()
Returns the fully qualified name of the Column to use as the Email Column for a role |
static java.lang.String |
getFirstNameColumn()
Returns the fully qualified name of the Column to use as the FirstName Column for a role |
java.lang.String |
getFullColumnName(java.lang.String name)
Deprecated. use getColumnName(String name) |
static java.lang.Integer |
getIdAsObj(org.apache.torque.om.Persistent obj)
Invokes getId() on the supplied base object |
static java.lang.String |
getIdColumn()
Returns the fully qualified name of the Column to use as the Id Column for a group |
static java.lang.String |
getLastLoginColumn()
Returns the fully qualified name of the Column to use as the LastLogin Column for a role |
static java.lang.String |
getLastNameColumn()
Returns the fully qualified name of the Column to use as the LastName Column for a role |
static java.lang.String |
getName(org.apache.torque.om.Persistent obj)
Invokes getName() on the supplied base object |
static java.lang.String |
getNameColumn()
Returns the fully qualified name of the Column to use as the Name Column for a group |
static User |
getNewUser(org.apache.torque.om.Persistent p)
Returns a new, configured User Object with a supplied Persistent object at its core |
static java.lang.String |
getObjectdataColumn()
Returns the fully qualified name of the Column to use as the objectdata Column for a role |
static java.lang.String |
getPasswordColumn()
Returns the fully qualified name of the Column to use as the Password Column for a role |
static java.lang.String |
getTableName()
Get the name of this table. |
static java.lang.String |
getUserConfirmed(org.apache.torque.om.Persistent obj)
Invokes getConfirmed() on the supplied base object |
static java.util.Date |
getUserCreateDate(org.apache.torque.om.Persistent obj)
Invokes getCreateDate() on the supplied base object |
static java.lang.String |
getUserEmail(org.apache.torque.om.Persistent obj)
Invokes getEmail() on the supplied base object |
static java.lang.String |
getUserFirstName(org.apache.torque.om.Persistent obj)
Invokes getFirstName() on the supplied base object |
static java.util.Date |
getUserLastLogin(org.apache.torque.om.Persistent obj)
Invokes getLastLogin() on the supplied base object |
static java.lang.String |
getUserLastName(org.apache.torque.om.Persistent obj)
Invokes getLastName() on the supplied base object |
static java.lang.String |
getUserName(org.apache.torque.om.Persistent obj)
Deprecated. use getName(obj) |
static byte[] |
getUserObjectdata(org.apache.torque.om.Persistent obj)
Invokes getObjectdata() on the supplied base object |
static java.lang.String |
getUserPassword(org.apache.torque.om.Persistent obj)
Invokes getPassword() on the supplied base object |
static void |
init(org.apache.commons.configuration.Configuration conf)
Initializes the UserPeerManager, loading the class object for the Peer used to retrieve User objects |
static org.apache.torque.om.Persistent |
newPersistentInstance()
Returns a new, empty object for the underlying peer. |
static java.util.List |
selectAllConfirmedUsers()
Returns a List of all confirmed User objects. |
static java.util.List |
selectAllUsers()
Returns a List of all User objects. |
static void |
setId(org.apache.torque.om.Persistent obj,
int id)
Invokes setId(int n) on the supplied base object |
static void |
setUserConfirmed(org.apache.torque.om.Persistent obj,
java.lang.String confirm)
Invokes setConfirmed(String s) on the supplied base object |
static void |
setUserCreateDate(org.apache.torque.om.Persistent obj,
java.util.Date createDate)
Invokes setCreateDate(java.util.Date date) on the supplied base object |
static void |
setUserEmail(org.apache.torque.om.Persistent obj,
java.lang.String email)
Invokes setEmail(String s) on the supplied base object |
static void |
setUserFirstName(org.apache.torque.om.Persistent obj,
java.lang.String firstName)
Invokes setFirstName(String s) on the supplied base object |
static void |
setUserLastLogin(org.apache.torque.om.Persistent obj,
java.util.Date lastLogin)
Invokes setLastLogin(java.util.Date date) on the supplied base object |
static void |
setUserLastName(org.apache.torque.om.Persistent obj,
java.lang.String lastName)
Invokes setLastName(String s) on the supplied base object |
static void |
setUserName(org.apache.torque.om.Persistent obj,
java.lang.String name)
Invokes setName(String s) on the supplied base object |
static void |
setUserObjectdata(org.apache.torque.om.Persistent obj,
byte[] objectdata)
Invokes setObjectdata(byte [] date) on the supplied base object |
static void |
setUserPassword(org.apache.torque.om.Persistent obj,
java.lang.String password)
Invokes setPassword(String s) on the supplied base object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserPeerManager()
Method Detail |
public static void init(org.apache.commons.configuration.Configuration conf) throws InitializationException
conf
- The configuration object used to configure the Manager
InitializationException
- A problem occured during
initializationpublic static java.lang.String getTableName()
public static java.lang.String getNameColumn()
public static java.lang.String getIdColumn()
public static java.lang.String getPasswordColumn()
public static java.lang.String getFirstNameColumn()
public static java.lang.String getLastNameColumn()
public static java.lang.String getEmailColumn()
public static java.lang.String getConfirmColumn()
public static java.lang.String getCreateDateColumn()
public static java.lang.String getLastLoginColumn()
public static java.lang.String getObjectdataColumn()
public static java.lang.String getColumnName(java.lang.String name)
name
- The column to fully qualify
public java.lang.String getFullColumnName(java.lang.String name)
name
- The column to fully qualify
public static org.apache.torque.om.Persistent newPersistentInstance()
public static boolean checkExists(User user) throws DataBackendException, java.lang.Exception
user
- The User to be checked.
true
if given User exists in the system.
DataBackendException
- when more than one User with
the same name exists.
java.lang.Exception
- A generic exception.public static java.util.List selectAllUsers() throws java.lang.Exception
java.lang.Exception
- A generic exception.public static java.util.List selectAllConfirmedUsers() throws java.lang.Exception
java.lang.Exception
- A generic exception.public static org.apache.torque.util.Criteria buildCriteria(User user)
user
- An object which implements the User interface
public static void doUpdate(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- A Criteria Object
org.apache.torque.TorqueException
- A problem occured.public static void doInsert(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- A Criteria Object
org.apache.torque.TorqueException
- A problem occured.public static java.util.List doSelect(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- A Criteria Object
org.apache.torque.TorqueException
- A problem occured.public static void doDelete(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- A Criteria Object
org.apache.torque.TorqueException
- A problem occured.public static void setUserName(org.apache.torque.om.Persistent obj, java.lang.String name)
obj
- The object to use for setting the namename
- The Name to setpublic static java.lang.String getUserName(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the name
public static java.lang.String getName(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the name
public static void setUserPassword(org.apache.torque.om.Persistent obj, java.lang.String password)
obj
- The object to use for setting the passwordpassword
- The Password to setpublic static java.lang.String getUserPassword(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the password
public static void setUserFirstName(org.apache.torque.om.Persistent obj, java.lang.String firstName)
obj
- The object to use for setting the first namefirstName
- The first name to setpublic static java.lang.String getUserFirstName(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the first name
public static void setUserLastName(org.apache.torque.om.Persistent obj, java.lang.String lastName)
obj
- The object to use for setting the last namelastName
- The Last Name to setpublic static java.lang.String getUserLastName(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the last name
public static void setUserEmail(org.apache.torque.om.Persistent obj, java.lang.String email)
obj
- The object to use for setting the emailemail
- The Email to setpublic static java.lang.String getUserEmail(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the email
public static void setUserConfirmed(org.apache.torque.om.Persistent obj, java.lang.String confirm)
obj
- The object to use for setting the confirm valueconfirm
- The confirm value to setpublic static java.lang.String getUserConfirmed(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the confirm value
public static void setUserCreateDate(org.apache.torque.om.Persistent obj, java.util.Date createDate)
obj
- The object to use for setting the create datecreateDate
- The create date to setpublic static java.util.Date getUserCreateDate(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the create date
public static void setUserLastLogin(org.apache.torque.om.Persistent obj, java.util.Date lastLogin)
obj
- The object to use for setting the last login daetlastLogin
- The last login date to setpublic static java.util.Date getUserLastLogin(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the last login date
public static void setUserObjectdata(org.apache.torque.om.Persistent obj, byte[] objectdata)
obj
- The object to use for setting the last login daetobjectdata
- The objectdata to usepublic static byte[] getUserObjectdata(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the last login date
public static void setId(org.apache.torque.om.Persistent obj, int id)
obj
- The object to use for setting the nameid
- The new Idpublic static java.lang.Integer getIdAsObj(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the id
public static User getNewUser(org.apache.torque.om.Persistent p)
p
- The persistent object
java.lang.Exception
- Could not create a new Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |