com.atlassian.bamboo.deployments.versions.index
Class IndexedVersionImpl
java.lang.Object
com.atlassian.bamboo.deployments.versions.index.IndexedVersionImpl
- All Implemented Interfaces:
- IndexedVersion, CreationDateProvider
public class IndexedVersionImpl
- extends Object
- implements IndexedVersion
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
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)
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.