Examples of PortalKey


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

        public LazyPageList<PortalKey> run(final POMSession session) {
            Workspace workspace = session.getWorkspace();
            Collection<Site> sites = workspace.getSites(type);
            final ArrayList<PortalKey> keys = new ArrayList<PortalKey>(sites.size());
            for (Site site : sites) {
                keys.add(new PortalKey(q.getOwnerType(), site.getName()));
            }
            ListAccess<PortalKey> la = new ListAccess<PortalKey>() {
                public PortalKey[] load(int index, int length) throws Exception {
                    PortalKey[] result = new PortalKey[length];
                    for (int i = 0; i < length; i++) {
View Full Code Here

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

               Iterator<? extends Site> iterator = portals.iterator();
               PortalKey[] result = new PortalKey[length];
               for (int i = 0; i < length; i++)
               {
                  Site site = iterator.next();
                  result[i] = new PortalKey("portal", site.getName());
               }
               return result;
            }

            public int getSize() throws Exception
View Full Code Here

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

      delegate.save(portletPreferences);
   }

   public PortalConfig getPortalConfig(String ownerType, String portalName) throws Exception
   {
      PortalKey key = new PortalKey(ownerType, portalName);
      PortalData data = delegate.getPortalConfig(key);
      return data != null ? new PortalConfig(data) : null;
   }
View Full Code Here

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

    public void save() throws Exception {
        delegate.save();
    }

    public PortalConfig getPortalConfig(String ownerType, String portalName) throws Exception {
        PortalKey key = new PortalKey(ownerType, portalName);
        PortalData data = delegate.getPortalConfig(key);
        return data != null ? new PortalConfig(data) : null;
    }
View Full Code Here

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

        //
        if (key instanceof PortalKey) {
            // This code seems complex but actually it tries to find all objects in cache that have the same
            // owner key than the portal key, for instance if we remove (portal,classic) then all pages
            // related to (portal,classic) are also evicted
            final PortalKey portalKey = (PortalKey) key;
            try {
                cache.select(new CachedObjectSelector<ScopedKey<?>, Object>() {
                    public boolean select(ScopedKey<?> selectedGlobalKey, ObjectCacheInfo<?> ocinfo) {
                        if (globalKey.getScope().equals(selectedGlobalKey.getScope())) {
                            Serializable selectedLocalKey = selectedGlobalKey.getKey();
                            if (selectedLocalKey instanceof OwnerKey) {
                                OwnerKey selectedOwnerKey = (OwnerKey) selectedLocalKey;
                                if (selectedOwnerKey.getType().equals(portalKey.getType())
                                        && selectedOwnerKey.getId().equals(portalKey.getId())) {
                                    return true;
                                }
                            }
                        }
                        return false;
View Full Code Here

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

      delegate.save();
   }

   public PortalConfig getPortalConfig(String ownerType, String portalName) throws Exception
   {
      PortalKey key = new PortalKey(ownerType, portalName);
      PortalData data = delegate.getPortalConfig(key);
      return data != null ? new PortalConfig(data) : null;
   }
View Full Code Here

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

      if (key instanceof PortalKey)
      {
         // This code seems complex but actually it tries to find all objects in cache that have the same
         // owner key than the portal key, for instance if we remove (portal,classic) then all pages
         // related to (portal,classic) are also evicted
         final PortalKey portalKey = (PortalKey)key;
         try
         {
            cache.select(new CachedObjectSelector<ScopedKey<?>, Object>()
            {
               public boolean select(ScopedKey<?> selectedGlobalKey, ObjectCacheInfo<?> ocinfo)
               {
                  if (globalKey.getScope().equals(selectedGlobalKey.getScope()))
                  {
                     Serializable selectedLocalKey = selectedGlobalKey.getKey();
                     if (selectedLocalKey instanceof OwnerKey)
                     {
                        OwnerKey selectedOwnerKey = (OwnerKey)selectedLocalKey;
                        if (selectedOwnerKey.getType().equals(portalKey.getType()) && selectedOwnerKey.getId().equals(portalKey.getId()))
                        {
                           return true;
                        }
                     }
                  }
View Full Code Here

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

         Workspace workspace = session.getWorkspace();
         Collection<Site> sites = workspace.getSites(type);
         final ArrayList<PortalKey> keys = new ArrayList<PortalKey>(sites.size());
         for (Site site : sites)
         {
            keys.add(new PortalKey(q.getOwnerType(), site.getName()));
         }
         ListAccess<PortalKey> la = new ListAccess<PortalKey>()
         {
            public PortalKey[] load(int index, int length) throws Exception, IllegalArgumentException
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.