@@ 43-49 (lines=7) @@ | ||
40 | * @param JobEntityInterface $oJobEntity |
|
41 | * @return bool |
|
42 | */ |
|
43 | public function addingJob(JobEntityInterface $oJobEntity) |
|
44 | { |
|
45 | $_sTargetEndpoint = '/v2/apps'; |
|
46 | ||
47 | $_oResponse = $this->oHttpClient->postJsonData($_sTargetEndpoint, $oJobEntity); |
|
48 | return ($_oResponse->getStatusCode() == 201); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @param JobEntityInterface|ChronosJobEntity $oJobEntity |
|
@@ 55-61 (lines=7) @@ | ||
52 | * @param JobEntityInterface|ChronosJobEntity $oJobEntity |
|
53 | * @return bool |
|
54 | */ |
|
55 | public function updatingJob(JobEntityInterface $oJobEntity) |
|
56 | { |
|
57 | $_sTargetEndpoint = '/v2/apps'; |
|
58 | ||
59 | $_oResponse = $this->oHttpClient->putJsonData($_sTargetEndpoint, $oJobEntity); |
|
60 | return ($_oResponse->getStatusCode() == 200); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @param string $sJobName |