com.epicentric.permission
Class PermissionUtils
java.lang.Object
|
+--com.epicentric.permission.PermissionUtils
Deprecated. As of version 4.0, to be removed in 8.0 or later; replaced by
a new permissioning system, described in the section on permissions
checking in Vignette Portal Developer's Guide.
- public class PermissionUtils
- extends Object
Static utility methods to determine whether a particular user has a
particular permission on a particular object. The object must
implement PermissionContextOwner.
- See Also:
PermissionContextOwner
|
Method Summary |
static com.sun.java.util.collections.Set |
getGroupsForUser(User user,
UserGroupManager user_group_manager)
Deprecated. Returns all the groups that the user is a member of, is an admin for, and all of those groups' descendants |
static Enumeration |
getPermittedItems(User user,
String permissionID,
Enumeration all_items)
Deprecated. Given an Enumeration of objects that implement the PermissionContextOwner interface,
this method returns an Enumeration of the objects that the user has permissions over
(using the permission passed in the "permissionID" string). |
static boolean |
isAdminPermission(String perm)
Deprecated. Checks to see if given permission is an Administrative
permission |
static boolean |
isPermitted(User user,
String permissionID,
PermissionContextOwner item)
Deprecated. Checks a PermissionContextOwner object to see if this user has a specified permission
over that object - the owner of an object implicitly has all permissions over it
whether they have been explicitly set or not. |
static boolean |
isPermittedIgnoreOwner(User user,
String permissionID,
PermissionContextOwner item)
Deprecated. Checks a PermissionContextOwner object to see if this user has a specified permission
over that object - this method ignores item ownership. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVERYONE_GROUP
public static final String EVERYONE_GROUP
- Deprecated.
- String identifier for Everyone Group.
PermissionUtils
public PermissionUtils()
- Deprecated.
getPermittedItems
public static Enumeration getPermittedItems(User user,
String permissionID,
Enumeration all_items)
- Deprecated.
- Given an Enumeration of objects that implement the PermissionContextOwner interface,
this method returns an Enumeration of the objects that the user has permissions over
(using the permission passed in the "permissionID" string).
isPermitted
public static boolean isPermitted(User user,
String permissionID,
PermissionContextOwner item)
- Deprecated.
- Checks a PermissionContextOwner object to see if this user has a specified permission
over that object - the owner of an object implicitly has all permissions over it
whether they have been explicitly set or not.
isPermittedIgnoreOwner
public static boolean isPermittedIgnoreOwner(User user,
String permissionID,
PermissionContextOwner item)
- Deprecated.
- Checks a PermissionContextOwner object to see if this user has a specified permission
over that object - this method ignores item ownership.
getGroupsForUser
public static com.sun.java.util.collections.Set getGroupsForUser(User user,
UserGroupManager user_group_manager)
- Deprecated.
- Returns all the groups that the user is a member of, is an admin for, and all of those groups' descendants
isAdminPermission
public static boolean isAdminPermission(String perm)
- Deprecated.
- Checks to see if given permission is an Administrative
permission
- Parameters:
perm - the permission string to check- Returns:
true if perm is an
admin permission, false if it is not
Copyright and Trademark Notices