Tabnine Logo
CmsDefaultPageEditor.setAction
Code IndexAdd Tabnine to your IDE (free)

How to use
setAction
method
in
org.opencms.workplace.editors.CmsDefaultPageEditor

Best Java code snippets using org.opencms.workplace.editors.CmsDefaultPageEditor.setAction (Showing top 2 results out of 315)

origin: org.opencms/opencms-core

/**
 * @see org.opencms.workplace.editors.CmsEditor#actionSave()
 */
@Override
public void actionSave() throws JspException {
  try {
    // save content to temporary file
    performSaveContent(getParamElementname(), getElementLocale());
    // copy the temporary file content back to the original file
    commitTempFile();
    // set the modified parameter
    setParamModified(Boolean.TRUE.toString());
  } catch (CmsException e) {
    showErrorPage(e);
  }
  if (getAction() != ACTION_CANCEL) {
    // save successful, set save action
    setAction(ACTION_SAVE);
  }
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.workplace.editors.CmsEditor#actionSave()
 */
@Override
public void actionSave() throws JspException {
  try {
    // save content to temporary file
    performSaveContent(getParamElementname(), getElementLocale());
    // copy the temporary file content back to the original file
    commitTempFile();
    // set the modified parameter
    setParamModified(Boolean.TRUE.toString());
  } catch (CmsException e) {
    showErrorPage(e);
  }
  if (getAction() != ACTION_CANCEL) {
    // save successful, set save action         
    setAction(ACTION_SAVE);
  }
}
org.opencms.workplace.editorsCmsDefaultPageEditorsetAction

Popular methods of CmsDefaultPageEditor

  • actionClear
  • actionClose
  • actionExit
    Performs the exit editor action and deletes the temporary file.
  • actionSave
  • buildSelect
  • buildSelectElementLanguage
  • commitTempFile
  • deleteTempFile
  • getAction
  • getCms
  • getElementList
    Returns the list of active elements of the page.
  • getElementLocale
    Returns the current element locale.
  • getElementList,
  • getElementLocale,
  • getJsp,
  • getParamAction,
  • getParamContent,
  • getParamDirectedit,
  • getParamElementlanguage,
  • getParamElementname,
  • getParamModified,
  • getParamOldelementlanguage

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now