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 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)
-
-
-
Method Detail
-
existsGroup
public boolean existsGroup(String groupName)
- Specified by:
existsGroup
in interfaceGroupService
-
getGroup
public Group getGroup(String groupName)
- Specified by:
getGroup
in interfaceGroupService
-
getGroups
public List<Group> getGroups()
- Specified by:
getGroups
in interfaceGroupService
-
getAuthorizedCategories
public List<OnmsCategory> getAuthorizedCategories(String groupName)
- Specified by:
getAuthorizedCategories
in interfaceGroupService
-
getAuthorizedCategoriesAsString
public List<String> getAuthorizedCategoriesAsString(String groupName)
- Specified by:
getAuthorizedCategoriesAsString
in interfaceGroupService
-
saveGroup
public void saveGroup(OnmsGroup group)
- Specified by:
saveGroup
in interfaceGroupService
-
saveGroup
public void saveGroup(Group group)
- Specified by:
saveGroup
in interfaceGroupService
-
saveGroup
public void saveGroup(Group group, List<String> authorizedCategories)
- Specified by:
saveGroup
in interfaceGroupService
-
deleteGroup
public void deleteGroup(String groupName)
- Specified by:
deleteGroup
in interfaceGroupService
-
renameGroup
public void renameGroup(String oldName, String newName)
- Specified by:
renameGroup
in interfaceGroupService
-
addCategory
public boolean addCategory(String groupName, String categoryName)
- Specified by:
addCategory
in interfaceGroupService
-
removeCategory
public boolean removeCategory(String groupName, String categoryName)
- Specified by:
removeCategory
in interfaceGroupService
-
getOnmsGroup
public OnmsGroup getOnmsGroup(String groupName)
- Specified by:
getOnmsGroup
in interfaceGroupService
-
getOnmsGroupList
public OnmsGroupList getOnmsGroupList()
- Specified by:
getOnmsGroupList
in interfaceGroupService
-
getUsersOfGroup
public OnmsUserList getUsersOfGroup(String groupName)
- Specified by:
getUsersOfGroup
in interfaceGroupService
-
getUserForGroup
public OnmsUser getUserForGroup(String groupName, String userName)
- Specified by:
getUserForGroup
in interfaceGroupService
-
addUser
public boolean addUser(String groupName, String userName)
- Specified by:
addUser
in interfaceGroupService
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceGroupService
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
-