org.exoplatform.platform.upgrade.plugins
Class LocalGadgetImporter

java.lang.Object
  extended by org.exoplatform.application.gadget.GadgetImporter
      extended by org.exoplatform.platform.upgrade.plugins.LocalGadgetImporter

public class LocalGadgetImporter
extends org.exoplatform.application.gadget.GadgetImporter


Field Summary
 
Fields inherited from class org.exoplatform.application.gadget.GadgetImporter
log
 
Constructor Summary
LocalGadgetImporter(String name, org.exoplatform.application.gadget.GadgetRegistryService registryService, String gadgetPath, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.PortalContainer container)
           
 
Method Summary
protected  byte[] getGadgetBytes(String gadgetURI)
           
protected  String getGadgetURL()
           
protected  void process(String gadgetURI, org.exoplatform.application.gadget.impl.GadgetDefinition def)
           
protected  void processMetadata(org.apache.shindig.gadgets.spec.ModulePrefs prefs, org.exoplatform.application.gadget.impl.GadgetDefinition def)
           
 
Methods inherited from class org.exoplatform.application.gadget.GadgetImporter
doImport, getGadgetName, getGadgetURI, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalGadgetImporter

public LocalGadgetImporter(String name,
                           org.exoplatform.application.gadget.GadgetRegistryService registryService,
                           String gadgetPath,
                           org.exoplatform.container.configuration.ConfigurationManager configurationManager,
                           org.exoplatform.container.PortalContainer container)
Method Detail

process

protected void process(String gadgetURI,
                       org.exoplatform.application.gadget.impl.GadgetDefinition def)
                throws Exception
Specified by:
process in class org.exoplatform.application.gadget.GadgetImporter
Throws:
Exception

getGadgetBytes

protected byte[] getGadgetBytes(String gadgetURI)
                         throws IOException
Specified by:
getGadgetBytes in class org.exoplatform.application.gadget.GadgetImporter
Throws:
IOException

getGadgetURL

protected String getGadgetURL()
Specified by:
getGadgetURL in class org.exoplatform.application.gadget.GadgetImporter

processMetadata

protected void processMetadata(org.apache.shindig.gadgets.spec.ModulePrefs prefs,
                               org.exoplatform.application.gadget.impl.GadgetDefinition def)
Specified by:
processMetadata in class org.exoplatform.application.gadget.GadgetImporter


Copyright © 2013 eXo Platform SAS. All Rights Reserved.