com.atlassian.jira.scheme.distiller
Class DistilledSchemeResult

java.lang.Object
  extended by com.atlassian.jira.scheme.distiller.DistilledSchemeResult

public class DistilledSchemeResult
extends Object

Represents the result of a 'distilling' opertion of the SchemeDistiller. This will contain the original schemes that contained the same SchemeEntity's as each other and it will contain the new resulting 'distilled' scheme. This will also contain the type of scheme we are dealing with (i.e. notification, permission, etc).


Constructor Summary
DistilledSchemeResult(String type, Collection originalSchemes, Map schemeToProjects, Scheme resultingScheme)
           
 
Method Summary
 Set getAllAssociatedProjects()
          This will return all the unique projects that the original schemes were associated with.
 Collection getAssociatedProjectsForScheme(Scheme scheme)
           
 Collection getOriginalSchemes()
           
 Scheme getResultingScheme()
           
 String getResultingSchemeTempName()
           
 String getType()
           
 boolean isSelected()
           
 void setOriginalSchemes(Collection originalSchemes)
           
 void setResultingScheme(Scheme resultingScheme)
           
 void setResultingSchemeTempName(String resultingSchemeTempName)
           
 void setSelected(boolean selected)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistilledSchemeResult

public DistilledSchemeResult(String type,
                             Collection originalSchemes,
                             Map schemeToProjects,
                             Scheme resultingScheme)
Method Detail

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean selected)

getResultingSchemeTempName

public String getResultingSchemeTempName()

setResultingSchemeTempName

public void setResultingSchemeTempName(String resultingSchemeTempName)

getType

public String getType()

setType

public void setType(String type)

getOriginalSchemes

public Collection getOriginalSchemes()

setOriginalSchemes

public void setOriginalSchemes(Collection originalSchemes)

getAssociatedProjectsForScheme

public Collection getAssociatedProjectsForScheme(Scheme scheme)

getAllAssociatedProjects

public Set getAllAssociatedProjects()
This will return all the unique projects that the original schemes were associated with.

Returns:
unique set of projects

getResultingScheme

public Scheme getResultingScheme()

setResultingScheme

public void setResultingScheme(Scheme resultingScheme)


Copyright © 2002-2008 Atlassian. All Rights Reserved.