/sbm4mylyn/trunk/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/trunk/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/trunk/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("NUMERIC"), |
TEXT("TEXT"), |
DATETIME("DATETIME"), |
SELECTION("SELECTION"), |
BINARY("BINARY"), |
STATE("STATE"), |
USER("USER"), |
PROJECT("PROJECT"), |
SUMMATION("SUMMATION"), |
MULTIPLE_SELECTION("MULTIPLE-SELECTION"), |
CONTACT("CONTACT"), |
INCIDENT("INCIDENT"), |
FOLDER("FOLDER"), |
RELATIONAL("RELATIONAL"), |
SUBRELATIONAL("SUBRELATIONAL"), |
SYSTEM("SYSTEM"), |
MULTIPLE_RELATIONAL("MULTIPLE-RELATIONAL"), |
MULTIPLE_GROUP("MULTIPLE-GROUP"), |
MULTIPLE_USERGROUP("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/trunk/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/trunk/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 |