Package org.exoplatform.application.gadget.impl

Examples of org.exoplatform.application.gadget.impl.LocalGadgetData


    @Override
    protected void process(String gadgetPath, GadgetDefinition def) throws Exception {
        def.setLocal(true);

        //
        LocalGadgetData data = (LocalGadgetData) def.getData();

        //
        String fileName = getName(gadgetPath);
        data.setFileName(fileName);

        // Import resource
        folder = data.getResources();
        String folderPath = getParent(gadgetPath);
        visitChildren(gadgetPath, folderPath);
        folder = null;
    }
View Full Code Here


      def.setLocal(local);

      //
      if (local)
      {
         LocalGadgetData data = (LocalGadgetData)def.getData();

         //
         String fileName = getName(gadgetPath);
         data.setFileName(fileName);

         // Import resource
         folder = data.getResources();
         String folderPath = getParent(gadgetPath);
         visitChildren(folderPath);
         folder = null;
      }
      else
      {
         RemoteGadgetData data = (RemoteGadgetData)def.getData();

         // Set remote URL
         data.setURL(gadgetPath);
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.application.gadget.impl.LocalGadgetData

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.