com.atlassian.jira.issue.security
Interface IssueSecurityLevelManager

All Known Implementing Classes:
IssueLevelSecurities

public interface IssueSecurityLevelManager

TODO: convert to use IssueSecurityLevel's


Method Summary
 void clearProjectLevels(org.ofbiz.core.entity.GenericValue project)
           
 void clearUsersLevels()
           
 void deleteSecurityLevel(Long levelId)
           
 Collection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels()
          Get all the different levels of security across all schemes.
 Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(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(User user)
          Deprecated. Please use getAllUsersSecurityLevels(com.atlassian.crowd.embedded.api.User) instead. Since v4.3
 org.ofbiz.core.entity.GenericValue getIssueSecurity(Long id)
           
 String getIssueSecurityDescription(Long id)
           
 org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(Long id)
           
 String getIssueSecurityName(Long id)
           
 Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
           
 List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(Long schemeId)
          Returns the list of Security Levels for the given Issue Security Level Scheme.
 Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(String securityLevelName)
          Get the different levels of security 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)
          Get the different levels of security that can be set for this issue
 List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, User user)
          Deprecated. Please use getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue, com.atlassian.crowd.embedded.api.User) instead. Since v4.3
 Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(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.
 Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(User user, String securityLevelName)
          Deprecated. Please use getUsersSecurityLevelsByName(com.atlassian.crowd.embedded.api.User, String) instead. Since v4.3
 boolean schemeIssueSecurityExists(Long id)
           
 

Method Detail

getSchemeIssueSecurityLevels

List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(Long schemeId)
Returns the list of Security Levels for the given Issue Security Level Scheme.

Parameters:
schemeId - ID of the Issue Security Level Scheme.
Returns:
the list of Security Levels for the given Issue Security Level Scheme.

schemeIssueSecurityExists

boolean schemeIssueSecurityExists(Long id)

getIssueSecurityName

String getIssueSecurityName(Long id)

getIssueSecurityDescription

String getIssueSecurityDescription(Long id)

getIssueSecurity

org.ofbiz.core.entity.GenericValue getIssueSecurity(Long id)

getUsersSecurityLevels

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
Get the different levels of security that can be set for this issue

Parameters:
entity - This is the issue or the project that the security is being checked for
user - The user used for the security check
Returns:
list containing the security levels, can be null
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.

getUsersSecurityLevels

List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity,
                                                                User user)
                                                                throws org.ofbiz.core.entity.GenericEntityException
Deprecated. Please use getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue, com.atlassian.crowd.embedded.api.User) instead. Since v4.3

Get the different levels of security that can be set for this issue

Parameters:
entity - This is the issue or the project that the security is being checked for
user - The user used for the security check
Returns:
list containing the security levels, can be null
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.

getAllUsersSecurityLevels

Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(com.atlassian.crowd.embedded.api.User user)
                                                                         throws org.ofbiz.core.entity.GenericEntityException
Get the different levels of security that the user can see across all projects.

Parameters:
user - The user used for the security check
Returns:
list containing the security levels, can be null
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getAllUsersSecurityLevels

Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(User user)
                                                                         throws org.ofbiz.core.entity.GenericEntityException
Deprecated. Please use getAllUsersSecurityLevels(com.atlassian.crowd.embedded.api.User) instead. Since v4.3

Get the different levels of security that the user can see across all projects.

Parameters:
user - The user used for the security check
Returns:
list containing the security levels, can be null
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getAllSecurityLevels

Collection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels()
                                                                    throws org.ofbiz.core.entity.GenericEntityException
Get all the different levels of security across all schemes.

Returns:
list containing the security levels, can be null
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getUsersSecurityLevelsByName

Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(com.atlassian.crowd.embedded.api.User user,
                                                                            String securityLevelName)
                                                                            throws org.ofbiz.core.entity.GenericEntityException
Get the different levels of security that a user can see that have the specified name.

Parameters:
user - the user
securityLevelName - the name of the security level.
Returns:
a collection of the GenericValues representing each level they can see with the specified name.
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getUsersSecurityLevelsByName

Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(User user,
                                                                            String securityLevelName)
                                                                            throws org.ofbiz.core.entity.GenericEntityException
Deprecated. Please use getUsersSecurityLevelsByName(com.atlassian.crowd.embedded.api.User, String) instead. Since v4.3

Get the different levels of security that a user can see that have the specified name.

Parameters:
user - the user
securityLevelName - the name of the security level.
Returns:
a collection of the GenericValues representing each level they can see with the specified name.
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getSecurityLevelsByName

Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(String securityLevelName)
                                                                       throws org.ofbiz.core.entity.GenericEntityException
Get the different levels of security that have the specified name.

Parameters:
securityLevelName - the name of the security level.
Returns:
a collection of the GenericValues representing each level with the specified name.
Throws:
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
Since:
v4.0

getSchemeDefaultSecurityLevel

Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
                                   throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getIssueSecurityLevel

org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(Long id)
                                                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

deleteSecurityLevel

void deleteSecurityLevel(Long levelId)
                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

clearUsersLevels

void clearUsersLevels()

clearProjectLevels

void clearProjectLevels(org.ofbiz.core.entity.GenericValue project)


Copyright © 2002-2011 Atlassian. All Rights Reserved.