public static boolean contains(PermissionChecker permissionChecker,
long entryId, String actionId) throws PortalException,
SystemException {
Entry entry = EntryLocalServiceUtil
.getEntry(entryId);
return permissionChecker
.hasPermission(entry.getGroupId(),
Entry.class.getName(), entry.getEntryId(),
actionId);
}