Disabling downloading and printing documents from HCL Docs UI

If you want to disable the function of downloading and printing documents from HCL Docs UI, follow instructions in this page.

Procedure

To disable downloading and printing documents from the UI, run the following command. After running the command, there is no need to restart the Docs application. New login users can see the change.

%WAS_HOME%\profiles\AppSrv1\bin\wsadmin.bat -lang jython -f /opt/IBM/IBMDocs/installer/docs/tasks/gatekeeper_service.py /opt/IBM/IBMDocs/gatekeeper_dl.json

The gatekeeper_service.py file can be found in the root directory where you install HCL Docs, for example, /opt/IBM/IBMDocs/installer/docs/tasks/.

The .json file can be specified to create and enable, to disable, or to remove the DisableDownload feature.
  1. To create and enable the DisableDownload feature:
    [    
               {      
                 "task":"entitleGlobalFeatures",        
                 "config":       
                 {            
                    "features":            
                    [       
                         {       
                           "featureId":"DisableDownload",                      
                           "featureName": "Disable downloading/printing documents from Docs UI",                    
                           "featureDetail": "",                     
                           "featureUrl":"",                     
                           "enabled": true           
                         }              
                     ]        
                  }  
                 }
                ]
  2. To disable the DisableDownload feature:
    [    
               {      
                 "task":"turnOnOffGlobalFeaturesByIDs",         
                 "config":  
                 {            
                   "featureIds": [{"id": "DisableDownload","enabled": false}]                         
                 }  
               }
              ]
    Note: To re-enable DisableDownload, change false to true.
  3. To remove the DisableDownload feature:
    [    
                {      
                  "task":"removeGlobalFeaturesByIDs",         
                  "config":      
                  {            
                     "featureIds": [{"id":  "DisableDownload"}]  
                   }   
                 }
              ]