Package africa.absa.inception.security
Class Function
- java.lang.Object
-
- africa.absa.inception.security.Function
-
- All Implemented Interfaces:
Serializable
@Entity public class Function extends Object implements Serializable
The Function class holds the information for a discrete unit of functionality for an application that can be assigned to Roles.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.StringgetCode()Returns the code for the function.StringgetDescription()Returns the description for the function.StringgetName()Returns the name of the function.Set<Role>getRoles()Returns the roles the user is associated with.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set the code for the function.voidsetDescription(String description)Set the description for the function.voidsetName(String name)Set the name of the function.voidsetRoles(Set<Role> roles)Set the roles the user is associated with.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCode
public String getCode()
Returns the code for the function.- Returns:
- the code for the function
-
getDescription
public String getDescription()
Returns the description for the function.- Returns:
- the description for the function
-
getName
public String getName()
Returns the name of the function.- Returns:
- the name of the function
-
getRoles
public Set<Role> getRoles()
Returns the roles the user is associated with.- Returns:
- the roles the user is associated with
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setCode
public void setCode(String code)
Set the code for the function.- Parameters:
code- the code for the function
-
setDescription
public void setDescription(String description)
Set the description for the function.- Parameters:
description- the description for the function
-
setName
public void setName(String name)
Set the name of the function.- Parameters:
name- the name of the function
-
-