|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.security.IssueLevelSecurities
public class IssueLevelSecurities
This class gets a list of all the security that can be part of a issue security scheme
| Field Summary | |
|---|---|
protected org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
IssueLevelSecurities(IssueSecuritySchemeManager issueSecuritySchemeManager,
SecurityTypeManager securityTypeManager,
ProjectManager projectManager,
PermissionManager permissionManager,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| 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(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(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)
Get the different levels of security that the user can see across all projects. |
org.ofbiz.core.entity.GenericValue |
getIssueSecurity(Long id)
|
String |
getIssueSecurityDescription(Long id)
|
org.ofbiz.core.entity.GenericValue |
getIssueSecurityLevel(Long id)
|
String |
getIssueSecurityName(Long id)
Get the name of the issue security |
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,
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,
com.atlassian.crowd.embedded.api.User user)
Get the different levels of security that can be set for this issue. |
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)
Get the different levels of security that a user can see that have the specified name. |
void |
onClearCache(ClearCacheEvent event)
|
boolean |
schemeIssueSecurityExists(Long id)
Checks to see if the issue security exists |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public IssueLevelSecurities(IssueSecuritySchemeManager issueSecuritySchemeManager,
SecurityTypeManager securityTypeManager,
ProjectManager projectManager,
PermissionManager permissionManager,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public List<org.ofbiz.core.entity.GenericValue> getSchemeIssueSecurityLevels(Long schemeId)
IssueSecurityLevelManager
getSchemeIssueSecurityLevels in interface IssueSecurityLevelManagerschemeId - ID of the Issue Security Level Scheme.
public boolean schemeIssueSecurityExists(Long id)
schemeIssueSecurityExists in interface IssueSecurityLevelManagerid - The security Id
public String getIssueSecurityName(Long id)
getIssueSecurityName in interface IssueSecurityLevelManagerid - The security Id
public String getIssueSecurityDescription(Long id)
getIssueSecurityDescription in interface IssueSecurityLevelManagerpublic org.ofbiz.core.entity.GenericValue getIssueSecurity(Long id)
getIssueSecurity in interface IssueSecurityLevelManager
public List<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevels(org.ofbiz.core.entity.GenericValue entity,
User user)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getUsersSecurityLevels in interface IssueSecurityLevelManagerentity - 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.
public 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
When editing an Issue, then you would pass in the GenericValue for the Issue. When creating an Issue, the project is passed in.
getUsersSecurityLevels in interface IssueSecurityLevelManagerentity - 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
public Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(User user)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getAllUsersSecurityLevels in interface IssueSecurityLevelManageruser - The user used for the security check
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Collection<org.ofbiz.core.entity.GenericValue> getAllUsersSecurityLevels(com.atlassian.crowd.embedded.api.User user)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getAllUsersSecurityLevels in interface IssueSecurityLevelManageruser - The user used for the security check
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Collection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels()
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getAllSecurityLevels in interface IssueSecurityLevelManagerorg.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(com.atlassian.crowd.embedded.api.User user,
String securityLevelName)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getUsersSecurityLevelsByName in interface IssueSecurityLevelManageruser - the usersecurityLevelName - the name of the security level.
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Collection<org.ofbiz.core.entity.GenericValue> getUsersSecurityLevelsByName(User user,
String securityLevelName)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getUsersSecurityLevelsByName in interface IssueSecurityLevelManageruser - the usersecurityLevelName - the name of the security level.
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Collection<org.ofbiz.core.entity.GenericValue> getSecurityLevelsByName(String securityLevelName)
throws org.ofbiz.core.entity.GenericEntityException
IssueSecurityLevelManager
getSecurityLevelsByName in interface IssueSecurityLevelManagersecurityLevelName - the name of the security level.
org.ofbiz.core.entity.GenericEntityException - Exception in the OFBiz persistence layer.
public Long getSchemeDefaultSecurityLevel(org.ofbiz.core.entity.GenericValue project)
throws org.ofbiz.core.entity.GenericEntityException
getSchemeDefaultSecurityLevel in interface IssueSecurityLevelManagerorg.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getIssueSecurityLevel(Long id)
throws org.ofbiz.core.entity.GenericEntityException
getIssueSecurityLevel in interface IssueSecurityLevelManagerorg.ofbiz.core.entity.GenericEntityException
public void deleteSecurityLevel(Long levelId)
throws org.ofbiz.core.entity.GenericEntityException
deleteSecurityLevel in interface IssueSecurityLevelManagerorg.ofbiz.core.entity.GenericEntityExceptionpublic void clearUsersLevels()
clearUsersLevels in interface IssueSecurityLevelManagerpublic void clearProjectLevels(org.ofbiz.core.entity.GenericValue project)
clearProjectLevels in interface IssueSecurityLevelManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||