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 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_DYNAMIC_CONFIG_VALUES
public static final String QUERY_DYNAMIC_CONFIG_VALUES
- See Also:
- Constant Field Values
Role
public Role()
Role
public Role(@NotNull
String name)
getId
public int getId()
setId
public void setId(int 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 permission)
removePermission
public boolean removePermission(Permission permission)
getLdapGroups
public Set<LdapGroup> getLdapGroups()
setLdapGroups
public void setLdapGroups(Set<LdapGroup> groups)
addLdapGroup
public void addLdapGroup(LdapGroup ldapGroup)
removeLdapGroup
public boolean removeLdapGroup(LdapGroup ldapGroup)
getSubjects
public Set<Subject> getSubjects()
setSubjects
public void setSubjects(Set<Subject> subjects)
addSubject
public void addSubject(Subject subject)
removeSubject
public void removeSubject(Subject subject)
getLdapSubjects
public Set<Subject> getLdapSubjects()
setLdapSubjects
public void setLdapSubjects(Set<Subject> subjects)
addLdapSubject
public void addLdapSubject(Subject subject)
removeLdapSubject
public void removeLdapSubject(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)
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-2011 Red Hat, Inc.. All Rights Reserved.