PageRenderTime 41ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/src/mpv5/db/objects/WebShop.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 157 lines | 72 code | 24 blank | 61 comment | 0 complexity | 43af15530f4623fe41b94c39b4568199 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. /*
  2. * This file is part of YaBS.
  3. *
  4. * YaBS is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * YaBS is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with YaBS. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package mpv5.db.objects;
  18. import javax.swing.JComponent;
  19. import mpv5.db.common.Context;
  20. import mpv5.db.common.DatabaseObject;
  21. import mpv5.utils.images.MPIcon;
  22. import mpv5.utils.text.RandomText;
  23. /**
  24. * Represents a WebShop
  25. */
  26. public class WebShop extends DatabaseObject {
  27. private String description = "";
  28. private int interv;
  29. private String url = "";
  30. private boolean isrequestCompression;
  31. private boolean isauthenticated;
  32. private String username = "";
  33. private String passw = "";
  34. public WebShop() {
  35. setContext(Context.getWebShop());
  36. }
  37. @Override
  38. public JComponent getView() {
  39. return null;
  40. }
  41. @Override
  42. public MPIcon getIcon() {
  43. return null;
  44. }
  45. /**
  46. * @return the description
  47. */
  48. public String __getDescription() {
  49. return description;
  50. }
  51. /**
  52. * @param description the description to set
  53. */
  54. public void setDescription(String description) {
  55. this.description = description;
  56. }
  57. /**
  58. * @return the interval
  59. */
  60. public int __getInterv() {
  61. return interv;
  62. }
  63. /**
  64. * @param interval the interval to set
  65. */
  66. public void setInterv(int interval) {
  67. this.interv = interval;
  68. }
  69. /**
  70. * @return the url
  71. */
  72. public String __getUrl() {
  73. return url;
  74. }
  75. /**
  76. * @param url the url to set
  77. */
  78. public void setUrl(String url) {
  79. this.url = url;
  80. }
  81. @Override
  82. public void ensureUniqueness() {
  83. setCname("-" + RandomText.getNumberText() + "- (" + __getUrl() +")");
  84. }
  85. /**
  86. * @return the isrequestCompression
  87. */
  88. public boolean __getIsrequestCompression() {
  89. return isrequestCompression;
  90. }
  91. /**
  92. * @param isrequestCompression the isrequestCompression to set
  93. */
  94. public void setIsrequestCompression(boolean isrequestCompression) {
  95. this.isrequestCompression = isrequestCompression;
  96. }
  97. /**
  98. * @return the isauthenticated
  99. */
  100. public boolean __getIsauthenticated() {
  101. return isauthenticated;
  102. }
  103. /**
  104. * @param isauthenticated the isauthenticated to set
  105. */
  106. public void setIsauthenticated(boolean isauthenticated) {
  107. this.isauthenticated = isauthenticated;
  108. }
  109. /**
  110. * @return the username
  111. */
  112. public String __getUsername() {
  113. return username;
  114. }
  115. /**
  116. * @param username the username to set
  117. */
  118. public void setUsername(String username) {
  119. this.username = username;
  120. }
  121. /**
  122. * @return the password
  123. */
  124. public String __getPassw() {
  125. return passw;
  126. }
  127. /**
  128. * @param password the password to set
  129. */
  130. public void setPassw(String password) {
  131. this.passw = password;
  132. }
  133. }