コード例 #1
0
  public static void check(PermissionChecker permissionChecker, Folder folder, String actionId)
      throws PortalException, SystemException {

    if (!folder.containsPermission(permissionChecker, actionId)) {
      throw new PrincipalException();
    }
  }
コード例 #2
0
  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);
    }
  }
コード例 #3
0
  public static boolean contains(
      PermissionChecker permissionChecker, Folder folder, String actionId)
      throws PortalException, SystemException {

    return folder.containsPermission(permissionChecker, actionId);
  }