/** * Returns the current users workplace locale settings.<p> * * @return the current users workplace locale setting */ public Locale getLocale() { return m_settings.getUserSettings().getLocale(); }
/** * @see org.opencms.widgets.I_CmsWidgetDialog#getButtonStyle() */ public int getButtonStyle() { return getSettings().getUserSettings().getEditorButtonStyle(); }
/** * @see org.opencms.widgets.I_CmsWidgetDialog#getButtonStyle() */ public int getButtonStyle() { return getSettings().getUserSettings().getEditorButtonStyle(); }
/** * @see org.opencms.widgets.I_CmsWidgetDialog#getButtonStyle() */ public int getButtonStyle() { return getSettings().getUserSettings().getEditorButtonStyle(); }
/** * Determines whether to show the export settings dialog depending on the users settings.<p> * * @return true if dialogs should be shown, otherwise false */ public boolean showExportSettings() { return getSettings().getUserSettings().getDialogShowExportSettings(); }
/** * @see org.opencms.widgets.I_CmsWidgetDialog#getButtonStyle() */ public int getButtonStyle() { return getSettings().getUserSettings().getEditorButtonStyle(); }
/** * Returns the current users workplace locale settings.<p> * * @return the current users workplace locale setting */ public Locale getLocale() { return getSettings().getUserSettings().getLocale(); }
/** * Determines whether to show the export settings dialog depending on the users settings.<p> * * @return true if dialogs should be shown, otherwise false */ public boolean showExportSettings() { return getSettings().getUserSettings().getDialogShowExportSettings(); }
/** * Determines whether to show the lock dialog depending on the users settings and the dilaog type.<p> * * In case of locking a folder, a confirmation dialog is needed if any sub resources are already locked.<p> * * @return true if dialogs should be shown, otherwise false */ public boolean showConfirmation() { boolean showConfirmation = getSettings().getUserSettings().getDialogShowLock(); if (DIALOG_TYPE_LOCK.equals(getParamDialogtype())) { // in case of locking resources, check if there are locked sub resources in the selected folder(s) showConfirmation = showConfirmation || (getLockedResources().size() > 0); } return showConfirmation; }
/** * Determines whether to show the lock dialog depending on the users settings and the dilaog type.<p> * * In case of locking a folder, a confirmation dialog is needed if any sub resources are already locked.<p> * * @return true if dialogs should be shown, otherwise false */ public boolean showConfirmation() { boolean showConfirmation = getSettings().getUserSettings().getDialogShowLock(); if (DIALOG_TYPE_LOCK.equals(getParamDialogtype())) { // in case of locking resources, check if there are locked sub resources in the selected folder(s) showConfirmation = showConfirmation || (getLockedResources().size() > 0); } return showConfirmation; }
/** * Returns the type of this report.<p> * * @return the type of this report */ public String getParamReportType() { if (m_paramReportType == null) { // the default report type is the simple report setParamReportType(getSettings().getUserSettings().getWorkplaceReportType()); } return m_paramReportType; }
/** * Returns the type of this report.<p> * * @return the type of this report */ public String getParamReportType() { if (m_paramReportType == null) { // the default report type is the simple report setParamReportType(getSettings().getUserSettings().getWorkplaceReportType()); } return m_paramReportType; }
/** * Returns true if the user has enabled synchronization.<p> * * @return true if the user has enabled synchronization */ public boolean isSyncEnabled() { CmsSynchronizeSettings syncSettings = getSettings().getUserSettings().getSynchronizeSettings(); return (syncSettings != null) && syncSettings.isSyncEnabled(); }
/** * Returns true if the user has enabled synchronization.<p> * * @return true if the user has enabled synchronization */ public boolean isSyncEnabled() { CmsSynchronizeSettings syncSettings = getSettings().getUserSettings().getSynchronizeSettings(); return (syncSettings != null) && syncSettings.isSyncEnabled(); }
/** * Replaces the site title, if necessary.<p> * * @param title the site title * * @return the new site title */ protected String substituteSiteTitle(String title) { return substituteSiteTitleStatic(title, getSettings().getUserSettings().getLocale()); }
/** * 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); }
/** * Gets the select options for the language selector.<p> * * @return the select options */ public SelectOptions getOptionsForLanguage() { return getOptionsForLanguageStatic(getSettings().getUserSettings().getLocale(), m_userSettings.getLocale()); }
/** * 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); }
/** * Gets the site select options.<p> * * @return the site select options */ public SelectOptions getSiteSelectOptions() { return getSiteSelectOptionsStatic( getCms(), m_userSettings.getStartSite(), getSettings().getUserSettings().getLocale()); }
/** * Returns the html for the "preferences" button depending on the current users permissions and * the default workplace settings.<p> * * @return the html for the "preferences" button */ public String getPreferencesButton() { int buttonStyle = getSettings().getUserSettings().getWorkplaceButtonStyle(); if (!getCms().getRequestContext().currentUser().isManaged()) { return button( "../commons/preferences.jsp", "body", "preferences.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } else { return button(null, null, "preferences_in.png", Messages.GUI_BUTTON_PREFERENCES_0, buttonStyle); } }