Interface Permission

All Superinterfaces:
Serializable
All Known Implementing Classes:
AccessPermission, AllPermission, CreatePermission, DeletePermission, DisplayPermission, DisplayPermission, GenerateCorrespondencePermission, GenerateMailPermission, GenerateReportPermission, HistoryPermission, InputEditPermission, PerformPermission

public interface Permission extends Serializable
Represents the permission to perform a certain operation.
  • Method Details

    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      String toString()
      Overrides:
      toString in class Object
    • getName

      String getName()
    • implies

      boolean implies(Permission 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.

      Parameters:
      permission - The permission to check.
      Returns:
      true, if this permission implies the given permission, false otherwise.