net.incongru.berkano.user.hibernate
Class HibernatedGroupDAO

java.lang.Object
  extended by net.incongru.berkano.user.hibernate.AbstractHibernatedDAO
      extended by net.incongru.berkano.user.hibernate.HibernatedGroupDAO
All Implemented Interfaces:
GroupDAO

public class HibernatedGroupDAO
extends AbstractHibernatedDAO
implements GroupDAO

Version:
$Revision: 1.5 $
Author:
greg, $Author: gj $ (last edit)

Field Summary
 
Fields inherited from class net.incongru.berkano.user.hibernate.AbstractHibernatedDAO
session
 
Constructor Summary
HibernatedGroupDAO(org.hibernate.Session session)
           
 
Method Summary
 void assignRoles(java.lang.Long groupId, java.util.Set roles)
           
protected  PropertiesAware getById(java.lang.Long id)
           
 Group getGroupById(java.lang.Long groupId)
           
 Group getGroupByName(java.lang.String groupName)
           
 java.util.List listAllGroups()
           
 Group newGroup(java.lang.String groupName)
           
 boolean removeGroup(java.lang.Long groupId)
           
 
Methods inherited from class net.incongru.berkano.user.hibernate.AbstractHibernatedDAO
addProperty, addProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.incongru.berkano.user.GroupDAO
addProperty, removeProperty
 

Constructor Detail

HibernatedGroupDAO

public HibernatedGroupDAO(org.hibernate.Session session)
Method Detail

getById

protected PropertiesAware getById(java.lang.Long id)
                           throws UnknownUserException
Specified by:
getById in class AbstractHibernatedDAO
Throws:
UnknownUserException

getGroupById

public Group getGroupById(java.lang.Long groupId)
Specified by:
getGroupById in interface GroupDAO

getGroupByName

public Group getGroupByName(java.lang.String groupName)
Specified by:
getGroupByName in interface GroupDAO

newGroup

public Group newGroup(java.lang.String groupName)
Specified by:
newGroup in interface GroupDAO

removeGroup

public boolean removeGroup(java.lang.Long groupId)
Specified by:
removeGroup in interface GroupDAO

listAllGroups

public java.util.List listAllGroups()
Specified by:
listAllGroups in interface GroupDAO

assignRoles

public void assignRoles(java.lang.Long groupId,
                        java.util.Set roles)
Specified by:
assignRoles in interface GroupDAO


Copyright © 2004-2007. All Rights Reserved.