edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3EntityDAO

java.lang.Object
  extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
      extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3EntityDAO
All Implemented Interfaces:
EntityDAO, GrouperDAO

public class Hib3EntityDAO
extends Hib3DAO
implements EntityDAO

Basic Hibernate Entity DAO interface.

Since:
@HEAD@
Version:
$Id: Hib3GroupDAO.java,v 1.51 2009-12-10 08:54:15 mchyzer Exp $
Author:
chris hyzer.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3EntityDAO()
           
 
Method Summary
 List<Object[]> findEntitiesByGroupIds(Collection<String> groupIds)
          find entities secure by group id
 Set<Entity> findEntitiesSecure(GrouperSession grouperSession, List<String> ancestorFolderIds, List<String> ancestorFolderNames, List<String> ids, List<String> names, List<String> parentFolderIds, List<String> parentFolderNames, String terms, Set<Privilege> inPrivSet, QueryOptions queryOptions)
          find entities
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3EntityDAO

public Hib3EntityDAO()
Method Detail

findEntitiesSecure

public Set<Entity> findEntitiesSecure(GrouperSession grouperSession,
                                      List<String> ancestorFolderIds,
                                      List<String> ancestorFolderNames,
                                      List<String> ids,
                                      List<String> names,
                                      List<String> parentFolderIds,
                                      List<String> parentFolderNames,
                                      String terms,
                                      Set<Privilege> inPrivSet,
                                      QueryOptions queryOptions)
Description copied from interface: EntityDAO
find entities

Specified by:
findEntitiesSecure in interface EntityDAO
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
Returns:
the entities
See Also:
EntityDAO.findEntitiesSecure(GrouperSession, List, List, List, List, List, List, String, Set, QueryOptions)

findEntitiesByGroupIds

public List<Object[]> findEntitiesByGroupIds(Collection<String> groupIds)
Description copied from interface: EntityDAO
find entities secure by group id

Specified by:
findEntitiesByGroupIds in interface EntityDAO
Parameters:
groupIds - (note, can be any amount of group ids, will batch)
Returns:
the group, and attribute value tuple
See Also:
EntityDAO#findEntitiesByGroupIds(List)