Package org.opennms.netmgt.config
Class WebRoleManagerImpl
- java.lang.Object
-
- org.opennms.netmgt.config.WebRoleManagerImpl
-
- All Implemented Interfaces:
WebGroupManager
,WebRoleManager
,WebUserManager
public class WebRoleManagerImpl extends java.lang.Object implements WebRoleManager, WebUserManager, WebGroupManager
Manager class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description WebRoleManagerImpl(GroupManager groupManager, UserManager userManager)
Constructor for Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebRole
createRole()
createRolevoid
deleteRole(java.lang.String roleName)
deleteRoleWebGroup
getGroup(java.lang.String groupName)
getGroupjava.util.Collection<WebGroup>
getGroups()
getGroupsWebRole
getRole(java.lang.String roleName)
getRolejava.util.Collection<WebRole>
getRoles()
getRolesWebUser
getUser(java.lang.String name)
getUserjava.util.Collection<WebUser>
getUsers()
getUsersvoid
saveRole(WebRole webRole)
saveRole
-
-
-
Constructor Detail
-
WebRoleManagerImpl
public WebRoleManagerImpl(GroupManager groupManager, UserManager userManager)
Constructor for Manager.
- Parameters:
groupManager
- aGroupManager
object.userManager
- aUserManager
object.
-
-
Method Detail
-
createRole
public WebRole createRole()
createRole
- Specified by:
createRole
in interfaceWebRoleManager
- Returns:
- a
WebRole
object.
-
getRoles
public java.util.Collection<WebRole> getRoles()
getRoles
- Specified by:
getRoles
in interfaceWebRoleManager
- Returns:
- a
Collection
object.
-
deleteRole
public void deleteRole(java.lang.String roleName)
deleteRole
- Specified by:
deleteRole
in interfaceWebRoleManager
- Parameters:
roleName
- aString
object.
-
getRole
public WebRole getRole(java.lang.String roleName)
getRole
- Specified by:
getRole
in interfaceWebRoleManager
- Parameters:
roleName
- aString
object.- Returns:
- a
org.opennms.web.admin.roles.WebRole
object.
-
saveRole
public void saveRole(WebRole webRole)
saveRole
- Specified by:
saveRole
in interfaceWebRoleManager
- Parameters:
webRole
- aorg.opennms.web.admin.roles.WebRole
object.
-
getUsers
public java.util.Collection<WebUser> getUsers()
getUsers
- Specified by:
getUsers
in interfaceWebUserManager
- Returns:
- a
Collection
object.
-
getUser
public WebUser getUser(java.lang.String name)
getUser
- Specified by:
getUser
in interfaceWebUserManager
- Parameters:
name
- aString
object.- Returns:
- a
WebUser
object.
-
getGroups
public java.util.Collection<WebGroup> getGroups()
getGroups
- Specified by:
getGroups
in interfaceWebGroupManager
- Returns:
- a
Collection
object.
-
getGroup
public WebGroup getGroup(java.lang.String groupName)
getGroup
- Specified by:
getGroup
in interfaceWebGroupManager
- Parameters:
groupName
- aString
object.- Returns:
- a
WebGroup
object.
-
-