Java Doc for TurbineUserPeer.java in  » Web-Framework » TURBINE » org » apache » turbine » om » security » peer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » TURBINE » org.apache.turbine.om.security.peer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.turbine.om.security.peer.TurbineUserPeer

TurbineUserPeer
public class TurbineUserPeer extends BasePeer implements UserPeer(Code)
This class handles all the database access for the User/User table. This table contains all the information for a given user.
author:
   Frank Y. Kim
author:
   John D. McNally
author:
   Brett McLaughlinorg.apache.turbine.services.security.torque.TorqueSecurityService
version:
   $Id: TurbineUserPeer.java 571795 2007-09-01 13:09:35Z tv $


Field Summary
final public static  StringCONFIRM_DATA
     This is the value that is stored in the database for confirmed users.
final public static  StringCONFIRM_VALUE
     The key name for the confirm_value field.
final public static  StringCREATED
     The key name for the created field.
final public static  StringEMAIL
     The key name for the email field.
final public static  StringFIRST_NAME
     The key name for the first name field.
final public static  StringLAST_LOGIN
     The key name for the last_login field.
final public static  StringLAST_NAME
     The key name for the last name field.
final public static  StringMODIFIED
     The key name for the modified field.
final public static  StringOBJECT_DATA
     The key name for the object_data field.
final public static  StringPASSWORD
     The key name for the password field.
final public static  StringUSERNAME
     The key name for the username field.
final public static  StringUSER_ID
     The key name for the visitor id field.
public static  String[]columnNames
     The names of the columns.
public static  String[]criteriaKeys
     The keys for the criteria.


Method Summary
public static  voidaddSelectColumns(Criteria criteria)
    
public static  CriteriabuildCriteria(User user)
     Builds a criteria object based upon an User object.
public static  booleancheckExists(User user)
     Checks if a User is defined in the system.
public static  ListdoSelect(Criteria criteria)
     Issues a select based on a criteria.
Parameters:
  criteria - Object containing data that is used to createthe SELECT statement.
public static  ListdoSelect(Criteria criteria, User current)
     Issues a select based on a criteria.
Parameters:
  criteria - Object containing data that is used to createthe SELECT statement.
Parameters:
  current - User object that is to be used as part of theresults - if not passed, then a new one is created.
public static  ListdoSelect(Criteria criteria, Connection dbConn)
     Issues a select based on a criteria.
public static  voiddoUpdate(Criteria criteria)
     Issues an update based on a criteria.
public static  StringgetColumnName(String name)
     Returns the full name of a column.
public  StringgetFullColumnName(String name)
     Returns the full name of a column.
public static  ClassgetOMClass()
     The type of User this peer will instantiate.
protected static  TableMapgetTableMap()
     Returns the TableMap related to this peer.
public static  StringgetTableName()
     Get the name of this table.
public static  voidpopulateObject(Record row, int offset, User obj)
    
public static  Userrow2Object(Record row, int offset, Class cls)
     Implementss torque peers' method.
public static  ListselectAllConfirmedUsers()
     Returns a vector of all confirmed User objects.
public static  ListselectAllUsers()
     Returns a vector of all User objects.

Field Detail
CONFIRM_DATA
final public static String CONFIRM_DATA(Code)
This is the value that is stored in the database for confirmed users.



CONFIRM_VALUE
final public static String CONFIRM_VALUE(Code)
The key name for the confirm_value field.



CREATED
final public static String CREATED(Code)
The key name for the created field.



EMAIL
final public static String EMAIL(Code)
The key name for the email field.



FIRST_NAME
final public static String FIRST_NAME(Code)
The key name for the first name field.



LAST_LOGIN
final public static String LAST_LOGIN(Code)
The key name for the last_login field.



LAST_NAME
final public static String LAST_NAME(Code)
The key name for the last name field.



MODIFIED
final public static String MODIFIED(Code)
The key name for the modified field.



OBJECT_DATA
final public static String OBJECT_DATA(Code)
The key name for the object_data field.



