Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. package dtos;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class DocumentDTO implements Serializable {
  6.  
  7. private int id;
  8.  
  9. private String filepath;
  10.  
  11. private String fileName;
  12.  
  13. public DocumentDTO() {
  14. }
  15.  
  16. public DocumentDTO(int id, String filepath, String fileName) {
  17. this.id = id;
  18. this.filepath = filepath;
  19. this.fileName = fileName;
  20. }
  21.  
  22. public DocumentDTO(String filepath, String desiredName, String mimeType) {
  23. this(-1, filepath, desiredName);
  24. }
  25.  
  26. public int getId() {
  27. return id;
  28. }
  29.  
  30. public void setId(int id) {
  31. this.id = id;
  32. }
  33.  
  34. public String getFilepath() {
  35. return filepath;
  36. }
  37.  
  38. public void setFilepath(String filepath) {
  39. this.filepath = filepath;
  40. }
  41.  
  42. public String getFileName() {
  43. return fileName;
  44. }
  45.  
  46. public void setFileName(String fileName) {
  47. this.fileName = fileName;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement