001: package org.apache.turbine.services.security.torque;
002:
003: /*
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021:
022: import java.io.Serializable;
023:
024: import org.apache.turbine.services.security.torque.om.TurbineUserPeer;
025:
026: /**
027: * Constants for configuring the various columns and bean properties
028: * for the used peer.
029: *
030: * <pre>
031: * Default is:
032: *
033: * security.torque.userPeer.class = org.apache.turbine.services.security.torque.om.TurbineUserPeer
034: * security.torque.userPeer.column.name = LOGIN_NAME
035: * security.torque.userPeer.column.id = USER_ID
036: * security.torque.userPeer.column.password = PASSWORD_VALUE
037: * security.torque.userPeer.column.firstname = FIRST_NAME
038: * security.torque.userPeer.column.lastname = LAST_NAME
039: * security.torque.userPeer.column.email = EMAIL
040: * security.torque.userPeer.column.confirm = CONFIRM_VALUE
041: * security.torque.userPeer.column.createdate = CREATED
042: * security.torque.userPeer.column.lastlogin = LAST_LOGIN
043: * security.torque.userPeer.column.objectdata = OBJECTDATA
044: *
045: * security.torque.user.class = org.apache.turbine.services.security.torque.om.TurbineUser
046: * security.torque.user.property.name = UserName
047: * security.torque.user.property.id = UserId
048: * security.torque.user.property.password = Password
049: * security.torque.user.property.firstname = FirstName
050: * security.torque.user.property.lastname = LastName
051: * security.torque.user.property.email = Email
052: * security.torque.user.property.confirm = Confirmed
053: * security.torque.user.property.createdate = CreateDate
054: * security.torque.user.property.lastlogin = LastLogin
055: * security.torque.user.property.objectdata = Objectdata
056: *
057: * </pre>
058: * If security.torque.user.class is unset, then the value of the constant CLASSNAME_DEFAULT
059: * from the configured Peer is used.
060: *
061: * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
062: * @version $Id: UserPeerManagerConstants.java 534527 2007-05-02 16:10:59Z tv $
063: */
064:
065: public interface UserPeerManagerConstants extends Serializable {
066: /** The key within the security service properties for the user class implementation */
067: String USER_CLASS_KEY = "torque.user.class";
068:
069: /** The key within the security service properties for the user peer class implementation */
070: String USER_PEER_CLASS_KEY = "torque.userPeer.class";
071:
072: /** User peer default class */
073: String USER_PEER_CLASS_DEFAULT = TurbineUserPeer.class.getName();
074:
075: /** The column name for the login name field. */
076: String USER_NAME_COLUMN_KEY = "torque.userPeer.column.name";
077:
078: /** The column name for the id field. */
079: String USER_ID_COLUMN_KEY = "torque.userPeer.column.id";
080:
081: /** The column name for the password field. */
082: String USER_PASSWORD_COLUMN_KEY = "torque.userPeer.column.password";
083:
084: /** The column name for the first name field. */
085: String USER_FIRST_NAME_COLUMN_KEY = "torque.userPeer.column.firstname";
086:
087: /** The column name for the last name field. */
088: String USER_LAST_NAME_COLUMN_KEY = "torque.userPeer.column.lastname";
089:
090: /** The column name for the email field. */
091: String USER_EMAIL_COLUMN_KEY = "torque.userPeer.column.email";
092:
093: /** The column name for the confirm field. */
094: String USER_CONFIRM_COLUMN_KEY = "torque.userPeer.column.confirm";
095:
096: /** The column name for the create date field. */
097: String USER_CREATE_COLUMN_KEY = "torque.userPeer.column.createdate";
098:
099: /** The column name for the last login field. */
100: String USER_LAST_LOGIN_COLUMN_KEY = "torque.userPeer.column.lastlogin";
101:
102: /** The column name for the objectdata field. */
103: String USER_OBJECTDATA_COLUMN_KEY = "torque.userPeer.column.objectdata";
104:
105: /** The default value for the column name constant for the login name field. */
106: String USER_NAME_COLUMN_DEFAULT = "LOGIN_NAME";
107:
108: /** The default value for the column name constant for the id field. */
109: String USER_ID_COLUMN_DEFAULT = "USER_ID";
110:
111: /** The default value for the column name constant for the password field. */
112: String USER_PASSWORD_COLUMN_DEFAULT = "PASSWORD_VALUE";
113:
114: /** The default value for the column name constant for the first name field. */
115: String USER_FIRST_NAME_COLUMN_DEFAULT = "FIRST_NAME";
116:
117: /** The default value for the column name constant for the last name field. */
118: String USER_LAST_NAME_COLUMN_DEFAULT = "LAST_NAME";
119:
120: /** The default value for the column name constant for the email field. */
121: String USER_EMAIL_COLUMN_DEFAULT = "EMAIL";
122:
123: /** The default value for the column name constant for the confirm field. */
124: String USER_CONFIRM_COLUMN_DEFAULT = "CONFIRM_VALUE";
125:
126: /** The default value for the column name constant for the create date field. */
127: String USER_CREATE_COLUMN_DEFAULT = "CREATED";
128:
129: /** The default value for the column name constant for the last login field. */
130: String USER_LAST_LOGIN_COLUMN_DEFAULT = "LAST_LOGIN";
131:
132: /** The default value for the column name constant for the objectdata field. */
133: String USER_OBJECTDATA_COLUMN_DEFAULT = "OBJECTDATA";
134:
135: /** The property name of the bean property for the login name field. */
136: String USER_NAME_PROPERTY_KEY = "torque.user.property.name";
137:
138: /** The property name of the bean property for the id field. */
139: String USER_ID_PROPERTY_KEY = "torque.user.property.id";
140:
141: /** The property name of the bean property for the password field. */
142: String USER_PASSWORD_PROPERTY_KEY = "torque.user.property.password";
143:
144: /** The property name of the bean property for the first name field. */
145: String USER_FIRST_NAME_PROPERTY_KEY = "torque.user.property.firstname";
146:
147: /** The property name of the bean property for the last name field. */
148: String USER_LAST_NAME_PROPERTY_KEY = "torque.user.property.lastname";
149:
150: /** The property name of the bean property for the email field. */
151: String USER_EMAIL_PROPERTY_KEY = "torque.user.property.email";
152:
153: /** The property name of the bean property for the confirm field. */
154: String USER_CONFIRM_PROPERTY_KEY = "torque.user.property.confirm";
155:
156: /** The property name of the bean property for the create date field. */
157: String USER_CREATE_PROPERTY_KEY = "torque.user.property.createdate";
158:
159: /** The property name of the bean property for the last login field. */
160: String USER_LAST_LOGIN_PROPERTY_KEY = "torque.user.property.lastlogin";
161:
162: /** The property name of the bean property for the last login field. */
163: String USER_OBJECTDATA_PROPERTY_KEY = "torque.user.property.objectdata";
164:
165: /** The default value of the bean property for the login name field. */
166: String USER_NAME_PROPERTY_DEFAULT = "UserName";
167:
168: /** The default value of the bean property for the id field. */
169: String USER_ID_PROPERTY_DEFAULT = "UserId";
170:
171: /** The default value of the bean property for the password field. */
172: String USER_PASSWORD_PROPERTY_DEFAULT = "Password";
173:
174: /** The default value of the bean property for the first name field. */
175: String USER_FIRST_NAME_PROPERTY_DEFAULT = "FirstName";
176:
177: /** The default value of the bean property for the last name field. */
178: String USER_LAST_NAME_PROPERTY_DEFAULT = "LastName";
179:
180: /** The default value of the bean property for the email field. */
181: String USER_EMAIL_PROPERTY_DEFAULT = "Email";
182:
183: /** The default value of the bean property for the confirm field. */
184: String USER_CONFIRM_PROPERTY_DEFAULT = "Confirmed";
185:
186: /** The default value of the bean property for the create date field. */
187: String USER_CREATE_PROPERTY_DEFAULT = "CreateDate";
188:
189: /** The default value of the bean property for the last login field. */
190: String USER_LAST_LOGIN_PROPERTY_DEFAULT = "LastLogin";
191:
192: /** The default value of the bean property for the objectdata field. */
193: String USER_OBJECTDATA_PROPERTY_DEFAULT = "Objectdata";
194: };
|