FileAttribute.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package cn.keking.model;
  2. import cn.keking.config.ConfigConstants;
  3. /**
  4. * Created by kl on 2018/1/17.
  5. * Content :
  6. */
  7. public class FileAttribute {
  8. private FileType type;
  9. private String suffix;
  10. private String name;
  11. private String url;
  12. private String fileKey;
  13. private String officePreviewType = ConfigConstants.getOfficePreviewType();
  14. private String tifPreviewType;
  15. private Boolean skipDownLoad = false;
  16. public FileAttribute() {
  17. }
  18. public FileAttribute(FileType type, String suffix, String name, String url) {
  19. this.type = type;
  20. this.suffix = suffix;
  21. this.name = name;
  22. this.url = url;
  23. }
  24. public FileAttribute(FileType type, String suffix, String name, String url, String officePreviewType) {
  25. this.type = type;
  26. this.suffix = suffix;
  27. this.name = name;
  28. this.url = url;
  29. this.officePreviewType = officePreviewType;
  30. }
  31. public String getFileKey() {
  32. return fileKey;
  33. }
  34. public void setFileKey(String fileKey) {
  35. this.fileKey = fileKey;
  36. }
  37. public String getOfficePreviewType() {
  38. return officePreviewType;
  39. }
  40. public void setOfficePreviewType(String officePreviewType) {
  41. this.officePreviewType = officePreviewType;
  42. }
  43. public FileType getType() {
  44. return type;
  45. }
  46. public void setType(FileType type) {
  47. this.type = type;
  48. }
  49. public String getSuffix() {
  50. return suffix;
  51. }
  52. public void setSuffix(String suffix) {
  53. this.suffix = suffix;
  54. }
  55. public String getName() {
  56. return name;
  57. }
  58. public void setName(String name) {
  59. this.name = name;
  60. }
  61. public String getUrl() {
  62. return url;
  63. }
  64. public void setUrl(String url) {
  65. this.url = url;
  66. }
  67. public Boolean getSkipDownLoad() {
  68. return skipDownLoad;
  69. }
  70. public void setSkipDownLoad(Boolean skipDownLoad) {
  71. this.skipDownLoad = skipDownLoad;
  72. }
  73. public String getTifPreviewType() {
  74. return tifPreviewType;
  75. }
  76. public void setTifPreviewType(String previewType) {
  77. this.tifPreviewType = previewType;
  78. }
  79. }