/** * Returns the current resource to be displayed in the explorer.<p> * * @return the current resource to be displayed in the explorer */ public String getExplorerResource() { // get the current explorer mode String mode = getExplorerMode(); if (mode == null) { mode = CmsExplorer.VIEW_EXPLORER; } if (CmsExplorer.VIEW_EXPLORER.equals(mode)) { // append the current site to the key when in explorer view mode mode += "_" + getSite() + "/"; } // get the resource for the given mode String resource = (String)m_explorerResource.get(mode); if (resource == null) { resource = "/"; } return resource; }
/** * Returns the current resource to be displayed in the explorer.<p> * * @return the current resource to be displayed in the explorer */ public String getExplorerResource() { // get the current explorer mode String mode = getExplorerMode(); if (mode == null) { mode = CmsWorkplace.VIEW_EXPLORER; } if (CmsWorkplace.VIEW_EXPLORER.equals(mode)) { // append the current site to the key when in explorer view mode mode += "_" + getSite() + "/"; } // get the resource for the given mode String resource = m_explorerResource.get(mode); if (resource == null) { resource = "/"; } return resource; }
String mode = getExplorerMode(); if (mode == null) { mode = CmsWorkplace.VIEW_EXPLORER; && (!CmsWorkplace.VIEW_GALLERY.equals(getExplorerMode()))) {
String mode = getExplorerMode(); if (mode == null) { mode = CmsExplorer.VIEW_EXPLORER; && (!CmsExplorer.VIEW_GALLERY.equals(getExplorerMode()))) {
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List getListItems() throws CmsException { if (getSettings().getExplorerMode() != null) { CmsListColumnDefinition nameCol = getList().getMetadata().getColumnDefinition(LIST_COLUMN_NAME); if (!(getSettings().getExplorerMode().equals(CmsExplorer.VIEW_GALLERY) || getSettings().getExplorerMode().equals( CmsExplorer.VIEW_LIST))) { nameCol.setName(org.opencms.workplace.explorer.Messages.get().container( org.opencms.workplace.explorer.Messages.GUI_INPUT_NAME_0)); } else { nameCol.setName(org.opencms.workplace.explorer.Messages.get().container( org.opencms.workplace.explorer.Messages.GUI_INPUT_PATH_0)); } } return getCollector().getListItems(null); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() throws CmsException { if (getSettings().getExplorerMode() != null) { CmsListColumnDefinition nameCol = getList().getMetadata().getColumnDefinition(LIST_COLUMN_NAME); if (!(getSettings().getExplorerMode().equals(CmsExplorer.VIEW_GALLERY) || getSettings().getExplorerMode().equals(CmsExplorer.VIEW_LIST))) { nameCol.setName( org.opencms.workplace.explorer.Messages.get().container( org.opencms.workplace.explorer.Messages.GUI_INPUT_NAME_0)); } else { nameCol.setName( org.opencms.workplace.explorer.Messages.get().container( org.opencms.workplace.explorer.Messages.GUI_INPUT_PATH_0)); } } return getCollector().getListItems(null); }
boolean listView = VIEW_LIST.equals(getSettings().getExplorerMode()); content.append(getSettings().getExplorerMode()); content.append("\";\n"); content.append("');\n"); boolean writeAccess = VIEW_EXPLORER.equals(getSettings().getExplorerMode()); if (writeAccess) { writeAccess = getCms().isInsideCurrentProject(currentResourceName);
if (VIEW_LIST.equals(getSettings().getExplorerMode())) { } else if (VIEW_GALLERY.equals(getSettings().getExplorerMode())) {
boolean listView = VIEW_LIST.equals(getSettings().getExplorerMode()); content.append(CmsEncoder.escapeXml(getSettings().getExplorerMode())); content.append("\";\n"); String additionalParams = getJsp().getRequest().getParameter(CmsExplorer.PARAMETER_CONTEXTMENUPARAMS); content.append("');\n"); boolean writeAccess = VIEW_EXPLORER.equals(getSettings().getExplorerMode()); if (writeAccess) { writeAccess = getCms().isInsideCurrentProject(currentResourceName);
if (VIEW_LIST.equals(getSettings().getExplorerMode())) { } else if (VIEW_GALLERY.equals(getSettings().getExplorerMode())) {
} else { if (!(VIEW_GALLERY.equals(settings.getExplorerMode()) || VIEW_LIST.equals(settings.getExplorerMode()))) { settings.setExplorerMode(VIEW_EXPLORER); if (getSettings().getExplorerMode().equals(CmsExplorer.VIEW_EXPLORER)) { if (getSettings().getExplorerMode().equals(CmsExplorer.VIEW_LIST)) {
if (!(VIEW_GALLERY.equals(settings.getExplorerMode()) || VIEW_LIST.equals(settings.getExplorerMode()))) { settings.setExplorerMode(VIEW_EXPLORER); if (getSettings().getExplorerMode().equals(CmsExplorer.VIEW_EXPLORER)) { if (getSettings().getExplorerMode().equals(CmsExplorer.VIEW_LIST)) {
/** * Initializes the parameters.<p> */ private void initParams() { Object o; if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) { // read params from config o = null; } else { // this is not the initial call, get params from session o = getDialogObject(); } if (!(o instanceof CmsSearchWorkplaceBean)) { String oldExplorerMode = getSettings().getExplorerMode(); getSettings().setExplorerMode(null); String explorerResource = getSettings().getExplorerResource(); getSettings().setExplorerMode(oldExplorerMode); m_search = new CmsSearchWorkplaceBean(explorerResource); } else { // reuse params stored in session m_search = (CmsSearchWorkplaceBean)o; } }
boolean galleryView = VIEW_GALLERY.equals(getSettings().getExplorerMode()); boolean listView = VIEW_LIST.equals(getSettings().getExplorerMode());
boolean galleryView = VIEW_GALLERY.equals(getSettings().getExplorerMode()); boolean listView = VIEW_LIST.equals(getSettings().getExplorerMode());