@PublicApi public interface IssueSecuritySchemeManager extends SchemeManager
PROJECT_ASSOCIATION| Modifier and Type | Method and Description |
|---|---|
String |
assignSchemeToProject(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.
Use
getPermissionsBySecurityLevel(Long) instead. Since v5.2. |
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. Since v6.4.
|
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.
|
List |
getEntitiesBySecurityLevel(Long securityLevelId)
Deprecated.
Use
getPermissionsBySecurityLevel(Long) instead. Since v5.2. |
IssueSecurityLevelScheme |
getIssueSecurityLevelScheme(Long schemeId)
Returns the IssueSecurityLevelScheme for the given ID.
|
Collection<IssueSecurityLevelScheme> |
getIssueSecurityLevelSchemes()
Returns a list containing all defined IssueSecuritySchemes
|
List<IssueSecurityLevelPermission> |
getPermissionsBySecurityLevel(Long securityLevelId)
Returns the configured permissions for the given Security Level.
|
List<Project> |
getProjectsUsingScheme(long schemeId)
Returns all projects that use the given Issue Security Level Scheme.
|
Scheme |
getSchemeObject(Long id)
Deprecated.
Use
getIssueSecurityLevelScheme(Long) instead. Since v5.2. |
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.
|
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, updateSchemeScheme getSchemeObject(Long id) throws DataAccessException
getIssueSecurityLevelScheme(Long) instead. Since v5.2.getSchemeObject in interface SchemeManagerid - the id of the scheme to get.DataAccessException - if there is trouble retrieving from the database.IssueSecurityLevelScheme getIssueSecurityLevelScheme(Long schemeId)
schemeId - Scheme IDCollection<IssueSecurityLevelScheme> getIssueSecurityLevelSchemes()
List getEntitiesBySecurityLevel(Long securityLevelId) throws org.ofbiz.core.entity.GenericEntityException
getPermissionsBySecurityLevel(Long) instead. Since v5.2.securityLevelId - the Security Levelorg.ofbiz.core.entity.GenericEntityExceptionList<IssueSecurityLevelPermission> getPermissionsBySecurityLevel(Long securityLevelId)
securityLevelId - the Security LevelList<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
getEntities in interface SchemeManagerscheme - The scheme that the entities belong toorg.ofbiz.core.entity.GenericEntityException - If a DB error occursList<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long securityLevelId) throws org.ofbiz.core.entity.GenericEntityException
getPermissionsBySecurityLevel(Long) instead. Since v5.2.getEntities in interface SchemeManagerorg.ofbiz.core.entity.GenericEntityExceptionList<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getEntities in interface SchemeManagerorg.ofbiz.core.entity.GenericEntityExceptionList<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId, String parameter) throws org.ofbiz.core.entity.GenericEntityException
getEntities in interface SchemeManagerorg.ofbiz.core.entity.GenericEntityExceptionList<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getEntities in interface SchemeManagerorg.ofbiz.core.entity.GenericEntityExceptionCollection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(String type, String parameter)
type - is the entity typeparameter - is the scheme entries parameter valueList<Project> getProjectsUsingScheme(long schemeId)
schemeId - ID of the Issue Security Level Schemevoid setSchemeForProject(Project project, Long issueSecuritySchemeId)
project - The ProjectissueSecuritySchemeId - The desired new security level scheme to use - null indicates "no issue security levels".String assignSchemeToProject(@Nonnull Project project, @Nullable Long newSchemeId, Map<Long,Long> oldToNewSecurityLevelMappings)
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".boolean hasSecurityLevelAccess(@Nonnull Issue issue, @Nullable ApplicationUser user)
Note that this does not check other permissions.
issue - the Issueuser - the User (null for anonymous)Copyright © 2002-2019 Atlassian. All Rights Reserved.