public interface SharingPermissionChecker
SharingEntryActions.
Implementations of this interface typically map the sharing entry actions
with the resource actions, and delegate the permission check to the
corresponding com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission.
Implementations of this interface must be registered as OSGi components using
the service SharingPermissionChecker. The model.class.name
property defines the class name that the permission checker can handle.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long classPK,
long groupId,
java.util.Collection<SharingEntryAction> sharingEntryActions)
Returns
true if the user has permission to share the resource
with another user via sharing entry actions. |
boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long classPK,
long groupId,
java.util.Collection<SharingEntryAction> sharingEntryActions)
throws com.liferay.portal.kernel.exception.PortalException
true if the user has permission to share the resource
with another user via sharing entry actions.permissionChecker - the permission checker of the user sharing the
resourceclassPK - the class primary key of the shared resourcegroupId - the primary key of the shared resource's groupsharingEntryActions - the collection of sharing entry actions to
check for permissiontrue if the user has permission to share the resource via
sharing entry actions; false otherwisecom.liferay.portal.kernel.exception.PortalException