Codota Logo
CmsExportPoint.getUri
Code IndexAdd Codota to your IDE (free)

How to use
getUri
method
in
org.opencms.db.CmsExportPoint

Best Java code snippets using org.opencms.db.CmsExportPoint.getUri (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-solr

/**
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode() {
  return getUri().hashCode();
}
origin: org.opencms/opencms-core

/**
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode() {
  return getUri().hashCode();
}
origin: org.opencms/opencms-solr

/**
 * Constructor for a CmsExportPointDriver.<p>
 *
 * @param exportpoints the list of export points
 */
public CmsExportPointDriver(Set exportpoints) {
  m_exportpoints = exportpoints;
  m_exportpointLookupMap = new HashMap();
  Iterator i = m_exportpoints.iterator();
  while (i.hasNext()) {
    CmsExportPoint point = (CmsExportPoint)i.next();
    if (point.getDestinationPath() != null) {
      // otherwise this point is not valid, but must be kept for serializing the configuration
      m_exportpointLookupMap.put(point.getUri(), point.getDestinationPath());
    }
  }
}
origin: org.opencms/opencms-core

/**
 * Constructor for a CmsExportPointDriver.<p>
 *
 * @param exportpoints the list of export points
 */
public CmsExportPointDriver(Set<CmsExportPoint> exportpoints) {
  m_exportpoints = exportpoints;
  m_exportpointLookupMap = new HashMap<String, String>();
  Iterator<CmsExportPoint> i = m_exportpoints.iterator();
  while (i.hasNext()) {
    CmsExportPoint point = i.next();
    if (point.getDestinationPath() != null) {
      // otherwise this point is not valid, but must be kept for serializing the configuration
      m_exportpointLookupMap.put(point.getUri(), point.getDestinationPath());
    }
  }
}
origin: org.opencms/org.opencms.workplace.tools.modules

/**
 * Clones the export points of the module and adjusts its paths.<p>
 *
 * @param sourceModule the source module
 * @param targetModule the target module
 * @param sourcePathPart the source path part
 * @param targetPathPart the target path part
 */
private void cloneExportPoints(
  CmsModule sourceModule,
  CmsModule targetModule,
  String sourcePathPart,
  String targetPathPart) {
  for (CmsExportPoint exp : targetModule.getExportPoints()) {
    if (exp.getUri().contains(sourceModule.getName())) {
      exp.setUri(exp.getUri().replaceAll(sourceModule.getName(), targetModule.getName()));
    }
    if (exp.getUri().contains(sourcePathPart)) {
      exp.setUri(exp.getUri().replaceAll(sourcePathPart, targetPathPart));
    }
  }
}
origin: org.opencms/org.opencms.workplace.tools.modules

  /**
   * @see org.opencms.workplace.CmsWidgetDialog#validateParamaters()
   */
  @Override
  protected void validateParamaters() throws Exception {

    String moduleName = getParamModule();
    // check module
    CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
    if (module == null) {
      throw new Exception();
    }
    // check export point
    Iterator it = module.getExportPoints().iterator();
    while (it.hasNext()) {
      CmsExportPoint ep = (CmsExportPoint)it.next();
      if (ep.getUri().equals(getParamExportpoint())) {
        // export point found
        return;
      }
    }
    throw new Exception();
  }
}
origin: org.opencms/opencms-core

/**
 * Adds an export point to the module configuration.<p>
 *
 * @param uri the export point uri
 * @param destination the export point destination
 */
public void addExportPoint(String uri, String destination) {
  CmsExportPoint point = new CmsExportPoint(uri, destination);
  m_exportPoints.add(point);
  if (CmsLog.INIT.isInfoEnabled()) {
    CmsLog.INIT.info(
      Messages.get().getBundle().key(
        Messages.INIT_ADD_EXPORT_POINT_2,
        point.getUri(),
        point.getConfiguredDestination()));
  }
}
origin: org.opencms/org.opencms.workplace.tools.modules

/**
 * @see org.opencms.workplace.CmsWidgetDialog#validateParamaters()
 */
@Override
protected void validateParamaters() throws Exception {
  String moduleName = getParamModule();
  // check module
  CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
  if (module == null) {
    throw new Exception();
  }
  // check export point
  if (!isNewExportPoint()) {
    Iterator it = module.getExportPoints().iterator();
    while (it.hasNext()) {
      CmsExportPoint ep = (CmsExportPoint)it.next();
      if (ep.getUri().equals(getParamExportpoint())) {
        // export point found
        return;
      }
    }
    throw new Exception();
  }
}
origin: org.opencms/opencms-solr

/**
 * Adds an export point to the module configuration.<p>
 * 
 * @param uri the export point uri
 * @param destination the export point destination
 */
public void addExportPoint(String uri, String destination) {
  CmsExportPoint point = new CmsExportPoint(uri, destination);
  m_exportPoints.add(point);
  if (CmsLog.INIT.isInfoEnabled() && (point.getDestinationPath() != null)) {
    CmsLog.INIT.info(Messages.get().getBundle().key(
      Messages.INIT_ADD_EXPORT_POINT_2,
      point.getUri(),
      point.getDestinationPath()));
  }
}
origin: org.opencms/opencms-solr

