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
PlanPermissionServiceconvertYamlToPlanPermission in interface PlanPermissionServiceyaml - 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
PlanPermissionServicePlanPermissionsPropertiesimportPlanPermission in interface PlanPermissionServiceplanPermissionsProperties - 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)
PlanPermissionServicePlanPermissionsProperties identified by PlanIdentifierPropertiesexportPlanPermission in interface PlanPermissionServiceCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.