java.lang.Object | |
↳ | com.atlassian.jira.scheme.AbstractSchemeManager |
Known Direct Subclasses |
Known Indirect Subclasses |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.scheme.SchemeManager
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
eventPublisher | |||||||||||
groupManager | |||||||||||
projectManager | |||||||||||
schemeFactory | |||||||||||
securityTypeManager |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the default scheme to a particular project
| |||||||||||
Adds the default scheme to a particular project
| |||||||||||
Adds a scheme to a particular project
| |||||||||||
Adds a scheme to a particular project
| |||||||||||
Copys a scheme, giving the new scheme the same entities as the original one
| |||||||||||
Copys a scheme, giving the new scheme the same entities as the original one
| |||||||||||
Creates a default scheme, with an id of 0
| |||||||||||
Creates a new scheme
| |||||||||||
Creates a new scheme
| |||||||||||
Deletes a collection of entities from the database.
| |||||||||||
Deletes an entity with the given id from the database.
| |||||||||||
Deletes a scheme from the database
| |||||||||||
Gets all schemes of this type in the database taht are associated with at least one project.
| |||||||||||
This method is deprecated.
Just assume all schemes are project association schemes.
| |||||||||||
Gets the default scheme.
| |||||||||||
Gets the default scheme.
| |||||||||||
Get all Scheme entity records for a particular scheme
| |||||||||||
Get all entity records with a particular parameter
| |||||||||||
Get all entity records for a list of ids
| |||||||||||
Gets a scheme entity based on the id of the entity
| |||||||||||
Gets all projects that are associated with that scheme
| |||||||||||
Gets a scheme based on the Id of the scheme
| |||||||||||
Gets a scheme by name from the database.
| |||||||||||
Get the scheme of this type attached to the given project.
| |||||||||||
Get the scheme of this type attached to the given project.
| |||||||||||
Gets a scheme by name from the database.
| |||||||||||
Gets a scheme by id from the database.
| |||||||||||
Gets all scheme objects in the database.
| |||||||||||
Gets all the Schemes (of the type defined by the subclass) from the database.
| |||||||||||
Get all schemes of this type attached to the given project.
| |||||||||||
Will return all @link Scheme objects that are not currently associated with any projects.
| |||||||||||
Retrieves all the entites for this permission and then removes them.
| |||||||||||
Removes all scheme entities with this parameter and type
| |||||||||||
Removes all schemes from a project
| |||||||||||
Removes all schemes from a project
| |||||||||||
Determine if the given scheme name exists.
| |||||||||||
Swaps all parameters of entities with the given type scheme to the given resulting parameter
| |||||||||||
Updates any changes to the given scheme
| |||||||||||
Updates any changes to the scheme object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.scheme.SchemeManager
|
Adds the default scheme to a particular project
project | The project that the scheme is to be added to |
---|
GenericEntityException |
---|
Adds the default scheme to a particular project
project | The project that the scheme is to be added to |
---|
DataAccessException |
---|
Adds a scheme to a particular project
project | The project that the scheme is to be added to |
---|---|
scheme | The scheme to be added |
DataAccessException |
---|
Adds a scheme to a particular project
project | The project that the scheme is to be added to |
---|---|
scheme | The scheme to be added |
GenericEntityException |
---|
Copys a scheme, giving the new scheme the same entities as the original one
oldScheme | The permission scheme to be copied |
---|
Copys a scheme, giving the new scheme the same entities as the original one
oldScheme | The permission scheme to be copied |
---|
GenericEntityException |
---|
Creates a default scheme, with an id of 0
GenericEntityException |
---|
Creates a new scheme
name | The name of the new scheme |
---|---|
description | The description of the new scheme |
GenericEntityException |
---|
Creates a new scheme
name | The name of the new scheme |
---|---|
description | The description of the new scheme |
Deletes a collection of entities from the database.
ids | a collection entity ids to be deleted. |
---|
DataAccessException |
---|
Deletes an entity with the given id from the database.
id | The id of the entity to be deleted |
---|
DataAccessException |
---|
Deletes a scheme from the database
id | Id of the scheme to be deleted |
---|
GenericEntityException |
---|
Gets all schemes of this type in the database taht are associated with at least one project.
withEntitiesComparable | if true then the scheme entites will be logically comparable (they will not include database specific information such as the pk id). Otherwise the object will be a full representation of the row stored in the database. |
---|
DataAccessException |
---|
This method is deprecated.
Just assume all schemes are project association schemes.
Identifies whether this scheme manager makes its schemes associated with projects
or something else. This is here for historic reasons as schemes are
now always associated with projects. This means you should not override this.
Gets the default scheme. This should have an id of 0
This does not work for the Default Notification scheme as it does not have an id of 0.
GenericEntityException |
---|
Gets the default scheme. This should have an id of 0
This does not work for the Default Notification scheme as it does not have an id of 0.
Get all Scheme entity records for a particular scheme
scheme | The scheme that the entities belong to |
---|
GenericEntityException |
---|
Get all entity records with a particular parameter
type | The type of entity you wish to retrieve, eg 'user', 'group', 'projectrole' |
---|---|
parameter | The parameter in the entity |
GenericEntityException |
---|
Get all entity records for a list of ids
ids | a collection of entity ids that should be retrieved |
---|
Gets a scheme entity based on the id of the entity
id | The id of the entity |
---|
Gets all projects that are associated with that scheme
scheme | The scheme used to get all projects |
---|
Project
's
DataAccessException |
---|
Gets a scheme based on the Id of the scheme
id | Id of the scheme |
---|
Gets a scheme by name from the database.
name | the name of the scheme to get. |
---|
DataAccessException |
---|
Get the scheme of this type attached to the given project.
project | The project |
---|
Get the scheme of this type attached to the given project.
project | The project |
---|
Gets a scheme by name from the database.
name | the name of the scheme to get. |
---|
DataAccessException |
---|
Gets a scheme by id from the database.
id | the id of the scheme to get. |
---|
DataAccessException |
---|
Gets all the Schemes (of the type defined by the subclass) from the database.
DataAccessException |
---|
Get all schemes of this type attached to the given project.
project | The project that the schemes are attached to |
---|
GenericEntityException |
---|
Will return all @link Scheme objects that are not currently associated with any projects.
DataAccessException |
---|
Retrieves all the entites for this permission and then removes them.
scheme | to remove entites from must NOT be null |
---|---|
entityTypeId | to remove |
RemoveException |
---|
Removes all scheme entities with this parameter and type
type | the 'type' of entity you are deleting, eg 'group', 'user', 'projectrole' |
---|---|
parameter | must NOT be null |
RemoveException |
---|
Removes all schemes from a project
project | The project that all schemes are to be deleted from |
---|
DataAccessException |
---|
Removes all schemes from a project
project | The project that all schemes are to be deleted from |
---|
GenericEntityException |
---|
Determine if the given scheme name exists.
name | The name of the scheme |
---|
Swaps all parameters of entities with the given type scheme to the given resulting parameter
type | the 'type' of entity you are swapping, eg 'group', 'user', 'projectrole' |
---|---|
parameter | must NOT be null |
Updates any changes to the given scheme
entity | The modified scheme |
---|
GenericEntityException |
---|
Updates any changes to the scheme object. This does not include changes to the scheme entities.
scheme | The modified scheme object |
---|
DataAccessException |
---|
GenericEntityException |
---|
GenericEntityException |
---|
GenericEntityException |
---|