Package nl.oneday.data.domain.uploads

Examples of nl.oneday.data.domain.uploads.File


  @ResponseBody
  public String setProfileImage(@PathVariable(value = "imageId") Long imageId) {
    UserDetails userDetails = getCurrentUserDetails();
    User user = userService.getUserByUserName(userDetails.getUsername());
    JSONObject results = new JSONObject();
    File file = fileService.find(imageId);

      ProfileImage profileImage = new ProfileImage();
      profileImage.setFile(file);
      results.put("success", profileImageService.saveProfileImage(profileImage));
View Full Code Here


   * find
   */
  public File find(Long id) {

    try {
      File file = fileRepository.findById(id);

      return file;
    }
    catch (Exception ex) {
      ex.printStackTrace();
View Full Code Here

  /**
   * save
   */
  public boolean save(final File file) {
    try {
      File savedFile = fileRepository.save(file);
      if (savedFile != null) {
        return true;
      }
    }
    catch (Exception ex) {
View Full Code Here

TOP

Related Classes of nl.oneday.data.domain.uploads.File

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.