Codota Logo
CmsVfsResourceAlreadyExistsException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.opencms.file.CmsVfsResourceAlreadyExistsException
constructor

Best Java code snippets using org.opencms.file.CmsVfsResourceAlreadyExistsException.<init> (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

  /**
   * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)
   */
  @Override
  public CmsException createException(CmsMessageContainer container, Throwable cause) {

    return new CmsVfsResourceAlreadyExistsException(container, cause);
  }
}
origin: org.opencms/opencms-solr

  /**
   * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable)
   */
  @Override
  public CmsException createException(CmsMessageContainer container, Throwable cause) {

    return new CmsVfsResourceAlreadyExistsException(container, cause);
  }
}
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(org.opencms.db.generic.Messages.get().container(
  org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
  resourcename));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(org.opencms.db.generic.Messages.get().container(
  org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
  resourcename));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(
  Messages.get().container(
    Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(
  Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
  dbc.removeSiteRoot(resourcePath)));
origin: org.opencms/opencms-core

/**
 * Enumeration class for the mode parameter in the
 * {@link CmsDriverManager#readChangedResourcesInsideProject(CmsDbContext, CmsUUID, CmsReadChangedProjectResourceMode)}
 * method.<p>
 */
private static class CmsReadChangedProjectResourceMode {
  /**
   * Default constructor.<p>
   */
  protected CmsReadChangedProjectResourceMode() {
    // noop
  }
}
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(
  Messages.ERR_MOVE_FAILED_TARGET_EXISTS_2,
  source,
origin: org.opencms/org.opencms.workplace

throw new CmsVfsResourceAlreadyExistsException(
  Messages.get().container(
    Messages.ERR_MOVE_FAILED_TARGET_EXISTS_2,
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(
  org.opencms.db.generic.Messages.get().container(
    org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
origin: org.opencms/opencms-solr

throw new CmsVfsResourceAlreadyExistsException(org.opencms.db.generic.Messages.get().container(
  org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
  resourcename));
origin: org.opencms/opencms-core

} else {
  throw new CmsVfsResourceAlreadyExistsException(
    Messages.get().container(
      Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
origin: org.opencms/opencms-core

/**
 * @see org.opencms.db.I_CmsProjectDriver#createProjectResource(org.opencms.db.CmsDbContext, CmsUUID, java.lang.String)
 */
public void createProjectResource(CmsDbContext dbc, CmsUUID projectId, String resourcePath)
throws CmsDataAccessException {
  // do not create entries for online-project
  boolean projectResourceExists = false;
  try {
    readProjectResource(dbc, projectId, resourcePath);
    projectResourceExists = true;
  } catch (CmsVfsResourceNotFoundException e) {
    // resource does not exist yet, everything is okay
    projectResourceExists = false;
  }
  if (projectResourceExists) {
    throw new CmsVfsResourceAlreadyExistsException(
      Messages.get().container(
        Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
        dbc.removeSiteRoot(resourcePath)));
  }
  try {
    CmsDAOProjectResources pr = new CmsDAOProjectResources();
    pr.setProjectId(projectId.toString());
    pr.setResourcePath(resourcePath);
    m_sqlManager.persist(dbc, pr);
  } catch (PersistenceException e) {
    throw new CmsDataAccessException(Messages.get().container(Messages.ERR_JPA_PERSITENCE_1, e), e);
  }
}
origin: org.opencms/opencms-core

throw new CmsVfsResourceAlreadyExistsException(
  org.opencms.db.generic.Messages.get().container(
    org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
org.opencms.fileCmsVfsResourceAlreadyExistsException<init>

Javadoc

Creates a new localized Exception.

Popular methods of CmsVfsResourceAlreadyExistsException

  • getLocalizedMessage

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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