public static void check(PermissionChecker permissionChecker, Folder folder, String actionId) throws PortalException, SystemException { if (!folder.containsPermission(permissionChecker, actionId)) { throw new PrincipalException(); } }
public static boolean contains( PermissionChecker permissionChecker, long groupId, long folderId, String actionId) throws PortalException, SystemException { if (folderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { return DLPermission.contains(permissionChecker, groupId, actionId); } else { Folder folder = DLAppLocalServiceUtil.getFolder(folderId); return folder.containsPermission(permissionChecker, actionId); } }
public static boolean contains( PermissionChecker permissionChecker, Folder folder, String actionId) throws PortalException, SystemException { return folder.containsPermission(permissionChecker, actionId); }