Package com.levigo.jadice.document
Class Permissions<D>
java.lang.Object
com.levigo.jadice.document.Permissions<D>
Overview
This class represents a set of permissions attached to a domain object.Permissions
Granting and revoking permissions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAllPermissionsGranted(D domain, Intent... intents) ArrayList<Permission<? super D>> booleanisAnyPermissionGranted(D domain, Intent... intents) booleanReturn whether this Permissions Object always grants every permission, because there are noPermissions installed and the default is to grant permission.booleanisPermissionGranted(D domain, Intent action)
-
Constructor Details
-
Permissions
public Permissions()
-
-
Method Details
-
getPermissions
- Returns:
- the permissions
-
isPermissionGranted
-
areAllPermissionsGranted
-
isAnyPermissionGranted
-
isGrantAll
public boolean isGrantAll()Return whether this Permissions Object always grants every permission, because there are noPermissions installed and the default is to grant permission. If this method returnstrue, permission checking code improve efficiency by skipping the creation ofIntents.- Returns:
trueif any conceivable permission is always granted.
-