Package org.jgrapes.webconsole.base
Class ConsoleRole
java.lang.Object
org.jgrapes.webconsole.base.ConsoleRole
- All Implemented Interfaces:
Principal
A
Principal
representing a role used by web console
components.Console roles are usually not managed. Rather, the information is derived from some authentication system and provided to console components in a way that is independent from a particular authentication strategy.
-
Constructor Summary
ConstructorDescriptionConsoleRole
(String name) Instantiates a new console role with the name also being used as display name.ConsoleRole
(String name, String displayName) Instantiates a new console role. -
Method Summary
-
Constructor Details
-
ConsoleRole
Instantiates a new console role.- Parameters:
name
- the namedisplayName
- the display name
-
ConsoleRole
Instantiates a new console role with the name also being used as display name.- Parameters:
name
- the name
-
-
Method Details
-
getName
Gets the unique name.Used as key when storing or retrieving user specific information.
-
getDisplayName
The name to use when showing the user to humans.- Returns:
- the display name
-
hashCode
-
equals
-
toString
Returns the name followed by the display name in parenthesis.
-