Class GenerateMailPermission

All Implemented Interfaces:
Permission, Serializable

public class GenerateMailPermission extends Object implements Permission
See Also:
  • Field Details

  • Constructor Details

    • GenerateMailPermission

      public GenerateMailPermission()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Permission
    • implies

      public boolean implies(Permission permission)
      Description copied from interface: Permission
      Check whether this permission implies another permission. Be careful when implementing this method on your own permissions because this is basically the core of the whole security concept.

      A permission implies another permission, if the other permission is a subset of this permission. For example, the permission to access all fields of an entity implies the permission to access the specific field "myField" of the same entity, or the permission to access all files under /my/directory implies the permission to access the file /my/directory/myFile.

      Specified by:
      implies in interface Permission
      permission - The permission to check.
      true, if this permission implies the given permission, false otherwise.
    • hashCode

      public int hashCode()
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in interface Permission
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface Permission
      toString in class Object