/**
 * Adds newly created export point to the workplace configuration.<p>
 * 
 * @param uri the export point uri
 * @param destination the export point destination
 */
public void addExportPoint(String uri, String destination) {
  CmsExportPoint point = new CmsExportPoint(uri, destination);
  m_exportPoints.add(point);
  if (CmsLog.INIT.isInfoEnabled() && (point.getDestinationPath() != null)) {
    CmsLog.INIT.info(Messages.get().getBundle().key(
      Messages.INIT_ADD_EXPORT_POINT_2,
      point.getUri(),
      point.getDestinationPath()));
  }
}
origin: org.opencms/opencms-core

/**
 * Adds newly created export point to the workplace configuration.<p>
 *
 * @param uri the export point uri
 * @param destination the export point destination
 */
public void addExportPoint(String uri, String destination) {
  CmsExportPoint point = new CmsExportPoint(uri, destination);
  m_exportPoints.add(point);
  if (CmsLog.INIT.isInfoEnabled() && (point.getDestinationPath() != null)) {
    CmsLog.INIT.info(
      Messages.get().getBundle().key(
        Messages.INIT_ADD_EXPORT_POINT_2,
        point.getUri(),
        point.getDestinationPath()));
  }
}
origin: org.opencms/org.opencms.workplace.tools.modules

while (i.hasNext()) {
  CmsExportPoint exp = (CmsExportPoint)i.next();
  if (!exp.getUri().equals(m_exportpoint.getUri())) {
    newExportpoints.add(exp);
origin: org.opencms/org.opencms.workplace.tools.modules

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List getListItems() {
  List ret = new ArrayList();
  String moduleName = getParamModule();
  CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
  // get exportpoints
  List exportpoints = module.getExportPoints();
  Iterator i = exportpoints.iterator();
  while (i.hasNext()) {
    CmsExportPoint exportpoint = (CmsExportPoint)i.next();
    CmsListItem item = getList().newItem(exportpoint.getUri());
    // name
    item.set(LIST_COLUMN_URI, exportpoint.getUri());
    // destination
    item.set(LIST_COLUMN_DESTINATION, exportpoint.getConfiguredDestination());
    // server
    item.set(LIST_COLUMN_SERVERDESTINATION, exportpoint.getDestinationPath());
    ret.add(item);
  }
  return ret;
}
origin: org.opencms/org.opencms.workplace.tools.modules

while (i.hasNext()) {
  CmsExportPoint exportpoint = (CmsExportPoint)i.next();
  if (exportpoint.getUri().equals(m_paramExportpoint)) {
    m_exportpoint = exportpoint;
origin: org.opencms/org.opencms.workplace.tools.modules

while (i.hasNext()) {
  CmsExportPoint exportpoint = (CmsExportPoint)i.next();
  if (exportpoint.getUri().equals(m_paramExportpoint)) {
    m_exportpoint = exportpoint;
origin: org.opencms/org.opencms.workplace.tools.modules

while (i.hasNext()) {
  CmsExportPoint exp = (CmsExportPoint)i.next();
  if (!exp.getUri().equals(exportpoint)) {
    newExportpoints.add(exp);
origin: org.opencms/opencms-core

while (exportPoints.hasNext()) {
  CmsExportPoint point = exportPoints.next();
  resourceloadersElement.addElement(N_EXPORTPOINT).addAttribute(A_URI, point.getUri()).addAttribute(
    A_DESTINATION,
    point.getConfiguredDestination());
origin: org.opencms/opencms-core

while (it.hasNext()) {
  CmsExportPoint point = it.next();
  if ((point.getUri().endsWith(module.getName() + "/lib/")
    || point.getUri().endsWith(module.getName() + "/lib"))
    && point.getConfiguredDestination().equals("WEB-INF/lib/")) {
    it.remove();
origin: org.opencms/opencms-solr

exportpointsElement.addElement(I_CmsXmlConfiguration.N_EXPORTPOINT).addAttribute(
  I_CmsXmlConfiguration.A_URI,
  point.getUri()).addAttribute(I_CmsXmlConfiguration.A_DESTINATION, point.getConfiguredDestination());
origin: org.opencms/opencms-core

exportpointsElement.addElement(I_CmsXmlConfiguration.N_EXPORTPOINT).addAttribute(
  I_CmsXmlConfiguration.A_URI,
  point.getUri()).addAttribute(I_CmsXmlConfiguration.A_DESTINATION, point.getConfiguredDestination());
org.opencms.dbCmsExportPointgetUri

Javadoc

Returns the uri of the OpenCms VFS folder to write as export point.

Popular methods of CmsExportPoint

  • <init>
    Creates a new export point.
  • getConfiguredDestination
    Returns the configured destination path. The configured destination path is always relative to the w
  • getDestinationPath
    Returns the destination path in the "real" file system.
  • clone
  • setDestinationPath
    Dummy method to expose the destination path as bean property. This is required by the org.apache.com
  • setUri
    Sets the uri of the OpenCms VFS folder to write as export point.

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Path (java.nio.file)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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