com.atlassian.jira.issue.security
Interface IssueSecuritySchemeManager

All Superinterfaces:
SchemeManager
All Known Implementing Classes:
IssueSecuritySchemeManagerImpl

@PublicApi
public interface IssueSecuritySchemeManager
extends SchemeManager


Field Summary
 
Fields inherited from interface com.atlassian.jira.scheme.SchemeManager
PROJECT_ASSOCIATION
 
Method Summary
 List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long securityLevelId)
          Deprecated. Use getPermissionsBySecurityLevel(Long) instead. Since v5.2.
 List getEntitiesBySecurityLevel(Long securityLevelId)
          Deprecated. Use getPermissionsBySecurityLevel(Long) instead. Since v5.2.
 IssueSecurityLevelScheme getIssueSecurityLevelScheme(Long schemeId)
          Returns the IssueSecurityLevelScheme for the given ID.
 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.
 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, deleteEntity, deleteScheme, getAssociatedSchemes, getDefaultScheme, getDefaultSchemeObject, getEntities, getEntities, getEntities, getEntities, getEntities, getEntity, getGroups, getGroups, getProjects, getProjects, getScheme, getScheme, getSchemeFor, getSchemeObject, getSchemeObjects, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, getUsers, getUsers, hasSchemeAuthority, hasSchemeAuthority, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme
 

Method Detail

getSchemeObject

Scheme getSchemeObject(Long id)
                       throws DataAccessException
Deprecated. Use getIssueSecurityLevelScheme(Long) instead. Since v5.2.

Gets a scheme by id from the database.

Specified by:
getSchemeObject in interface SchemeManager
Parameters:
id - the id of the scheme to get.
Returns:
the Scheme
Throws:
DataAccessException - if there is trouble retrieving from the database.

getIssueSecurityLevelScheme

IssueSecurityLevelScheme getIssueSecurityLevelScheme(Long schemeId)
Returns the IssueSecurityLevelScheme for the given ID.

Parameters:
schemeId - Scheme ID
Returns:
the IssueSecurityLevelScheme for the given ID.

getEntitiesBySecurityLevel

List getEntitiesBySecurityLevel(Long securityLevelId)
                                throws org.ofbiz.core.entity.GenericEntityException
Deprecated. Use getPermissionsBySecurityLevel(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

List<IssueSecurityLevelPermission> getPermissionsBySecurityLevel(Long securityLevelId)
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,
                                                     Long securityLevelId)
                                                     throws org.ofbiz.core.entity.GenericEntityException
Deprecated. Use getPermissionsBySecurityLevel(Long) instead. Since v5.2.

Specified by:
getEntities in interface SchemeManager
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 type
parameter - is the scheme entries parameter value
Returns:
Collection of GenericValues that represents a scheme

getProjectsUsingScheme

List<Project> getProjectsUsingScheme(long schemeId)
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

void setSchemeForProject(Project project,
                         Long issueSecuritySchemeId)
Set the issue security level scheme to be used by the given Project.

Parameters:
project - The Project
issueSecuritySchemeId - The desired new security level scheme to use - null indicates "no issue security levels".


Copyright © 2002-2014 Atlassian. All Rights Reserved.