package Ġnet . nem eros a . on track . extension . bitbucket . cloud . configuration Ċ Ċ import Ġnet . nem eros a . on track . extension . support . Configuration Connector Status Indicator Ċ import Ġnet . nem eros a . on track . model . security . Security Service Ċ import Ġnet . nem eros a . on track . model . support . Connection Result Ċ import Ġnet . nem eros a . on track . model . support . Connector Ċ import Ġnet . nem eros a . on track . model . support . Connector Description Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠBit bucket Cloud Connector Status Indicator ( ĊĠĠĠ Ġprivate Ġval Ġconfiguration Service : ĠBit bucket Cloud Configuration Service , ĊĠĠĠ Ġsecurity Service : ĠSecurity Service Ċ ) Ġ: ĠConfiguration Connector Status Indicator < Bit bucket Cloud Configuration >( configuration Service , Ġsecurity Service ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġconnect ( config : ĠBit bucket Cloud Configuration ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġconfiguration Service . test ( config ) ĊĠĠĠĠĠĠĠ Ġif Ġ( result . type Ġ!= ĠConnection Result . Connection Result Type . OK ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠIllegalStateException ( result . message ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġconnector Description ( config : ĠBit bucket Cloud Configuration ) Ġ= ĠConnector Description ( ĊĠĠĠĠĠĠĠ Ġconnector Ġ= ĠConnector ( type , Ġconfig . name ), ĊĠĠĠĠĠĠĠ Ġconnection Ġ= Ġconfig . workspace ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġval Ġtype : ĠString Ġ= Ġ" bitbucket - cloud " Ċ } Ċ