com.atlassian.jira.scheme
Class Scheme

java.lang.Object
  extended by com.atlassian.jira.scheme.Scheme

public class Scheme
extends java.lang.Object

This object is used to represent a scheme in JIRA (this could be a permission, notification, etc, scheme). This object holds all the SchemeEntity's which are a part of this scheme.


Constructor Summary
Scheme()
           
Scheme(java.lang.Long id, java.lang.String type, java.lang.String name, java.util.Collection<SchemeEntity> entities)
           
Scheme(java.lang.Long id, java.lang.String type, java.lang.String name, java.lang.String description, java.util.Collection<SchemeEntity> entities)
           
Scheme(java.lang.String type, java.lang.String name)
           
 
Method Summary
 void addEntity(SchemeEntity entity)
           
 Scheme cloneScheme()
           
 boolean containsSameEntities(Scheme other)
           
 java.lang.String getDescription()
           
 java.util.Collection<SchemeEntity> getEntities()
           
 java.util.List<SchemeEntity> getEntitiesByType(java.lang.Object typeId)
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 void removeEntity(SchemeEntity entity)
           
 void setDescription(java.lang.String description)
           
 void setEntities(java.util.Collection<SchemeEntity> entities)
           
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheme

public Scheme()

Scheme

public Scheme(java.lang.String type,
              java.lang.String name)

Scheme

public Scheme(java.lang.Long id,
              java.lang.String type,
              java.lang.String name,
              java.util.Collection<SchemeEntity> entities)

Scheme

public Scheme(java.lang.Long id,
              java.lang.String type,
              java.lang.String name,
              java.lang.String description,
              java.util.Collection<SchemeEntity> entities)
Method Detail

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getEntities

public java.util.Collection<SchemeEntity> getEntities()

setEntities

public void setEntities(java.util.Collection<SchemeEntity> entities)

addEntity

public void addEntity(SchemeEntity entity)

removeEntity

public void removeEntity(SchemeEntity entity)

containsSameEntities

public boolean containsSameEntities(Scheme other)

cloneScheme

public Scheme cloneScheme()

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getEntitiesByType

public java.util.List<SchemeEntity> getEntitiesByType(java.lang.Object typeId)


Copyright © 2002-2010 Atlassian. All Rights Reserved.