View Javadoc
1   /*
2    * This software was designed and created by Jason Carroll.
3    * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4    * The author can be reached at jcarroll@cowsultants.com
5    * ITracker website: http://www.cowsultants.com
6    * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7    *
8    * This program is free software; you can redistribute it and/or modify
9    * it only under the terms of the GNU General Public License as published by
10   * the Free Software Foundation; either version 2 of the License, or
11   * (at your option) any later version.
12   *
13   * This program is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   * GNU General Public License for more details.
17   */
18  
19  package org.itracker.web.util;
20  
21  import org.itracker.core.resources.ITrackerResources;
22  
23  import java.text.SimpleDateFormat;
24  import java.util.Locale;
25  
26  
27  /**
28   * This interface defines the tags used in the export XML.
29   */
30  public interface ImportExportTags {
31      SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
32      String EXPORT_LOCALE_STRING = ITrackerResources.BASE_LOCALE;
33      Locale EXPORT_LOCALE = ITrackerResources.getLocale(EXPORT_LOCALE_STRING);
34  
35      String ATTR_CREATOR_ID = "creator-id";
36      String ATTR_BIT = "bit";
37      String ATTR_DATE = "date";
38      String ATTR_ID = "id";
39      String ATTR_NAME = "name";
40      String ATTR_ORDER = "order";
41      String ATTR_STATUS = "status";
42      /**
43       * TODO
44       *
45       * @deprecated must use speaking ids, systemid will be generated instead
46       */
47      String ATTR_SYSTEMID = "systemid";
48      String ATTR_VALUE = "value";
49  
50      String TAG_COMPONENT = "component";
51      String TAG_COMPONENTS = "components";
52      String TAG_COMPONENT_ID = "component-id";
53      String TAG_COMPONENT_DESCRIPTION = "component-description";
54      String TAG_COMPONENT_NAME = "component-name";
55      String TAG_CONFIGURATION = "configuration";
56      String TAG_CONFIGURATION_VERSION = "configuration-version";
57      String TAG_CUSTOM_FIELD = "custom-field";
58      String TAG_CUSTOM_FIELDS = "custom-fields";
59      String TAG_CUSTOM_FIELD_DATEFORMAT = "custom-field-dateformat";
60      String TAG_CUSTOM_FIELD_LABEL = "custom-field-label";
61      String TAG_CUSTOM_FIELD_OPTION = "custom-field-option";
62      String TAG_CUSTOM_FIELD_REQUIRED = "custom-field-required";
63      String TAG_CUSTOM_FIELD_SORTOPTIONS = "custom-field-sortoptions";
64      String TAG_CUSTOM_FIELD_TYPE = "custom-field-type";
65      String TAG_CREATE_DATE = "create-date";
66      String TAG_CREATOR = "creator";
67      String TAG_EMAIL = "email";
68      String TAG_FIRST_NAME = "first-name";
69      String TAG_HISTORY_ENTRY = "history-entry";
70      String TAG_ISSUE = "issue";
71      String TAG_ISSUES = "issues";
72      String TAG_ISSUE_ATTACHMENT = "issue-attachment";
73      String TAG_ISSUE_ATTACHMENTS = "issue-attachments";
74      String TAG_ISSUE_ATTACHMENT_CREATOR = "issue-attachment-creator";
75      String TAG_ISSUE_ATTACHMENT_DESCRIPTION = "issue-attachment-description";
76      String TAG_ISSUE_ATTACHMENT_FILENAME = "issue-attachment-filename";
77      String TAG_ISSUE_ATTACHMENT_ORIGFILE = "issue-attachment-origfile";
78      String TAG_ISSUE_ATTACHMENT_SIZE = "issue-attachment-size";
79      String TAG_ISSUE_ATTACHMENT_TYPE = "issue-attachment-type";
80      String TAG_ISSUE_COMPONENTS = "issue-components";
81      String TAG_ISSUE_DESCRIPTION = "issue-description";
82      String TAG_ISSUE_FIELD = "issue-field";
83      String TAG_ISSUE_FIELDS = "issue-fields";
84      String TAG_ISSUE_HISTORY = "issue-history";
85      String TAG_ISSUE_PROJECT = "issue-project";
86      String TAG_ISSUE_RESOLUTION = "issue-resolution";
87      String TAG_ISSUE_SEVERITY = "issue-severity";
88      String TAG_ISSUE_STATUS = "issue-status";
89      String TAG_ISSUE_VERSIONS = "issue-versions";
90      String TAG_LAST_MODIFIED = "last-modified";
91      String TAG_LAST_NAME = "last-name";
92      String TAG_LOGIN = "login";
93      String TAG_OWNER = "owner";
94      String TAG_PROJECT = "project";
95      String TAG_PROJECTS = "projects";
96      String TAG_PROJECT_DESCRIPTION = "project-description";
97      String TAG_PROJECT_FIELDS = "project-custom-fields";
98      String TAG_PROJECT_FIELD_ID = "project-custom-field";
99      String TAG_PROJECT_NAME = "project-name";
100     String TAG_PROJECT_OPTIONS = "project-options";
101     String TAG_PROJECT_OWNERS = "project-owners";
102     String TAG_PROJECT_OWNER_ID = "project-owner";
103     String TAG_PROJECT_STATUS = "project-status";
104     String TAG_RESOLUTION = "resolution";
105     String TAG_RESOLUTIONS = "resolutions";
106     String TAG_ROOT = "itracker";
107     String TAG_SEVERITIES = "severities";
108     String TAG_SEVERITY = "severity";
109     String TAG_STATUS = "status";
110     String TAG_STATUSES = "statuses";
111     String TAG_SUPER_USER = "super-user";
112     String TAG_TARGET_VERSION_ID = "target-version-id";
113     String TAG_USER = "user";
114     String TAG_USERS = "users";
115     String TAG_USER_STATUS = "user-status";
116     String TAG_VERSION = "version";
117     String TAG_VERSIONS = "versions";
118     String TAG_VERSION_DESCRIPTION = "version-description";
119     String TAG_VERSION_ID = "version-id";
120     String TAG_VERSION_NUMBER = "version-number";
121 }