|
@@ 163-174 (lines=12) @@
|
| 160 |
|
*/ |
| 161 |
|
protected function setRepositoryInfoValues(RepositoryInfoBrowserBinding $object, $data) |
| 162 |
|
{ |
| 163 |
|
if (isset($data[JSONConstants::JSON_REPINFO_CAPABILITIES]) |
| 164 |
|
&& is_array($data[JSONConstants::JSON_REPINFO_CAPABILITIES]) |
| 165 |
|
) { |
| 166 |
|
$repositoryCapabilities = $this->convertRepositoryCapabilities( |
| 167 |
|
$data[JSONConstants::JSON_REPINFO_CAPABILITIES] |
| 168 |
|
); |
| 169 |
|
if ($repositoryCapabilities !== null) { |
| 170 |
|
$data[JSONConstants::JSON_REPINFO_CAPABILITIES] = $repositoryCapabilities; |
| 171 |
|
} else { |
| 172 |
|
unset($data[JSONConstants::JSON_REPINFO_CAPABILITIES]); |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if (isset($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]) |
| 177 |
|
&& is_array($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]) |
|
@@ 176-185 (lines=10) @@
|
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if (isset($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]) |
| 177 |
|
&& is_array($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]) |
| 178 |
|
) { |
| 179 |
|
$aclCapabilities = $this->convertAclCapabilities($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]); |
| 180 |
|
if ($aclCapabilities !== null) { |
| 181 |
|
$data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES] = $aclCapabilities; |
| 182 |
|
} else { |
| 183 |
|
unset($data[JSONConstants::JSON_REPINFO_ACL_CAPABILITIES]); |
| 184 |
|
} |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
if (isset($data[JSONConstants::JSON_REPINFO_CHANGES_ON_TYPE]) |
| 188 |
|
&& is_array($data[JSONConstants::JSON_REPINFO_CHANGES_ON_TYPE]) |
|
@@ 849-859 (lines=11) @@
|
| 846 |
|
} |
| 847 |
|
|
| 848 |
|
$object = new ObjectData(); |
| 849 |
|
if (isset($data[JSONConstants::JSON_OBJECT_ACL]) && is_array($data[JSONConstants::JSON_OBJECT_ACL]) |
| 850 |
|
&& isset($data[JSONConstants::JSON_OBJECT_EXACT_ACL]) |
| 851 |
|
) { |
| 852 |
|
$acl = $this->convertAcl( |
| 853 |
|
$data[JSONConstants::JSON_OBJECT_ACL], |
| 854 |
|
(boolean) $data[JSONConstants::JSON_OBJECT_EXACT_ACL] |
| 855 |
|
); |
| 856 |
|
if ($acl !== null) { |
| 857 |
|
$object->setAcl($acl); |
| 858 |
|
} |
| 859 |
|
} |
| 860 |
|
|
| 861 |
|
if (isset($data[JSONConstants::JSON_OBJECT_ALLOWABLE_ACTIONS])) { |
| 862 |
|
$allowableActions = $this->convertAllowableActions($data[JSONConstants::JSON_OBJECT_ALLOWABLE_ACTIONS]); |