Package de.uplanet.lucy.server.security
Class IxAccessController
- java.lang.Object
-
- de.uplanet.lucy.server.security.IxAccessController
-
@Scriptable public final class IxAccessController extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkPermission(Permission p_permission)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.static boolean
hasPermission(Permission p_permission)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.
-
-
-
Method Detail
-
checkPermission
public static void checkPermission(Permission p_permission)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect. This method quietly returns if the access request is permitted, or throws a suitableAccessControlException
otherwise.- Parameters:
p_permission
- The requested permission.- Throws:
AccessControlException
- If the specified permission is not permitted, based on the current security policy.
-
hasPermission
public static boolean hasPermission(Permission p_permission)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.- Parameters:
p_permission
- The requested permission.- Returns:
true
if the permission is granted, orfalse
if the permission is denied.
-
-