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