PASSWORD
final public static String PASSWORD(Code)
The key name for the password field.



USERNAME
final public static String USERNAME(Code)
The key name for the username field.



USER_ID
final public static String USER_ID(Code)
The key name for the visitor id field.



columnNames
public static String[] columnNames(Code)
The names of the columns.



criteriaKeys
public static String[] criteriaKeys(Code)
The keys for the criteria.





Method Detail
addSelectColumns
public static void addSelectColumns(Criteria criteria) throws TorqueException(Code)
Add all the columns needed to create a new object
Parameters:
  criteria - The criteria to use.
exception:
  TorqueException - a generic exception.



buildCriteria
public static Criteria buildCriteria(User user)(Code)
Builds a criteria object based upon an User object. Data stored in the permData table which a key matching a column name is removed from the permData table and added as a criterion. All remaining data in the permData table is serialized and added as a criterion for the OBJECT_DATA column.
Parameters:
  user - object to build the criteria the Criteria



checkExists
public static boolean checkExists(User user) throws DataBackendException, Exception(Code)
Checks if a User is defined in the system. The name is used as query criteria.
Parameters:
  user - The User to be checked. true if given User exists in the system.
throws:
  DataBackendException - when more than one User withthe same name exists.
throws:
  Exception - a generic exception.



doSelect
public static List doSelect(Criteria criteria) throws TorqueException(Code)
Issues a select based on a criteria.
Parameters:
  criteria - Object containing data that is used to createthe SELECT statement. Vector containing TurbineUser objects.
exception:
  TorqueException - a generic exception.



doSelect
public static List doSelect(Criteria criteria, User current) throws TorqueException(Code)
Issues a select based on a criteria.
Parameters:
  criteria - Object containing data that is used to createthe SELECT statement.
Parameters:
  current - User object that is to be used as part of theresults - if not passed, then a new one is created. Vector containing TurbineUser objects.
exception:
  TorqueException - a generic exception.



doSelect
public static List doSelect(Criteria criteria, Connection dbConn) throws TorqueException(Code)
Issues a select based on a criteria.
Parameters:
  criteria - Object containing data that is used to createthe SELECT statement.
Parameters:
  dbConn - List containing TurbineUser objects.
exception:
  TorqueException - a generic exception.



doUpdate
public static void doUpdate(Criteria criteria) throws TorqueException(Code)
Issues an update based on a criteria. The criteria only uses USER_ID.
Parameters:
  criteria - Object containing data that is used to createthe UPDATE statement.
exception:
  TorqueException - a generic exception.



getColumnName
public static String getColumnName(String name)(Code)
Returns the full name of a column.
Parameters:
  name - name of a column A String with the full name of the column.



getFullColumnName
public String getFullColumnName(String name)(Code)
Returns the full name of a column.
Parameters:
  name - name of a column A String with the full name of the column.



getOMClass
public static Class getOMClass() throws Exception(Code)
The type of User this peer will instantiate.
exception:
  Exception - a generic exception.



getTableMap
protected static TableMap getTableMap()(Code)
Returns the TableMap related to this peer. This method is not needed for general use but a specific application could have a need.



getTableName
public static String getTableName()(Code)
Get the name of this table. A String with the name of the table.



populateObject
public static void populateObject(Record row, int offset, User obj) throws TorqueException(Code)

Parameters:
  row -
Parameters:
  offset -
Parameters:
  obj -
throws:
  TorqueException -



row2Object
public static User row2Object(Record row, int offset, Class cls) throws TorqueException(Code)
Implementss torque peers' method. Does not use the Class argument as Users need to go through TurbineSecurity
exception:
  TorqueException - a generic exception.



selectAllConfirmedUsers
public static List selectAllConfirmedUsers() throws Exception(Code)
Returns a vector of all confirmed User objects. A Vector with all confirmed users in the system.
exception:
  Exception - a generic exception.



selectAllUsers
public static List selectAllUsers() throws Exception(Code)
Returns a vector of all User objects. A Vector with all users in the system.
exception:
  Exception - a generic exception.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.