예제 #1
0
 public Collection<CloudVO> searchFile(int memberId, String fileName) {
   Collection<CloudVO> result = null;
   if (fileName != null && fileName.trim().length() != 0) {
     result = dao.selectByFileName(memberId, fileName);
   }
   return result;
 }
예제 #2
0
 public Collection<CloudVO> searchFile(String fileType, int memberId) {
   Collection<CloudVO> result = null;
   if (fileType != null && fileType != null) {
     result = dao.selectByFileType(memberId, fileType);
   }
   return result;
 }
예제 #3
0
 public Collection<CloudVO> searchFile(
     int memberId, java.util.Date fromTime, java.util.Date toTime) {
   Collection<CloudVO> result = null;
   if (fromTime != null && toTime != null) {
     result = dao.selectByTime(memberId, fromTime, toTime);
   }
   return result;
 }
예제 #4
0
 public boolean deleteFile(int fileId) {
   int temp = dao.delete(fileId);
   if (temp == 1) {
     return true;
   } else {
     return false;
   }
 }
예제 #5
0
 public boolean modifyFileName(int fileId, String fileName, String filePath) {
   boolean result = false;
   int i = dao.updateFileName(fileId, fileName, filePath);
   if (i == 1) {
     return true;
   }
   return result;
 }
예제 #6
0
  public boolean modifyFile(int fileId, String filePath, long fileSize) {
    boolean result = false;
    int i = dao.updateFile(filePath, fileSize, fileId);
    if (i == 1) {
      return true;
    }

    return result;
  }
예제 #7
0
 public Collection<CloudVO> searchFile(
     int memberId, java.util.Date fromTime, java.util.Date toTime, String fileType) {
   Collection<CloudVO> result = null;
   if (fileType != null && fileType.trim().length() != 0) {
     if (fromTime != null && toTime != null) {
       result = dao.selectByFileTypeAndTime(memberId, fromTime, toTime, fileType);
     }
   }
   return result;
 }
예제 #8
0
 // ***********
 public boolean addFile(
     int memberId, String fileName, String fileType, String filePath, long fileSize) {
   boolean result = false;
   CloudVO bean = new CloudVO();
   bean.setMemberId(memberId);
   bean.setFileName(fileName);
   bean.setFileType(fileType);
   bean.setFilePath(filePath);
   bean.setFileSize(fileSize);
   int i = dao.insert(bean);
   if (i == 1) {
     return true;
   }
   return result;
 }
예제 #9
0
 public Collection<CloudVO> allFile(int memberId) {
   return dao.selectByMemberId(memberId);
 }