com.atlassian.jira.scheme
Class Scheme

java.lang.Object
  extended by com.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<SchemeEntity> entities)
           
Scheme(Long id, String type, String name, String description, Collection<SchemeEntity> entities)
           
Scheme(String type, String name)
           
 
Method Summary
 void addEntity(SchemeEntity entity)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 Scheme cloneScheme()
           
 boolean containsSameEntities(Scheme other)
           
 String getDescription()
           
 Collection<SchemeEntity> getEntities()
           
 List<SchemeEntity> getEntitiesByType(Object typeId)
           
 Long getId()
           
 String getName()
           
 String getType()
           
 void removeEntity(SchemeEntity entity)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 void setDescription(String description)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 void setEntities(Collection<SchemeEntity> entities)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 void setId(Long id)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 void setName(String name)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 void setType(String type)
          Deprecated. this class will be made immutable, create a new Scheme instead.
 
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<SchemeEntity> entities)

Scheme

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

getType

public String getType()

setType

public void setType(String type)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
type -

getName

public String getName()

setName

public void setName(String name)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
name -

getEntities

public Collection<SchemeEntity> getEntities()

setEntities

public void setEntities(Collection<SchemeEntity> entities)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
entities -

addEntity

public void addEntity(SchemeEntity entity)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
entity -

removeEntity

public void removeEntity(SchemeEntity entity)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
entity -

containsSameEntities

public boolean containsSameEntities(Scheme other)

cloneScheme

public Scheme cloneScheme()

getId

public Long getId()

setId

public void setId(Long id)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
id -

getDescription

public String getDescription()

setDescription

public void setDescription(String description)
Deprecated. this class will be made immutable, create a new Scheme instead.

Parameters:
description -

getEntitiesByType

public List<SchemeEntity> getEntitiesByType(Object typeId)


Copyright © 2002-2012 Atlassian. All Rights Reserved.