| java.lang.Object net.jforum.dao.generic.security.SecurityCommon
SecurityCommon | public class SecurityCommon (Code) | | author: Rafael Steil version: $Id: SecurityCommon.java,v 1.13 2007/08/16 13:07:34 rafaelsteil Exp $ |
executeAddRole | public static void executeAddRole(String sql, int id, Role role, RoleValueCollection roleValues, boolean supportAutoGeneratedKeys, String autoKeysQuery)(Code) | | Execute the add role thing. As the SQL statement to insert user and group roles are
diferent, they cannot be manipuled with a 'generic' statement, and is for this reason that
addRole method is marked abstract.
The only job the addRole method should do is to get the correct SQL statement
for each case - user or group - and the repass it to this method, who then do the job for us.
Parameters: sql - The SQL statement to be executed. Parameters: id - The ID do insert. May be user's or group's id, depending of the situation ( the caller ) Parameters: role - The role name to insert Parameters: roleValues - A RoleValueCollection collection containing the role values toinsert. If none is wanted, just pass null as argument. Parameters: supportAutoGeneratedKeys - Set to true if Statement.RETURN_GENERATED_KEYS is supportedby the Driver, or false if not. Parameters: autoKeysQuery - String |
groupIdAsString | public static String groupIdAsString(int[] ids)(Code) | | |
|
|