Package com.atlassian.jira.scheme
Class Scheme
java.lang.Object
com.atlassian.jira.scheme.Scheme
- All Implemented Interfaces:
Named
,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.-
Field Summary
Fields inherited from interface com.atlassian.jira.util.Named
NAME_COMPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionScheme()
Scheme
(Long id, String type, String name, String description, Collection<SchemeEntity> entities) Scheme
(Long id, String type, String name, Collection<SchemeEntity> entities) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntity
(SchemeEntity entity) Deprecated.this class will be made immutable, create a new Scheme instead.boolean
containsSameEntities
(Scheme other) boolean
getEntitiesByType
(Object typeId) getId()
getName()
getType()
int
hashCode()
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
Deprecated.this class will be made immutable, create a new Scheme instead.void
Deprecated.this class will be made immutable, create a new Scheme instead.void
Deprecated.this class will be made immutable, create a new Scheme instead.toString()
-
Constructor Details
-
Scheme
public Scheme() -
Scheme
-
Scheme
-
Scheme
public Scheme(Long id, String type, String name, String description, Collection<SchemeEntity> entities)
-
-
Method Details
-
getType
-
setType
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
type
-
-
getName
-
setName
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
name
-
-
getEntities
-
setEntities
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
entities
-
-
addEntity
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
entity
-
-
removeEntity
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
entity
-
-
containsSameEntities
-
cloneScheme
-
getId
- Specified by:
getId
in interfaceNamedWithId
-
setId
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
id
-
-
getDescription
- Specified by:
getDescription
in interfaceNamedWithDescription
-
setDescription
Deprecated.this class will be made immutable, create a new Scheme instead.- Parameters:
description
-
-
getEntitiesByType
-
equals
-
hashCode
public int hashCode() -
toString
-