| com.atlassian.jira.scheme.SchemeManager |
Known Indirect Subclasses
|
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | PROJECT_ASSOCIATION | The one and only "association type". | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
addDefaultSchemeToProject(com.atlassian.jira.project.Project) instead. Since v5.0.
| |||||||||||
Adds the default scheme to a particular project
| |||||||||||
Adds a scheme to a particular project
| |||||||||||
This method is deprecated.
Use
addSchemeToProject(com.atlassian.jira.project.Project, Scheme) instead. Since v5.0.
| |||||||||||
This method is deprecated.
Use
copyScheme(Scheme) instead. Since v5.0.
| |||||||||||
Copys a scheme, giving the new scheme the same entities as the original one
| |||||||||||
Creates a default scheme, with an id of 0
| |||||||||||
This method is deprecated.
Use
createSchemeObject(String, String) instead. Since v5.0.
| |||||||||||
Creates a new scheme
| |||||||||||
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.
Use
getDefaultSchemeObject() instead. Since v5.0.
| |||||||||||
Gets the default scheme.
| |||||||||||
Get all Scheme entity records for a particular scheme
| |||||||||||
Get all entity records with a particular parameter
| |||||||||||
Gets a scheme entity based on the id of the entity
| |||||||||||
This method is deprecated.
Use
getGroups(Long, com.atlassian.jira.project.Project) instead. Since v5.0.
| |||||||||||
This method is deprecated.
Use
getProjects(Scheme) instead. Since 2009. | |||||||||||
Gets all projects that are associated with that scheme
| |||||||||||
This method is deprecated.
Use
getSchemeObject(Long) instead. Since v5.0.
| |||||||||||
This method is deprecated.
use
getSchemeObject(String) instead. Since 2010.
| |||||||||||
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.
| |||||||||||
This method is deprecated.
Use
getSchemeFor(com.atlassian.jira.project.Project) instead. Since v5.0.
| |||||||||||
This method is deprecated.
use
getSchemeObjects(). Since 2010.
| |||||||||||
Will return all @link Scheme objects that are not currently associated with any projects.
| |||||||||||
This method is deprecated.
Use
getUsers(Long, com.atlassian.jira.permission.PermissionContext) instead. Since 2006.
| |||||||||||
Checks the given user's permission of the given permission type for the given entity.
| |||||||||||
Checks anonymous permission of the given permission type for the given entity.
| |||||||||||
This method is deprecated.
Use
getEntities(org.ofbiz.core.entity.GenericValue, Long) and deleteEntity(Long) instead. Since v5.0. | |||||||||||
Removes all scheme entities with this parameter and type
| |||||||||||
Removes all schemes from a project
| |||||||||||
This method is deprecated.
Use
removeSchemesFromProject(com.atlassian.jira.project.Project) instead. Since v4.4.
| |||||||||||
Determine if the given scheme name exists.
| |||||||||||
Updates any changes to the scheme object.
| |||||||||||
This method is deprecated.
Use
updateScheme(Scheme) instead. Since v5.0.
| |||||||||||
The one and only "association type".
This method is deprecated.
Use addDefaultSchemeToProject(com.atlassian.jira.project.Project) instead. Since v5.0.
Adds the default scheme to a particular project
| project | The project that the scheme is to be added to |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Adds the default scheme to a particular project
| project | The project that the scheme is to be added to |
|---|
Adds a scheme to a particular project
| project | The project that the scheme is to be added to |
|---|---|
| scheme | The scheme to be added |
This method is deprecated.
Use addSchemeToProject(com.atlassian.jira.project.Project, Scheme) instead. Since v5.0.
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 | If a DB error occurs |
|---|
This method is deprecated.
Use copyScheme(Scheme) instead. Since v5.0.
Copys a scheme, giving the new scheme the same entities as the original one
| scheme | The permission scheme to be copied |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Copys a scheme, giving the new scheme the same entities as the original one
| scheme | The permission scheme to be copied |
|---|
Creates a default scheme, with an id of 0
| GenericEntityException | If a DB error occurs |
|---|
This method is deprecated.
Use createSchemeObject(String, String) instead. Since v5.0.
Creates a new scheme
| name | The name of the new scheme |
|---|---|
| description | The description of the new scheme |
| GenericEntityException | If a DB error occurs |
|---|
| GenericEntityException |
|---|
Creates a new scheme
| name | The name of the new scheme |
|---|---|
| description | The description of the new scheme |
Deletes an entity with the given id from the database.
| id | The id of the entity to be deleted |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Deletes a scheme from the database
| id | Id of the scheme to be deleted |
|---|
| GenericEntityException | If a DB error occurs |
|---|
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. |
|---|
This method is deprecated.
Use getDefaultSchemeObject() instead. Since v5.0.
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 | If a DB error occurs |
|---|
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 |
|---|
Get all Scheme entity records for a particular scheme
| scheme | The scheme that the entities belong to |
|---|
| GenericEntityException | If a DB error occurs |
|---|
| 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 | If a DB error occurs |
|---|
| GenericEntityException |
|---|
| GenericEntityException |
|---|
Gets a scheme entity based on the id of the entity
| id | The id of the entity |
|---|
| GenericEntityException | If a DB error occurs |
|---|
This method is deprecated.
Use getGroups(Long, com.atlassian.jira.project.Project) instead. Since v5.0.
This method is deprecated.
Use getProjects(Scheme) instead. Since 2009.
Gets all projects that are associated with that scheme
| scheme | The scheme used to get all projects |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Gets all projects that are associated with that scheme
| scheme | The scheme used to get all projects |
|---|
Project's
This method is deprecated.
Use getSchemeObject(Long) instead. Since v5.0.
Gets a scheme based on the Id of the scheme
| id | Id of the scheme |
|---|
| GenericEntityException | DB Error |
|---|
This method is deprecated.
use getSchemeObject(String) instead. Since 2010.
Gets a scheme by name from the database.
| name | the name of the scheme to get. |
|---|
| GenericEntityException | DB error |
|---|
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 | if there is trouble retrieving from the database. |
|---|
Gets a scheme by id from the database.
| id | the id of the scheme to get. |
|---|
| DataAccessException | if there is trouble retrieving from the database. |
|---|
Gets all scheme objects in the database.
| DataAccessException | if the database is down or equivalent. |
|---|
This method is deprecated.
Use getSchemeFor(com.atlassian.jira.project.Project) instead. Since v5.0.
Get all schemes of this type attached to the given project.
| project | The project that the schemes are attached to |
|---|
| GenericEntityException | If a DB error occurs |
|---|
This method is deprecated.
use getSchemeObjects(). Since 2010.
Gets all the Schemes (of the type defined by the subclass) from the database.
| GenericEntityException | DB Error |
|---|
Will return all @link Scheme objects that are not currently associated with any projects.
| DataAccessException | if the database is down or equivalent. |
|---|
This method is deprecated.
Use getUsers(Long, com.atlassian.jira.permission.PermissionContext) instead. Since 2006.
Checks the given user's permission of the given permission type for the given entity.
| entityType | permission type. |
|---|---|
| entity | the entity to which permission is being checked. |
| user | the user. |
| issueCreation | whether the permission is for creating an issue. |
Checks anonymous permission of the given permission type for the given entity.
| entityType | permission type. |
|---|---|
| entity | the entity to which permission is being checked. |
This method is deprecated.
Use getEntities(org.ofbiz.core.entity.GenericValue, Long) and deleteEntity(Long) instead. Since v5.0.
Retrieves all the entites for this permission and then removes them.
| scheme | to remove entites from must NOT be null |
|---|---|
| entityTypeId | to remove |
| RemoveException | if the delete fails (DB error) |
|---|
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 | if the delete fails (DB error) |
|---|
Removes all schemes from a project
| project | The project that all schemes are to be deleted from |
|---|
This method is deprecated.
Use removeSchemesFromProject(com.atlassian.jira.project.Project) instead. Since v4.4.
Removes all schemes from a project
| project | The project that all schemes are to be deleted from |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Determine if the given scheme name exists.
| name | The name of the scheme |
|---|
| GenericEntityException | If a DB error occurs |
|---|
Updates any changes to the scheme object. This does not include changes to the scheme entities.
| scheme | The modified scheme object |
|---|
This method is deprecated.
Use updateScheme(Scheme) instead. Since v5.0.
Updates any changes to the given scheme
| entity | The modified scheme |
|---|
| GenericEntityException | If a DB error occurs |
|---|