/** * Translates a group name using the configured {@link I_CmsGroupNameTranslation}.<p> * * @param groupName the group name * @param keepOu if true, the OU will be appended to the translated name * * @return the translated group name */ public String translateGroupName(String groupName, boolean keepOu) { I_CmsGroupNameTranslation translation = getGroupNameTranslation(); return translation.translateGroupName(groupName, keepOu); }
/** * Performs certain clear cache actions if the top frame is reloaded.<p> * * @param settings the current users workplace settings */ protected void topFrameReload(CmsWorkplaceSettings settings) { // ensure to read the settings from the database initUserSettings(getCms(), settings, true); // reset the HTML list in order to force a full reload settings.setListObject(null); } }
/** * Adds an account info.<p> * * @param field the field * @param addInfoKey the additional info key * @param editable the editable flag */ public void addAccountInfo(String field, String addInfoKey, String editable) { addAccountInfo(new CmsAccountInfo(field, addInfoKey, editable)); }
/** * Builds a button row with a single "close" button.<p> * * @param closeAttribute additional attributes for the "close" button * * @return the button row */ public String dialogButtonsClose(String closeAttribute) { return dialogButtons(new int[] {BUTTON_CLOSE}, new String[] {closeAttribute}); }
/** * Returns the end html for the content area of the dialog window.<p> * * @return the end html for the content area of the dialog window */ public String dialogContentEnd() { return dialogContent(HTML_END, null); }
/** * Builds the end of a dialog line without break (display: block).<p> * * @return the row end segment */ public String dialogRowEnd() { return dialogRow(HTML_END); }
/** * Returns the end html for the outer dialog window border.<p> * * @return the end html for the outer dialog window border */ public String dialogEnd() { return dialog(HTML_END, null); }
/** * Builds the start html of the page, including setting of DOCTYPE and * inserting a header with the content-type.<p> * * @return the start html of the page */ public String htmlStart() { return pageHtml(HTML_START, null); }
/** * Public constructor.<p> * * @param jsp the initialized JSP context */ public CmsWorkplace(CmsJspActionElement jsp) { initWorkplaceMembers(jsp); }
/** * Builds the end html of the body.<p> * * @return the end html of the body */ public String bodyEnd() { return pageBody(HTML_END, null, null); }
/** * Returns the html for a button bar.<p> * * @param segment the HTML segment (START / END) * * @return a button bar html start / end segment */ public String buttonBar(int segment) { return buttonBar(segment, null); }
/** * Returns the default html for a workplace page, including setting of DOCTYPE and * inserting a header with the content-type.<p> * * @param segment the HTML segment (START / END) * @param title the title of the page, if null no title tag is inserted * @return the default html for a workplace page */ public String pageHtml(int segment, String title) { return pageHtmlStyle(segment, title, null); }
/** * @see org.opencms.i18n.I_CmsLocaleHandler#initHandler(org.opencms.file.CmsObject) */ public void initHandler(CmsObject cms) { // initialize the workplace locale set m_locales = initWorkplaceLocales(cms); }
/** * Builds the end HTML for a block with 3D border in the dialog content area.<p> * * @return 3D block start / end segment */ public String dialogBlockEnd() { return dialogBlock(HTML_END, null, false); }
/** * Builds the start of a white box in the dialog content area.<p> * * @return the white box start segment */ public String dialogWhiteBoxStart() { return dialogWhiteBox(HTML_START); }
/** * Performs certain clear cache actions if the top frame is reloaded.<p> * * @param settings the current users workplace settings */ protected void topFrameReload(CmsWorkplaceSettings settings) { // ensure to read the settings from the database initUserSettings(getCms(), settings, true); // reset the HTML list in order to force a full reload settings.setListObject(null); } }
/** * Builds a button row with a single "ok" button.<p> * * @return the button row */ public String dialogButtonsOk() { return dialogButtons(new int[] {BUTTON_OK}, new String[1]); }
/** * Returns the start html for the content area of the dialog window.<p> * * @param title the title for the dialog * * @return the start html for the content area of the dialog window */ public String dialogContentStart(String title) { return dialogContent(HTML_START, title); }
/** * Builds the start of a dialog line without break (display: block).<p> * * @return the row start segment */ public String dialogRowStart() { return dialogRow(HTML_START); }
/** * Builds a button row with a single "ok" button.<p> * * @param okAttribute additional attributes for the "ok" button * * @return the button row */ public String dialogButtonsOk(String okAttribute) { return dialogButtons(new int[] {BUTTON_OK}, new String[] {okAttribute}); }