Interface IssueSecuritySchemeManager
- All Superinterfaces:
SchemeManager
- All Known Implementing Classes:
IssueSecuritySchemeManagerImpl
-
Field Summary
Fields inherited from interface com.atlassian.jira.scheme.SchemeManager
PROJECT_ASSOCIATION
-
Method Summary
Modifier and TypeMethodDescriptionassignSchemeToProject
(Project project, Long newSchemeId, Map<Long, Long> oldToNewSecurityLevelMappings) Set the issue security level scheme to be used by the given Project and map any old security levels to new ones.List<org.ofbiz.core.entity.GenericValue>
getEntities
(org.ofbiz.core.entity.GenericValue scheme) Get all Scheme entity records for a particular scheme.List<org.ofbiz.core.entity.GenericValue>
getEntities
(org.ofbiz.core.entity.GenericValue scheme, Long securityLevelId) Deprecated.List<org.ofbiz.core.entity.GenericValue>
getEntities
(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId, String parameter) Deprecated.Not used - presumably this was invented in SchemeManager for Permission Schemes.List<org.ofbiz.core.entity.GenericValue>
getEntities
(org.ofbiz.core.entity.GenericValue scheme, String entityTypeId) Deprecated.Never worked for String anyway.List<org.ofbiz.core.entity.GenericValue>
getEntities
(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) Deprecated.Not used - presumably this was invented in SchemeManager for Permission Schemes.getEntitiesBySecurityLevel
(Long securityLevelId) Deprecated.UsegetPermissionsBySecurityLevel(Long)
instead.getIssueSecurityLevelScheme
(Long schemeId) Returns the IssueSecurityLevelScheme for the given ID.Returns a list containing all defined IssueSecuritySchemesgetPermissionsBySecurityLevel
(Long securityLevelId) Returns the configured permissions for the given Security Level.getProjectsUsingScheme
(long schemeId) Returns all projects that use the given Issue Security Level Scheme.getSchemeObject
(Long id) Deprecated.UsegetIssueSecurityLevelScheme(Long)
instead.Collection<org.ofbiz.core.entity.GenericValue>
getSchemesContainingEntity
(String type, String parameter) This is a method that is meant to quickly get you all the schemes that contain an entity of the specified type and parameter.boolean
hasSecurityLevelAccess
(Issue issue, ApplicationUser user) Checks if the given user has permission to see the Issue Security Level of the given issue.void
setSchemeForProject
(Project project, Long issueSecuritySchemeId) Set the issue security level scheme to be used by the given Project.Methods inherited from interface com.atlassian.jira.scheme.SchemeManager
addDefaultSchemeToProject, addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, createSchemeEntity, createSchemeObject, deleteEntities, deleteEntity, deleteScheme, getAssociatedSchemes, getDefaultScheme, getDefaultSchemeObject, getEntities, getEntitiesByIds, getEntity, getGroups, getGroups, getProjects, getScheme, getScheme, getSchemeFor, getSchemeIdFor, getSchemeObject, getSchemeObjects, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, getUsers, getUsers, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, swapParameterForEntitiesOfType, updateScheme, updateScheme
-
Method Details
-
getSchemeObject
Deprecated.UsegetIssueSecurityLevelScheme(Long)
instead. Since v5.2.Gets a scheme by id from the database.- Specified by:
getSchemeObject
in interfaceSchemeManager
- Parameters:
id
- the id of the scheme to get.- Returns:
- the Scheme
- Throws:
DataAccessException
- if there is trouble retrieving from the database.
-
getIssueSecurityLevelScheme
Returns the IssueSecurityLevelScheme for the given ID.- Parameters:
schemeId
- Scheme ID- Returns:
- the IssueSecurityLevelScheme for the given ID.
-
getIssueSecurityLevelSchemes
Collection<IssueSecurityLevelScheme> getIssueSecurityLevelSchemes()Returns a list containing all defined IssueSecuritySchemes- Returns:
- a list of IssueSecuritySchemes
-
getEntitiesBySecurityLevel
List getEntitiesBySecurityLevel(Long securityLevelId) throws org.ofbiz.core.entity.GenericEntityException Deprecated.UsegetPermissionsBySecurityLevel(Long)
instead. Since v5.2.Returns the configured permissions for the given Security Level.- Parameters:
securityLevelId
- the Security Level- Returns:
- the configured permissions for the given Security Level.
- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getPermissionsBySecurityLevel
Returns the configured permissions for the given Security Level.- Parameters:
securityLevelId
- the Security Level- Returns:
- the configured permissions for the given Security Level.
-
getEntities
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException Get all Scheme entity records for a particular scheme. Inherited from SchemeManager.- Specified by:
getEntities
in interfaceSchemeManager
- Parameters:
scheme
- The scheme that the entities belong to- Returns:
- List of (GenericValue) entities
- Throws:
org.ofbiz.core.entity.GenericEntityException
- If a DB error occurs
-
getEntities
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long securityLevelId) throws org.ofbiz.core.entity.GenericEntityException Deprecated.UsegetPermissionsBySecurityLevel(Long)
instead. Since v5.2.Inherited from SchemeManager.- Specified by:
getEntities
in interfaceSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getEntities
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String entityTypeId) throws org.ofbiz.core.entity.GenericEntityException Deprecated.Never worked for String anyway. Since v6.4.Inherited from SchemeManager.- Specified by:
getEntities
in interfaceSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getEntities
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId, String parameter) throws org.ofbiz.core.entity.GenericEntityException Deprecated.Not used - presumably this was invented in SchemeManager for Permission Schemes.Inherited from SchemeManager.- Specified by:
getEntities
in interfaceSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getEntities
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException Deprecated.Not used - presumably this was invented in SchemeManager for Permission Schemes.Inherited from SchemeManager.- Specified by:
getEntities
in interfaceSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
-
getSchemesContainingEntity
Collection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(String type, String parameter) This is a method that is meant to quickly get you all the schemes that contain an entity of the specified type and parameter.- Parameters:
type
- is the entity typeparameter
- is the scheme entries parameter value- Returns:
- Collection of GenericValues that represents a scheme
-
getProjectsUsingScheme
Returns all projects that use the given Issue Security Level Scheme.- Parameters:
schemeId
- ID of the Issue Security Level Scheme- Returns:
- all projects that use the given Issue Security Level Scheme.
-
setSchemeForProject
Set the issue security level scheme to be used by the given Project.- Parameters:
project
- The ProjectissueSecuritySchemeId
- The desired new security level scheme to use - null indicates "no issue security levels".
-
assignSchemeToProject
String assignSchemeToProject(@Nonnull Project project, @Nullable Long newSchemeId, Map<Long, Long> oldToNewSecurityLevelMappings) Set the issue security level scheme to be used by the given Project and map any old security levels to new ones.- Parameters:
project
- The ProjectnewSchemeId
- The desired new security level scheme to use - null indicates "no issue security levels".oldToNewSecurityLevelMappings
- Mappings of old to new security levels. This must not contain null values. '-1' is used to represent the value "none".- Returns:
- the URL of the progress page.
- Since:
- V7.1.1
-
hasSecurityLevelAccess
Checks if the given user has permission to see the Issue Security Level of the given issue.Note that this does not check other permissions.
- Parameters:
issue
- the Issueuser
- the User (null for anonymous)- Returns:
- true if the user hase Security Level permission for the issue.
-
getPermissionsBySecurityLevel(Long)
instead.