/** * initialize params for command handler. * * @param request request * @param configuration connector configuration * @param params execute additional params. * @throws ConnectorException to handle in error handler. */ public void initParams( final HttpServletRequest request, final IConfiguration configuration, final Object... params) throws ConnectorException { if (configuration != null) { this.configuration = configuration; this.userRole = (String) request.getSession().getAttribute(configuration.getUserRoleName()); getCurrentFolderParam(request); if (checkConnector(request) && checkParam(this.currentFolder)) { this.currentFolder = PathUtils.escape(this.currentFolder); if (!checkHidden()) { if ((this.currentFolder == null || this.currentFolder.equals("")) || checkIfCurrFolderExists(request)) { this.type = getParameter(request, "type"); } } } } }