Codota Logo
CmsResource$CmsResourceCopyMode
Code IndexAdd Codota to your IDE (free)

How to use
CmsResource$CmsResourceCopyMode
in
org.opencms.file

Best Java code snippets using org.opencms.file.CmsResource$CmsResourceCopyMode (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-solr

retValue.append(CmsResource.COPY_AS_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_PRESERVE_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_PRESERVE_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_AS_NEW.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_NEW) {
retValue.append(CmsResource.COPY_AS_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_AS_NEW.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_NEW) {
origin: org.opencms/org.opencms.workplace

/**
 * Sets the "copy folder default" setting.<p>
 *
 * @param value the "copy folder default" setting
 */
public void setParamTabDiCopyFolderMode(String value) {
  try {
    m_userSettings.setDialogCopyFolderMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value)));
  } catch (Throwable t) {
    // should usually never happen
  }
}
origin: org.opencms/org.opencms.workplace

/**
 * Builds the html for the default copy file mode select box.<p>
 *
 * @param htmlAttributes optional html attributes for the &lgt;select&gt; tag
 * @return the html for the default copy file mode select box
 */
public String buildSelectCopyFileMode(String htmlAttributes) {
  List<String> options = new ArrayList<String>(2);
  options.add(key(Messages.GUI_PREF_COPY_AS_SIBLING_0));
  options.add(key(Messages.GUI_COPY_AS_NEW_0));
  List<String> values = new ArrayList<String>(2);
  values.add(CmsResource.COPY_AS_SIBLING.toString());
  values.add(CmsResource.COPY_AS_NEW.toString());
  int selectedIndex = values.indexOf(getParamTabDiCopyFileMode());
  return buildSelect(htmlAttributes, options, values, selectedIndex);
}
origin: org.opencms/org.opencms.workplace

/**
 * Builds the html for the default copy folder mode select box.<p>
 *
 * @param htmlAttributes optional html attributes for the &lgt;select&gt; tag
 * @return the html for the default copy folder mode select box
 */
public String buildSelectCopyFolderMode(String htmlAttributes) {
  List<String> options = new ArrayList<String>(3);
  options.add(key(Messages.GUI_PREF_COPY_AS_SIBLINGS_0));
  options.add(key(Messages.GUI_PREF_PRESERVE_SIBLINGS_RESOURCES_0));
  options.add(key(Messages.GUI_PREF_COPY_AS_NEW_0));
  List<String> values = new ArrayList<String>(3);
  values.add(CmsResource.COPY_AS_SIBLING.toString());
  values.add(CmsResource.COPY_PRESERVE_SIBLING.toString());
  values.add(CmsResource.COPY_AS_NEW.toString());
  int selectedIndex = values.indexOf(getParamTabDiCopyFolderMode());
  return buildSelect(htmlAttributes, options, values, selectedIndex);
}
origin: org.opencms/opencms-solr

/**
 * Builds the html for the default copy folder mode select box.<p>
 * 
 * @param htmlAttributes optional html attributes for the &lgt;select&gt; tag
 * @return the html for the default copy folder mode select box
 */
public String buildSelectCopyFolderMode(String htmlAttributes) {
  List options = new ArrayList(3);
  options.add(key(Messages.GUI_PREF_COPY_AS_SIBLINGS_0));
  options.add(key(Messages.GUI_PREF_PRESERVE_SIBLINGS_RESOURCES_0));
  options.add(key(Messages.GUI_PREF_COPY_AS_NEW_0));
  List values = new ArrayList(3);
  values.add(CmsResource.COPY_AS_SIBLING.toString());
  values.add(CmsResource.COPY_PRESERVE_SIBLING.toString());
  values.add(CmsResource.COPY_AS_NEW.toString());
  int selectedIndex = values.indexOf(getParamTabDiCopyFolderMode());
  return buildSelect(htmlAttributes, options, values, selectedIndex);
}
origin: org.opencms/opencms-solr

/**
 * Builds the html for the default copy file mode select box.<p>
 * 
 * @param htmlAttributes optional html attributes for the &lgt;select&gt; tag
 * @return the html for the default copy file mode select box
 */
