Class Permission

java.lang.Object
overit.geocall.platform.Permission
All Implemented Interfaces:
Serializable

public class Permission extends Object implements Serializable
This class manages the Permission usually a permission to perform a certain action.
See Also:
  • Field Details

    • name

      protected String name
    • description

      protected String description
    • alias

      protected String[] alias
    • title

      protected String title
    • order

      protected int order
  • Constructor Details

    • Permission

      public Permission(String name, String desc, int order)
      Creates a new permission
      Parameters:
      name - The name of the permission
      desc - The description of the permission
      order - The order of the permission
  • Method Details

    • clean

      public static String clean(String n)
      Clean a string by removing the "." (dot) inside it
      Parameters:
      n - The string to clean
      Returns:
      THe cleaned string
    • getName

      public String getName()
      Returns the name of the permission
      Returns:
      The name of the permission
    • getAlias

      public String[] getAlias()
      Returns the alias of the permission
      Returns:
      The alias of the permission
    • setAlias

      public Permission setAlias(String... alias)
      Sets an alias to the permission
      Parameters:
      alias - The alias to set
      Returns:
      The Permission
    • setTitle

      public Permission setTitle(String title)
      Sets a title to the permission
      Parameters:
      title - The title
      Returns:
      The Permission
    • getDescription

      public String getDescription()
      Returns the description of the permission
      Returns:
      The descriprion of the permission
    • getTitle

      public String 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object