Package overit.geocall.platform
Class Permission
java.lang.Object
overit.geocall.platform.Permission
- All Implemented Interfaces:
Serializable
This class manages the Permission usually a permission to perform a certain action.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringClean a string by removing the "."booleanString[]getAlias()Returns the alias of the permissionReturns the description of the permissiongetName()Returns the name of the permissionintgetOrder()Returns the order of the permissiongetTitle()Returns the title of the permissioninthashCode()Sets an alias to the permissionSets a title to the permissiontoString()
-
Field Details
-
name
-
description
-
alias
-
title
-
order
protected int order
-
-
Constructor Details
-
Permission
Creates a new permission- Parameters:
name- The name of the permissiondesc- The description of the permissionorder- The order of the permission
-
-
Method Details
-
clean
Clean a string by removing the "." (dot) inside it- Parameters:
n- The string to clean- Returns:
- THe cleaned string
-
getName
Returns the name of the permission- Returns:
- The name of the permission
-
getAlias
Returns the alias of the permission- Returns:
- The alias of the permission
-
setAlias
Sets an alias to the permission- Parameters:
alias- The alias to set- Returns:
- The Permission
-
setTitle
Sets a title to the permission- Parameters:
title- The title- Returns:
- The Permission
-
getDescription
Returns the description of the permission- Returns:
- The descriprion of the permission
-
getTitle
Returns the title of the permission- Returns:
- The title of the permission
-
getOrder
public int getOrder()Returns the order of the permission- Returns:
- The order of the permission
-
hashCode
public int hashCode() -
equals
-
toString
-