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(java.lang.Long levelId)
           
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels()
          Get all the different levels of security across all schemes.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(com.opensymphony.user.User user)
          Get the different levels of security that the user can see across all projects.
 org.ofbiz.core.entity.GenericValue getIssueSecurity(java.lang.Long id)
           
 java.lang.String getIssueSecurityDescription(java.lang.Long id)
           
 org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(java.lang.Long id)
           
 java.lang.String getIssueSecurityName(java.lang.Long id)
           
 java.lang.Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
           
 java.util.List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(java.lang.Long schemeId)
          Returns the list of Security Levels for the given Issue Security Level Scheme.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(java.lang.String securityLevelName)
          Get the different levels of security that have the specified name.
 java.util.List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, com.opensymphony.user.User user)
          Get the different levels of security that can be set for this issue
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(com.opensymphony.user.User user, java.lang.String securityLevelName)
          Get the different levels of security that a user can see that have the specified name.
 boolean schemeIssueSecurityExists(java.lang.Long id)
           
 

Method Detail

getSchemeIssueSecurityLevels

java.util.List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(java.lang.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(java.lang.Long id)

getIssueSecurityName

java.lang.String getIssueSecurityName(java.lang.Long id)

getIssueSecurityDescription

java.lang.String getIssueSecurityDescription(java.lang.Long id)

getIssueSecurity

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

getUsersSecurityLevels

java.util.List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity,
                                                                          com.opensymphony.user.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.

getAllUsersSecurityLevels

java.util.Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(com.opensymphony.user.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

getAllSecurityLevels

java.util.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

java.util.Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(com.opensymphony.user.User user,
                                                                                      java.lang.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

getSecurityLevelsByName

java.util.Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(java.lang.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

java.lang.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(java.lang.Long id)
                                                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

deleteSecurityLevel

void deleteSecurityLevel(java.lang.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-2010 Atlassian. All Rights Reserved.