Commit c1e72250 authored by Manfred Kutas's avatar Manfred Kutas

ZP-748 Save rights management support request value in content

parameters in itemoperations, search and sync commands.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 564d6f2e
...@@ -178,7 +178,7 @@ class ItemOperations extends RequestProcessor { ...@@ -178,7 +178,7 @@ class ItemOperations extends RequestProcessor {
} }
if(self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) { if(self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) {
$rmsupport = self::$decoder->getElementContent(); // TODO - do something with RightsManagementSupport $operation["cpo"]->SetRmSupport(self::$decoder->getElementContent());
if(!self::$decoder->getElementEndTag()) if(!self::$decoder->getElementEndTag())
return false; return false;
} }
...@@ -191,6 +191,16 @@ class ItemOperations extends RequestProcessor { ...@@ -191,6 +191,16 @@ class ItemOperations extends RequestProcessor {
} }
} }
} }
if (self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_REMOVERIGHTSMGNTPROTECTION)) {
$operation["cpo"]->SetRemoveRmProtection(true);
if (($rrmp = self::$decoder->getElementContent()) !== false) {
$operation["cpo"]->SetRemoveRmProtection($rrmp);
if(!self::$decoder->getElementEndTag()) {
return false;
}
}
}
} // end if fetch } // end if fetch
if ($efc) { if ($efc) {
......
...@@ -248,7 +248,7 @@ class Search extends RequestProcessor { ...@@ -248,7 +248,7 @@ class Search extends RequestProcessor {
} }
if(self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) { if(self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) {
$rmsupport = self::$decoder->getElementContent(); // TODO - do something with RightsManagementSupport $cpo->SetRmSupport(self::$decoder->getElementContent());
if(!self::$decoder->getElementEndTag()) if(!self::$decoder->getElementEndTag())
return false; return false;
} }
......
...@@ -369,9 +369,9 @@ class Sync extends RequestProcessor { ...@@ -369,9 +369,9 @@ class Sync extends RequestProcessor {
return false; return false;
} }
if(self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) { if (self::$decoder->getElementStartTag(SYNC_RIGHTSMANAGEMENT_SUPPORT)) {
$rmsupport = self::$decoder->getElementContent(); // TODO - do something with RightsManagementSupport $spa->SetRmSupport(self::$decoder->getElementContent());
if(!self::$decoder->getElementEndTag()) if (!self::$decoder->getElementEndTag())
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment