Class Scheme

java.lang.Object
com.atlassian.jira.scheme.Scheme
All Implemented Interfaces:
Named, NamedWithDescription, NamedWithId

public class Scheme extends Object implements NamedWithDescription, NamedWithId
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 Details

  • Method Details

    • 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()
      Specified by:
      getName in interface Named
    • 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()
      Specified by:
      getId in interface NamedWithId
    • setId

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

      public String getDescription()
      Specified by:
      getDescription in interface NamedWithDescription
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object