Package org.jboss.weld.util
Class Permissions
- java.lang.Object
-
- org.jboss.weld.util.Permissions
-
public class Permissions extends Object
Utility class for checkingPermission
- Author:
- Matus Abaffy
-
-
Field Summary
Fields Modifier and Type Field Description static Permission
MODIFY_THREAD_GROUP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasPermission(Permission permission)
Determines whether the specified permission is permitted.
-
-
-
Field Detail
-
MODIFY_THREAD_GROUP
public static final Permission MODIFY_THREAD_GROUP
-
-
Method Detail
-
hasPermission
public static boolean hasPermission(Permission permission)
Determines whether the specified permission is permitted.- Parameters:
permission
-- Returns:
- false if the specified permission is not permitted, based on the current security policy; true otherwise
-
-