@Services(value={@Service(value=java.lang.Object.class),@Service(value=GlobalMenuItemsProvider.class)}) @Property(name="javax.ws.rs", boolValue=true) public class PlatformConfigGui extends Object implements GlobalMenuItemsProvider
Constructor and Description |
---|
PlatformConfigGui() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
deactivate(org.osgi.service.component.ComponentContext context) |
GraphNode |
getConfig()
Returns a headed page listing RSS Feeds.
|
Set<GlobalMenuItem> |
getMenuItems()
Returns a
Set of GlobalMenuItem S. |
org.wymiwyg.commons.util.dirbrowser.PathNode |
getStaticFile(String path)
Returns a PathNode of a static file from the staticweb folder.
|
javax.ws.rs.core.Response |
setConfig(String defaultBaseUri,
javax.ws.rs.core.UriInfo uriInfo) |
protected void activate(org.osgi.service.component.ComponentContext context) throws IOException, URISyntaxException
IOException
URISyntaxException
protected void deactivate(org.osgi.service.component.ComponentContext context)
public GraphNode getConfig()
query
- an optional parameter which specifies a search term criteria.
The search term will be tested if contained in the title or the uri of the feed.GraphNode
public javax.ws.rs.core.Response setConfig(String defaultBaseUri, @Context javax.ws.rs.core.UriInfo uriInfo)
public Set<GlobalMenuItem> getMenuItems()
GlobalMenuItemsProvider
Set
of GlobalMenuItem
S. If there is
no GlobalMenuItem
available (e.g. the current user has not
the needed permissions) then the returned set is empty.getMenuItems
in interface GlobalMenuItemsProvider
public org.wymiwyg.commons.util.dirbrowser.PathNode getStaticFile(String path)
path
- specifies the path parameterPathNode
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.