@Override public Integer getPageId() { return page.getPageId(); }
@Override public Integer getPageId() { return page.getPageId(); }
@Override public Integer getPageId() { return page.getPageId(); }
@Override public Integer getPageId() { return page.getPageId(); }
/** * This constructor is ideal if a Page object was passed in from a previous Page. Construct an * inline frame containing the given Page. * * @param id * See component * @param page * The page */ public InlineFrame(final String id, final Page page) { this(id, new PageProvider(page.getPageId(), page.getClass(), page.getRenderCount())); }
/** * This constructor is ideal if a Page object was passed in from a previous Page. Construct an * inline frame containing the given Page. * * @param id * See component * @param page * The page */ public InlineFrame(final String id, final Page page) { this(id, new PageProvider(page.getPageId(), page.getClass(), page.getRenderCount())); }
/** * Construct. * * @param page */ public PageLogData(Page page) { pageClass = page.getPageClass(); pageId = page.getPageId(); pageParameters = page.getPageParameters(); renderCount = page.getRenderCount(); }
/** * Unregisters all {@link EventSubscription}s for the given component, including the * subscriptions for its behaviors. * * @param component */ public synchronized void unregister(Component component) { String componentPath = component.getPageRelativePath(); PageKey pageKey = new PageKey(component.getPage().getPageId(), Session.get().getId()); Collection<EventSubscription> subscriptionsForPage = subscriptions.get(pageKey); Iterator<EventSubscription> it = subscriptionsForPage.iterator(); while (it.hasNext()) { if (it.next().getComponentPath().equals(componentPath)) it.remove(); } }
/** * Construct. * * @param page */ public PageLogData(Page page) { pageClass = page.getPageClass(); pageId = page.getPageId(); pageParameters = page.getPageParameters(); renderCount = page.getRenderCount(); }
/** * Unregisters all {@link EventSubscription}s for the given component, including the * subscriptions for its behaviors. * * @param page * @param subscription */ public synchronized void unregister(Component component) { String componentPath = component.getPageRelativePath(); PageKey pageKey = new PageKey(component.getPage().getPageId(), Session.get().getId()); Collection<EventSubscription> subscriptionsForPage = subscriptions.get(pageKey); Iterator<EventSubscription> it = subscriptionsForPage.iterator(); while (it.hasNext()) { if (it.next().getComponentPath().equals(componentPath)) it.remove(); } }
/** * Unregisters an {@link EventSubscription} for the given page. * * @param page * @param subscription */ public synchronized void unregister(Page page, EventSubscription subscription) { if (log.isDebugEnabled()) { log.debug( "unregistering {} for page {} for session {}: {}{}", new Object[] { subscription.getBehaviorIndex() == null ? "component" : "behavior", page.getPageId(), Session.get().getId(), subscription.getComponentPath(), subscription.getBehaviorIndex() == null ? "" : ":" + subscription.getBehaviorIndex() }); } PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); subscriptions.remove(pageKey, subscription); }
/** * Unregisters an {@link EventSubscription} for the given page. * * @param page * @param subscription */ public synchronized void unregister(Page page, EventSubscription subscription) { if (log.isDebugEnabled()) { log.debug( "unregistering {} for page {} for session {}: {}{}", new Object[] { subscription.getBehaviorIndex() == null ? "component" : "behavior", page.getPageId(), Session.get().getId(), subscription.getComponentPath(), subscription.getBehaviorIndex() == null ? "" : ":" + subscription.getBehaviorIndex() }); } PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); subscriptions.remove(pageKey, subscription); }
/** * Registers a page for the given tracking-id in the {@code EventBus}. * * @param trackingId * @param page */ public synchronized void registerPage(String trackingId, Page page) { PageKey oldPage = trackedPages.remove(trackingId); PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); if (oldPage != null && !oldPage.equals(pageKey)) { subscriptions.removeAll(oldPage); fireUnregistration(trackingId); } trackedPages.put(trackingId, pageKey); fireRegistration(trackingId, page); if (log.isDebugEnabled()) { log.debug("registered page {} for session {}", pageKey.getPageId(), pageKey.getSessionId()); } }
/** * Registers a page for the given tracking-id in the {@code EventBus}. * * @param trackingId * @param page */ public synchronized void registerPage(String trackingId, Page page) { PageKey oldPage = trackedPages.remove(trackingId); PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); if (oldPage != null && !oldPage.equals(pageKey)) { subscriptions.removeAll(oldPage); fireUnregistration(trackingId); } trackedPages.put(trackingId, pageKey); fireRegistration(trackingId, page); if (log.isDebugEnabled()) { log.debug("registered page {} for session {}", pageKey.getPageId(), pageKey.getSessionId()); } }
@Nullable public static PageKey getPageKey() { Page page = getPage(); if (page != null) { String sessionId = page.getSession().getId(); if (sessionId != null) { return new PageKey(sessionId, new PageIdKey(page.getPageId())); } } return null; }
/** * Registers an {@link EventSubscription} for the given page. * * @param page * @param subscription */ public synchronized void register(Page page, EventSubscription subscription) { if (log.isDebugEnabled()) { log.debug( "registering {} for page {} for session {}: {}{}", new Object[] { subscription.getBehaviorIndex() == null ? "component" : "behavior", page.getPageId(), Session.get().getId(), subscription.getComponentPath(), subscription.getBehaviorIndex() == null ? "" : ":" + subscription.getBehaviorIndex() }); } PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); if (!subscriptions.containsEntry(pageKey, subscription)) { subscriptions.put(pageKey, subscription); } }
/** * Registers an {@link EventSubscription} for the given page. * * @param page * @param subscription */ public synchronized void register(Page page, EventSubscription subscription) { if (log.isDebugEnabled()) { log.debug( "registering {} for page {} for session {}: {}{}", new Object[] { subscription.getBehaviorIndex() == null ? "component" : "behavior", page.getPageId(), Session.get().getId(), subscription.getComponentPath(), subscription.getBehaviorIndex() == null ? "" : ":" + subscription.getBehaviorIndex() }); } PageKey pageKey = new PageKey(page.getPageId(), Session.get().getId()); if (!subscriptions.containsEntry(pageKey, subscription)) { subscriptions.put(pageKey, subscription); } }
int pageId = component.getPage().getPageId(); variables.put("pageId", pageId); variables.put("resourceName", "");
int pageId = component.getPage().getPageId(); variables.put("pageId", pageId); variables.put("resourceName", "");