@PublicApi
public interface IssueSecurityLevelManager
Modifier and Type | Method and Description |
---|---|
void |
clearProjectLevels(Project project) |
void |
clearUsersLevels() |
IssueSecurityLevel |
createIssueSecurityLevel(IssueSecurityLevel level)
Creates an Issue Security Level with the same properties as in provided Issue Security Level.
|
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(ApplicationUser) 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.
|
Long |
getIssueCount(Long issueSecurityLevelId,
Long projectId)
Get the count of issues at the given security level for a 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.
|
IssueSecurityLevel |
getSecurityLevelByNameAndSchema(String securityLevelName,
Long schemaId)
Get the level with specified name and schemaId.
|
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, ApplicationUser)
orgetUsersSecurityLevels(Project, ApplicationUser) 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(ApplicationUser, String) instead. Since v5.0. |
boolean |
schemeIssueSecurityExists(Long id)
Deprecated.
Use
getSecurityLevel(long) != null instead. Since v5.0. |
IssueSecurityLevel |
updateIssueSecurityLevel(IssueSecurityLevel issueSecurityLevel)
Updates the name and/or description of security level.
|
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 ID@Nullable org.ofbiz.core.entity.GenericValue getIssueSecurity(@Nonnull Long id)
getSecurityLevel(long)
instead. Since v5.0.id
- the IDIssueSecurityLevel getSecurityLevel(long id)
id
- the IDIssueSecurityLevel updateIssueSecurityLevel(IssueSecurityLevel issueSecurityLevel)
issueSecurityLevel
- the level to updateIssueSecurityLevel 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 descriptionIssueSecurityLevel createIssueSecurityLevel(IssueSecurityLevel level)
level
- The Issue security level to be created.List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, ApplicationUser user) throws org.ofbiz.core.entity.GenericEntityException
getUsersSecurityLevels(Issue, ApplicationUser)
orgetUsersSecurityLevels(Project, ApplicationUser)
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, ApplicationUser)
.issue
- This is the issue that the security is being checked foruser
- The user used for the security checkgetUsersSecurityLevels(com.atlassian.jira.project.Project, ApplicationUser)
List<IssueSecurityLevel> getUsersSecurityLevels(Project project, ApplicationUser user)
getUsersSecurityLevels(Issue, ApplicationUser)
.project
- the project that the security is being checked foruser
- The user used for the security checkgetUsersSecurityLevels(com.atlassian.jira.issue.Issue, ApplicationUser)
Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(ApplicationUser user) throws org.ofbiz.core.entity.GenericEntityException
getAllSecurityLevelsForUser(ApplicationUser)
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(ApplicationUser, 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.IssueSecurityLevel getSecurityLevelByNameAndSchema(String securityLevelName, Long schemaId)
securityLevelName
- the name of the security level.schemaId
- the id of security schema.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)
Long getIssueCount(@Nullable Long issueSecurityLevelId, @Nonnull Long projectId)
issueSecurityLevelId
- Issue Security LevelprojectId
- ProjectCopyright © 2002-2017 Atlassian. All Rights Reserved.