public String[] getTempFileEntryNames(long groupId, long folderId, String tempFolderName)
      throws PortalException, SystemException {

    DLFolderPermission.check(getPermissionChecker(), groupId, folderId, ActionKeys.ADD_DOCUMENT);

    return TempFileUtil.getTempFileEntryNames(getUserId(), tempFolderName);
  }
  public void deleteTempFileEntry(
      long groupId, long folderId, String fileName, String tempFolderName)
      throws PortalException, SystemException {

    DLFolderPermission.check(getPermissionChecker(), groupId, folderId, ActionKeys.ADD_DOCUMENT);

    TempFileUtil.deleteTempFile(getUserId(), fileName, tempFolderName);
  }
  public String addTempFileEntry(
      long groupId, long folderId, String fileName, String tempFolderName, File file)
      throws IOException, PortalException, SystemException {

    DLFolderPermission.check(getPermissionChecker(), groupId, folderId, ActionKeys.ADD_DOCUMENT);

    return TempFileUtil.addTempFile(getUserId(), fileName, tempFolderName, file);
  }