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 GroupService
public Group getGroup(String groupName)
getGroup
in interface GroupService
public List<Group> getGroups()
getGroups
in interface GroupService
public List<OnmsCategory> getAuthorizedCategories(String groupName)
getAuthorizedCategories
in interface GroupService
public List<String> getAuthorizedCategoriesAsString(String groupName)
getAuthorizedCategoriesAsString
in interface GroupService
public void saveGroup(OnmsGroup group)
saveGroup
in interface GroupService
public void saveGroup(Group group)
saveGroup
in interface GroupService
public void saveGroup(Group group, List<String> authorizedCategories)
saveGroup
in interface GroupService
public void deleteGroup(String groupName)
deleteGroup
in interface GroupService
public void renameGroup(String oldName, String newName)
renameGroup
in interface GroupService
public boolean addCategory(String groupName, String categoryName)
addCategory
in interface GroupService
public boolean removeCategory(String groupName, String categoryName)
removeCategory
in interface GroupService
public OnmsGroup getOnmsGroup(String groupName)
getOnmsGroup
in interface GroupService
public OnmsGroupList getOnmsGroupList()
getOnmsGroupList
in interface GroupService
public OnmsUserList getUsersOfGroup(String groupName)
getUsersOfGroup
in interface GroupService
public OnmsUser getUserForGroup(String groupName, String userName)
getUserForGroup
in interface GroupService
public boolean addUser(String groupName, String userName)
addUser
in interface GroupService
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface GroupService
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2021. All rights reserved.