PageRenderTime 5ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/mpv5/globals/Constants.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 139 lines | 67 code | 7 blank | 65 comment | 0 complexity | 949e66d750b9c38244018309a40646e3 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. *
  3. * * This file is part of YaBS.
  4. * *
  5. * * YaBS is free software: you can redistribute it and/or modify
  6. * * it under the terms of the GNU General Public License as published by
  7. * * the Free Software Foundation, either version 3 of the License, or
  8. * * (at your option) any later version.
  9. * *
  10. * * YaBS is distributed in the hope that it will be useful,
  11. * * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * * GNU General Public License for more details.
  14. * *
  15. * * You should have received a copy of the GNU General Public License
  16. * * along with YaBS. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. */
  19. package mpv5.globals;
  20. import java.math.BigDecimal;
  21. /**
  22. *
  23. *
  24. */
  25. public interface Constants {
  26. /**
  27. *
  28. * Full Version number
  29. */
  30. public static final String VERSION = "Yabs-1.18-rc1";
  31. /**
  32. * The original database version of this release
  33. */
  34. public static final Double DATABASE_ORIGINAL_VERSION = 1.0;
  35. /**
  36. * The minimal Database Version which is compatible with this release
  37. */
  38. public static final Double DATABASE_VERSION = 1.1973;
  39. /**
  40. * The max Database Version which is compatible with this release
  41. */
  42. public static final Double DATABASE_MAX_VERSION = 2.0;
  43. /**
  44. * Will be dynamically changed by SVN.
  45. */
  46. public static final String REVISION = "$Rev: $";
  47. /**
  48. *
  49. * The Release version
  50. */
  51. public static final String RELEASE_VERSION = "0";
  52. /**
  53. *
  54. * Alias
  55. */
  56. public static final String TITLE = "Yabs - Cookme";
  57. /**
  58. *
  59. * Name of the main JAR
  60. */
  61. public static final String JAR_NAME = "yabs.jar";
  62. /**
  63. *
  64. * Program name
  65. */
  66. public static final String PROG_NAME = "Yabs-" + Constants.VERSION + "";
  67. /**
  68. *
  69. * Running Java Version info
  70. */
  71. public static String JAVA_VERSION = "Java Version: " + System.getProperty("java.version");
  72. /**
  73. *
  74. * The class name to be loaded from plugins
  75. */
  76. public static String PLUGIN_LOAD_CLASS = "plugin.Main";
  77. /**
  78. * Name of databasedir
  79. */
  80. public static final String DATABASENAME = "yabs" + Constants.RELEASE_VERSION + "db";
  81. public static String ICON_NAME_LIN = "yabs.desktop";
  82. public static String ICON_NAME_WIN = "YaBS.url";
  83. public static String XML_ROOT = "mpv5";
  84. public static String XML_DOCTYPE_ID = "-//http://openyabs.org//DTD mpv5 V 1.0//EN";
  85. public static String XML_DOCTYPE_URL = "http://openyabs.org/files/yabs_import_1.0.dtd";
  86. public static String SPLASH_IMAGE = "/mpv5/resources/images/background_k.png";
  87. public static String ABOUT_IMAGE = "/mpv5/resources/images/about1.png";
  88. public static String ICON = "/mpv5/resources/images/icon.png";
  89. public static String WEBSITE = "http://openyabs.org";
  90. public static String CURRENT_VERSION_URL = "http://mp-rechnungs-und-kundenverwaltung.googlecode.com/files/" + VERSION + ".zip";
  91. public static final String[] CONTRIBUTORS = new String[]{
  92. "Andreas Weber",
  93. "Jan Hahnisch",
  94. "P.Eser",
  95. "Christian Gabel",
  96. "Daniel Lang",
  97. "Daniel Kulesz",
  98. "Denny Beyer",
  99. "Michael Stibane",
  100. "Sven Lindenhahn",
  101. "Uwe Schoeler",
  102. "Uwe Stark",
  103. "P.Heller",
  104. "Jean-Christoph von Oertzen"};
  105. public static String LANGUAGES_DIR = "languages";
  106. public static String PLUGINS_DIR = "plugins";
  107. public static String TEMPLATES_DIR = "templates";
  108. public static String BABELFISH_URL = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=";
  109. public static String FALLBACK_CACHE_DIR = "Cache";//Go for a relative path
  110. public static String LIBS_DIR = "lib";
  111. public static BigDecimal BD100 = new BigDecimal("100");
  112. public static final int TYPE_BILL = 0;
  113. public static final int TYPE_ORDER = 1;
  114. public static final int TYPE_OFFER = 2;
  115. public static final int TYPE_DELIVERY_NOTE = 3;
  116. public static final int TYPE_ORDER_CONFIRMATION = 4;
  117. public static final int TYPE_PRODUCT = 5;
  118. public static final int TYPE_SERVICE = 6;
  119. public static final int TYPE_REMINDER = 7;
  120. public static final int TYPE_CONTACT = 8;
  121. public static final int TYPE_JOURNAL = 9;
  122. public static final int TYPE_PRODUCT_ORDER = 10;
  123. public static final int TYPE_CONTRACT = 11;
  124. public static final int TYPE_CONVERSATION = 12;
  125. public static final int TYPE_MASSPRINT = 13;
  126. public static final int TYPE_ACTIVITY = 14;
  127. public static final int TYPE_CUSTOMER = 15;
  128. public static final int TYPE_MANUFACTURER = 16;
  129. public static final int TYPE_SUPPLIER = 17;
  130. public static final int TYPE_EXPENSE = 18;
  131. public static final int TYPE_REVENUE = 19;
  132. }