com.atlassian.jira.scheme
Class Scheme

java.lang.Object
  extended bycom.atlassian.jira.scheme.Scheme

public class Scheme
extends 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(Long id, String type, String name, Collection entities)
           
Scheme(Long id, String type, String name, String description, Collection entities)
           
Scheme(String type, String name)
           
 
Method Summary
 void addEntity(SchemeEntity entity)
           
 Scheme cloneScheme()
           
 boolean containsSameEntities(Scheme other)
           
 String getDescription()
           
 Collection getEntities()
           
 List getEntitiesByType(Object typeId)
           
 Long getId()
           
 String getName()
           
 String getType()
           
 void removeEntity(SchemeEntity entity)
           
 void setDescription(String description)
           
 void setEntities(Collection entities)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setType(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(String type,
              String name)

Scheme

public Scheme(Long id,
              String type,
              String name,
              Collection entities)

Scheme

public Scheme(Long id,
              String type,
              String name,
              String description,
              Collection entities)
Method Detail

getType

public String getType()

setType

public void setType(String type)

getName

public String getName()

setName

public void setName(String name)

getEntities

public Collection getEntities()

setEntities

public void setEntities(Collection 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 Long getId()

setId

public void setId(Long id)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getEntitiesByType

public List getEntitiesByType(Object typeId)


Copyright © 2002-2007 Atlassian. All Rights Reserved.