@@ 35-47 (lines=13) @@ | ||
32 | * @param string $objectId the identifier for the PWC |
|
33 | * @param ExtensionDataInterface|null $extension |
|
34 | */ |
|
35 | public function cancelCheckOut($repositoryId, & $objectId, ExtensionDataInterface $extension = null) |
|
36 | { |
|
37 | $objectId = $this->getJsonConverter()->convertObject( |
|
38 | $this->post( |
|
39 | $this->getObjectUrl($repositoryId, $objectId), |
|
40 | $this->createQueryArray( |
|
41 | Constants::CMISACTION_CANCEL_CHECK_OUT, |
|
42 | array(), |
|
43 | $extension |
|
44 | ) |
|
45 | )->json() |
|
46 | ); |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * Checks-in the private working copy (PWC) document. |
|
@@ 136-153 (lines=18) @@ | ||
133 | * @param boolean|null $contentCopied output: indicator if the content of the original |
|
134 | * document has been copied to the PWC |
|
135 | */ |
|
136 | public function checkOut( |
|
137 | $repositoryId, |
|
138 | & $objectId, |
|
139 | ExtensionDataInterface $extension = null, |
|
140 | $contentCopied = null |
|
141 | ) { |
|
142 | $objectData = $this->getJsonConverter()->convertObject( |
|
143 | $this->post( |
|
144 | $this->getObjectUrl($repositoryId, $objectId), |
|
145 | $this->createQueryArray( |
|
146 | Constants::CMISACTION_CHECK_OUT, |
|
147 | array(), |
|
148 | $extension |
|
149 | ) |
|
150 | )->json() |
|
151 | ); |
|
152 | $objectId = $objectData->getId(); |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Returns the list of all document objects in the specified version series, |