Package org.exoplatform.portal.config

Examples of org.exoplatform.portal.config.NoSuchDataException


   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

                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

        //
        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

            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

        }

        public String run(POMSession session) {
            Customization<S> customization = (Customization<S>) session.findCustomizationById(storageId);
            if (customization == null) {
                throw new NoSuchDataException("Can not find " + storageId);
            }
            return customization.getContentId();
        }
View Full Code Here

        public Void run(POMSession session) {

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

        public Void run(POMSession session) {
            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();
            }
            return null;
        }
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

      public String run(POMSession session) throws Exception
      {
         Customization<S> customization = (Customization<S>)session.findCustomizationById(storageId);
         if (customization == null) {
            throw new NoSuchDataException("Can not find " + storageId);
         }
         return customization.getContentId();
      }
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.