com.stratelia.webactiv.beans.admin.dao
Class RoleDAO

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.dao.RoleDAO

public class RoleDAO
extends Object


Constructor Summary
RoleDAO()
           
 
Method Summary
static List<UserRoleRow> getAllComponentObjectRoles(Connection con, List<String> groupIds, int userId)
          Gets several groups and/or one user component object roles (not the direct component roles).
static List<UserRoleRow> getRoles(Connection con, int objectId, String objectType, int instanceId, List<String> groupIds, int userId)
          Gets several groups and/or one user roles for objects of the given identifier of component instance (not directly those of of the component).
static List<UserRoleRow> getRoles(Connection con, List<String> groupIds, int userId)
           
static List<UserRoleRow> getRoles(Connection con, List<String> groupIds, int userId, int instanceId)
          Gets several groups and/or one user roles for the given identifier of component instance (not of objects managed by the component).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleDAO

public RoleDAO()
Method Detail

getAllComponentObjectRoles

public static List<UserRoleRow> getAllComponentObjectRoles(Connection con,
                                                           List<String> groupIds,
                                                           int userId)
                                                    throws SQLException
Gets several groups and/or one user component object roles (not the direct component roles). To get only groups roles, specify -1 for userId. To get only user roles, specify null or empty list for groupIds.

Parameters:
con -
groupIds -
userId -
Returns:
Throws:
SQLException

getRoles

public static List<UserRoleRow> getRoles(Connection con,
                                         List<String> groupIds,
                                         int userId)
                                  throws SQLException
Throws:
SQLException

getRoles

public static List<UserRoleRow> getRoles(Connection con,
                                         List<String> groupIds,
                                         int userId,
                                         int instanceId)
                                  throws SQLException
Gets several groups and/or one user roles for the given identifier of component instance (not of objects managed by the component). To get only groups roles, specify -1 for userId. To get only user roles, specify null or empty list for groupIds.

Parameters:
con -
groupIds -
userId -
instanceId -
Returns:
Throws:
SQLException

getRoles

public static List<UserRoleRow> getRoles(Connection con,
                                         int objectId,
                                         String objectType,
                                         int instanceId,
                                         List<String> groupIds,
                                         int userId)
                                  throws SQLException
Gets several groups and/or one user roles for objects of the given identifier of component instance (not directly those of of the component). To get only groups roles, specify -1 for userId. To get only user roles, specify null or empty list for groupIds.

Parameters:
con -
objectId - if -1 is given, then all the rows associated to the type are returned
objectType -
instanceId -
groupIds -
userId -
Returns:
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.