/**
   * @see
   *     org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings,
   *     javax.servlet.http.HttpServletRequest)
   */
  protected void initWorkplaceRequestValues(
      CmsWorkplaceSettings settings, HttpServletRequest request) {

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

    // check the required permissions to rename 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_COMMENTIMAGES);
    } else if (DIALOG_LOCKS_CONFIRMED.equals(getParamAction())) {
      setAction(ACTION_LOCKS_CONFIRMED);
    } else if (DIALOG_CANCEL.equals(getParamAction())) {
      setAction(ACTION_CANCEL);
    } else {
      setAction(ACTION_DEFAULT);
      // build title for comment images dialog
      Object[] args = new Object[] {getParamResource()};
      setParamTitle(key(Messages.GUI_COMMENTIMAGES_TITLE_1, args));
    }
  }
  /**
   * @see
   *     org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings,
   *     javax.servlet.http.HttpServletRequest)
   */
  protected void initWorkplaceRequestValues(
      CmsWorkplaceSettings settings, HttpServletRequest request) {

    // fill the parameter values in the get/set methods
    fillParamValues(request);
    // set the dialog type
    setParamDialogtype(DIALOG_TYPE);
    // set the action for the JSP switch
    if (DIALOG_CONFIRMED.equals(getParamAction())) {
      setAction(ACTION_CONFIRMED);
    } else if (DIALOG_CANCEL.equals(getParamAction())) {
      setAction(ACTION_CANCEL);
    } else {
      setAction(ACTION_DEFAULT);
      // add the title for the dialog
      setParamTitle(key(Messages.GUI_DELETEMODULE_ADMIN_TOOL_NAME_0));
    }
  }