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 SummaryConstructors Constructor Description DefaultGroupService()
 - 
Method SummaryAll 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- 
existsGrouppublic boolean existsGroup(String groupName) - Specified by:
- existsGroupin interface- GroupService
 
 - 
getGrouppublic Group getGroup(String groupName) - Specified by:
- getGroupin interface- GroupService
 
 - 
getGroupspublic List<Group> getGroups() - Specified by:
- getGroupsin interface- GroupService
 
 - 
getAuthorizedCategoriespublic List<OnmsCategory> getAuthorizedCategories(String groupName) - Specified by:
- getAuthorizedCategoriesin interface- GroupService
 
 - 
getAuthorizedCategoriesAsStringpublic List<String> getAuthorizedCategoriesAsString(String groupName) - Specified by:
- getAuthorizedCategoriesAsStringin interface- GroupService
 
 - 
saveGrouppublic void saveGroup(OnmsGroup group) - Specified by:
- saveGroupin interface- GroupService
 
 - 
saveGrouppublic void saveGroup(Group group) - Specified by:
- saveGroupin interface- GroupService
 
 - 
saveGrouppublic void saveGroup(Group group, List<String> authorizedCategories) - Specified by:
- saveGroupin interface- GroupService
 
 - 
deleteGrouppublic void deleteGroup(String groupName) - Specified by:
- deleteGroupin interface- GroupService
 
 - 
renameGrouppublic void renameGroup(String oldName, String newName) - Specified by:
- renameGroupin interface- GroupService
 
 - 
addCategorypublic boolean addCategory(String groupName, String categoryName) - Specified by:
- addCategoryin interface- GroupService
 
 - 
removeCategorypublic boolean removeCategory(String groupName, String categoryName) - Specified by:
- removeCategoryin interface- GroupService
 
 - 
getOnmsGrouppublic OnmsGroup getOnmsGroup(String groupName) - Specified by:
- getOnmsGroupin interface- GroupService
 
 - 
getOnmsGroupListpublic OnmsGroupList getOnmsGroupList() - Specified by:
- getOnmsGroupListin interface- GroupService
 
 - 
getUsersOfGrouppublic OnmsUserList getUsersOfGroup(String groupName) - Specified by:
- getUsersOfGroupin interface- GroupService
 
 - 
getUserForGrouppublic OnmsUser getUserForGroup(String groupName, String userName) - Specified by:
- getUserForGroupin interface- GroupService
 
 - 
addUserpublic boolean addUser(String groupName, String userName) - Specified by:
- addUserin interface- GroupService
 
 - 
afterPropertiesSetpublic void afterPropertiesSet() throws Exception- Specified by:
- afterPropertiesSetin interface- GroupService
- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
 
- 
 
-