@ExperimentalApi
public interface PlanPermissionService
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 planPermissionProperties,
RssPermissions rssPermissions)
Import
PlanPermissionsProperties |
@NotNull com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties convertYamlToPlanPermission(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
yaml
- YAML String containing definition of plan permissionYamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validvoid importPlanPermission(com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionProperties, RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
PlanPermissionsProperties
planPermissionProperties
- 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 permissioncom.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties exportPlanPermission(com.atlassian.bamboo.specs.api.model.plan.PlanIdentifierProperties planIdentifier)
PlanPermissionsProperties
identified by PlanIdentifierProperties
planIdentifier
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.