org.apache.rave.provider.w3c.repository.impl
Class WookieWidgetMetadataRepository
java.lang.Object
org.apache.rave.provider.w3c.repository.impl.WookieWidgetMetadataRepository
- All Implemented Interfaces:
- W3CWidgetMetadataRepository
@Repository
public class WookieWidgetMetadataRepository
- extends Object
- implements W3CWidgetMetadataRepository
Handles the call to wookies metadata service
(wookie currently uses an xml format response)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WookieWidgetMetadataRepository
@Autowired
public WookieWidgetMetadataRepository(@Qualifier(value="wookieWidgetService")
WidgetProviderService widgetService)
getWidgetMetadata
public Widget getWidgetMetadata(String widgetGuid)
- Description copied from interface:
W3CWidgetMetadataRepository
- Fetches widget metadata for the widget via
either an internal widget key or by
using a w3cs widgets guid
- Specified by:
getWidgetMetadata in interface W3CWidgetMetadataRepository
- Parameters:
widgetGuid - The widget to fetch metadata for.
- Returns:
- The string response from the w3c widget server.
getWidgetMetadata
public Widget[] getWidgetMetadata()
- Description copied from interface:
W3CWidgetMetadataRepository
- Fetches widget metadata for all available widgets
- Specified by:
getWidgetMetadata in interface W3CWidgetMetadataRepository
- Returns:
- an array of Widget objects representing available W3C widgets
Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.