|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.torque.util.BasePeer | +--org.apache.turbine.om.security.peer.RolePeer
This class handles all the database access for the ROLE table. This table contains all the roles that a given member can play.
Field Summary | |
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 |
ROLE_ID
The column name for the role id field. |
Fields inherited from class org.apache.torque.util.BasePeer |
category, ctx, DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY, TABLE_NAME |
Constructor Summary | |
RolePeer()
|
Method Summary | |
static org.apache.torque.util.Criteria |
buildCriteria(Role role)
Builds a criteria object based upon an Role object |
static boolean |
checkExists(Role role)
Checks if a Role 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.lang.String |
getTableName()
Get the name of this table. |
static RoleSet |
retrieveSet(org.apache.torque.util.Criteria criteria)
Retrieves/assembles a RoleSet based on the Criteria passed in |
static RoleSet |
retrieveSet(User user,
Group group)
Retrieves a set of Roles that an User was assigned in a Group |
Methods inherited from class org.apache.torque.util.BasePeer |
beginTransaction, closeConnection, commitTransaction, 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, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema, rollBackTransaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ROLE_ID
public static final java.lang.String NAME
public static final java.lang.String OBJECTDATA
Constructor Detail |
public RolePeer()
Method Detail |
public static RoleSet retrieveSet(org.apache.torque.util.Criteria criteria) throws java.lang.Exception
public static RoleSet retrieveSet(User user, Group group) throws java.lang.Exception
user
- An user.group
- A groupException,
- a generic exception.public static java.util.List doSelect(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
Criteria
- object containing data that is used to create
the SELECT statement.Exception,
- a generic exception.public static org.apache.torque.util.Criteria buildCriteria(Role role)
public static void doUpdate(org.apache.torque.util.Criteria criteria) throws org.apache.torque.TorqueException
Criteria
- object containing data that is used to create
the UPDATE statement.Exception,
- a generic exception.public static boolean checkExists(Role role) throws DataBackendException, java.lang.Exception
permission
- The Role to be checked.true
if given Role exists in the system.DataBackendException
- when more than one Role with
the same name exists.Exception,
- a generic exception.public static java.lang.String getTableName()
public static java.lang.String getColumnName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |