com.atlassian.jira.scheme.distiller
Class SchemeRelationship

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

public class SchemeRelationship
extends Object

This is used by the SchemeRelationships class to hold an individual relationship by entityType (ie 'Browse Project' permission, or 'Issue Created' notification).


Constructor Summary
SchemeRelationship(Object entityType, String entityTypeDisplayName, Collection schemes)
           
 
Method Summary
 boolean allMatch()
           
 Set getAllSchemeEntities()
           
 Object getEntityType()
           
 String getEntityTypeDisplayName()
           
 Collection getMatchingSchemeEntities()
          Returns an intersection of matching scheme-entities accross all schemes being compared in this relationship
 Collection getNonMatchingSchemeEntities(Scheme scheme)
           
 List getSchemeEntities(Scheme scheme)
           
 Map getSchemeEntitiesByScheme()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemeRelationship

public SchemeRelationship(Object entityType,
                          String entityTypeDisplayName,
                          Collection schemes)
Method Detail

allMatch

public boolean allMatch()

getSchemeEntities

public List getSchemeEntities(Scheme scheme)

getMatchingSchemeEntities

public Collection getMatchingSchemeEntities()
Returns an intersection of matching scheme-entities accross all schemes being compared in this relationship

Returns:
a collection of the matching @link SchemeEntity objects

getNonMatchingSchemeEntities

public Collection getNonMatchingSchemeEntities(Scheme scheme)

getSchemeEntitiesByScheme

public Map getSchemeEntitiesByScheme()

getEntityTypeDisplayName

public String getEntityTypeDisplayName()

getEntityType

public Object getEntityType()

getAllSchemeEntities

public Set getAllSchemeEntities()


Copyright © 2002-2012 Atlassian. All Rights Reserved.