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