1 package org.apache.turbine.services.security.torque;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.turbine.services.security.torque.om.TurbinePermissionPeer;
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.permissionPeer.class = org.apache.turbine.services.security.torque.om.TurbinePermissionPeer
32 * security.torque.permissionPeer.column.name = PERMISSION_NAME
33 * security.torque.permissionPeer.column.id = PERMISSION_ID
34 *
35 * security.torque.permission.class = org.apache.turbine.services.security.torque.om.TurbinePermission
36 * security.torque.permission.property.name = Name
37 * security.torque.permission.property.id = PermissionId
38 *
39 * </pre>
40 * If security.torque.permission.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: PermissionPeerManagerConstants.java 534527 2007-05-02 16:10:59Z tv $
45 */
46
47 public interface PermissionPeerManagerConstants
48 {
49 /*** The key within the security service properties for the permission class implementation */
50 String PERMISSION_CLASS_KEY =
51 "torque.permission.class";
52
53 /*** The key within the security service properties for the permission peer class implementation */
54 String PERMISSION_PEER_CLASS_KEY =
55 "torque.permissionPeer.class";
56
57 /*** Permission peer default class */
58 String PERMISSION_PEER_CLASS_DEFAULT =
59 TurbinePermissionPeer.class.getName();
60
61 /*** The column name for the login name field. */
62 String PERMISSION_NAME_COLUMN_KEY =
63 "torque.permissionPeer.column.name";
64
65 /*** The column name for the id field. */
66 String PERMISSION_ID_COLUMN_KEY =
67 "torque.permissionPeer.column.id";
68
69
70 /*** The default value for the column name constant for the login name field. */
71 String PERMISSION_NAME_COLUMN_DEFAULT =
72 "PERMISSION_NAME";
73
74 /*** The default value for the column name constant for the id field. */
75 String PERMISSION_ID_COLUMN_DEFAULT =
76 "PERMISSION_ID";
77
78
79 /*** The property name of the bean property for the login name field. */
80 String PERMISSION_NAME_PROPERTY_KEY =
81 "torque.permission.property.name";
82
83 /*** The property name of the bean property for the id field. */
84 String PERMISSION_ID_PROPERTY_KEY =
85 "torque.permission.property.id";
86
87
88 /*** The default value of the bean property for the login name field. */
89 String PERMISSION_NAME_PROPERTY_DEFAULT =
90 "Name";
91
92 /*** The default value of the bean property for the id field. */
93 String PERMISSION_ID_PROPERTY_DEFAULT =
94 "PermissionId";
95
96 }