com.atlassian.greenhopper.service.rank
Class RankableImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.rank.RankableImpl
All Implemented Interfaces:
Rankable

public class RankableImpl
extends java.lang.Object
implements Rankable

Rankable implementation. DO NOT DIRECTLY INSTANTIATE - use RankableFactory instead!


Constructor Summary
RankableImpl(com.atlassian.jira.issue.Issue issue)
           
RankableImpl(RankableObject rankableObject)
           
RankableImpl(java.lang.String type, java.lang.Long id)
           
 
Method Summary
 long getId()
           
 com.atlassian.jira.issue.Issue getIssue()
           
 RankableObject getRankableObject()
           
 long getRankIndexId()
          Get the id used in the rank index For now the rank index does not contain information about the type, as a result we use negative ids for rankableobject, positive ids for issues
 java.lang.String getType()
           
 boolean isIssue()
           
 boolean isIssueLoaded()
           
 boolean isRankableObject()
           
 void setIssue(com.atlassian.jira.issue.Issue issue)
           
 void setIssueLoaded(boolean issueLoaded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankableImpl

public RankableImpl(java.lang.String type,
                    java.lang.Long id)

RankableImpl

public RankableImpl(com.atlassian.jira.issue.Issue issue)

RankableImpl

public RankableImpl(RankableObject rankableObject)
Method Detail

getId

public long getId()
Specified by:
getId in interface Rankable

getType

public java.lang.String getType()
Specified by:
getType in interface Rankable

getRankableObject

public RankableObject getRankableObject()

getIssue

public com.atlassian.jira.issue.Issue getIssue()

isIssue

public boolean isIssue()

isRankableObject

public boolean isRankableObject()

getRankIndexId

public long getRankIndexId()
Get the id used in the rank index For now the rank index does not contain information about the type, as a result we use negative ids for rankableobject, positive ids for issues


setIssue

public void setIssue(com.atlassian.jira.issue.Issue issue)

isIssueLoaded

public boolean isIssueLoaded()

setIssueLoaded

public void setIssueLoaded(boolean issueLoaded)


Copyright © 2007-2012 Atlassian. All Rights Reserved.