org.nuxeo.opensocial.gadgets.service
Class InternalGadgetDescriptor
java.lang.Object
org.nuxeo.opensocial.gadgets.service.BaseGadgetDescriptor
org.nuxeo.opensocial.gadgets.service.InternalGadgetDescriptor
- All Implemented Interfaces:
- Serializable, GadgetDeclaration
public class InternalGadgetDescriptor
- extends BaseGadgetDescriptor
- implements GadgetDeclaration
- See Also:
- Serialized Form
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
InternalGadgetDescriptor
public InternalGadgetDescriptor()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.