code
stringlengths
73
34.1k
label
stringclasses
1 value
public static String getSolrRangeString(String from, String to) { // If a parameter is not initialized, use the asterisk '*' operator if (CmsStringUtil.isEmptyOrWhitespaceOnly(from)) { from = "*"; } if (CmsStringUtil.isEmptyOrWhitespaceOnly(to)) { to = "*"; ...
java
public static Collection<ContentStream> toContentStreams(final String str, final String contentType) { if (str == null) { return null; } ArrayList<ContentStream> streams = new ArrayList<>(1); ContentStreamBase ccc = new ContentStreamBase.StringStream(str); ccc.setCo...
java
public static String paramMapToString(final Map<String, String[]> parameters) { final StringBuffer result = new StringBuffer(); for (final String key : parameters.keySet()) { String[] values = parameters.get(key); if (null == values) { result.append(key).append('...
java
String getFacetParamKey(String facet) { I_CmsSearchControllerFacetField fieldFacet = m_result.getController().getFieldFacets().getFieldFacetController().get( facet); if (fieldFacet != null) { return fieldFacet.getConfig().getParamKey(); } I_CmsSearchControllerFac...
java
public static void closeWindow(Component component) { Window window = getWindow(component); if (window != null) { window.close(); } }
java
@SuppressWarnings("unchecked") public static <T> void defaultHandleContextMenuForMultiselect( Table table, CmsContextMenu menu, ItemClickEvent event, List<I_CmsSimpleContextMenuEntry<Collection<T>>> entries) { if (!event.isCtrlKey() && !event.isShiftKey()) { if (...
java
public static IndexedContainer getGroupsOfUser( CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, Function<CmsGroup, CmsCssIcon> iconProvider) { IndexedContainer container = new IndexedContainer(); contain...
java
public static IndexedContainer getPrincipalContainer( CmsObject cms, List<? extends I_CmsPrincipal> list, String captionID, String descID, String iconID, String ouID, String icon, List<FontIcon> iconList) { IndexedContainer res = new IndexedContai...
java
public static void setFilterBoxStyle(TextField searchBox) { searchBox.setIcon(FontOpenCms.FILTER); searchBox.setPlaceholder( org.opencms.ui.apps.Messages.get().getBundle(UI.getCurrent().getLocale()).key( org.opencms.ui.apps.Messages.GUI_EXPLORER_FILTER_0)); searchBo...
java
protected ZipEntry getZipEntry(String filename) throws ZipException { // yes ZipEntry entry = getZipFile().getEntry(filename); // path to file might be relative, too if ((entry == null) && filename.startsWith("/")) { entry = m_zipFile.getEntry(filename.substring(1)); ...
java
protected void appenHtmlFooter(StringBuffer buffer) { if (m_configuredFooter != null) { buffer.append(m_configuredFooter); } else { buffer.append(" </body>\r\n" + "</html>"); } }
java
public void openReport(String newState, A_CmsReportThread thread, String label) { setReport(newState, thread); m_labels.put(thread, label); openSubView(newState, true); }
java
public static CmsUUID readId(JSONObject obj, String key) { String strValue = obj.optString(key); if (!CmsUUID.isValidUUID(strValue)) { return null; } return new CmsUUID(strValue); }
java
public void setSiteRoot(String siteRoot) { if (siteRoot != null) { siteRoot = siteRoot.replaceFirst("/$", ""); } m_siteRoot = siteRoot; }
java
public JSONObject toJson() throws JSONException { JSONObject result = new JSONObject(); if (m_detailId != null) { result.put(JSON_DETAIL, "" + m_detailId); } if (m_siteRoot != null) { result.put(JSON_SITEROOT, m_siteRoot); } if (m_structureId != n...
java
public String updateContextAndGetFavoriteUrl(CmsObject cms) throws CmsException { CmsResourceFilter filter = CmsResourceFilter.IGNORE_EXPIRATION; CmsProject project = null; switch (getType()) { case explorerFolder: CmsResource folder = cms.readResource(getStructureId...
java
public static void openFavoriteDialog(CmsFileExplorer explorer) { try { CmsExplorerFavoriteContext context = new CmsExplorerFavoriteContext(A_CmsUI.getCmsObject(), explorer); CmsFavoriteDialog dialog = new CmsFavoriteDialog(context, new CmsFavoriteDAO(A_CmsUI.getCmsObject())); ...
java
public static CmsResource getDescriptor(CmsObject cms, String basename) { CmsSolrQuery query = new CmsSolrQuery(); query.setResourceTypes(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR.toString()); query.setFilterQueries("filename:\"" + basename + CmsMessageBundleEditorTypes.Descriptor.POSTF...
java
static void showWarning(final String caption, final String description) { Notification warning = new Notification(caption, description, Type.WARNING_MESSAGE, true); warning.setDelayMsec(-1); warning.show(UI.getCurrent().getPage()); }
java
public void setDateOnly(boolean dateOnly) { if (m_dateOnly != dateOnly) { m_dateOnly = dateOnly; if (m_dateOnly) { m_time.removeFromParent(); m_am.removeFromParent(); m_pm.removeFromParent(); } else { m_timeFiel...
java
@UiHandler("m_addButton") void addButtonClick(ClickEvent e) { if (null != m_newDate.getValue()) { m_dateList.addDate(m_newDate.getValue()); m_newDate.setValue(null); if (handleChange()) { m_controller.setDates(m_dateList.getDates()); }...
java
@UiHandler("m_dateList") void dateListValueChange(ValueChangeEvent<SortedSet<Date>> event) { if (handleChange()) { m_controller.setDates(event.getValue()); } }
java
@Override public String remove(Object key) { String result = m_configurationStrings.remove(key); m_configurationObjects.remove(key); return result; }
java
private boolean loadCustomErrorPage( CmsObject cms, HttpServletRequest req, HttpServletResponse res, String rootPath) { try { // get the site of the error page resource CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath); ...
java
private boolean tryCustomErrorPage(CmsObject cms, HttpServletRequest req, HttpServletResponse res, int errorCode) { String siteRoot = OpenCms.getSiteManager().matchRequest(req).getSiteRoot(); CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(siteRoot); if (site != null) { /...
java
private CmsVfsEntryBean buildVfsEntryBeanForQuickSearch( CmsResource resource, Multimap<CmsResource, CmsResource> childMap, Set<CmsResource> filterMatches, Set<String> parentPaths, boolean isRoot) throws CmsException { CmsObject cms = getCmsObject(); String t...
java
protected void doPurge(Runnable afterPurgeAction) { if (LOG.isInfoEnabled()) { LOG.info( org.opencms.flex.Messages.get().getBundle().key( org.opencms.flex.Messages.LOG_FLEXCACHE_WILL_PURGE_JSP_REPOSITORY_0)); } File d; d = new File(getJsp...
java
private void wrongUsage() { String usage = "Usage: java -cp $PATH_TO_OPENCMS_JAR org.opencms.rmi.CmsRemoteShellClient\n" + " -script=[path to script] (optional) \n" + " -registryPort=[port of RMI registry] (optional, default is " + CmsRemoteShellConstants.DEFAULT_PORT ...
java
public void setAddContentInfo(final Boolean doAddInfo) { if ((null != doAddInfo) && doAddInfo.booleanValue() && (null != m_addContentInfoForEntries)) { m_addContentInfoForEntries = Integer.valueOf(DEFAULT_CONTENTINFO_ROWS); } }
java
public void setFileFormat(String fileFormat) { if (fileFormat.toUpperCase().equals(FileFormat.JSON.toString())) { m_fileFormat = FileFormat.JSON; } }
java
private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQuery(); m_searc...
java
private I_CmsSearchResultWrapper getSearchResults() { // The second parameter is just ignored - so it does not matter m_searchController.updateFromRequestParameters(pageContext.getRequest().getParameterMap(), false); I_CmsSearchControllerCommon common = m_searchController.getCommon(); /...
java
public Date toDate(Object date) { Date d = null; if (null != date) { if (date instanceof Date) { d = (Date)date; } else if (date instanceof Long) { d = new Date(((Long)date).longValue()); } else { try { ...
java
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled)...
java
public boolean needToSetCategoryFolder() { if (m_adeModuleVersion == null) { return true; } CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0"); return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1); }
java
public void setWeekDays(SortedSet<WeekDay> weekDays) { final SortedSet<WeekDay> newWeekDays = null == weekDays ? new TreeSet<WeekDay>() : weekDays; SortedSet<WeekDay> currentWeekDays = m_model.getWeekDays(); if (!currentWeekDays.equals(newWeekDays)) { conditionallyRemoveExceptionsOn...
java
protected void switchTab() { Component tab = m_tab.getSelectedTab(); int pos = m_tab.getTabPosition(m_tab.getTab(tab)); if (m_isWebOU) { if (pos == 0) { pos = 1; } } m_tab.setSelectedTab(pos + 1); }
java
protected void onEditTitleTextBox(TextBox box) { if (m_titleEditHandler != null) { m_titleEditHandler.handleEdit(m_title, box); return; } String text = box.getText(); box.removeFromParent(); m_title.setText(text); m_title.setVisible(true); }
java
public void setPatternScheme(final boolean isByWeekDay, final boolean fireChange) { if (isByWeekDay ^ (null != m_model.getWeekDay())) { removeExceptionsOnChange(new Command() { public void execute() { if (isByWeekDay) { m_model.setWeekOf...
java
public void setWeekDay(String dayString) { final WeekDay day = WeekDay.valueOf(dayString); if (m_model.getWeekDay() != day) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDay(day); onValueChange(); ...
java
public void weeksChange(String week, Boolean value) { final WeekOfMonth changedWeek = WeekOfMonth.valueOf(week); boolean newValue = (null != value) && value.booleanValue(); boolean currentValue = m_model.getWeeksOfMonth().contains(changedWeek); if (newValue != currentValue) { ...
java
public void validateAliases( final CmsUUID uuid, final Map<String, String> aliasPaths, final AsyncCallback<Map<String, String>> callback) { CmsRpcAction<Map<String, String>> action = new CmsRpcAction<Map<String, String>>() { /** * @see org.opencms.gwt.c...
java
void setDayOfMonth(String day) { final int i = CmsSerialDateUtil.toIntWithDefault(day, -1); if (m_model.getDayOfMonth() != i) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setDayOfMonth(i); onValueChange(...
java
private String convertOutputToHtml(String content) { if (content.length() == 0) { return ""; } StringBuilder buffer = new StringBuilder(); for (String line : content.split("\n")) { buffer.append(CmsEncoder.escapeXml(line) + "<br>"); } return buffe...
java
private void writeToDelegate(byte[] data) { if (m_delegateStream != null) { try { m_delegateStream.write(data); } catch (IOException e) { throw new RuntimeException(e); } } }
java
public static String getStatusForItem(Long lastActivity) { if (lastActivity.longValue() < CmsSessionsTable.INACTIVE_LIMIT) { return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_ACTIVE_0); } return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROAD...
java
public static void showUserInfo(CmsSessionInfo session) { final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide); CmsUserInfoDialog dialog = new CmsUserInfoDialog(session, new Runnable() { public void run() { window.close(); } }); ...
java
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); switch (DOM.eventGetType(event)) { case Event.ONMOUSEUP: Event.releaseCapture(m_slider.getElement()); m_capturedMouse = false; break; c...
java
private void addChildrenForGroupsNode(I_CmsOuTreeType type, String ouItem) { try { // Cut of type-specific prefix from ouItem with substring() List<CmsGroup> groups = m_app.readGroupsForOu(m_cms, ouItem.substring(1), type, false); for (CmsGroup group : groups) { ...
java
private void addChildrenForRolesNode(String ouItem) { try { List<CmsRole> roles = OpenCms.getRoleManager().getRoles(m_cms, ouItem.substring(1), false); CmsRole.applySystemRoleOrder(roles); for (CmsRole role : roles) { String roleId = ouItem + "/" + role.getId...
java
public static boolean checkConfiguredInModules() { Boolean result = m_moduleCheckCache.get(); if (result == null) { result = Boolean.valueOf(getConfiguredTemplateMapping() != null); m_moduleCheckCache.set(result); } return result.booleanValue(); }
java
@SuppressWarnings("unused") public static void addTo( AbstractSingleComponentContainer componentContainer, int scrollBarrier, int barrierMargin, String styleName) { new CmsScrollPositionCss(componentContainer, scrollBarrier, barrierMargin, styleName); }
java
protected boolean checkvalue(String colorvalue) { boolean valid = validateColorValue(colorvalue); if (valid) { if (colorvalue.length() == 4) { char[] chr = colorvalue.toCharArray(); for (int i = 1; i < 4; i++) { String foo = String.valueOf...
java
protected AllowableActions collectAllowableActions(CmsObject cms, CmsResource file) { try { if (file == null) { throw new IllegalArgumentException("File must not be null!"); } CmsLock lock = cms.getLock(file); CmsUser user = cms.getReques...
java
public static String getStatusText(int nHttpStatusCode) { Integer intKey = new Integer(nHttpStatusCode); if (!mapStatusCodes.containsKey(intKey)) { return ""; } else { return mapStatusCodes.get(intKey); } }
java
private boolean addType(TypeDefinition type) { if (type == null) { return false; } if (type.getBaseTypeId() == null) { return false; } // find base type TypeDefinition baseType = null; if (type.getBaseTypeId() == BaseTypeId.CMIS_DOCUMENT...
java
public String buildRadio(String propName) throws CmsException { String propVal = readProperty(propName); StringBuffer result = new StringBuffer("<table border=\"0\"><tr>"); result.append("<td><input type=\"radio\" value=\"true\" onClick=\"checkNoIntern()\" name=\"").append( propName...
java
public void setCategoryDisplayOptions( String displayCategoriesByRepository, String displayCategorySelectionCollapsed) { m_displayCategoriesByRepository = Boolean.parseBoolean(displayCategoriesByRepository); m_displayCategorySelectionCollapsed = Boolean.parseBoolean(displayCategorySelec...
java
protected boolean showMoreEntries(Calendar nextDate, int previousOccurrences) { switch (getSerialEndType()) { case DATE: boolean moreByDate = nextDate.getTimeInMillis() < m_endMillis; boolean moreByOccurrences = previousOccurrences < CmsSerialDateUtil.getMaxEvents();...
java
private SortedSet<Date> calculateDates() { if (null == m_allDates) { SortedSet<Date> result = new TreeSet<>(); if (isAnyDatePossible()) { Calendar date = getFirstDate(); int previousOccurrences = 0; while (showMoreEntries(date, previousOcc...
java
private SortedSet<Date> filterExceptions(SortedSet<Date> dates) { SortedSet<Date> result = new TreeSet<Date>(); for (Date d : dates) { if (!m_exceptions.contains(d)) { result.add(d); } } return result; }
java
private void setHeaderList(Map<String, List<String>> headers, String name, String value) { List<String> values = new ArrayList<String>(); values.add(SET_HEADER + value); headers.put(name, values); }
java
public static String changeFileNameSuffixTo(String filename, String suffix) { int dotPos = filename.lastIndexOf('.'); if (dotPos != -1) { return filename.substring(0, dotPos + 1) + suffix; } else { // the string has no suffix return filename; } }
java
public static final long parseDuration(String durationStr, long defaultValue) { durationStr = durationStr.toLowerCase().trim(); Matcher matcher = DURATION_NUMBER_AND_UNIT_PATTERN.matcher(durationStr); long millis = 0; boolean matched = false; while (matcher.find()) { ...
java
public static StringTemplateGroup readStringTemplateGroup(InputStream stream) { try { return new StringTemplateGroup( new InputStreamReader(stream, "UTF-8"), DefaultTemplateLexer.class, new StringTemplateErrorListener() { @Suppres...
java
public static void fire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping) { if (TYPE != null) { CmsDateBoxEvent event = new CmsDateBoxEvent(date, isTyping); source.fireEvent(event); } }
java
protected CmsProject createAndSetModuleImportProject(CmsObject cms, CmsModule module) throws CmsException { CmsProject importProject = cms.createProject( org.opencms.module.Messages.get().getBundle(cms.getRequestContext().getLocale()).key( org.opencms.module.Messages.GUI_IMPORT_MODU...
java
protected void deleteConflictingResources(CmsObject cms, CmsModule module, Map<CmsUUID, CmsUUID> conflictingIds) throws CmsException, Exception { CmsProject conflictProject = cms.createProject( "Deletion of conflicting resources for " + module.getName(), "Deletion of conflicting res...
java
protected void parseLinks(CmsObject cms) throws CmsException { List<CmsResource> linkParseables = new ArrayList<>(); for (CmsResourceImportData resData : m_moduleData.getResourceData()) { CmsResource importRes = resData.getImportResource(); if ((importRes != null) && m_importIds...
java
protected void processDeletions(CmsObject cms, List<CmsResource> toDelete) throws CmsException { Collections.sort(toDelete, (a, b) -> b.getRootPath().compareTo(a.getRootPath())); for (CmsResource deleteRes : toDelete) { m_report.print( org.opencms.importexport.Messages.get()...
java
protected void runImportScript(CmsObject cms, CmsModule module) { LOG.info("Executing import script for module " + module.getName()); m_report.println( org.opencms.module.Messages.get().container(org.opencms.module.Messages.RPT_IMPORT_SCRIPT_HEADER_0), I_CmsReport.FORMAT_HEADLIN...
java
public Map<String, List<Locale>> getAvailableLocales() { if (m_availableLocales == null) { // create lazy map only on demand m_availableLocales = CmsCollectionsGenericWrapper.createLazyMap(new CmsAvailableLocaleLoaderTransformer()); } return m_availableLocales; }
java
private static CmsObject adjustSiteRootIfNecessary(final CmsObject cms, final CmsModule module) throws CmsException { CmsObject cmsClone; if ((null == module.getSite()) || cms.getRequestContext().getSiteRoot().equals(module.getSite())) { cmsClone = cms; } else { cmsC...
java
public boolean shouldIncrementVersionBasedOnResources(CmsObject cms) throws CmsException { if (m_checkpointTime == 0) { return true; } // adjust the site root, if necessary CmsObject cmsClone = adjustSiteRootIfNecessary(cms, this); // calculate the module resources...
java
public Class<?> getColumnType(int c) { for (int r = 0; r < m_data.size(); r++) { Object val = m_data.get(r).get(c); if (val != null) { return val.getClass(); } } return Object.class; }
java
public String getCsv() { StringWriter writer = new StringWriter(); try (CSVWriter csv = new CSVWriter(writer)) { List<String> headers = new ArrayList<>(); for (String col : m_columns) { headers.add(col); } csv.writeNext(headers.toArray(new...
java
protected String getBasePath(String rootPath) { if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) { return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length()); } return rootPath; }
java
public static String getStringOption(Map<String, String> configOptions, String optionKey, String defaultValue) { String result = configOptions.get(optionKey); return null != result ? result : defaultValue; }
java
private String generateValue() { String result = ""; for (CmsCheckBox checkbox : m_checkboxes) { if (checkbox.isChecked()) { result += checkbox.getInternalValue() + ","; } } if (result.contains(",")) { result = result.substrin...
java
protected void runQuery() { String pool = m_pool.getValue(); String stmt = m_script.getValue(); if (stmt.trim().isEmpty()) { return; } CmsStringBufferReport report = new CmsStringBufferReport(Locale.ENGLISH); List<Throwable> errors = new ArrayList<>(); ...
java
public static Resource getSetupPage(I_SetupUiContext context, String name) { String path = CmsStringUtil.joinPaths(context.getSetupBean().getContextPath(), CmsSetupBean.FOLDER_SETUP, name); Resource resource = new ExternalResource(path); return resource; }
java
protected void showStep(A_CmsSetupStep step) { Window window = newWindow(); window.setContent(step); window.setCaption(step.getTitle()); A_CmsUI.get().addWindow(window); window.center(); }
java
protected void updateStep(int stepNo) { if ((0 <= stepNo) && (stepNo < m_steps.size())) { Class<? extends A_CmsSetupStep> cls = m_steps.get(stepNo); A_CmsSetupStep step; try { step = cls.getConstructor(I_SetupUiContext.class).newInstance(this); ...
java
protected void appendFacetOption(StringBuffer query, final String name, final String value) { query.append(" facet.").append(name).append("=").append(value); }
java
public void setEditedFilePath(final String editedFilePath) { m_filePathField.setReadOnly(false); m_filePathField.setValue(editedFilePath); m_filePathField.setReadOnly(true); }
java
public void updateShownOptions(boolean showModeSwitch, boolean showAddKeyOption) { if (showModeSwitch != m_showModeSwitch) { m_upperLeftComponent.removeAllComponents(); m_upperLeftComponent.addComponent(m_languageSwitch); if (showModeSwitch) { m_upperLeftComp...
java
void handleAddKey() { String key = m_addKeyInput.getValue(); if (m_listener.handleAddKey(key)) { Notification.show( key.isEmpty() ? m_messages.key(Messages.GUI_NOTIFICATION_MESSAGEBUNDLEEDITOR_EMPTY_KEY_SUCCESSFULLY_ADDED_0) : m_messages.key(M...
java
void setLanguage(final Locale locale) { if (!m_languageSelect.getValue().equals(locale)) { m_languageSelect.setValue(locale); } }
java
private Component createAddKeyButton() { // the "+" button Button addKeyButton = new Button(); addKeyButton.addStyleName("icon-only"); addKeyButton.addStyleName("borderless-colored"); addKeyButton.setDescription(m_messages.key(Messages.GUI_ADD_KEY_0)); addKeyButton.setIc...
java
private void initModeSwitch(final EditMode current) { FormLayout modes = new FormLayout(); modes.setHeight("100%"); modes.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT); m_modeSelect = new ComboBox(); m_modeSelect.setCaption(m_messages.key(Messages.GUI_VIEW_SWITCHER_LABEL_...
java
private void initUpperLeftComponent() { m_upperLeftComponent = new HorizontalLayout(); m_upperLeftComponent.setHeight("100%"); m_upperLeftComponent.setSpacing(true); m_upperLeftComponent.setDefaultComponentAlignment(Alignment.MIDDLE_RIGHT); m_upperLeftComponent.addComponent(m_la...
java
public CmsScheduledJobInfo getJob(String id) { Iterator<CmsScheduledJobInfo> it = m_jobs.iterator(); while (it.hasNext()) { CmsScheduledJobInfo job = it.next(); if (job.getId().equals(id)) { return job; } } // not found return ...
java
@UiHandler({"m_atMonth", "m_everyMonth"}) void onMonthChange(ValueChangeEvent<String> event) { if (handleChange()) { m_controller.setMonth(event.getValue()); } }
java
@UiHandler("m_atNumber") void onWeekOfMonthChange(ValueChangeEvent<String> event) { if (handleChange()) { m_controller.setWeekOfMonth(event.getValue()); } }
java
public CmsResource buildResource() { return new CmsResource( m_structureId, m_resourceId, m_rootPath, m_type, m_flags, m_projectLastModified, m_state, m_dateCreated, m_userCreated, m_dateLast...
java
public List<CmsProject> getAllAccessibleProjects(CmsObject cms, String ouFqn, boolean includeSubOus) throws CmsException { CmsOrganizationalUnit orgUnit = readOrganizationalUnit(cms, ouFqn); return (m_securityManager.getAllAccessibleProjects(cms.getRequestContext(), orgUnit, includeSubOus)); }
java
public CmsJspDateSeriesBean getToDateSeries() { if (m_dateSeries == null) { m_dateSeries = new CmsJspDateSeriesBean(this, m_cms.getRequestContext().getLocale()); } return m_dateSeries; }
java
public void copyPageOnly(CmsResource originalPage, String targetPageRootPath) throws CmsException, NoCustomReplacementException { if ((null == originalPage) || !OpenCms.getResourceManager().getResourceType(originalPage).getTypeName().equals( CmsResourceTypeXmlContainerPage.getSt...
java
private void attachLocaleGroups(CmsResource copiedPage) throws CmsException { CmsLocaleGroupService localeGroupService = getRootCms().getLocaleGroupService(); if (Status.linkable == localeGroupService.checkLinkable(m_originalPage, copiedPage)) { try { localeGroupService.atta...
java
protected List<CmsUUID> undelete() throws CmsException { List<CmsUUID> modifiedResources = new ArrayList<CmsUUID>(); CmsObject cms = m_context.getCms(); for (CmsResource resource : m_context.getResources()) { CmsLockActionRecord actionRecord = null; try { ...
java