public String buildSelectCopyFileMode(String htmlAttributes) {
  List options = new ArrayList(2);
  options.add(key(Messages.GUI_PREF_COPY_AS_SIBLING_0));
  options.add(key(Messages.GUI_COPY_AS_NEW_0));
  List values = new ArrayList(2);
  values.add(CmsResource.COPY_AS_SIBLING.toString());
  values.add(CmsResource.COPY_AS_NEW.toString());
  int selectedIndex = values.indexOf(getParamTabDiCopyFileMode());
  return buildSelect(htmlAttributes, options, values, selectedIndex);
}
origin: org.opencms/org.opencms.workplace

  copyMode = CmsResourceCopyMode.valueOf(Integer.parseInt(getParamCopymode()));
} catch (Exception e) {
origin: org.opencms/opencms-solr

  copyMode = CmsResourceCopyMode.valueOf(Integer.parseInt(getParamCopymode()));
} catch (Exception e) {
origin: org.opencms/org.opencms.workplace

retValue.append(CmsResource.COPY_AS_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_PRESERVE_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_PRESERVE_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_AS_NEW.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_NEW) {
retValue.append(CmsResource.COPY_AS_SIBLING.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_SIBLING) {
retValue.append("<br>\n");
retValue.append("<input type=\"radio\" name=\"copymode\" value=\"");
retValue.append(CmsResource.COPY_AS_NEW.getMode());
retValue.append("\"");
if (defaultMode == CmsResource.COPY_AS_NEW) {
origin: org.opencms/opencms-core

  m_user.setAdditionalInfo(
    PREFERENCES + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS + CmsWorkplaceConfiguration.N_FILECOPY,
    new Integer(getDialogCopyFileMode().getMode()));
} else if (cms != null) {
  m_user.deleteAdditionalInfo(
      + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
      + CmsWorkplaceConfiguration.N_FOLDERCOPY,
    new Integer(getDialogCopyFolderMode().getMode()));
} else if (cms != null) {
  m_user.deleteAdditionalInfo(
origin: org.opencms/org.opencms.workplace

/**
 * Sets the "copy file default" setting.<p>
 *
 * @param value the "copy file default" setting
 */
public void setParamTabDiCopyFileMode(String value) {
  try {
    m_userSettings.setDialogCopyFileMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value)));
  } catch (Throwable t) {
    // should usually never happen
  }
}
origin: org.opencms/opencms-solr

m_dialogFileCopy = CmsResourceCopyMode.valueOf(((Integer)m_user.getAdditionalInfo(PREFERENCES
  + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
  + CmsWorkplaceConfiguration.N_FILECOPY)).intValue());
m_dialogFolderCopy = CmsResourceCopyMode.valueOf(((Integer)m_user.getAdditionalInfo(PREFERENCES
  + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
  + CmsWorkplaceConfiguration.N_FOLDERCOPY)).intValue());
origin: org.opencms/opencms-solr

/**
 * Sets the "copy folder default" setting.<p>
 * 
 * @param value the "copy folder default" setting
 */
public void setParamTabDiCopyFolderMode(String value) {
  try {
    m_userSettings.setDialogCopyFolderMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value)));
  } catch (Throwable t) {
    // should usually never happen
  }
}
origin: org.opencms/opencms-core

m_dialogFileCopy = CmsResourceCopyMode.valueOf(
  ((Integer)m_user.getAdditionalInfo(
    PREFERENCES
m_dialogFolderCopy = CmsResourceCopyMode.valueOf(
  ((Integer)m_user.getAdditionalInfo(
    PREFERENCES
origin: org.opencms/opencms-solr

/**
 * Sets the "copy file default" setting.<p>
 * 
 * @param value the "copy file default" setting
 */
public void setParamTabDiCopyFileMode(String value) {
  try {
    m_userSettings.setDialogCopyFileMode(CmsResourceCopyMode.valueOf(Integer.parseInt(value)));
  } catch (Throwable t) {
    // should usually never happen
  }
}
origin: org.opencms/opencms-solr

  m_user.setAdditionalInfo(PREFERENCES
    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
    + CmsWorkplaceConfiguration.N_FILECOPY, new Integer(getDialogCopyFileMode().getMode()));
} else if (cms != null) {
  m_user.deleteAdditionalInfo(PREFERENCES
  m_user.setAdditionalInfo(PREFERENCES
    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
    + CmsWorkplaceConfiguration.N_FOLDERCOPY, new Integer(getDialogCopyFolderMode().getMode()));
} else if (cms != null) {
  m_user.deleteAdditionalInfo(PREFERENCES
origin: org.opencms/opencms-solr

/**
 * Copies a resource.<p>
 * 
 * The copied resource will always be locked to the current user
 * after the copy operation.<p>
 * 
 * @param source the name of the resource to copy (full path)
 * @param destination the name of the copy destination (full path)
 * @param siblingMode indicates how to handle siblings during copy
 * 
 * @throws CmsException if something goes wrong
 * @throws CmsIllegalArgumentException if the <code>destination</code> argument is null or of length 0
 * 
 * @deprecated use {@link #copyResource(String, String, CmsResource.CmsResourceCopyMode)} method instead
 */
public void copyResource(String source, String destination, int siblingMode)
throws CmsException, CmsIllegalArgumentException {
  copyResource(source, destination, CmsResource.CmsResourceCopyMode.valueOf(siblingMode));
}
org.opencms.fileCmsResource$CmsResourceCopyMode

Javadoc

Enumeration class for resource copy modes.

Most used methods

  • getMode
  • valueOf
    Returns the copy mode object from the old copy mode integer.
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Kernel (java.awt.image)
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now