com.atlassian.jira.scheme.distiller
Class SchemeRelationship

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

public class SchemeRelationship
extends java.lang.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(java.lang.Object entityType, java.lang.String entityTypeDisplayName, java.util.Collection schemes)
           
 
Method Summary
 boolean allMatch()
           
 java.util.Set getAllSchemeEntities()
           
 java.lang.Object getEntityType()
           
 java.lang.String getEntityTypeDisplayName()
           
 java.util.Collection getMatchingSchemeEntities()
          Returns an intersection of matching scheme-entities accross all schemes being compared in this relationship
 java.util.Collection getNonMatchingSchemeEntities(Scheme scheme)
           
 java.util.List getSchemeEntities(Scheme scheme)
           
 java.util.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(java.lang.Object entityType,
                          java.lang.String entityTypeDisplayName,
                          java.util.Collection schemes)
Method Detail

allMatch

public boolean allMatch()

getSchemeEntities

public java.util.List getSchemeEntities(Scheme scheme)

getMatchingSchemeEntities

public java.util.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 java.util.Collection getNonMatchingSchemeEntities(Scheme scheme)

getSchemeEntitiesByScheme

public java.util.Map getSchemeEntitiesByScheme()

getEntityTypeDisplayName

public java.lang.String getEntityTypeDisplayName()

getEntityType

public java.lang.Object getEntityType()

getAllSchemeEntities

public java.util.Set getAllSchemeEntities()


Copyright © 2002-2010 Atlassian. All Rights Reserved.