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 TypeMethodDescriptionboolean
areAllPermissionsGranted
(D domain, Intent... intents) ArrayList
<Permission<? super D>> boolean
isAnyPermissionGranted
(D domain, Intent... intents) boolean
Return whether this Permissions Object always grants every permission, because there are noPermission
s installed and the default is to grant permission.boolean
isPermissionGranted
(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 noPermission
s installed and the default is to grant permission. If this method returnstrue
, permission checking code improve efficiency by skipping the creation ofIntent
s.- Returns:
true
if any conceivable permission is always granted.
-