Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.gadgets.service
Class InternalGadgetDescriptor

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

public class InternalGadgetDescriptor
extends BaseGadgetDescriptor
implements GadgetDeclaration

See Also:
Serialized Form

Field Summary
static String HTTP
           
static String HTTP_SEPARATOR
           
static String URL_SEPARATOR
           
 
Constructor Summary
InternalGadgetDescriptor()
           
 
Method Summary
 org.osgi.framework.Bundle getBundle()
           
 String getCategory()
           
 org.nuxeo.runtime.model.ComponentName getComponentName()
           
 String getDescription()
           
 String getDirectory()
           
 boolean getDisabled()
           
 String getEntryPoint()
           
 URL getGadgetDefinition()
           
 String getIcon()
           
 String getIconUrl()
           
 String getMountPoint()
           
 String getName()
           
 String getPublicGadgetDefinition()
          Returns the public URL of the gadget spec.
 InputStream getResourceAsStream(String resourcePath)
           
 String getScreenshot()
           
 String getThumbnail()
           
 StringBuilder getUrlPrefix(boolean relativeUrl)
           
 boolean isExternal()
           
 void setBundle(org.osgi.framework.Bundle bundle)
           
 void setComponentName(org.nuxeo.runtime.model.ComponentName name)
           
 void setEntryPoint(String entryPoint)
           
 
Methods inherited from class org.nuxeo.opensocial.gadgets.service.BaseGadgetDescriptor
getAuthor, getGadgetSpec, 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, getTitle
 

Field Detail

HTTP

public static final String HTTP
See Also:
Constant Field Values

HTTP_SEPARATOR

public static final String HTTP_SEPARATOR
See Also:
Constant Field Values

URL_SEPARATOR

public static final String URL_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

InternalGadgetDescriptor

public InternalGadgetDescriptor()
Method Detail

getName

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

getDisabled

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

getIcon

public String getIcon()

getMountPoint

public final String getMountPoint()

getCategory

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

setBundle

public final void setBundle(org.osgi.framework.Bundle bundle)

getBundle

public final org.osgi.framework.Bundle getBundle()

setComponentName

public final void setComponentName(org.nuxeo.runtime.model.ComponentName name)

getComponentName

public final org.nuxeo.runtime.model.ComponentName getComponentName()

setEntryPoint

public final void setEntryPoint(String entryPoint)

getEntryPoint

public final String getEntryPoint()

getDirectory

public String getDirectory()

getIconUrl

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

getUrlPrefix

public StringBuilder getUrlPrefix(boolean relativeUrl)

getResourceAsStream

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

getGadgetDefinition

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

getPublicGadgetDefinition

public String getPublicGadgetDefinition()
                                 throws MalformedURLException
Description copied from interface: GadgetDeclaration
Returns the public URL of the gadget spec. That URL can be used to add the gadget in an other container.

Specified by:
getPublicGadgetDefinition in interface GadgetDeclaration
Overrides:
getPublicGadgetDefinition in class BaseGadgetDescriptor
Throws:
MalformedURLException

getDescription

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

isExternal

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

getThumbnail

public String getThumbnail()
Specified by:
getThumbnail in interface GadgetDeclaration
Overrides:
getThumbnail in class BaseGadgetDescriptor

getScreenshot

public String getScreenshot()
Specified by:
getScreenshot in interface GadgetDeclaration
Overrides:
getScreenshot in class BaseGadgetDescriptor

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.