org.apache.turbine.om.security.peer
Class RolePermissionPeer
java.lang.Object
|
+--org.apache.turbine.om.peer.BasePeer
|
+--org.apache.turbine.om.security.peer.RolePermissionPeer
- public class RolePermissionPeer
- extends BasePeer
This class handles all database access for the
ROLE_PERMISSION table. This table contains all
the permissions for a given role.
- Version:
- $Id$
- Author:
- Frank Y. Kim, Brett McLaughlin, John D. McNally, Jon S. Stevens
Method Summary |
static void |
deletePermission(int permission_id)
Deletes the mappings for a permission_id. |
static void |
deleteRole(int role_id)
Deletes the mappings for a role_id. |
Methods inherited from class org.apache.turbine.om.peer.BasePeer |
beginTransaction, commitTransaction, createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doInsert, doInsert, doPSSelect, doPSSelect, doSelect, doSelect, doUpdate, doUpdate, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getMapBuilder, getPrimaryKey, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema, insertOrUpdateRecord, rollBackTransaction |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
mapBuilder
private static final TurbineMapBuilder mapBuilder
TABLE_NAME
public 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.
ROLE_ID
public static final java.lang.String ROLE_ID
- The column name for the role id field.
RolePermissionPeer
public RolePermissionPeer()
deleteRole
public static void deleteRole(int role_id)
throws java.lang.Exception
- Deletes the mappings for a role_id.
- Parameters:
role_id
- An int with the role id.- Throws:
Exception,
- a generic exception.
deletePermission
public static void deletePermission(int permission_id)
throws java.lang.Exception
- Deletes the mappings for a permission_id.
- Parameters:
permission
- An int with the permission id.- Throws:
Exception,
- a generic exception.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.