public class DefaultGroupService extends Object implements org.springframework.beans.factory.InitializingBean, GroupService
| Constructor and Description |
|---|
DefaultGroupService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCategory(String groupName,
String categoryName) |
boolean |
addUser(String groupName,
String userName) |
void |
afterPropertiesSet() |
void |
deleteGroup(String groupName) |
boolean |
existsGroup(String groupName) |
List<OnmsCategory> |
getAuthorizedCategories(String groupName) |
List<String> |
getAuthorizedCategoriesAsString(String groupName) |
Group |
getGroup(String groupName) |
List<Group> |
getGroups() |
OnmsGroup |
getOnmsGroup(String groupName) |
OnmsGroupList |
getOnmsGroupList() |
OnmsUser |
getUserForGroup(String groupName,
String userName) |
OnmsUserList |
getUsersOfGroup(String groupName) |
boolean |
removeCategory(String groupName,
String categoryName) |
void |
renameGroup(String oldName,
String newName) |
void |
saveGroup(Group group) |
void |
saveGroup(Group group,
List<String> authorizedCategories) |
void |
saveGroup(OnmsGroup group) |
public boolean existsGroup(String groupName)
existsGroup in interface GroupServicepublic Group getGroup(String groupName)
getGroup in interface GroupServicepublic List<Group> getGroups()
getGroups in interface GroupServicepublic List<OnmsCategory> getAuthorizedCategories(String groupName)
getAuthorizedCategories in interface GroupServicepublic List<String> getAuthorizedCategoriesAsString(String groupName)
getAuthorizedCategoriesAsString in interface GroupServicepublic void saveGroup(OnmsGroup group)
saveGroup in interface GroupServicepublic void saveGroup(Group group)
saveGroup in interface GroupServicepublic void saveGroup(Group group, List<String> authorizedCategories)
saveGroup in interface GroupServicepublic void deleteGroup(String groupName)
deleteGroup in interface GroupServicepublic void renameGroup(String oldName, String newName)
renameGroup in interface GroupServicepublic boolean addCategory(String groupName, String categoryName)
addCategory in interface GroupServicepublic boolean removeCategory(String groupName, String categoryName)
removeCategory in interface GroupServicepublic OnmsGroup getOnmsGroup(String groupName)
getOnmsGroup in interface GroupServicepublic OnmsGroupList getOnmsGroupList()
getOnmsGroupList in interface GroupServicepublic OnmsUserList getUsersOfGroup(String groupName)
getUsersOfGroup in interface GroupServicepublic OnmsUser getUserForGroup(String groupName, String userName)
getUserForGroup in interface GroupServicepublic boolean addUser(String groupName, String userName)
addUser in interface GroupServicepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface GroupServiceafterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionCopyright © 2020. All rights reserved.