com.atlassian.bamboo.deployments.versions.index
Class IndexedVersionImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.versions.index.IndexedVersionImpl
All Implemented Interfaces:
IndexedVersion, CreationDateProvider

public class IndexedVersionImpl
extends Object
implements IndexedVersion


Field Summary
static IndexedEntityTextField FIELD_BRANCH_NAME
           
static IndexedEntityDateField FIELD_CREATION_DATE
           
static IndexedEntityIdField FIELD_ID
           
static IndexedEntityTextField FIELD_ISSUE_KEY
           
static IndexedEntityTextField FIELD_JIRA_PROJECT_KEY
           
static IndexedEntityTextField FIELD_NAME
           
static IndexedEntityPlanResultKeyField FIELD_PLAN_RESULT_KEY
           
static IndexedEntityIdField FIELD_PROJECT_ID
           
 
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
 
Constructor Summary
IndexedVersionImpl(DeploymentVersion deploymentVersion, DeploymentProject deploymentProject, PlanResultKey planResultKey, List<DeploymentVersionLinkedJiraIssue> issues)
           
IndexedVersionImpl(org.apache.lucene.document.Document document)
           
 
Method Summary
 boolean equals(Object o)
           
 Date getCreationDate()
           
 org.apache.lucene.document.Document getDocument()
           
 long getId()
           
 String getName()
           
 String getPlanBranchName()
           
 PlanResultKey getPlanResultKey()
           
 long getProjectId()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_ID

public static final IndexedEntityIdField FIELD_ID

FIELD_NAME

public static final IndexedEntityTextField FIELD_NAME

FIELD_PLAN_RESULT_KEY

public static final IndexedEntityPlanResultKeyField FIELD_PLAN_RESULT_KEY

FIELD_CREATION_DATE

public static final IndexedEntityDateField FIELD_CREATION_DATE

FIELD_PROJECT_ID

public static final IndexedEntityIdField FIELD_PROJECT_ID

FIELD_ISSUE_KEY

public static final IndexedEntityTextField FIELD_ISSUE_KEY

FIELD_JIRA_PROJECT_KEY

public static final IndexedEntityTextField FIELD_JIRA_PROJECT_KEY

FIELD_BRANCH_NAME

public static final IndexedEntityTextField FIELD_BRANCH_NAME
Constructor Detail

IndexedVersionImpl

public IndexedVersionImpl(@NotNull
                          DeploymentVersion deploymentVersion,
                          @NotNull
                          DeploymentProject deploymentProject,
                          @Nullable
                          PlanResultKey planResultKey,
                          @NotNull
                          List<DeploymentVersionLinkedJiraIssue> issues)

IndexedVersionImpl

public IndexedVersionImpl(@NotNull
                          org.apache.lucene.document.Document document)
Method Detail

getDocument

public org.apache.lucene.document.Document getDocument()

getId

public long getId()
Specified by:
getId in interface IndexedVersion
Returns:
id of the version

getName

public String getName()
Specified by:
getName in interface IndexedVersion
Returns:
The name of the version

getPlanResultKey

public PlanResultKey getPlanResultKey()
Specified by:
getPlanResultKey in interface IndexedVersion
Returns:
the plan result key of the result that was used to create this version

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface IndexedVersion
Specified by:
getCreationDate in interface CreationDateProvider
Returns:
date that the version was created

getProjectId

public long getProjectId()
Specified by:
getProjectId in interface IndexedVersion
Returns:
id of the project the version belongs to.

getPlanBranchName

@NotNull
public String getPlanBranchName()
Specified by:
getPlanBranchName in interface IndexedVersion
Returns:
name of branch the version is created from

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.