public interface GroupDAO extends PersistentObjectDAO<Group>
Modifier and Type | Method and Description |
---|---|
int |
count()
Counts the total number of groups
|
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.
|
void |
inheritACLs(long groupId,
long parentGroupId)
This method replicates all ACLs of the parent group to another group.
|
void |
initialize(Group group)
Initialize the group collections.
|
boolean |
insert(Group group,
long parentGroupId)
This method persists a new group object.
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
boolean insert(Group group, long parentGroupId)
group
- Group which should be stored in a database.parentGroupId
- ID of the group this group inherits ACLs fromvoid inheritACLs(long groupId, long parentGroupId)
Attention: The group(groupId) ACLs will be discarded.
groupId
- The group to be altered.parentGroupId
- The group whose ACLs will be inherited.Group findByName(String name)
name
- name of wanted group.Collection<String> findAllGroupNames()
Collection<Group> findByLikeName(String name)
name
- The name of wanted Group.int count()
void initialize(Group group)
initialize
in interface PersistentObjectDAO<Group>
group
- The entity to be initialisedCopyright © 2008-2014 Logical Objects. All Rights Reserved.