Subversion Repositories XServices

Rev

Rev 33 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 39
Line 68... Line 68...
68
	SUBMITTER(
68
	SUBMITTER(
69
			SBMStaticFields.SUBMITTER.getValue(),
69
			SBMStaticFields.SUBMITTER.getValue(),
70
			"label_submitter",
70
			"label_submitter",
71
			SBMFieldTypes.USER,
71
			SBMFieldTypes.USER,
72
			TaskAttribute.USER_REPORTER, 
72
			TaskAttribute.USER_REPORTER, 
73
			TaskAttribute.TYPE_PERSON),	
73
			TaskAttribute.TYPE_PERSON,
-
 
74
			SBMTicketAttribute.HIDDEN), //hidden because has extra part	
74
	SUBMITDATE(
75
	SUBMITDATE(
75
			SBMStaticFields.SUBMITDATE.getValue(),
76
			SBMStaticFields.SUBMITDATE.getValue(),
76
			"label_submitdate",
77
			"label_submitdate",
77
			SBMFieldTypes.DATETIME,
78
			SBMFieldTypes.DATETIME,
78
			TaskAttribute.DATE_CREATION, 
79
			TaskAttribute.DATE_CREATION, 
Line 86... Line 87...
86
	LASTMODIFIEDDATE(
87
	LASTMODIFIEDDATE(
87
			SBMStaticFields.LASTMODIFIEDDATE.getValue(),
88
			SBMStaticFields.LASTMODIFIEDDATE.getValue(),
88
			"label_modifieddate",
89
			"label_modifieddate",
89
			SBMFieldTypes.DATETIME,
90
			SBMFieldTypes.DATETIME,
90
			TaskAttribute.DATE_MODIFICATION, 
91
			TaskAttribute.DATE_MODIFICATION, 
91
			TaskAttribute.TYPE_DATETIME),
92
			TaskAttribute.TYPE_DATETIME,
-
 
93
			SBMTicketAttribute.HIDDEN), //hidden because has extra part
92
	CLOSEDATE(
94
	CLOSEDATE(
93
			SBMStaticFields.CLOSEDATE.getValue(),
95
			SBMStaticFields.CLOSEDATE.getValue(),
94
			"label_closedate",
96
			"label_closedate",
95
			SBMFieldTypes.DATETIME,
97
			SBMFieldTypes.DATETIME,
96
			TaskAttribute.DATE_DUE, 
98
			TaskAttribute.DATE_DUE, 
Line 181... Line 183...
181
				return attribute;
183
				return attribute;
182
			}
184
			}
183
		}
185
		}
184
		return null;
186
		return null;
185
	}
187
	}
-
 
188
	
-
 
189
	public static boolean hasSBMField(String fieldname) {
-
 
190
		for (SBMTicketAttribute attribute : values()) {
-
 
191
			if (attribute.getSBMName().equals(fieldname)) {
-
 
192
				return true;
-
 
193
			}
-
 
194
		}
-
 
195
		return false;
-
 
196
	}
186
}
197
}