com.liferay.portal.security.permission
Class AlwaysDenyingPermissionChecker
java.lang.Object
com.liferay.portal.security.permission.BasePermissionChecker
com.liferay.portal.security.permission.SimplePermissionChecker
com.liferay.portal.security.permission.AlwaysDenyingPermissionChecker
- All Implemented Interfaces:
- PermissionChecker, Cloneable
public class AlwaysDenyingPermissionChecker
- extends SimplePermissionChecker
|
Method Summary |
boolean |
hasOwnerPermission(long companyId,
String name,
String primKey,
long ownerId,
String actionId)
Returns true if the user is the owner of the resource and
has permission to perform the action. |
boolean |
hasPermission(long groupId,
String name,
String primKey,
String actionId)
Returns true if the user has permission to perform the
action on the resource. |
boolean |
hasUserPermission(long groupId,
String name,
String primKey,
String actionId,
boolean checkAdmin)
Returns true if the user has permission to perform the
action on the resource without using guest permissions. |
| Methods inherited from class com.liferay.portal.security.permission.BasePermissionChecker |
getCompanyId, getGuestResourceBlockIds, getOwnerResourceBlockIds, getOwnerRoleId, getResourceBlockIds, getRoleIds, getUser, getUserId, hasOwnerPermission, hasPermission, init, isCheckGuest, isCommunityAdmin, isCommunityOwner, isOmniadmin, isSignedIn, resetValues, setValues |
AlwaysDenyingPermissionChecker
public AlwaysDenyingPermissionChecker()
hasOwnerPermission
public boolean hasOwnerPermission(long companyId,
String name,
String primKey,
long ownerId,
String actionId)
- Description copied from interface:
PermissionChecker
- Returns
true if the user is the owner of the resource and
has permission to perform the action.
- Specified by:
hasOwnerPermission in interface PermissionChecker- Overrides:
hasOwnerPermission in class SimplePermissionChecker
- Parameters:
companyId - the primary key of the user's companyname - the resource's name, which can be either a class name or a
portlet IDprimKey - the primary key of the resourceownerId - the primary key of the resource's owneractionId - the action ID
- Returns:
true if the user is the owner of the resource and
has permission to perform the action; false
otherwise
hasPermission
public boolean hasPermission(long groupId,
String name,
String primKey,
String actionId)
- Description copied from interface:
PermissionChecker
- Returns
true if the user has permission to perform the
action on the resource.
- Specified by:
hasPermission in interface PermissionChecker- Overrides:
hasPermission in class SimplePermissionChecker
- Parameters:
groupId - the primary key of the group containing the resourcename - the resource's name, which can be either a class name or a
portlet IDprimKey - the primary key of the resourceactionId - the action ID
- Returns:
true if the user has permission to perform the
action on the resource; false otherwise
hasUserPermission
public boolean hasUserPermission(long groupId,
String name,
String primKey,
String actionId,
boolean checkAdmin)
- Description copied from interface:
PermissionChecker
- Returns
true if the user has permission to perform the
action on the resource without using guest permissions.
- Specified by:
hasUserPermission in interface PermissionChecker- Overrides:
hasUserPermission in class SimplePermissionChecker
- Parameters:
groupId - the primary key of the group containing the resourcename - the resource's name, which can be either a class name or a
portlet IDprimKey - the primary key of the resourceactionId - the action IDcheckAdmin - whether to use permissions gained from administrator
roles
- Returns:
true if the user has permission to perform the
action on the resource without using guest permissions;
false otherwise