public class PlanPermissionServiceImpl extends Object implements PlanPermissionService
Constructor and Description |
---|
PlanPermissionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties |
convertYamlToPlanPermission(String yaml)
Converts data from a YAML document to plan permission properties.
|
com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties |
exportPlanPermission(com.atlassian.bamboo.specs.api.model.plan.PlanIdentifierProperties planIdentifier)
Export plan permission as
PlanPermissionsProperties identified by PlanIdentifierProperties |
void |
importPlanPermission(com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionsProperties,
RssPermissions rssPermissions)
Import
PlanPermissionsProperties |
@NotNull public com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties convertYamlToPlanPermission(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
PlanPermissionService
convertYamlToPlanPermission
in interface PlanPermissionService
yaml
- YAML String containing definition of plan permissioncom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalidpublic void importPlanPermission(com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionsProperties, RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
PlanPermissionService
PlanPermissionsProperties
importPlanPermission
in interface PlanPermissionService
planPermissionsProperties
- plan permissionsrssPermissions
- permissions granted for this operation; since 6.2.0com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if properties are invalidUnauthorisedException
- when user is not allowed to create or update plan permissionpublic com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties exportPlanPermission(com.atlassian.bamboo.specs.api.model.plan.PlanIdentifierProperties planIdentifier)
PlanPermissionService
PlanPermissionsProperties
identified by PlanIdentifierProperties
exportPlanPermission
in interface PlanPermissionService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.