/** * Returns the "workplace restrict explorer view" setting.<p> * * @return the "workplace restrict explorer view" setting */ public String getParamTabWpRestrictExplorerView() { return "" + m_userSettings.getRestrictExplorerView(); }
/** * Returns the "workplace restrict explorer view" setting.<p> * * @return the "workplace restrict explorer view" setting */ public String getParamTabWpRestrictExplorerView() { return "" + m_userSettings.getRestrictExplorerView(); }
/** * Indicates if the site selector should be shown in the top frame depending on the count of accessible sites.<p> * * @return true if site selector should be shown, otherwise false */ public boolean showSiteSelector() { if (getSettings().getUserSettings().getRestrictExplorerView()) { // restricted explorer view to site and folder, do not show site selector return false; } // count available sites int siteCount = OpenCms.getSiteManager().getAvailableSites(getCms(), true).size(); return (siteCount > 1); }
/** * Indicates if the site selector should be shown in the top frame depending on the count of accessible sites.<p> * * @return true if site selector should be shown, otherwise false */ public boolean showSiteSelector() { if (getSettings().getUserSettings().getRestrictExplorerView()) { // restricted explorer view to site and folder, do not show site selector return false; } // count available sites int siteCount = OpenCms.getSiteManager().getAvailableSites(getCms(), true).size(); return (siteCount > 1); }
/** * Determines the root folder of the current tree dependent on users setting of explorer view restriction.<p> * * @return the root folder resource name to display */ public String getRootFolder() { String folder = "/"; if (getSettings().getUserSettings().getRestrictExplorerView()) { folder = getSettings().getUserSettings().getStartFolder(); } try { getCms().readFolder(folder, CmsResourceFilter.IGNORE_EXPIRATION); return folder; } catch (CmsException e) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(e); } return "/"; } }
/** * Determines the root folder of the current tree dependent on users setting of explorer view restriction.<p> * * @return the root folder resource name to display */ public String getRootFolder() { String folder = "/"; if (getSettings().getUserSettings().getRestrictExplorerView()) { folder = getSettings().getUserSettings().getStartFolder(); } try { getCms().readFolder(folder, CmsResourceFilter.IGNORE_EXPIRATION); return folder; } catch (CmsException e) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(e); } return "/"; } }
/** * Determines the root folder of the current tree dependent on users setting of explorer view restriction.<p> * * @return the root folder resource name to display */ public String getRootFolder() { if (m_rootFolder == null) { String folder = "/"; if ((getTreeType() == null) && getSettings().getUserSettings().getRestrictExplorerView()) { folder = getSettings().getUserSettings().getStartFolder(); } try { getCms().readFolder(folder, CmsResourceFilter.IGNORE_EXPIRATION); } catch (CmsException e) { if (LOG.isInfoEnabled()) { LOG.info(e); } folder = "/"; } m_rootFolder = folder; } return m_rootFolder; }
/** * Determines the root folder of the current tree dependent on users setting of explorer view restriction.<p> * * @return the root folder resource name to display */ public String getRootFolder() { if (m_rootFolder == null) { String folder = "/"; if ((getTreeType() == null) && getSettings().getUserSettings().getRestrictExplorerView()) { folder = getSettings().getUserSettings().getStartFolder(); } try { getCms().readFolder(folder, CmsResourceFilter.IGNORE_EXPIRATION); } catch (CmsException e) { if (LOG.isInfoEnabled()) { LOG.info(e); } folder = "/"; } m_rootFolder = folder; } return m_rootFolder; }
for (int i = 0; i < reloadTreeFolders.size(); i++) { reloadFolder = (String)reloadTreeFolders.get(i); if (getSettings().getUserSettings().getRestrictExplorerView()) {
for (int i = 0; i < reloadTreeFolders.size(); i++) { reloadFolder = reloadTreeFolders.get(i); if (getSettings().getUserSettings().getRestrictExplorerView()) {
if (getRestrictExplorerView() != OpenCms.getWorkplaceManager().getDefaultUserSettings().getRestrictExplorerView()) { m_user.setAdditionalInfo( PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + CmsWorkplaceConfiguration.N_RESTRICTEXPLORERVIEW, Boolean.valueOf(getRestrictExplorerView())); } else if (cms != null) { m_user.deleteAdditionalInfo(
if (getRestrictExplorerView() != OpenCms.getWorkplaceManager().getDefaultUserSettings().getRestrictExplorerView()) { m_user.setAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + CmsWorkplaceConfiguration.N_RESTRICTEXPLORERVIEW, Boolean.valueOf(getRestrictExplorerView())); } else if (cms != null) { m_user.deleteAdditionalInfo(PREFERENCES