@Override
    protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) {

        // fill the parameter values in the get/set methods
        fillParamValues(request);

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(getParamDeleteSiblings())) {
            setParamDeleteSiblings(Boolean.toString(
                getSettings().getUserSettings().getDialogDeleteFileMode() == CmsResource.DELETE_REMOVE_SIBLINGS));
        }
        // check the required permissions to delete the resource
        if (!checkResourcePermissions(CmsPermissionSet.ACCESS_WRITE, false)) {
            // no write permissions for the resource, set cancel action to close dialog
            setParamAction(DIALOG_CANCEL);
        }

        // set the dialog type
        setParamDialogtype(DIALOG_TYPE);
        // set the action for the JSP switch
        if (DIALOG_TYPE.equals(getParamAction())) {
            setAction(ACTION_DELETE);
        } else if (DIALOG_LOCKS_CONFIRMED.equals(getParamAction())) {
            setAction(ACTION_LOCKS_CONFIRMED);
        } else if (DIALOG_WAIT.equals(getParamAction())) {
            setAction(ACTION_WAIT);
        } else if (DIALOG_CANCEL.equals(getParamAction())) {
            setAction(ACTION_CANCEL);
        } else {
            setAction(ACTION_DEFAULT);
            // build title for delete dialog
            setDialogTitle(Messages.GUI_DELETE_RESOURCE_1, Messages.GUI_DELETE_MULTI_2);
        }
    }
@ Override protected void initWorkplaceRequestValues ( CmsWorkplaceSettings settings , HttpServletRequest request ) { fillParamValues ( request ) ; if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( getParamDeleteSiblings ( ) ) ) { setParamDeleteSiblings ( Boolean . toString ( getSettings ( ) . getUserSettings ( ) . getDialogDeleteFileMode ( ) == CmsResource . DELETE_REMOVE_SIBLINGS ) ) ; } if ( ! checkResourcePermissions ( CmsPermissionSet . ACCESS_WRITE , false ) ) { setParamAction ( DIALOG_CANCEL ) ; } setParamDialogtype ( DIALOG_TYPE ) ; if ( DIALOG_TYPE . equals ( getParamAction ( ) ) ) { setAction ( ACTION_DELETE ) ; } else if ( DIALOG_LOCKS_CONFIRMED . equals ( getParamAction ( ) ) ) { setAction ( ACTION_LOCKS_CONFIRMED ) ; } else if ( DIALOG_WAIT . equals ( getParamAction ( ) ) ) { setAction ( ACTION_WAIT ) ; } else if ( DIALOG_CANCEL . equals ( getParamAction ( ) ) ) { setAction ( ACTION_CANCEL ) ; } else { setAction ( ACTION_DEFAULT ) ; setDialogTitle ( Messages . GUI_DELETE_RESOURCE_1 , Messages . GUI_DELETE_MULTI_2 ) ; } }
@see org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)