Package africa.absa.inception.security
Class Function
java.lang.Object
africa.absa.inception.security.Function
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getCode()Returns the code for the function.Returns the description for the function.getName()Returns the name of the function.getRoles()Returns the roles the user is associated with.inthashCode()Returns a hash code value for the object.voidSet the code for the function.voidsetDescription(String description) Set the description for the function.voidSet the name of the function.voidSet the roles the user is associated with.
-
Constructor Details
-
Function
public Function()Constructs a new Function. -
Function
Constructs a new Function.- Parameters:
code- the code for the functionname- the name of the functiondescription- the description for the function
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the code for the function.- Returns:
- the code for the function
-
getDescription
Returns the description for the function.- Returns:
- the description for the function
-
getName
Returns the name of the function.- Returns:
- the name of the function
-
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
Set the code for the function.- Parameters:
code- the code for the function
-
setDescription
Set the description for the function.- Parameters:
description- the description for the function
-
setName
Set the name of the function.- Parameters:
name- the name of the function
-
setRoles
Set the roles the user is associated with.- Parameters:
roles- the roles the user is associated with
-