1 | <?php |
||
17 | abstract class DrupalItemStep extends AbstractConfigurableStepElement implements StepExecutionAwareInterface |
||
18 | { |
||
19 | /** @var StepExecution */ |
||
20 | protected $stepExecution; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | * @Assert\NotBlank(groups={"Execution"}) |
||
25 | */ |
||
26 | protected $baseUrl; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | * @Assert\NotBlank(groups={"Execution"}) |
||
31 | */ |
||
32 | protected $endpoint; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * @Assert\NotBlank(groups={"Execution"}) |
||
37 | */ |
||
38 | protected $resourcePath; |
||
39 | |||
40 | /** |
||
41 | * @var string Http login |
||
42 | * @Assert\NotBlank(groups={"Execution"}) |
||
43 | */ |
||
44 | protected $httpLogin; |
||
45 | |||
46 | /** |
||
47 | * @var string Http password |
||
48 | * @Assert\NotBlank(groups={"Execution"}) |
||
49 | */ |
||
50 | protected $httpPassword; |
||
51 | |||
52 | /** |
||
53 | * @var Webservice webservice |
||
54 | */ |
||
55 | protected $webservice; |
||
56 | |||
57 | /** |
||
58 | * Function called before all item step execution |
||
59 | */ |
||
60 | public function initialize() |
||
66 | |||
67 | /** |
||
68 | * @param Webservice $webservice |
||
69 | */ |
||
70 | public function setWebservice(Webservice $webservice) |
||
74 | |||
75 | /** |
||
76 | * @return Webservice |
||
77 | */ |
||
78 | public function getWebservice() |
||
82 | |||
83 | /** |
||
84 | * Get the drupal rest client parameters |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | protected function getClientParameters() |
||
98 | |||
99 | /** |
||
100 | * Get fields for the twig |
||
101 | * |
||
102 | * @return array |
||
103 | */ |
||
104 | public function getConfigurationFields() |
||
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getHttpLogin() |
||
152 | |||
153 | /** |
||
154 | * @param string $httpLogin |
||
155 | */ |
||
156 | public function setHttpLogin($httpLogin) |
||
160 | |||
161 | /** |
||
162 | * @return string |
||
163 | */ |
||
164 | public function getHttpPassword() |
||
168 | |||
169 | /** |
||
170 | * @param string $httpPassword |
||
171 | */ |
||
172 | public function setHttpPassword($httpPassword) |
||
176 | |||
177 | /** |
||
178 | * @param StepExecution $stepExecution |
||
179 | */ |
||
180 | public function setStepExecution(StepExecution $stepExecution) |
||
184 | |||
185 | /** |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getBaseUrl() |
||
192 | |||
193 | /** |
||
194 | * @param string $baseUrl |
||
195 | */ |
||
196 | public function setBaseUrl($baseUrl) |
||
200 | |||
201 | /** |
||
202 | * @return string |
||
203 | */ |
||
204 | public function getResourcePath() |
||
208 | |||
209 | /** |
||
210 | * @param string $resourcePath |
||
211 | */ |
||
212 | public function setResourcePath($resourcePath) |
||
216 | |||
217 | /** |
||
218 | * @return string |
||
219 | */ |
||
220 | public function getEndpoint() |
||
224 | |||
225 | /** |
||
226 | * @param string $endpoint |
||
227 | */ |
||
228 | public function setEndpoint($endpoint) |
||
232 | } |
||
233 |