Class DynamicAuthoritiesGet

  • All Implemented Interfaces:
    RecordsManagementCustomModel, RecordsManagementModel, org.springframework.extensions.webscripts.WebScript

    public class DynamicAuthoritiesGet
    extends org.springframework.extensions.webscripts.AbstractWebScript
    implements RecordsManagementModel
    Webscript used for removing dynamic authorities from the records.
    Since:
    2.3.0.7
    Author:
    Silviu Dinuta
    • Field Detail

      • contentStreamer

        protected org.alfresco.repo.web.scripts.content.ContentStreamer contentStreamer
        Content Streamer
    • Constructor Detail

      • DynamicAuthoritiesGet

        public DynamicAuthoritiesGet()
    • Method Detail

      • setPatchDAO

        public void setPatchDAO​(org.alfresco.repo.domain.patch.PatchDAO patchDAO)
        service setters
      • setNodeDAO

        public void setNodeDAO​(org.alfresco.repo.domain.node.NodeDAO nodeDAO)
      • setQnameDAO

        public void setQnameDAO​(org.alfresco.repo.domain.qname.QNameDAO qnameDAO)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setPermissionService

        public void setPermissionService​(org.alfresco.service.cmr.security.PermissionService permissionService)
      • setExtendedSecurityService

        public void setExtendedSecurityService​(ExtendedSecurityService extendedSecurityService)
      • setTransactionService

        public void setTransactionService​(org.alfresco.service.transaction.TransactionService transactionService)
      • setContentStreamer

        public void setContentStreamer​(org.alfresco.repo.web.scripts.content.ContentStreamer contentStreamer)
      • setFileFolderService

        public void setFileFolderService​(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
      • buildModel

        protected Map<String,​Object> buildModel​(org.springframework.extensions.webscripts.WebScriptRequest req,
                                                      org.springframework.extensions.webscripts.WebScriptResponse res)
                                               throws IOException
        Throws:
        IOException
      • getExportParameter

        protected boolean getExportParameter​(org.springframework.extensions.webscripts.WebScriptRequest req)
        Get export parameter from the request
        Parameters:
        req -
        Returns:
      • execute

        public void execute​(org.springframework.extensions.webscripts.WebScriptRequest req,
                            org.springframework.extensions.webscripts.WebScriptResponse res)
                     throws IOException
        Specified by:
        execute in interface org.springframework.extensions.webscripts.WebScript
        Throws:
        IOException
      • getMaxToProccessParameter

        protected Long getMaxToProccessParameter​(org.springframework.extensions.webscripts.WebScriptRequest req,
                                                 Long batchSize)
        Obtain maximum of the records to be processed from the request if it is specified or bachsize value otherwise
        Parameters:
        req -
        Returns:
        maximum of the records to be processed from the request if it is specified or bachsize value otherwise
      • getBatchSizeParameter

        protected Long getBatchSizeParameter​(org.springframework.extensions.webscripts.WebScriptRequest req)
        Obtain batchsize parameter from the request.
        Parameters:
        req -
        Returns:
        batchsize parameter from the request
      • getParentNodeRefParameter

        protected org.alfresco.service.cmr.repository.NodeRef getParentNodeRefParameter​(org.springframework.extensions.webscripts.WebScriptRequest req)
        Get parentNodeRef parameter from the request
        Parameters:
        req -
        Returns:
      • processNodes

        protected List<org.alfresco.service.cmr.repository.NodeRef> processNodes​(Long batchSize,
                                                                                 Long maxNodeId,
                                                                                 org.alfresco.util.Pair<Long,​org.alfresco.service.namespace.QName> recordAspectPair,
                                                                                 Long totalNumberOfRecordsToProcess,
                                                                                 BufferedWriter out,
                                                                                 boolean attach)
        Process nodes all nodes or the maximum number of nodes specified by batchsize or totalNumberOfRecordsToProcess parameters
        Parameters:
        batchSize -
        maxNodeId -
        recordAspectPair -
        totalNumberOfRecordsToProcess -
        Returns:
        the list of processed nodes
      • processChildrenNodes

        protected List<org.alfresco.service.cmr.repository.NodeRef> processChildrenNodes​(org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
                                                                                         int batchSize,
                                                                                         org.alfresco.util.Pair<Long,​org.alfresco.service.namespace.QName> recordAspectPair,
                                                                                         int maxRecordsToProcess,
                                                                                         BufferedWriter out,
                                                                                         boolean attach)
      • processNode

        protected void processNode​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Process each node
        Parameters:
        nodeRef -