01: package org.apache.turbine.services.security.torque;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21:
22: import org.apache.turbine.services.security.torque.om.TurbineRolePeer;
23:
24: /**
25: * Constants for configuring the various columns and bean properties
26: * for the used peer.
27: *
28: * <pre>
29: * Default is:
30: *
31: * security.torque.rolePeer.class = org.apache.turbine.services.security.torque.om.TurbineRolePeer
32: * security.torque.rolePeer.column.name = ROLE_NAME
33: * security.torque.rolePeer.column.id = ROLE_ID
34: *
35: * security.torque.role.class = org.apache.turbine.services.security.torque.om.TurbineRole
36: * security.torque.role.property.name = Name
37: * security.torque.role.property.id = RoleId
38: *
39: * </pre>
40: * If security.torque.role.class is unset, then the value of the constant CLASSNAME_DEFAULT
41: * from the configured Peer is used.
42: *
43: * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
44: * @version $Id: RolePeerManagerConstants.java 534527 2007-05-02 16:10:59Z tv $
45: */
46:
47: public interface RolePeerManagerConstants {
48: /** The key within the security service properties for the role class implementation */
49: String ROLE_CLASS_KEY = "torque.role.class";
50:
51: /** The key within the security service properties for the role peer class implementation */
52: String ROLE_PEER_CLASS_KEY = "torque.rolePeer.class";
53:
54: /** Role peer default class */
55: String ROLE_PEER_CLASS_DEFAULT = TurbineRolePeer.class.getName();
56:
57: /** The column name for the login name field. */
58: String ROLE_NAME_COLUMN_KEY = "torque.rolePeer.column.name";
59:
60: /** The column name for the id field. */
61: String ROLE_ID_COLUMN_KEY = "torque.rolePeer.column.id";
62:
63: /** The default value for the column name constant for the login name field. */
64: String ROLE_NAME_COLUMN_DEFAULT = "ROLE_NAME";
65:
66: /** The default value for the column name constant for the id field. */
67: String ROLE_ID_COLUMN_DEFAULT = "ROLE_ID";
68:
69: /** The property name of the bean property for the login name field. */
70: String ROLE_NAME_PROPERTY_KEY = "torque.role.property.name";
71:
72: /** The property name of the bean property for the id field. */
73: String ROLE_ID_PROPERTY_KEY = "torque.role.property.id";
74:
75: /** The default value of the bean property for the login name field. */
76: String ROLE_NAME_PROPERTY_DEFAULT = "Name";
77:
78: /** The default value of the bean property for the id field. */
79: String ROLE_ID_PROPERTY_DEFAULT = "RoleId";
80:
81: }
|