public class IssueSecurityLevelServiceImpl extends Object implements IssueSecurityLevelService
IssueSecurityLevelService.CreateValidationResult, IssueSecurityLevelService.LevelValidationResult, IssueSecurityLevelService.UpdateValidationResult| Constructor and Description |
|---|
IssueSecurityLevelServiceImpl(IssueSecurityLevelManager levelManager,
GlobalPermissionManager globalPermissionManager,
I18nHelper i18n,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
ServiceOutcome<IssueSecurityLevel> |
create(ApplicationUser callingUser,
IssueSecurityLevelService.CreateValidationResult validationResult)
This method will create new IssueSecurityLevel carried int CreateValidationResult if it's valid
it will throw an Exception otherwise
|
ServiceOutcome<IssueSecurityLevel> |
update(ApplicationUser callingUser,
IssueSecurityLevelService.UpdateValidationResult validationResult)
This method will update IssueSecurityLevel carried in UpdateValidationResult if it is valid.
|
IssueSecurityLevelService.CreateValidationResult |
validateCreate(ApplicationUser user,
long schemeId,
String name,
String description)
Method that will validate arguments for and creation of IssueSecurityLevel operation
|
IssueSecurityLevelService.UpdateValidationResult |
validateUpdate(ApplicationUser user,
IssueSecurityLevel currentLevel,
String newName,
String newDescription)
Method that will validate arguments for an update of IssueSecurityLevel operation
|
public IssueSecurityLevelServiceImpl(IssueSecurityLevelManager levelManager, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, com.atlassian.event.api.EventPublisher eventPublisher)
public IssueSecurityLevelService.UpdateValidationResult validateUpdate(ApplicationUser user, IssueSecurityLevel currentLevel, String newName, String newDescription)
IssueSecurityLevelServicevalidateUpdate in interface IssueSecurityLevelServiceuser - the user who tries to validate an IssueSecurityLevelcurrentLevel - the level to updatenewName - the new name current level will be updated withnewDescription - the new description current level will be updated withpublic ServiceOutcome<IssueSecurityLevel> update(ApplicationUser callingUser, IssueSecurityLevelService.UpdateValidationResult validationResult)
IssueSecurityLevelServiceupdate in interface IssueSecurityLevelServicecallingUser - the user who updates the levelvalidationResult - it carry validation data and IssueSecurityLevel to updatepublic IssueSecurityLevelService.CreateValidationResult validateCreate(ApplicationUser user, long schemeId, String name, String description)
IssueSecurityLevelServicevalidateCreate in interface IssueSecurityLevelServiceuser - the user who is trying to create an IssueSecurityLevelschemeId - the scheme that new IssueSecurityLevel will belong toname - the name for the new security leveldescription - the description for the new security levelpublic ServiceOutcome<IssueSecurityLevel> create(ApplicationUser callingUser, IssueSecurityLevelService.CreateValidationResult validationResult)
IssueSecurityLevelServicecreate in interface IssueSecurityLevelServicecallingUser - the user who updates the levelvalidationResult - it carry validation data and IssueSecurityLevel to updateCopyright © 2002-2024 Atlassian. All Rights Reserved.