com.atlassian.jira.issue.security
Class SchemeIssueSecurities

java.lang.Object
  |
  +--com.atlassian.jira.issue.security.SchemeIssueSecurities
All Implemented Interfaces:
SchemeIssueSecurityManager

public class SchemeIssueSecurities
extends java.lang.Object
implements SchemeIssueSecurityManager


Field Summary
protected  org.apache.log4j.Category log
           
 
Constructor Summary
SchemeIssueSecurities()
          This class gets a list of all the security that can be part of a issue security scheme
 
Method Summary
 void clearProjectLevels(org.ofbiz.core.entity.GenericValue project)
          Clears the User security Level Map.
 void clearUsersLevels()
          Clears the User security Level Map.
 void deleteSecurityLevel(java.lang.Long levelId)
           
 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)
          Get the name of the issue security
 java.lang.Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
           
 java.util.List getSchemeIssueSecurityLevels(java.lang.Long schemeId)
          Get a map of the securities that can be part of a issue security scheme.
 java.util.List getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity, com.opensymphony.module.user.User user)
          Get the different levels of security that can be set for this issue
 boolean schemeIssueSecurityExists(java.lang.Long id)
          Checks to see if the issue security exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Category log
Constructor Detail

SchemeIssueSecurities

public SchemeIssueSecurities()
This class gets a list of all the security that can be part of a issue security scheme

Method Detail

getSchemeIssueSecurityLevels

public java.util.List getSchemeIssueSecurityLevels(java.lang.Long schemeId)
Get a map of the securities that can be part of a issue security scheme. This map contains the issue security id and the issue security name

Specified by:
getSchemeIssueSecurityLevels in interface SchemeIssueSecurityManager
Returns:
Map containing the securities

schemeIssueSecurityExists

public boolean schemeIssueSecurityExists(java.lang.Long id)
Checks to see if the issue security exists

Specified by:
schemeIssueSecurityExists in interface SchemeIssueSecurityManager
Parameters:
id - The security Id
Returns:
True / False

getIssueSecurityName

public java.lang.String getIssueSecurityName(java.lang.Long id)
Get the name of the issue security

Specified by:
getIssueSecurityName in interface SchemeIssueSecurityManager
Parameters:
id - The security Id
Returns:
The name of the security

getIssueSecurityDescription

public java.lang.String getIssueSecurityDescription(java.lang.Long id)
Specified by:
getIssueSecurityDescription in interface SchemeIssueSecurityManager

getIssueSecurity

public org.ofbiz.core.entity.GenericValue getIssueSecurity(java.lang.Long id)
Specified by:
getIssueSecurity in interface SchemeIssueSecurityManager

getUsersSecurityLevels

public java.util.List getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity,
                                             com.opensymphony.module.user.User user)
                                      throws java.lang.Exception
Get the different levels of security that can be set for this issue

Specified by:
getUsersSecurityLevels in interface SchemeIssueSecurityManager
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:
Map containing the security levels
Throws:
java.lang.Exception

getSchemeDefaultSecurityLevel

public java.lang.Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
                                             throws java.lang.Exception
Specified by:
getSchemeDefaultSecurityLevel in interface SchemeIssueSecurityManager
java.lang.Exception

getIssueSecurityLevel

public org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(java.lang.Long id)
                                                         throws java.lang.Exception
Specified by:
getIssueSecurityLevel in interface SchemeIssueSecurityManager
java.lang.Exception

deleteSecurityLevel

public void deleteSecurityLevel(java.lang.Long levelId)
                         throws org.ofbiz.core.entity.GenericEntityException
Specified by:
deleteSecurityLevel in interface SchemeIssueSecurityManager
org.ofbiz.core.entity.GenericEntityException

clearUsersLevels

public void clearUsersLevels()
Clears the User security Level Map. This is done when security records are added or deleted

Specified by:
clearUsersLevels in interface SchemeIssueSecurityManager

clearProjectLevels

public void clearProjectLevels(org.ofbiz.core.entity.GenericValue project)
Clears the User security Level Map. This is done when security records are added or deleted

Specified by:
clearProjectLevels in interface SchemeIssueSecurityManager


Copyright © 2002-2003 Atlassian. All Rights Reserved.