Interface GroupDAO
- All Superinterfaces:
- PersistentObjectDAO<Group>
- All Known Implementing Classes:
- HibernateGroupDAO
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionintcount()Counts the total number of groupsfindAllGroupNames(long tenantId) This method selects all group namesfindByLikeName(String name, long tenantId) This method finds a Group by name.findByName(String name, long tenantId) Finds a group by name.voidfixGuestPermissions(Group group) voidinheritACLs(Group group, long parentGroupId) This method replicates all ACLs of the parent group to another group.voidinitialize(Group group) Initializes the group collectionsvoidThis method persists a new group object.Methods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
- 
Method Details- 
insertThis method persists a new group object. All permissions and extended attributes of the parent group will be replicated.- Parameters:
- group- Group which should be stored in a database.
- parentGroupId- ID of the group this group inherits ACLs from
- Throws:
- PersistenceException- Error in the database
 
- 
inheritACLsThis method replicates all ACLs of the parent group to another group.Attention: The group(groupId) ACLs will be discarded. - Parameters:
- group- The group to be altered.
- parentGroupId- The group whose ACLs will be inherited.
- Throws:
- PersistenceException- Error in the database
 
- 
findByNameFinds a group by name.- Parameters:
- name- name of wanted group.
- tenantId- ID of the owning tenant
- Returns:
- Wanted group or null.
- Throws:
- PersistenceException- Error in the database
 
- 
findAllGroupNamesThis method selects all group names- Parameters:
- tenantId- identifier of the tenant
- Returns:
- collection of all the group names
- Throws:
- PersistenceException- Error in the database
 
- 
findByLikeNameThis method finds a Group by name.- Parameters:
- name- The name of wanted Group.
- tenantId- ID of the owning tenant
- Returns:
- Collection of selected groups.
- Throws:
- PersistenceException- Error in the database
 
- 
countCounts the total number of groups- Returns:
- total number of groups
- Throws:
- PersistenceException- Error in the database
 
- 
initializeInitializes the group collections- Specified by:
- initializein interface- PersistentObjectDAO<Group>
- Parameters:
- group- The entity to be initialised
 
- 
fixGuestPermissions- Throws:
- PersistenceException
 
 
-