Class PlanPermissionServiceImpl

java.lang.Object
com.atlassian.bamboo.configuration.external.PlanPermissionServiceImpl
All Implemented Interfaces:
PlanPermissionService

public class PlanPermissionServiceImpl extends Object implements PlanPermissionService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlanPermissionServiceImpl

      public PlanPermissionServiceImpl()
  • Method Details

    • convertYamlToPlanPermission

      @NotNull public @NotNull com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties convertYamlToPlanPermission(@NotNull @NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
      Description copied from interface: PlanPermissionService
      Converts data from a YAML document to plan permission properties. This method performs validation of YAML types and of the properties.
      Specified by:
      convertYamlToPlanPermission in interface PlanPermissionService
      Parameters:
      yaml - YAML String containing definition of plan permission
      Returns:
      plan permission properties
      Throws:
      com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if the imported properties were not valid
      YamlValidationException - if the format of the YAML file is invalid
    • importPlanPermission

      public void importPlanPermission(com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionsProperties, RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException
      Description copied from interface: PlanPermissionService
      Import PlanPermissionsProperties
      Specified by:
      importPlanPermission in interface PlanPermissionService
      Parameters:
      planPermissionsProperties - plan permissions
      rssPermissions - permissions granted for this operation; since 6.2.0
      Throws:
      com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if properties are invalid
      UnauthorisedException - when user is not allowed to create or update plan permission
    • exportPlanPermission

      public com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties exportPlanPermission(com.atlassian.bamboo.specs.api.model.plan.PlanIdentifierProperties planIdentifier)
      Description copied from interface: PlanPermissionService
      Export plan permission as PlanPermissionsProperties identified by PlanIdentifierProperties
      Specified by:
      exportPlanPermission in interface PlanPermissionService
      Returns:
      plan permission