|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupDAO
Persistance methods necessary to modify an InternalDirectory
group
.
Method Summary | |
---|---|
InternalGroup |
add(Group group)
|
BatchResult<Group> |
addAll(long directoryId,
Set<GroupTemplate> groups)
Bulk add of users using JDBC batch support. |
InternalGroup |
findByName(long directoryId,
String groupName)
|
Collection<InternalGroup> |
findByNames(long directoryId,
Collection<String> groupnames)
Bulk find of groups using SQL disjunction. |
InternalGroupWithAttributes |
findByNameWithAttributes(long directoryID,
String groupName)
|
void |
remove(Group group)
|
void |
removeAll(long directoryId)
|
void |
removeAttribute(Group group,
String attributeName)
|
InternalGroup |
rename(Group group,
String newName)
|
List |
search(long directoryID,
EntityQuery query)
|
void |
storeAttributes(Group group,
Map<String,List<String>> attributes)
|
InternalGroup |
update(Group group)
|
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao |
---|
getPersistentClass, load, remove, save, update |
Method Detail |
---|
InternalGroup findByName(long directoryId, String groupName) throws ObjectNotFoundException
ObjectNotFoundException
InternalGroupWithAttributes findByNameWithAttributes(long directoryID, String groupName) throws ObjectNotFoundException
ObjectNotFoundException
InternalGroup add(Group group) throws ObjectNotFoundException
ObjectNotFoundException
InternalGroup update(Group group) throws ObjectNotFoundException
ObjectNotFoundException
InternalGroup rename(Group group, String newName) throws ObjectNotFoundException
ObjectNotFoundException
void storeAttributes(Group group, Map<String,List<String>> attributes) throws ObjectNotFoundException
ObjectNotFoundException
void removeAttribute(Group group, String attributeName) throws ObjectNotFoundException
ObjectNotFoundException
void remove(Group group) throws ObjectNotFoundException
ObjectNotFoundException
void removeAll(long directoryId)
List search(long directoryID, EntityQuery query)
directoryID
- ID of the directory to condunct the search.query
- the group query
org.springframework.dao.DataAccessException
- underlying problem communicating with the database.
IllegalArgumentException
- query contains illegal arguments.BatchResult<Group> addAll(long directoryId, Set<GroupTemplate> groups) throws ObjectNotFoundException
directoryId
- the directory to add the groups togroups
- to be added
ObjectNotFoundException
- if the directory cannot be foundCollection<InternalGroup> findByNames(long directoryId, Collection<String> groupnames)
directoryId
- the directory to search for the groups.groupnames
- names of groups to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |