Class Permissions<D>

java.lang.Object
com.levigo.jadice.document.Permissions<D>

public class Permissions<D> extends Object

Overview

This class represents a set of permissions attached to a domain object.

Permissions

Granting and revoking permissions

  • Constructor Details

    • Permissions

      public Permissions()
  • Method Details

    • getPermissions

      public ArrayList<Permission<? super D>> getPermissions()
      Returns:
      the permissions
    • isPermissionGranted

      public boolean isPermissionGranted(D domain, Intent action)
    • areAllPermissionsGranted

      public boolean areAllPermissionsGranted(D domain, Intent... intents)
    • isAnyPermissionGranted

      public boolean isAnyPermissionGranted(D domain, Intent... intents)
    • isGrantAll

      public boolean isGrantAll()
      Return whether this Permissions Object always grants every permission, because there are no Permissions installed and the default is to grant permission. If this method returns true, permission checking code improve efficiency by skipping the creation of Intents.
      Returns:
      true if any conceivable permission is always granted.