/** * @see java.lang.Object#toString() */ @Override public String toString() { return "[" + getClass().getName() + ", uri: " + m_uri + ", destination: " + getDestinationPath() + "]"; } }
/** * 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()); } } }
/** * 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()); } } }
/** * @see java.lang.Object#clone() */ @Override public Object clone() { CmsExportPoint clone = new CmsExportPoint(m_uri, m_configuredDestination); clone.setDestinationPath(getDestinationPath()); return clone; }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * @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; }