@PublicApi
public interface IssueSecurityLevelManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearProjectLevels(Project project) |
void |
clearUsersLevels() |
IssueSecurityLevel |
createIssueSecurityLevel(long schemeId,
String name,
String description)
Creates an Issue Security Level with the given properties.
|
void |
deleteSecurityLevel(Long levelId)
Deletes the given Issue Security Level and any child permissions.
|
Collection<IssueSecurityLevel> |
getAllIssueSecurityLevels()
Get all the different levels of security across all schemes.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getAllSecurityLevels()
Deprecated.
Use
getAllIssueSecurityLevels() instead. Since v5.0. |
Collection<IssueSecurityLevel> |
getAllSecurityLevelsForUser(ApplicationUser user)
Get the different levels of security that the user can see across all projects.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getAllUsersSecurityLevels(ApplicationUser user)
Deprecated.
Use
#getAllSecurityLevelsForUser(com.atlassian.crowd.embedded.api.User) instead. Since v5.0. |
Long |
getDefaultSecurityLevel(Project project)
Returns the default Security Level as defined in the Issue Security Level scheme for the given project.
|
org.ofbiz.core.entity.GenericValue |
getIssueSecurity(Long id)
Deprecated.
Use
getSecurityLevel(long) instead. Since v5.0. |
String |
getIssueSecurityDescription(Long id) |
org.ofbiz.core.entity.GenericValue |
getIssueSecurityLevel(Long id)
Deprecated.
Use
getSecurityLevel(long) instead. Since v5.0. |
List<IssueSecurityLevel> |
getIssueSecurityLevels(long schemeId)
Returns the list of Security Levels for the given Issue Security Level Scheme.
|
Collection<IssueSecurityLevel> |
getIssueSecurityLevelsByName(String securityLevelName)
Get the different levels of security that have the specified name.
|
String |
getIssueSecurityName(Long id) |
Long |
getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
Deprecated.
Use
getDefaultSecurityLevel(com.atlassian.jira.project.Project) instead. Since v5.0. |
List<org.ofbiz.core.entity.GenericValue> |
getSchemeIssueSecurityLevels(Long schemeId)
Deprecated.
Use
getIssueSecurityLevels(long) instead. Since v5.0. |
IssueSecurityLevel |
getSecurityLevel(long id)
Returns the IssueSecurityLevel with the given ID.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSecurityLevelsByName(String securityLevelName)
Deprecated.
Use
getIssueSecurityLevelsByName(String) instead. Since v5.0. |
Collection<IssueSecurityLevel> |
getSecurityLevelsForUserByName(ApplicationUser user,
String securityLevelName)
Get the different levels of security that a user can see that have the specified name.
|
List<org.ofbiz.core.entity.GenericValue> |
getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity,
ApplicationUser user)
Deprecated.
Use
#getUsersSecurityLevels(Issue, User)
or#getUsersSecurityLevels(Project, User) instead. Since v5.0. |
List<IssueSecurityLevel> |
getUsersSecurityLevels(Issue issue,
ApplicationUser user)
Get the different levels of security that can be set for this issue.
|
List<IssueSecurityLevel> |
getUsersSecurityLevels(Project project,
ApplicationUser user)
Get the different levels of security that can be set for an issue created in this project.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getUsersSecurityLevelsByName(ApplicationUser user,
String securityLevelName)
Deprecated.
Use
#getSecurityLevelsForUserByName(com.atlassian.crowd.embedded.api.User, String) instead. Since v5.0. |
boolean |
schemeIssueSecurityExists(Long id)
Deprecated.
Use
getSecurityLevel(long) != null instead. Since v5.0. |
List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(Long schemeId)
getIssueSecurityLevels(long) instead. Since v5.0.schemeId - ID of the Issue Security Level Scheme.List<IssueSecurityLevel> getIssueSecurityLevels(long schemeId)
schemeId - ID of the Issue Security Level Scheme.boolean schemeIssueSecurityExists(Long id)
getSecurityLevel(long) != null instead. Since v5.0.id - IssueSecurityLevel IDorg.ofbiz.core.entity.GenericValue getIssueSecurity(Long id)
getSecurityLevel(long) instead. Since v5.0.id - the IDIssueSecurityLevel getSecurityLevel(long id)
id - the IDIssueSecurityLevel createIssueSecurityLevel(long schemeId, String name, String description)
schemeId - The Issue security scheme that this level belongs to.name - The name of the new leveldescription - an optional descriptionList<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, ApplicationUser user) throws org.ofbiz.core.entity.GenericEntityException
#getUsersSecurityLevels(Issue, User)
or#getUsersSecurityLevels(Project, User) instead. Since v5.0.entity - This is the issue or the project that the security is being checked foruser - The user used for the security checkorg.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.List<IssueSecurityLevel> getUsersSecurityLevels(Issue issue, ApplicationUser user)
#getUsersSecurityLevels(com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User).issue - This is the issue that the security is being checked foruser - The user used for the security check#getUsersSecurityLevels(com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User)List<IssueSecurityLevel> getUsersSecurityLevels(Project project, ApplicationUser user)
#getUsersSecurityLevels(Issue, User).project - the project that the security is being checked foruser - The user used for the security check#getUsersSecurityLevels(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(ApplicationUser user) throws org.ofbiz.core.entity.GenericEntityException
#getAllSecurityLevelsForUser(com.atlassian.crowd.embedded.api.User) instead. Since v5.0.user - The user used for the security checkorg.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.@Nonnull Collection<IssueSecurityLevel> getAllSecurityLevelsForUser(ApplicationUser user)
user - The user used for the security checkCollection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels() throws org.ofbiz.core.entity.GenericEntityException
getAllIssueSecurityLevels() instead. Since v5.0.org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.Collection<IssueSecurityLevel> getAllIssueSecurityLevels()
Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(ApplicationUser user, String securityLevelName) throws org.ofbiz.core.entity.GenericEntityException
#getSecurityLevelsForUserByName(com.atlassian.crowd.embedded.api.User, String) instead. Since v5.0.user - the usersecurityLevelName - the name of the security level.org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.Collection<IssueSecurityLevel> getSecurityLevelsForUserByName(ApplicationUser user, String securityLevelName)
user - the usersecurityLevelName - the name of the security level.Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(String securityLevelName) throws org.ofbiz.core.entity.GenericEntityException
getIssueSecurityLevelsByName(String) instead. Since v5.0.securityLevelName - the name of the security level.org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.Collection<IssueSecurityLevel> getIssueSecurityLevelsByName(String securityLevelName)
securityLevelName - the name of the security level.Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
getDefaultSecurityLevel(com.atlassian.jira.project.Project) instead. Since v5.0.project - the Projectorg.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.Long getDefaultSecurityLevel(Project project)
project - the Projectorg.ofbiz.core.entity.GenericValue getIssueSecurityLevel(Long id) throws org.ofbiz.core.entity.GenericEntityException
getSecurityLevel(long) instead. Since v5.0.id - the IDorg.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.void deleteSecurityLevel(Long levelId)
levelId - Issue Security Level ID@Internal void clearUsersLevels()
@Internal void clearProjectLevels(Project project)
Copyright © 2002-2015 Atlassian. All Rights Reserved.