|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface IssueSecurityLevelManager
Method Summary | |
---|---|
void |
clearProjectLevels(org.ofbiz.core.entity.GenericValue 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(com.atlassian.crowd.embedded.api.User user)
Get the different levels of security that the user can see across all projects. |
Collection<org.ofbiz.core.entity.GenericValue> |
getAllUsersSecurityLevels(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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,
com.atlassian.crowd.embedded.api.User user)
Deprecated. Use getUsersSecurityLevels(Issue, User)
orgetUsersSecurityLevels(Project, User) instead. Since v5.0. |
List<IssueSecurityLevel> |
getUsersSecurityLevels(Issue issue,
com.atlassian.crowd.embedded.api.User user)
Get the different levels of security that can be set for this issue. |
List<IssueSecurityLevel> |
getUsersSecurityLevels(Project project,
com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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. |
Method Detail |
---|
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
String getIssueSecurityName(Long id)
String getIssueSecurityDescription(Long id)
org.ofbiz.core.entity.GenericValue getIssueSecurity(Long id)
getSecurityLevel(long)
instead. Since v5.0.
id
- the ID
IssueSecurityLevel getSecurityLevel(long id)
id
- the ID
IssueSecurityLevel 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 description
List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, com.atlassian.crowd.embedded.api.User user) throws org.ofbiz.core.entity.GenericEntityException
getUsersSecurityLevels(Issue, User)
orgetUsersSecurityLevels(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 check
org.ofbiz.core.entity.GenericEntityException
- Exception in the OFBiz persistence layer.List<IssueSecurityLevel> getUsersSecurityLevels(Issue issue, com.atlassian.crowd.embedded.api.User 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, com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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 check
org.ofbiz.core.entity.GenericEntityException
- Exception in the OFBiz persistence layer.@Nonnull Collection<IssueSecurityLevel> getAllSecurityLevelsForUser(com.atlassian.crowd.embedded.api.User user)
user
- The user used for the security check
Collection<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(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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 Project
org.ofbiz.core.entity.GenericEntityException
- Exception in the OFBiz persistence layer.Long getDefaultSecurityLevel(Project project)
project
- the Project
org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(Long id) throws org.ofbiz.core.entity.GenericEntityException
getSecurityLevel(long)
instead. Since v5.0.
id
- the ID
org.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(org.ofbiz.core.entity.GenericValue project)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |