Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-08-27 18:29:03 +0000
committerddunne2010-08-27 18:29:03 +0000
commit10eb8264efd67c235a8eb1df16d875444b3f61d7 (patch)
treee164d27e24861714fc9a31762790e23e0b309181 /plugins/org.eclipse.osee.ats/src
parent3965ab1c730d16209a4663c8231586dc928bfc11 (diff)
downloadorg.eclipse.osee-10eb8264efd67c235a8eb1df16d875444b3f61d7.tar.gz
org.eclipse.osee-10eb8264efd67c235a8eb1df16d875444b3f61d7.tar.xz
org.eclipse.osee-10eb8264efd67c235a8eb1df16d875444b3f61d7.zip
fixed attribute used for release date
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java
index 942a288df8d..86fde68fd52 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java
@@ -48,7 +48,7 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
@Override
public Result isCreateBranchAllowed() throws OseeCoreException {
- if (getSoleAttributeValue(AtsAttributeTypes.AllowCreateBranch, false) == false) {
+ if (getSoleAttributeValue(AtsAttributeTypes.AllowCreateBranch, false) == false) {
return new Result(false, "Branch creation disabled for Version [" + this + "]");
}
if (getParentBranch() == null) {
@@ -59,7 +59,7 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
@Override
public Result isCommitBranchAllowed() throws OseeCoreException {
- if (getSoleAttributeValue(AtsAttributeTypes.AllowCommitBranch, false) == false) {
+ if (getSoleAttributeValue(AtsAttributeTypes.AllowCommitBranch, false) == false) {
return new Result(false, "Version [" + this + "] not configured to allow branch commit.");
}
if (getParentBranch() == null) {
@@ -71,7 +71,7 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
@Override
public Branch getParentBranch() throws OseeCoreException {
try {
- String guid = getSoleAttributeValue(AtsAttributeTypes.BaselineBranchGuid, "");
+ String guid = getSoleAttributeValue(AtsAttributeTypes.BaselineBranchGuid, "");
if (GUID.isValid(guid)) {
return BranchManager.getBranchByGuid(guid);
}
@@ -86,11 +86,11 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
}
public Boolean isReleased() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.Released, false);
+ return getSoleAttributeValue(AtsAttributeTypes.Released, false);
}
public Boolean isNextVersion() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.NextVersion, false);
+ return getSoleAttributeValue(AtsAttributeTypes.NextVersion, false);
}
public void getParallelVersions(Set<ICommitConfigArtifact> configArts) throws OseeCoreException {
@@ -101,7 +101,7 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
}
public Boolean isVersionLocked() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.VersionLocked, false);
+ return getSoleAttributeValue(AtsAttributeTypes.VersionLocked, false);
}
@Override
@@ -110,27 +110,27 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
}
public void setReleased(boolean released) throws OseeCoreException {
- setSoleAttributeValue(AtsAttributeTypes.Released, released);
+ setSoleAttributeValue(AtsAttributeTypes.Released, released);
}
public void setNextVersion(boolean nextVersion) throws OseeCoreException {
- setSoleAttributeValue(AtsAttributeTypes.NextVersion, nextVersion);
+ setSoleAttributeValue(AtsAttributeTypes.NextVersion, nextVersion);
}
public void setVersionLocked(boolean locked) throws OseeCoreException {
- setSoleAttributeValue(AtsAttributeTypes.VersionLocked, locked);
+ setSoleAttributeValue(AtsAttributeTypes.VersionLocked, locked);
}
public String getFullName() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.FullName, "");
+ return getSoleAttributeValue(AtsAttributeTypes.FullName, "");
}
public void setFullName(String name) throws OseeCoreException {
- setSoleAttributeValue(AtsAttributeTypes.FullName, name);
+ setSoleAttributeValue(AtsAttributeTypes.FullName, name);
}
public void setDescription(String desc) throws OseeCoreException {
- setSoleAttributeValue(AtsAttributeTypes.Description, desc);
+ setSoleAttributeValue(AtsAttributeTypes.Description, desc);
}
public Collection<TeamWorkFlowArtifact> getTargetedForTeamArtifacts() throws OseeCoreException {
@@ -150,12 +150,12 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
str += " - " + getFullName();
}
}
- String description = getSoleAttributeValue(AtsAttributeTypes.Description, "");
- if (Strings.isValid(description)) {
+ String description = getSoleAttributeValue(AtsAttributeTypes.Description, "");
+ if (Strings.isValid(description)) {
if (str.equals("")) {
- str = description;
+ str = description;
} else {
- str += " - " + description;
+ str += " - " + description;
}
}
return str;
@@ -170,11 +170,11 @@ public class VersionArtifact extends Artifact implements ICommitConfigArtifact {
}
public Date getEstimatedReleaseDate() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.EstimatedReleaseDate, null);
+ return getSoleAttributeValue(AtsAttributeTypes.EstimatedReleaseDate, null);
}
public Date getReleaseDate() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.EstimatedReleaseDate, null);
+ return getSoleAttributeValue(AtsAttributeTypes.ReleaseDate, null);
}
public static Set<VersionArtifact> getVersions(Collection<String> teamDefNames) throws OseeCoreException {

Back to the top