Private method used to show another page.

@param pageModelKey the mdoelKey for the page to show
773041
private void showPage(final UniqueKey<? extends Model> pageModelKey, final Wave wave) {
        if (pageModelKey != null && !pageModelKey.equals(this.currentModelKey)) {

            LOGGER.info("Show Page Model: " + pageModelKey.toString());

            // Create the Wave Bean that will hold all data processed by chained commands
            final DisplayModelWaveBean waveBean = DisplayModelWaveBean.create()
                                                                      // Define the placeholder that will receive the content
                                                                      .childrenPlaceHolder(view().node().getChildren())
                                                                      // Allow to add element behind the stack to allow transition
                                                                      .appendChild(false)
                                                                      .showModelKey(pageModelKey)
                                                                      .hideModelKey(this.currentModelKey);

            this.currentModelKey = waveBean.showModelKey();

            if (wave != null) {
                // The method was called after having received a wave
                // It will show the next page by sending a regular command, processed asynchronously into JAT after a JIT cycle
                // This call is non-blocking
                sendWave(WBuilder.callCommand(ShowFadingModelCommand.class)
                                 .waveBean(waveBean)
                                 .relatedWave(wave)
                                 .addWaveListener(new RelatedWaveListener()));
            } else {
                // The showPage method has been called programmatically without any wave provided
                // This is the first call used to initialize the stack so we perform the show transition immediately
                final Wave showWave = WBuilder.callCommand(ShowFadingModelCommand.class)
                                              .waveBean(waveBean)
                                              .addDatas(JRebirthWaves.FORCE_SYNC);
                // Run synchronously into JAT immediately without a waiting a JIT cycle
                // This call will block current thread until page is shown
                getCommand(ShowFadingModelCommand.class, showWave.wUID()).run(showWave);

            }

        } else {
            LOGGER.debug("Page Model currently displayed: " + pageModelKey.toString());
        }
    }
437121
protected void setCurrentPage(WizardPage<DATA> newPage) {
		currentPage = newPage;
		updateState();
		wizardView.setCurrentPage(currentPage);
		currentPage.show();
	}
94385
public void addModelPageToSitemapConfiguration(CmsResource sitemapConfig, CmsResource modelPage, boolean disabled)
    throws CmsException {

        CmsFile sitemapConfigFile = m_cms.readFile(sitemapConfig);
        CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, sitemapConfigFile);
        CmsConfigurationReader reader = new CmsConfigurationReader(m_cms);
        reader.parseConfiguration(m_adeConfig.getBasePath(), content);
        List<CmsModelPageConfig> modelPageConfigs = reader.getModelPageConfigs();

        int i = 0;
        boolean isDefault = false;
        for (CmsModelPageConfig config : modelPageConfigs) {
            if (config.getResource().getStructureId().equals(modelPage.getStructureId())) {
                isDefault = config.isDefault();
                break;
            }
            i += 1;
        }
        if (i >= modelPageConfigs.size()) {
            content.addValue(m_cms, CmsConfigurationReader.N_MODEL_PAGE, Locale.ENGLISH, i);
        }
        String prefix = CmsConfigurationReader.N_MODEL_PAGE + "[" + (1 + i) + "]";
        content.getValue(prefix + "/" + CmsConfigurationReader.N_PAGE, Locale.ENGLISH).setStringValue(
            m_cms,
            modelPage.getRootPath());
        content.getValue(prefix + "/" + CmsConfigurationReader.N_DISABLED, Locale.ENGLISH).setStringValue(
            m_cms,
            "" + disabled);
        content.getValue(prefix + "/" + CmsConfigurationReader.N_IS_DEFAULT, Locale.ENGLISH).setStringValue(
            m_cms,
            "" + isDefault);
        writeSitemapConfig(content, sitemapConfigFile);
    }
1355174
public boolean showNextPage(AbstractWizardPage nextPage) {
		if (nextPage == null) {
			// Next page is null. Updating buttons and ignoring request.
			updateButtons();
			return false;
		}
		if (currentPage != null) {
			pageHistory.push(currentPage);
		}
		setPage(nextPage);
		return true;
	}
760705
public void updateModelPageDisabledState(CmsUUID entryId, boolean disabled) {

        if (m_modelPageTreeItems.containsKey(entryId)) {
            m_modelPageTreeItems.get(entryId).setDisabled(disabled);
        } else if (m_parentModelPageTreeItems.containsKey(entryId)) {
            m_parentModelPageTreeItems.get(entryId).setDisabled(disabled);
        }
    }
390251
public void setPageProperty(String key, String value, String identifier) {
        Space space = getSpaceManager().getSpace(identifier);
        ContentEntityObject entityObject = getContentEntityManager().getById(space.getHomePage().getId());
        getContentPropertyManager().setStringProperty(entityObject, ServerPropertiesManager.SEQUENCE + key, value);
    }
