public static boolean contains(PermissionChecker permissionChecker,
long guestbookId, String actionId) throws PortalException,
SystemException {
Guestbook guestbook = GuestbookLocalServiceUtil
.getGuestbook(guestbookId);
return permissionChecker
.hasPermission(guestbook.getGroupId(),
Guestbook.class.getName(), guestbook.getGuestbookId(),
actionId);
}