Package org.exoplatform.portal.pom.data

Examples of org.exoplatform.portal.pom.data.PageKey


        // Invalidation bridge : listen for PageService events and invalidate the DataStorage cache
        Listener<?, org.exoplatform.portal.mop.page.PageKey> invalidator = new Listener<Object, org.exoplatform.portal.mop.page.PageKey>() {
            @Override
            public void onEvent(Event<Object, org.exoplatform.portal.mop.page.PageKey> event) throws Exception {
                org.exoplatform.portal.mop.page.PageKey key = event.getData();
                PageKey adaptedKey = new PageKey(key.getSite().getTypeName(), key.getSite().getName(), key.getName());
                pomMgr.getSession().scheduleForEviction(adaptedKey);
            }
        };
        listenerService.addListener(EventType.PAGE_UPDATED, invalidator);
        listenerService.addListener(EventType.PAGE_DESTROYED, invalidator);
View Full Code Here


      this.listenerServ_ = listenerServ;
   }

   public Page clonePage(String pageId, String clonedOwnerType, String clonedOwnerId, String clonedName) throws Exception
   {
      PageKey key = PageKey.create(pageId);
      PageKey cloneKey = new PageKey(clonedOwnerType, clonedOwnerId, clonedName);
      return new Page(delegate.clonePage(key, cloneKey));
   }
View Full Code Here

      return data != null ? new PageNavigation(data) : null;
   }

   public Page getPage(String pageId) throws Exception
   {
      PageKey key = PageKey.create(pageId);
      PageData data = delegate.getPage(key);
      return data != null ? new Page(data) : null;
   }
View Full Code Here

    public PortalConfig getPortalConfig(String portalName) throws Exception {
        return getPortalConfig(PortalConfig.PORTAL_TYPE, portalName);
    }

    public Page getPage(String pageId) throws Exception {
        PageKey key = PageKey.create(pageId);
        PageData data = delegate.getPage(key);
        return data != null ? new Page(data) : null;
    }
View Full Code Here

        // Invalidation bridge : listen for PageService events and invalidate the DataStorage cache
        Listener<?, org.exoplatform.portal.mop.page.PageKey> invalidator = new Listener<Object, org.exoplatform.portal.mop.page.PageKey>() {
            @Override
            public void onEvent(Event<Object, org.exoplatform.portal.mop.page.PageKey> event) throws Exception {
                org.exoplatform.portal.mop.page.PageKey key = event.getData();
                PageKey adaptedKey = new PageKey(key.getSite().getTypeName(), key.getSite().getName(), key.getName());
                pomMgr.getSession().scheduleForEviction(adaptedKey);
            }
        };
        listenerService.addListener(EventType.PAGE_UPDATED, invalidator);
        listenerService.addListener(EventType.PAGE_DESTROYED, invalidator);
View Full Code Here

      this.listenerServ_ = listenerServ;
   }

   public Page clonePage(String pageId, String clonedOwnerType, String clonedOwnerId, String clonedName) throws Exception
   {
      PageKey key = PageKey.create(pageId);
      PageKey cloneKey = new PageKey(clonedOwnerType, clonedOwnerId, clonedName);
      return new Page(delegate.clonePage(key, cloneKey));
   }
View Full Code Here

      return getPortalConfig(PortalConfig.PORTAL_TYPE, portalName);
   }

   public Page getPage(String pageId) throws Exception
   {
      PageKey key = PageKey.create(pageId);
      PageData data = delegate.getPage(key);
      return data != null ? new Page(data) : null;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.pom.data.PageKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.