Permissions¶
-
public class
Permissions
¶ This class defines the permissions for urls and will an object of this class will be used for every URL registration.
Fields¶
Methods¶
all¶
-
public static Permissions
all
(String... args)¶ Initialize a new permissions object with a condition ‘all’.
Parameters: - args – List of permissions in the format “permission-group-name/permission-name”
any¶
-
public static Permissions
any
(String... args)¶ Initialize a new permissions object with a condition ‘all’.
Parameters: - args – List of permissions in the format “permission-group-name/permission-name”
breakPermission¶
check¶
-
public boolean
check
(HttpRequest request)¶ This method is used internall in the framework and the application has no use for this method.
deny_anon¶
-
public Permissions
deny_anon
()¶ Deny anonymous requests on a URL
Returns: Returns ‘this’ object so that you can chain like Permissions.any(“pg1/p1”, “pg2/p2”).deny_anon()
deny_exc¶
-
public Permissions
deny_exc
(String... args)¶ Deny request from any source except the apps mentioned in the args
Parameters: - args – List of apps in the format ‘provider-code/app-code’
Returns: Returns ‘this’ object so that you can chain like Permissions.any(“pg1/p1”, “pg2/p2”).deny_anon().deny_exc(‘aalam/base’)