755368
public LLIndexPage locatePageForKey(long key, long value, boolean allowCreate) {
		if (isLeaf) {
			return this;
		}
		if (nEntries == -1 && !allowCreate) {
			return null;
		}

		//The stored value[i] is the min-values of the according page[i+1} 
        int pos = binarySearch(0, nEntries, key, value);
        if (pos >= 0) {
            //pos of matching key
            pos++;
        } else {
            pos = -(pos+1);
        }
        //TODO use weak refs
        //read page before that value
        LLIndexPage page = (LLIndexPage) readOrCreatePage(pos, allowCreate);
        return page.locatePageForKey(key, value, allowCreate);
	}
709980
protected static int binarySearchGuess(@NotNull final BasePage page, @NotNull final ByteIterable key) {
        int index = binarySearchGuessUnsafe(page, key);
        if (index < 0) index = 0;
        return index;
    }
371208
function(fnName, fn) {
        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
    
        for (var p=0;p<pageCount;++p) {
            this.pages[p][fnName] = fn;
        }
    }
839381
function (newPage) {
			this.writeDebug('paginationChange',arguments);

			// Page change callback
			if (this.settings.callbackPageChange) {
				this.settings.callbackPageChange.call(this, newPage);
			}

			mappingObj.page = newPage;
			this.mapping(mappingObj);
		}
165391
public static MenuItem newMenuItem(final Class<? extends Page> pageClass,
		final String resourceModelKey, final Component component, final PageParameters parameters)
	{
		final BookmarkablePageLink<String> bookmarkablePageLink = new BookmarkablePageLink<>(
			MenuPanel.LINK_ID, pageClass, parameters);
		final IModel<String> labelModel = ResourceModelFactory.newResourceModel(resourceModelKey,
			component);
		final MenuItem menuItem = new MenuItem(bookmarkablePageLink, labelModel);
		return menuItem;
	}
917544
private void doGetDebug() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);

	sct.set(DEBUG, Caster.toBoolean(config.debug()));
	sct.set(KeyConstants._database, Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_DATABASE)));
	sct.set(KeyConstants._exception, Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_EXCEPTION)));
	sct.set("tracing", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_TRACING)));
	sct.set("dump", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_DUMP)));
	sct.set("timer", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_TIMER)));
	sct.set("implicitAccess", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_IMPLICIT_ACCESS)));
	sct.set("queryUsage", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_QUERY_USAGE)));
    }
861822
public PageSource getPageSource(String key, boolean updateAccesTime) { // DO NOT CHANGE INTERFACE (used by Argus Monitor)
	PageSource ps = pageSources.get(key.toLowerCase());
	if (ps == null) return null;
	if (updateAccesTime) ps.setLastAccessTime();
	return ps;
    }
1242074
private void doRemoveComponentMapping() throws PageException {
	admin.removeComponentMapping(getString("admin", action, "virtual"));
	store();
	adminSync.broadcast(attributes, config);
    }
182328
function Page(page) {
  if (!page) page = {};
  for (var key in page) this[key] = page[key];
  if (!this.hasOwnProperty('idx')) this.idx = 0;
  if (!this.hasOwnProperty('total')) this.total = 1;
  if (!this.hasOwnProperty('current')) {
    this.current = this.total;
  }
}
752430
public void remove(PropertyKey key) {
    // remove is a nop if the key doesn't already exist
    if (mUserProps.containsKey(key)) {
      mUserProps.remove(key);
      mSources.remove(key);
    }
  }
414079
public void setPage(int page) {

        if (m_collectorParameter != null) {
            int pos = m_collectorParameter.indexOf(I_CmsListResourceCollector.PARAM_PAGE);
            if (pos >= 0) {
                String params = "";
                int endPos = m_collectorParameter.indexOf(I_CmsListResourceCollector.SEP_PARAM, pos);
                if (pos > 0) {
                    pos -= I_CmsListResourceCollector.SEP_PARAM.length(); // remove also the SEP_PARAM
                    params += m_collectorParameter.substring(0, pos);
                }
                if (endPos >= 0) {
                    if (pos == 0) {
                        endPos += I_CmsListResourceCollector.SEP_PARAM.length(); // remove also the SEP_PARAM
                    }
                    params += m_collectorParameter.substring(endPos, m_collectorParameter.length());
                }
                m_collectorParameter = params;
            }
        }
        if (m_collectorParameter == null) {
            m_collectorParameter = "";
        } else if (m_collectorParameter.length() > 0) {
            m_collectorParameter += I_CmsListResourceCollector.SEP_PARAM;
        }
        m_collectorParameter += I_CmsListResourceCollector.PARAM_PAGE + I_CmsListResourceCollector.SEP_KEYVAL + page;
        synchronized (this) {
            m_resources = null;
        }
    }