Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.gadgets.service
Class ExternalGadgetDescriptor

java.lang.Object
  extended by org.nuxeo.opensocial.gadgets.service.BaseGadgetDescriptor
      extended by org.nuxeo.opensocial.gadgets.service.ExternalGadgetDescriptor
All Implemented Interfaces:
Serializable, GadgetDeclaration

public class ExternalGadgetDescriptor
extends BaseGadgetDescriptor
implements GadgetDeclaration

See Also:
Serialized Form

Constructor Summary
ExternalGadgetDescriptor(String category, boolean disabled, URL gadgetDefinition, String iconURL, String name)
           
 
Method Summary
 String getCategory()
           
 String getDescription()
           
 boolean getDisabled()
           
 URL getGadgetDefinition()
           
 String getIconUrl()
           
 String getName()
           
 InputStream getResourceAsStream(String resourcePath)
           
 boolean isExternal()
           
 
Methods inherited from class org.nuxeo.opensocial.gadgets.service.BaseGadgetDescriptor
getAuthor, getGadgetSpec, getPublicGadgetDefinition, getScreenshot, getThumbnail, getTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.opensocial.gadgets.service.api.GadgetDeclaration
getAuthor, getGadgetSpec, getPublicGadgetDefinition, getScreenshot, getThumbnail, getTitle
 

Constructor Detail

ExternalGadgetDescriptor

public ExternalGadgetDescriptor(String category,
                                boolean disabled,
                                URL gadgetDefinition,
                                String iconURL,
                                String name)
Method Detail

getCategory

public String getCategory()
Specified by:
getCategory in interface GadgetDeclaration

getDisabled

public boolean getDisabled()
Specified by:
getDisabled in interface GadgetDeclaration

getGadgetDefinition

public URL getGadgetDefinition()
                        throws MalformedURLException
Specified by:
getGadgetDefinition in interface GadgetDeclaration
Throws:
MalformedURLException

getIconUrl

public String getIconUrl()
Specified by:
getIconUrl in interface GadgetDeclaration

getName

public String getName()
Specified by:
getName in interface GadgetDeclaration

getResourceAsStream

public InputStream getResourceAsStream(String resourcePath)
                                throws IOException
Specified by:
getResourceAsStream in interface GadgetDeclaration
Throws:
IOException

getDescription

public String getDescription()
Specified by:
getDescription in interface GadgetDeclaration

isExternal

public boolean isExternal()
Specified by:
isExternal in interface GadgetDeclaration

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.