Package africa.absa.inception.security
Class Role
java.lang.Object
africa.absa.inception.security.Role
- All Implemented Interfaces:
Serializable
The Role class holds the information for a role.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(Function function) Add the function to the role.booleanIndicates whether some other object is "equal to" this one.getCode()Returns the code for the role.Returns the description for the role.Returns the functions associated with the role.Returns the groups the role is associated with.getName()Returns the name of the role.inthashCode()Returns a hash code value for the object.voidremoveFunction(Function function) Remove the function to the role.voidSet the code for the role.voidsetDescription(String description) Set the description for the role.voidsetFunctions(Set<Function> functions) Set the functions associated with the role.voidSet the groups the role is associated with.voidSet the name of the role.
-
Constructor Details
-
Role
public Role()Constructs a new Role.
-
-
Method Details
-
addFunction
Add the function to the role.- Parameters:
function- the function
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the code for the role.- Returns:
- the code for the role
-
getDescription
Returns the description for the role.- Returns:
- the description for the role
-
getFunctions
Returns the functions associated with the role.- Returns:
- the functions associated with the role
-
getGroups
Returns the groups the role is associated with.- Returns:
- the groups the role is associated with
-
getName
Returns the name of the role.- Returns:
- the name of the role
-
hashCode
public int hashCode()Returns a hash code value for the object. -
removeFunction
Remove the function to the role.- Parameters:
function- the function
-
setCode
Set the code for the role.- Parameters:
code- the code for the role
-
setDescription
Set the description for the role.- Parameters:
description- the description for the role
-
setFunctions
Set the functions associated with the role.- Parameters:
functions- the functions associated with the role
-
setGroups
Set the groups the role is associated with.- Parameters:
groups- the groups the role is associated with
-
setName
Set the name of the role.- Parameters:
name- the name of the role
-