|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.security.torque.UserPeerManager
public class 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 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 String |
getColumnName(String name)
Returns the full name of a column. |
static String |
getConfirmColumn()
Returns the fully qualified name of the Column to use as the Confirm Column for a role |
static String |
getCreateDateColumn()
Returns the fully qualified name of the Column to use as the CreateDate Column for a role |
static String |
getEmailColumn()
Returns the fully qualified name of the Column to use as the Email Column for a role |
static String |
getFirstNameColumn()
Returns the fully qualified name of the Column to use as the FirstName Column for a role |
String |
getFullColumnName(String name)
Deprecated. use getColumnName(String name) |
static Integer |
getIdAsObj(org.apache.torque.om.Persistent obj)
Invokes getId() on the supplied base object |
static String |
getIdColumn()
Returns the fully qualified name of the Column to use as the Id Column for a group |
static String |
getLastLoginColumn()
Returns the fully qualified name of the Column to use as the LastLogin Column for a role |
static String |
getLastNameColumn()
Returns the fully qualified name of the Column to use as the LastName Column for a role |
static String |
getName(org.apache.torque.om.Persistent obj)
Invokes getName() on the supplied base object |
static 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 String |
getObjectdataColumn()
Returns the fully qualified name of the Column to use as the objectdata Column for a role |
static String |
getPasswordColumn()
Returns the fully qualified name of the Column to use as the Password Column for a role |
static String |
getTableName()
Get the name of this table. |
static String |
getUserConfirmed(org.apache.torque.om.Persistent obj)
Invokes getConfirmed() on the supplied base object |
static Date |
getUserCreateDate(org.apache.torque.om.Persistent obj)
Invokes getCreateDate() on the supplied base object |
static String |
getUserEmail(org.apache.torque.om.Persistent obj)
Invokes getEmail() on the supplied base object |
static String |
getUserFirstName(org.apache.torque.om.Persistent obj)
Invokes getFirstName() on the supplied base object |
static Date |
getUserLastLogin(org.apache.torque.om.Persistent obj)
Invokes getLastLogin() on the supplied base object |
static String |
getUserLastName(org.apache.torque.om.Persistent obj)
Invokes getLastName() on the supplied base object |
static 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 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 List |
selectAllConfirmedUsers()
Returns a List of all confirmed User objects. |
static 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,
String confirm)
Invokes setConfirmed(String s) on the supplied base object |
static void |
setUserCreateDate(org.apache.torque.om.Persistent obj,
Date createDate)
Invokes setCreateDate(java.util.Date date) on the supplied base object |
static void |
setUserEmail(org.apache.torque.om.Persistent obj,
String email)
Invokes setEmail(String s) on the supplied base object |
static void |
setUserFirstName(org.apache.torque.om.Persistent obj,
String firstName)
Invokes setFirstName(String s) on the supplied base object |
static void |
setUserLastLogin(org.apache.torque.om.Persistent obj,
Date lastLogin)
Invokes setLastLogin(java.util.Date date) on the supplied base object |
static void |
setUserLastName(org.apache.torque.om.Persistent obj,
String lastName)
Invokes setLastName(String s) on the supplied base object |
static void |
setUserName(org.apache.torque.om.Persistent obj,
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,
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 String getTableName()
public static String getNameColumn()
public static String getIdColumn()
public static String getPasswordColumn()
public static String getFirstNameColumn()
public static String getLastNameColumn()
public static String getEmailColumn()
public static String getConfirmColumn()
public static String getCreateDateColumn()
public static String getLastLoginColumn()
public static String getObjectdataColumn()
public static String getColumnName(String name)
name
- The column to fully qualify
public String getFullColumnName(String name)
name
- The column to fully qualify
public static org.apache.torque.om.Persistent newPersistentInstance()
public static boolean checkExists(User user) throws DataBackendException, 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.
Exception
- A generic exception.public static List selectAllUsers() throws Exception
Exception
- A generic exception.public static List selectAllConfirmedUsers() throws Exception
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 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, String name)
obj
- The object to use for setting the namename
- The Name to setpublic static String getUserName(org.apache.torque.om.Persistent obj)
obj
- The object to use for getting the name
public static 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, String password)
obj
- The object to use for setting the passwordpassword
- The Password to setpublic static 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, String firstName)
obj
- The object to use for setting the first namefirstName
- The first name to setpublic static 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, String lastName)
obj
- The object to use for setting the last namelastName
- The Last Name to setpublic static 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, String email)
obj
- The object to use for setting the emailemail
- The Email to setpublic static 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, String confirm)
obj
- The object to use for setting the confirm valueconfirm
- The confirm value to setpublic static 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, Date createDate)
obj
- The object to use for setting the create datecreateDate
- The create date to setpublic static 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, Date lastLogin)
obj
- The object to use for setting the last login daetlastLogin
- The last login date to setpublic static 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 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
Exception
- Could not create a new Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |