From 10eb8264efd67c235a8eb1df16d875444b3f61d7 Mon Sep 17 00:00:00 2001 From: ddunne Date: Fri, 27 Aug 2010 18:29:03 +0000 Subject: fixed attribute used for release date --- .../eclipse/osee/ats/artifact/VersionArtifact.java | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'plugins/org.eclipse.osee.ats/src') 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 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 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 getVersions(Collection teamDefNames) throws OseeCoreException { -- cgit v1.2.3