public class IssueSecurityLevelServiceImpl extends Object implements IssueSecurityLevelService
IssueSecurityLevelService.CreateValidationResult, IssueSecurityLevelService.LevelValidationResult, IssueSecurityLevelService.UpdateValidationResult
Constructor and Description |
---|
IssueSecurityLevelServiceImpl(IssueSecurityLevelManager levelManager,
GlobalPermissionManager globalPermissionManager,
I18nHelper i18n) |
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)
public IssueSecurityLevelService.UpdateValidationResult validateUpdate(ApplicationUser user, IssueSecurityLevel currentLevel, String newName, String newDescription)
IssueSecurityLevelService
validateUpdate
in interface IssueSecurityLevelService
user
- 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)
IssueSecurityLevelService
update
in interface IssueSecurityLevelService
callingUser
- 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)
IssueSecurityLevelService
validateCreate
in interface IssueSecurityLevelService
user
- 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)
IssueSecurityLevelService
create
in interface IssueSecurityLevelService
callingUser
- the user who updates the levelvalidationResult
- it carry validation data and IssueSecurityLevel to updateCopyright © 2002-2017 Atlassian. All Rights Reserved.