public class HibernateGroupDAO extends HibernatePersistentObjectDAO<Group> implements GroupDAO
entityClass, log, sessionFactory
Modifier and Type | Method and Description |
---|---|
int |
count()
Counts the total number of groups
|
boolean |
delete(long groupId)
This method deletes an entity.
|
boolean |
exists(String groupname) |
Collection<String> |
findAllGroupNames()
This method selects all groupnames.
|
Collection<Group> |
findByLikeName(String name)
This method finds a Group by name.
|
Group |
findByName(String name)
Finds a group by name.
|
MenuDAO |
getMenuDAO() |
void |
inheritACLs(long groupId,
long parentGroupId)
This method replicates all ACLs of the parent group to another group.
|
void |
initialize(Group group)
Doesn't do anything by default
|
boolean |
insert(Group group,
long parentGroupId)
This method persists a new group object.
|
void |
setMenuDAO(MenuDAO menuDAO) |
bulkUpdate, deleteAll, evict, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public MenuDAO getMenuDAO()
public void setMenuDAO(MenuDAO menuDAO)
public boolean delete(long groupId)
PersistentObjectDAO
delete
in interface PersistentObjectDAO<Group>
delete
in class HibernatePersistentObjectDAO<Group>
groupId
- ID of the entity which should be deleted.public boolean exists(String groupname)
com.logicaldoc.core.security.dao.GroupDAO#exists(java.lang.String)
public Collection<String> findAllGroupNames()
GroupDAO
findAllGroupNames
in interface GroupDAO
GroupDAO.findAllGroupNames()
public Group findByName(String name)
GroupDAO
findByName
in interface GroupDAO
name
- name of wanted group.GroupDAO.findByName(java.lang.String)
public boolean insert(Group group, long parentGroupId)
GroupDAO
insert
in interface GroupDAO
group
- Group which should be stored in a database.parentGroupId
- ID of the group this group inherits ACLs fromGroupDAO.insert(com.logicaldoc.core.security.Group,
long)
public void inheritACLs(long groupId, long parentGroupId)
GroupDAO
Attention: The group(groupId) ACLs will be discarded.
inheritACLs
in interface GroupDAO
groupId
- The group to be altered.parentGroupId
- The group whose ACLs will be inherited.public Collection<Group> findByLikeName(String name)
GroupDAO
findByLikeName
in interface GroupDAO
name
- The name of wanted Group.GroupDAO.findByLikeName(java.lang.String)
public int count()
GroupDAO
public void initialize(Group group)
HibernatePersistentObjectDAO
initialize
in interface PersistentObjectDAO<Group>
initialize
in interface GroupDAO
initialize
in class HibernatePersistentObjectDAO<Group>
group
- The entity to be initialisedCopyright © 2008-2014 Logical Objects. All Rights Reserved.