eu.planets_project.webui
Class PlanetsSharedBackingBean

java.lang.Object
  extended by eu.planets_project.webui.PlanetsSharedBackingBean

public class PlanetsSharedBackingBean
extends Object

Utility backing bean for Planets web components.

Author:
Andy Jackson

Constructor Summary
PlanetsSharedBackingBean()
           
 
Method Summary
 boolean getIsAdmin()
          Boolean getter for the nav bar to check whether the current user is in the admin role.
 String getSharedFileBasePath()
          A helper method to look-up the file path the to shared resources, e.g.
 String getSharedFileContext()
          A helper to find the context that the shared resources are available from, e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanetsSharedBackingBean

public PlanetsSharedBackingBean()
Method Detail

getSharedFileBasePath

public String getSharedFileBasePath()
A helper method to look-up the file path the to shared resources, e.g. facelets templates.

Returns:
String containing the absolute file URI.

getSharedFileContext

public String getSharedFileContext()
A helper to find the context that the shared resources are available from, e.g. css or images.

Returns:
String containing the shared resoure web context.

getIsAdmin

public boolean getIsAdmin()
Boolean getter for the nav bar to check whether the current user is in the admin role.

Returns:
true if the user is in the admin role, false otherwise


Copyright © 2013 Open Planets Foundation. All Rights Reserved.