Liferay 7.0-ce-m3

com.liferay.portal.security.permission
Class AlwaysAllowingPermissionChecker

java.lang.Object
  extended by com.liferay.portal.security.permission.BasePermissionChecker
      extended by com.liferay.portal.security.permission.SimplePermissionChecker
          extended by com.liferay.portal.security.permission.AlwaysAllowingPermissionChecker
All Implemented Interfaces:
PermissionChecker, Cloneable

public class AlwaysAllowingPermissionChecker
extends com.liferay.portal.security.permission.SimplePermissionChecker


Field Summary
 
Fields inherited from class com.liferay.portal.security.permission.BasePermissionChecker
checkGuest, defaultUserId, omniadmin, ownerRole, signedIn, user
 
Fields inherited from interface com.liferay.portal.security.permission.PermissionChecker
DEFAULT_ROLE_IDS
 
Constructor Summary
AlwaysAllowingPermissionChecker()
           
 
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.SimplePermissionChecker
clone, hasPermission, isCompanyAdmin, isCompanyAdmin, isContentReviewer, isGroupAdmin, isGroupMember, isGroupOwner, isOrganizationAdmin, isOrganizationOwner
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysAllowingPermissionChecker

public AlwaysAllowingPermissionChecker()
Method Detail

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 com.liferay.portal.security.permission.SimplePermissionChecker
Parameters:
companyId - the primary key of the user's company
name - the resource's name, which can be either a class name or a portlet ID
primKey - the primary key of the resource
ownerId - the primary key of the resource's owner
actionId - 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 com.liferay.portal.security.permission.SimplePermissionChecker
Parameters:
groupId - the primary key of the group containing the resource
name - the resource's name, which can be either a class name or a portlet ID
primKey - the primary key of the resource
actionId - 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 com.liferay.portal.security.permission.SimplePermissionChecker
Parameters:
groupId - the primary key of the group containing the resource
name - the resource's name, which can be either a class name or a portlet ID
primKey - the primary key of the resource
actionId - the action ID
checkAdmin - 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

Liferay 7.0-ce-m3