Details
-
Type:
Feature Request
-
Status: RESOLVED
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.6
-
Fix Version/s: 11.0
-
Component/s: Web Services
-
Labels:None
Description
Add a web service that allows hiding all of the content in resources for a given site.
The user must have the appropriate permission to hide the resources in the site.
The method signature is as follows:
public String siteHideResources( @WebParam(name = "sessionid", partName = "sessionid") @QueryParam("sessionid") String sessionId, @WebParam(name = "siteid", partName = "siteid") @QueryParam("siteid") String siteId, @WebParam(name = "hidden", partName = "hidden") @QueryParam("hidden") Boolean isHidden) {
A sample soap call would look like the following:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.sakaiproject.org/"> <soapenv:Header/> <soapenv:Body> <web:siteHideResources> <sessionid>2c30225a-cd73-40bb-80cd-4b984071864c</sessionid> <siteid>mercury</siteid> <hidden>true</hidden> </web:siteHideResources> </soapenv:Body> </soapenv:Envelope>