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.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: /** The key within the security service properties for the permission class implementation */
49: String PERMISSION_CLASS_KEY = "torque.permission.class";
50:
51: /** The key within the security service properties for the permission peer class implementation */
52: String PERMISSION_PEER_CLASS_KEY = "torque.permissionPeer.class";
53:
54: /** Permission peer default class */
55: String PERMISSION_PEER_CLASS_DEFAULT = TurbinePermissionPeer.class
56: .getName();
57:
58: /** The column name for the login name field. */
59: String PERMISSION_NAME_COLUMN_KEY = "torque.permissionPeer.column.name";
60:
61: /** The column name for the id field. */
62: String PERMISSION_ID_COLUMN_KEY = "torque.permissionPeer.column.id";
63:
64: /** The default value for the column name constant for the login name field. */
65: String PERMISSION_NAME_COLUMN_DEFAULT = "PERMISSION_NAME";
66:
67: /** The default value for the column name constant for the id field. */
68: String PERMISSION_ID_COLUMN_DEFAULT = "PERMISSION_ID";
69:
70: /** The property name of the bean property for the login name field. */
71: String PERMISSION_NAME_PROPERTY_KEY = "torque.permission.property.name";
72:
73: /** The property name of the bean property for the id field. */
74: String PERMISSION_ID_PROPERTY_KEY = "torque.permission.property.id";
75:
76: /** The default value of the bean property for the login name field. */
77: String PERMISSION_NAME_PROPERTY_DEFAULT = "Name";
78:
79: /** The default value of the bean property for the id field. */
80: String PERMISSION_ID_PROPERTY_DEFAULT = "PermissionId";
81:
82: }
|