|
|||||||||
| Home >> All >> org >> apache >> turbine >> om >> security >> [ peer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.turbine.om.security.peer
Class PermissionPeer

java.lang.Objectorg.apache.torque.util.BasePeer
org.apache.turbine.om.security.peer.PermissionPeer
- All Implemented Interfaces:
- java.io.Serializable
- public class PermissionPeer
- extends org.apache.torque.util.BasePeer
This class handles all the database access for the PERMISSION table. This table contains all the permissions that are used in the system.
- Version:
- $Id: PermissionPeer.java 264148 2005-08-29 14:21:04Z henning $
| Field Summary | |
private static org.apache.turbine.util.db.map.TurbineMapBuilder |
MAP_BUILDER
The map builder for this Peer. |
static java.lang.String |
NAME
The column name for the name field. |
static java.lang.String |
OBJECTDATA
The column name for the ObjectData field |
static java.lang.String |
PERMISSION_ID
The column name for the permission id field. |
private static long |
serialVersionUID
Serial Version UID |
private static java.lang.String |
TABLE_NAME
The table name for this peer. |
| Fields inherited from class org.apache.torque.util.BasePeer |
DEFAULT_MAP_BUILDER, IGNORE_CASE, log, ORDER_BY |
| Constructor Summary | |
PermissionPeer()
|
|
| Method Summary | |
static org.apache.torque.util.Criteria |
buildCriteria(org.apache.turbine.om.security.Permission permission)
Builds a criteria object based upon an Permission object |
static boolean |
checkExists(org.apache.turbine.om.security.Permission permission)
Checks if a Permission is defined in the system. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria)
Issues a select based on a criteria. |
static void |
doUpdate(org.apache.torque.util.Criteria criteria)
Issues an update based on a criteria. |
static java.lang.String |
getColumnName(java.lang.String name)
Returns the full name of a column. |
static java.util.Vector |
getDifference(java.util.Vector some,
java.util.Vector all)
Pass in two Vector's of Permission Objects. |
static java.lang.String |
getTableName()
Get the name of this table. |
static org.apache.turbine.util.security.PermissionSet |
retrieveSet(org.apache.torque.util.Criteria criteria)
Retrieves/assembles a PermissionSet |
static org.apache.turbine.util.security.PermissionSet |
retrieveSet(org.apache.turbine.om.security.Role role)
Retrieves a set of Permissions associated with a particular Role. |
| Methods inherited from class org.apache.torque.util.BasePeer |
createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doSelect, doUpdate, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- Serial Version UID
- See Also:
- Constant Field Values
MAP_BUILDER
private static final org.apache.turbine.util.db.map.TurbineMapBuilder MAP_BUILDER
- The map builder for this Peer.
TABLE_NAME
private static final java.lang.String TABLE_NAME
- The table name for this peer.
PERMISSION_ID
public static final java.lang.String PERMISSION_ID
- The column name for the permission id field.
NAME
public static final java.lang.String NAME
- The column name for the name field.
OBJECTDATA
public static final java.lang.String OBJECTDATA
- The column name for the ObjectData field
| Constructor Detail |
PermissionPeer
public PermissionPeer()
| Method Detail |
retrieveSet
public static org.apache.turbine.util.security.PermissionSet retrieveSet(org.apache.torque.util.Criteria criteria) throws java.lang.Exception
- Retrieves/assembles a PermissionSet
retrieveSet
public static org.apache.turbine.util.security.PermissionSet retrieveSet(org.apache.turbine.om.security.Role role) throws java.lang.Exception
- Retrieves a set of Permissions associated with a particular Role.
doSelect
public static java.util.List doSelect(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
- Issues a select based on a criteria.
buildCriteria
public static org.apache.torque.util.Criteria buildCriteria(org.apache.turbine.om.security.Permission permission)
- Builds a criteria object based upon an Permission object
doUpdate
public static void doUpdate(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
- Issues an update based on a criteria.
checkExists
public static boolean checkExists(org.apache.turbine.om.security.Permission permission) throws org.apache.turbine.util.security.DataBackendException, java.lang.Exception
- Checks if a Permission is defined in the system. The name
is used as query criteria.
getTableName
public static java.lang.String getTableName()
- Get the name of this table.
getColumnName
public static java.lang.String getColumnName(java.lang.String name)
- Returns the full name of a column.
getDifference
public static final java.util.Vector getDifference(java.util.Vector some, java.util.Vector all)
- Pass in two Vector's of Permission Objects. It will return a
new Vector with the difference of the two Vectors: C = (A - B).
|
|||||||||
| Home >> All >> org >> apache >> turbine >> om >> security >> [ peer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC