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, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storepublic MenuDAO getMenuDAO()
public void setMenuDAO(MenuDAO menuDAO)
public boolean delete(long groupId)
PersistentObjectDAOdelete 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()
GroupDAOfindAllGroupNames in interface GroupDAOGroupDAO.findAllGroupNames()public Group findByName(String name)
GroupDAOfindByName in interface GroupDAOname - name of wanted group.GroupDAO.findByName(java.lang.String)public boolean insert(Group group, long parentGroupId)
GroupDAOinsert in interface GroupDAOgroup - 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)
GroupDAOAttention: The group(groupId) ACLs will be discarded.
inheritACLs in interface GroupDAOgroupId - The group to be altered.parentGroupId - The group whose ACLs will be inherited.public Collection<Group> findByLikeName(String name)
GroupDAOfindByLikeName in interface GroupDAOname - The name of wanted Group.GroupDAO.findByLikeName(java.lang.String)public int count()
GroupDAOpublic void initialize(Group group)
HibernatePersistentObjectDAOinitialize in interface PersistentObjectDAO<Group>initialize in interface GroupDAOinitialize in class HibernatePersistentObjectDAO<Group>group - The entity to be initialisedCopyright © 2008-2014 Logical Objects. All Rights Reserved.