org.rhq.core.domain.authz
Class Role
java.lang.Object
org.rhq.core.domain.authz.Role
- All Implemented Interfaces:
- Serializable
public class Role
- extends Object
- implements Serializable
A role has zero or more ResourceGroup
s assigned to it. You can assign a
role to zero or more Subject
s. A role defines a set of Permission
s that the assigned Subject
s
are authorized for in order to operate on the given resources in the assigned
ResourceGroup
s.
- See Also:
- Serialized Form
QUERY_FIND_ALL
public static final String QUERY_FIND_ALL
- See Also:
- Constant Field Values
QUERY_FIND_BY_IDS
public static final String QUERY_FIND_BY_IDS
- See Also:
- Constant Field Values
QUERY_FIND_AVAILABLE_ROLES_WITH_EXCLUDES
public static final String QUERY_FIND_AVAILABLE_ROLES_WITH_EXCLUDES
- See Also:
- Constant Field Values
QUERY_FIND_AVAILABLE_ROLES
public static final String QUERY_FIND_AVAILABLE_ROLES
- See Also:
- Constant Field Values
QUERY_FIND_AVAILABLE_ROLES_FOR_ALERT_DEFINITION_WITH_EXCLUDES
public static final String QUERY_FIND_AVAILABLE_ROLES_FOR_ALERT_DEFINITION_WITH_EXCLUDES
- See Also:
- Constant Field Values
QUERY_FIND_AVAILABLE_ROLES_FOR_ALERT_DEFINITION
public static final String QUERY_FIND_AVAILABLE_ROLES_FOR_ALERT_DEFINITION
- See Also:
- Constant Field Values
Role
protected Role()
Role
public Role(@NotNull
String name)
getId
public Integer getId()
setId
public void setId(Integer id)
getName
@NotNull
public String getName()
setName
public void setName(@NotNull
String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getFsystem
public Boolean getFsystem()
setFsystem
public void setFsystem(Boolean fsystem)
getPermissions
public Set<Permission> getPermissions()
setPermissions
public void setPermissions(Set<Permission> permissions)
addPermission
public void addPermission(Permission operation)
removePermission
public boolean removePermission(Permission permission)
getSubjects
public Set<Subject> getSubjects()
setSubjects
public void setSubjects(Set<Subject> subjects)
addSubject
public void addSubject(Subject subject)
removeSubject
public void removeSubject(Subject subject)
getResourceGroups
public Set<ResourceGroup> getResourceGroups()
setResourceGroups
public void setResourceGroups(Set<ResourceGroup> resourceGroups)
addResourceGroup
public void addResourceGroup(ResourceGroup resourceGroup)
removeResourceGroup
public void removeResourceGroup(ResourceGroup resourceGroup)
getRoleNotifications
public Set<RoleNotification> getRoleNotifications()
setRoleNotifications
public void setRoleNotifications(Set<RoleNotification> roleNotifications)
addRoleNotification
public void addRoleNotification(RoleNotification roleNotification)
getMemberCount
public int getMemberCount()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.