@Services(value={@Service(value=java.lang.Object.class),@Service(value=GlobalMenuItemsProvider.class)}) @Property(name="javax.ws.rs", boolValue=true) public class DashBoard extends Object implements GlobalMenuItemsProvider
Constructor and Description |
---|
DashBoard() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cCtx) |
GraphNode |
getHomePage(javax.ws.rs.core.UriInfo uriInfo)
Returns the overview page of the dashboard.
|
Set<GlobalMenuItem> |
getMenuItems()
Returns a
Set of GlobalMenuItem S. |
javax.ws.rs.core.Response |
redirectToHomePage(javax.ws.rs.core.UriInfo uriInfo)
Redirects to the overview page
|
protected void activate(org.osgi.service.component.ComponentContext cCtx) throws Exception
Exception
public javax.ws.rs.core.Response redirectToHomePage(@Context javax.ws.rs.core.UriInfo uriInfo)
Response
public GraphNode getHomePage(@Context javax.ws.rs.core.UriInfo uriInfo)
GraphNode
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
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.