Package org.opennms.web.svclayer.support
Class DefaultGroupService
- java.lang.Object
-
- org.opennms.web.svclayer.support.DefaultGroupService
-
- All Implemented Interfaces:
GroupService,org.springframework.beans.factory.InitializingBean
public class DefaultGroupService extends Object implements org.springframework.beans.factory.InitializingBean, GroupService
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddCategory(String groupName, String categoryName)booleanaddUser(String groupName, String userName)voidafterPropertiesSet()voiddeleteGroup(String groupName)booleanexistsGroup(String groupName)List<OnmsCategory>getAuthorizedCategories(String groupName)List<String>getAuthorizedCategoriesAsString(String groupName)GroupgetGroup(String groupName)List<Group>getGroups()OnmsGroupgetOnmsGroup(String groupName)OnmsGroupListgetOnmsGroupList()OnmsUsergetUserForGroup(String groupName, String userName)OnmsUserListgetUsersOfGroup(String groupName)booleanremoveCategory(String groupName, String categoryName)voidrenameGroup(String oldName, String newName)voidsaveGroup(Group group)voidsaveGroup(Group group, List<String> authorizedCategories)voidsaveGroup(OnmsGroup group)
-
-
-
Method Detail
-
existsGroup
public boolean existsGroup(String groupName)
- Specified by:
existsGroupin interfaceGroupService
-
getGroup
public Group getGroup(String groupName)
- Specified by:
getGroupin interfaceGroupService
-
getGroups
public List<Group> getGroups()
- Specified by:
getGroupsin interfaceGroupService
-
getAuthorizedCategories
public List<OnmsCategory> getAuthorizedCategories(String groupName)
- Specified by:
getAuthorizedCategoriesin interfaceGroupService
-
getAuthorizedCategoriesAsString
public List<String> getAuthorizedCategoriesAsString(String groupName)
- Specified by:
getAuthorizedCategoriesAsStringin interfaceGroupService
-
saveGroup
public void saveGroup(OnmsGroup group)
- Specified by:
saveGroupin interfaceGroupService
-
saveGroup
public void saveGroup(Group group)
- Specified by:
saveGroupin interfaceGroupService
-
saveGroup
public void saveGroup(Group group, List<String> authorizedCategories)
- Specified by:
saveGroupin interfaceGroupService
-
deleteGroup
public void deleteGroup(String groupName)
- Specified by:
deleteGroupin interfaceGroupService
-
renameGroup
public void renameGroup(String oldName, String newName)
- Specified by:
renameGroupin interfaceGroupService
-
addCategory
public boolean addCategory(String groupName, String categoryName)
- Specified by:
addCategoryin interfaceGroupService
-
removeCategory
public boolean removeCategory(String groupName, String categoryName)
- Specified by:
removeCategoryin interfaceGroupService
-
getOnmsGroup
public OnmsGroup getOnmsGroup(String groupName)
- Specified by:
getOnmsGroupin interfaceGroupService
-
getOnmsGroupList
public OnmsGroupList getOnmsGroupList()
- Specified by:
getOnmsGroupListin interfaceGroupService
-
getUsersOfGroup
public OnmsUserList getUsersOfGroup(String groupName)
- Specified by:
getUsersOfGroupin interfaceGroupService
-
getUserForGroup
public OnmsUser getUserForGroup(String groupName, String userName)
- Specified by:
getUserForGroupin interfaceGroupService
-
addUser
public boolean addUser(String groupName, String userName)
- Specified by:
addUserin interfaceGroupService
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceGroupService- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
-