/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMSystemFields.java |
---|
0,0 → 1,120 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
/** |
* System DBFieldnames for SBM/ TeamTrack. |
* |
* @author Brian Rosenberger |
*/ |
public enum SBMSystemFields { |
/** The internal item id in [tableid:recordid] format. */ |
ID("ID", true), |
/** The internal uuid. */ |
UUID("UUID", false), |
/** Whether the item is active or inactive in its current state */ |
ACTIVEINACTIVE("ACTIVEINACTIVE", false), |
/** The date that the item was closed */ |
CLOSEDATE("CLOSEDATE", true), |
/** Used for Partner Access to CRs They Submit */ |
COMPANY("COMPANY", false), |
/** Used for Partner Access to CRs They Submit */ |
CONTACT("CONTACT", false), |
/** Detailed information about the item */ |
DESCRIPTION("DESCRIPTION", true), |
/** The displayed identifier of the item */ |
ISSUEID("ISSUEID", true), |
/** The type of the item */ |
ISSUETYPE("ISSUETYPE", true), |
/** The last time the item's data was changed */ |
LASTMODIFIEDDATE("LASTMODIFIEDDATE", true), |
/** The last person to change the data in this item */ |
LASTMODIFIER("LASTMODIFIER", true), |
/** The last time the state of this item was changed */ |
LASTSTATECHANGEDATE("LASTSTATECHANGEDATE", false), |
/** The last person to change the state of this item */ |
LASTSTATECHANGER("LASTSTATECHANGER", false), |
/** The primary person who currently owns the item */ |
OWNER("OWNER", false), |
/** The project in which this item resides */ |
PROJECTID("PROJECTID", false), |
/** Detailed information about the resolution */ |
RESOLUTIONDESC("RESOLUTIONDESC", false), |
/** Summary description of the resolution */ |
RESOLUTIONSUMMARY("RESOLUTIONSUMMARY", false), |
/** The secondary people who currently own the item */ |
SECONDARYOWNER("SECONDARYOWNER", false), |
/** The current state of the item */ |
STATE("STATE", true), |
/** The date that the item was created/submitted */ |
SUBMITDATE("SUBMITDATE", true), |
/** The person who created/submitted the item */ |
SUBMITTER("SUBMITTER", true), |
/** Summary description of the item */ |
TITLE("TITLE", true); |
private final String value; |
private final boolean hasTaskAttribute; |
SBMSystemFields(String v, boolean hasTaskAttribute) { |
value = v; |
this.hasTaskAttribute = hasTaskAttribute; |
} |
public String getValue() { |
return value; |
} |
public boolean hasTaskAttribute() { |
return this.hasTaskAttribute; |
} |
public static SBMSystemFields fromValue(String v) { |
for (SBMSystemFields c: SBMSystemFields.values()) { |
if (c.value.equals(v)) { |
return c; |
} |
} |
throw new IllegalArgumentException(v); |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMFieldValue.java |
---|
0,0 → 1,24 |
package net.brutex.mylyn.sbmconnector.core.model; |
import org.eclipse.core.runtime.Assert; |
public class SBMFieldValue { |
private String internalValue; |
private String value; |
public SBMFieldValue(String internalValue, String value) { |
Assert.isNotNull(internalValue); |
Assert.isNotNull(value); |
this.internalValue = internalValue; |
this.value = value; |
} |
public String getInternalValue() { |
return internalValue; |
} |
public String getValue() { |
return value; |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMField.java |
---|
0,0 → 1,139 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
// TODO: Auto-generated Javadoc |
/** |
* The Class SBMField. |
* @author Brian Rosenberger, bru@brutex.de |
*/ |
public class SBMField { |
/** The type. */ |
private SBMFieldTypes type; |
/** The value. */ |
private String value; |
/** The internal value. */ |
private Object internalValue; |
/** The parent table. */ |
private String parentTable; |
/** The label. */ |
private String label; |
/** The name. */ |
private String name; |
/** |
* Instantiates a new SBM field. |
* |
* @param type the type |
* @param parentTable the parent table |
* @param label the label |
* @param name the name |
*/ |
public SBMField(SBMFieldTypes type, String parentTable, String label, |
String name) { |
super(); |
this.type = type; |
this.parentTable = parentTable; |
this.label = label; |
this.name = name; |
} |
/** |
* Gets the value. |
* |
* @return the value |
*/ |
public String getValue() { |
return value; |
} |
/** |
* Sets the value. |
* |
* @param value the new value |
*/ |
public void setValue(String value) { |
this.value = value; |
} |
/** |
* Gets the internal value. |
* |
* @return the internal value |
*/ |
public Object getInternalValue() { |
return internalValue; |
} |
/** |
* Sets the internal value. |
* |
* @param internalValue the new internal value |
*/ |
public void setInternalValue(Object internalValue) { |
this.internalValue = internalValue; |
} |
/** |
* Gets the type. |
* |
* @return the type |
*/ |
public SBMFieldTypes getType() { |
return type; |
} |
/** |
* Gets the parent table. |
* |
* @return the parent table |
*/ |
public String getParentTable() { |
return parentTable; |
} |
/** |
* Gets the label. |
* |
* @return the label |
*/ |
public String getLabel() { |
return label; |
} |
/** |
* Gets the name. |
* |
* @return the name |
*/ |
public String getName() { |
return name; |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMFieldTypes.java |
---|
0,0 → 1,63 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
public enum SBMFieldTypes { |
UNKNOWN("UNKNOWN"), |
NUMERIC("FLDTYPE-NUMERIC"), |
TEXT("FLDTYPE-TEXT"), |
DATETIME("FLDTYPE-DATETIME"), |
SELECTION("FLDTYPE-SELECTION"), |
BINARY("FLDTYPE-BINARY"), |
STATE("FLDTYPE-STATE"), |
USER("FLDTYPE-USER"), |
PROJECT("FLDTYPE-PROJECT"), |
SUMMATION("FLDTYPE-SUMMATION"), |
MULTIPLE_SELECTION("FLDTYPE-MULTIPLE-SELECTION"), |
CONTACT("FLDTYPE-CONTACT"), |
INCIDENT("FLDTYPE-INCIDENT"), |
FOLDER("FLDTYPE-FOLDER"), |
RELATIONAL("FLDTYPE-RELATIONAL"), |
SUBRELATIONAL("FLDTYPE-SUBRELATIONAL"), |
SYSTEM("FLDTYPE-SYSTEM"), |
MULTIPLE_RELATIONAL("FLDTYPE-MULTIPLE-RELATIONAL"), |
MULTIPLE_GROUP("FLDTYPE-MULTIPLE-GROUP"), |
MULTIPLE_USERGROUP("FLDTYPE-MULTIPLE-USERGROUP"); |
private final String value; |
SBMFieldTypes(String v) { |
value = v; |
} |
public String getValue() { |
return value; |
} |
public static SBMFieldTypes fromValue(String v) { |
for (SBMFieldTypes c: SBMFieldTypes.values()) { |
if (c.value.equals(v)) { |
return c; |
} |
} |
throw new IllegalArgumentException(v); |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMStaticFields.java |
---|
0,0 → 1,101 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
/** |
* Static DBFieldnames for SBM/ TeamTrack system fields |
* which are not intended to be changed by a user directly |
* (auto-resolved by the system). |
* |
* @author Brian Rosenberger |
*/ |
public enum SBMStaticFields { |
/** The internal item id in [tableid:recordid] format. */ |
ID("ID"), |
/** The internal uuid. */ |
UUID("UUID"), |
/** The Constant ISSUEID. */ |
ISSUEID("ISSUEID"), |
/** The project name (integer in DB, but name here). |
* because this is driven by the sbm web service */ |
PROJECTID("PROJECTID"), |
/** The project uuid (not found in primary table). */ |
PROJECTUUID("PROJECTUUID"), |
/** The submitter (id reference, but user login name here). */ |
SUBMITTER("SUBMITTER"), |
/** The submit date/time. */ |
SUBMITDATE("SUBMITDATE"), |
/** The LASTMODIFIEDDATE date/time. */ |
LASTMODIFIEDDATE("LASTMODIFIEDDATE"), |
/** The LASTMODIFIER. */ |
LASTMODIFIER("LASTMODIFIER"), |
/** The ACTIVEINACTIVE flag.*/ |
ACTIVEINACTIVE("ACTIVEINACTIVE"), |
/** The Constant STATE. */ |
STATE("STATE"), |
/** The ITEMURL (not present in DB) */ |
ITEMURL("ITEMURL"), |
/** The owner of an item (id reference, but name here). */ |
OWNER("OWNER"), |
/** The LASTSTATECHANGEDATE. */ |
LASTSTATECHANGEDATE("LASTSTATECHANGEDATE"), |
/** The LASTSTATECHANGER (id reference, but name here). */ |
LASTSTATECHANGER("LASTSTATECHANGER"), |
/** The SECONDARYOWNER (id reference, but name here). */ |
SECONDARYOWNER("SECONDARYOWNER"), |
/** The CLOSEDATE. */ |
CLOSEDATE("CLOSEDATE"); |
private final String value; |
SBMStaticFields(String v) { |
value = v; |
} |
public String getValue() { |
return value; |
} |
public static SBMStaticFields fromValue(String v) { |
for (SBMStaticFields c: SBMStaticFields.values()) { |
if (c.value.equals(v)) { |
return c; |
} |
} |
throw new IllegalArgumentException(v); |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMNote.java |
---|
0,0 → 1,69 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
import java.util.Date; |
public class SBMNote { |
private String author; |
private String text; |
private Date creation; |
private String id; |
public SBMNote(String author, String text, Date creation, String id) { |
this.author = author; |
this.text = text; |
this.creation = creation; |
this.id = id; |
} |
public String getAuthor() { |
return author; |
} |
public void setAuthor(String author) { |
this.author = author; |
} |
public String getText() { |
return text; |
} |
public void setText(String text) { |
this.text = text; |
} |
public Date getCreation() { |
return creation; |
} |
public void setCreation(Date creation) { |
this.creation = creation; |
} |
public String getId() { |
return id; |
} |
public void setId(String id) { |
this.id = id; |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/SBMFieldAttributes.java |
---|
0,0 → 1,46 |
/* |
* Mylyn Connector for Serena Business Mashups |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
* |
* Serena, TeamTrack and Serena Business Mashup are |
* registered trademarks of SERENA Software Inc. |
*/ |
package net.brutex.mylyn.sbmconnector.core.model; |
public enum SBMFieldAttributes { |
READ_ONLY("read-only"), |
REQUIRED("required"), |
HIDDEN("hidden"); |
private final String value; |
SBMFieldAttributes(String v) { |
value = v; |
} |
public String getValue() { |
return value; |
} |
public static SBMFieldAttributes fromValue(String v) { |
for (SBMFieldAttributes c: SBMFieldAttributes.values()) { |
if (c.value.equals(v)) { |
return c; |
} |
} |
throw new IllegalArgumentException(v); |
} |
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/sbm4mylyn/branches/V2009R2-maintenance/src/net/brutex/mylyn/sbmconnector/core/model/package.html |
---|
0,0 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
<html> |
<head></head> |
<body> |
Provides... |
</body> |
</html> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |