Package org.exoplatform.portal.config

Examples of org.exoplatform.portal.config.NoSuchDataException


      public Void run(POMSession session) throws Exception
      {

         Customization<S> customization = (Customization<S>)session.findCustomizationById(storageId);
         if (customization == null) {
            throw new NoSuchDataException("Can not find " + storageId);
         }
         if (prefs != null)
         {
            customization.setState(prefs);
         }
View Full Code Here


      {
         Workspace workspace = session.getWorkspace();
         Site site = workspace.getSite(type, key.getId());
         if (site == null)
         {
            throw new NoSuchDataException("Could not remove non existing portal " + key.getId());
         }
         else
         {
            site.destroy();
         }
View Full Code Here

         //
         org.gatein.mop.api.workspace.Page srcPage;
         Site srcSite = workspace.getSite(siteType, ownerId);
         if (srcSite == null)
         {
            throw new NoSuchDataException("Could not clone  page " + name + "from non existing site of type "
               + ownerType + " with id " + ownerId);
         }
         else
         {
            org.gatein.mop.api.workspace.Page root = srcSite.getRootPage();
            org.gatein.mop.api.workspace.Page pages = root.getChild("pages");
            srcPage = pages.getChild(name);
         }

         //
         if (srcPage == null)
         {
            throw new NoSuchDataException("Could not clone non existing page " + name + " from site of type "
               + ownerType + " with id " + ownerId);
         }

         //
         Site dstSite = workspace.getSite(cloneSiteType, cloneOwnerId);
View Full Code Here

      {
         Workspace workspace = session.getWorkspace();
         Site site = workspace.getSite(siteType, ownerId);
         if (site == null)
         {
            throw new NoSuchDataException("Could not remove page " + name + "of non existing site of type "
               + ownerType + " with id " + ownerId);
         }
         else
         {
            org.gatein.mop.api.workspace.Page root = site.getRootPage();
            org.gatein.mop.api.workspace.Page pages = root.getChild("pages");
            org.gatein.mop.api.workspace.Page page = pages.getChild(name);
            if (page == null)
            {
               throw new NoSuchDataException("Could not remove non existing page " + name + " of site of type "
                  + ownerType + " with id " + ownerId);
            }
            page.destroy();
         }
View Full Code Here

    }

    public Customization<?> findCustomizationById(String id) {
        Customization<?> customization = getModel().findCustomizationById(id);
        if (customization == null) {
            throw new NoSuchDataException("Can not find " + id);
        }
        return customization;
    }
View Full Code Here

      );
   }

   private List<ComponentData> loadChildren(UIContainer src)
   {
      if (src == null) throw new NoSuchDataException("Can not load children");
      ArrayList<ComponentData> children = new ArrayList<ComponentData>();
      for (UIComponent component : src.getComponents())
      {

         // Obtain a model object from the ui component
View Full Code Here

            Mapper mapper = new Mapper(session);

            ApplicationData data = mapper.load(application);
            return data;
        }
        throw new NoSuchDataException("Could not load the application data specified by the ID: " + applicationStorageId);
    }
View Full Code Here

                Utils.safeImmutableList(moveContainersPermissions), children);
    }

    private List<ComponentData> loadChildren(UIContainer src) {
        if (src == null)
            throw new NoSuchDataException("Can not load children");
        ArrayList<ComponentData> children = new ArrayList<ComponentData>();
        for (UIComponent component : src.getComponents()) {

            // Obtain a model object from the ui component
            ComponentData mo;
View Full Code Here

        //
        LinkedList<ModelChange> changes = new LinkedList<ModelChange>();

        //
        if (dst == null) {
            throw new NoSuchDataException("The page " + name + " not found");
        } else {
            changes.add(new ModelChange.Update(src));
        }

        //
View Full Code Here

                Utils.safeImmutableList(accessPermissions), children);
    }

    private List<ComponentData> loadChildren(UIContainer src) {
        if (src == null)
            throw new NoSuchDataException("Can not load children");
        ArrayList<ComponentData> children = new ArrayList<ComponentData>();
        for (UIComponent component : src.getComponents()) {

            // Obtain a model object from the ui component
            ComponentData mo;
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.config.NoSuchDataException

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.