java.lang.Object
org.torweg.pulse.bundle.Controller
org.torweg.pulse.component.statistics.view.AbstractStatisticsController<T,U>
- Type Parameters:
T - the actual implementation of:
AbstractStatisticsViewControllerConfigurationU - the actual implementation of:
AbstractStatisticsViewControllerResult
- All Implemented Interfaces:
- Configurable<AbstractStatisticsViewControllerConfiguration>
- Direct Known Subclasses:
- AbstractStatisticsViewController, WestPanelController
public abstract class AbstractStatisticsController<T extends AbstractStatisticsViewControllerConfiguration,U extends AbstractStatisticsViewControllerResult<?>>
- extends Controller
- implements Configurable<AbstractStatisticsViewControllerConfiguration>
Abstract base-class to derive a pulse website administration "view" for the
statistics component from.
Basically this will be:
- the statistics west panel
- the "statistical data viewers"
- Version:
- $Revision: 1914 $
- Author:
- Daniel Dietz
|
Field Summary |
protected static org.slf4j.Logger |
LOGGER
The LOGGER. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final org.slf4j.Logger LOGGER
- The LOGGER.
AbstractStatisticsController
public AbstractStatisticsController()
initView
public abstract U initView(ServiceRequest request)
- Initialises the view.
- Parameters:
request - the current ServiceRequest
- Returns:
- a JAXB-enabled
AbstractStatisticsViewControllerResult<? extends AbstractStatisticsViewControllerResultData>
initialize
public final void initialize(AbstractStatisticsViewControllerConfiguration conf)
- Initialises the
Controller with the given Configuration.
- Specified by:
initialize in interface Configurable<AbstractStatisticsViewControllerConfiguration>
- Parameters:
conf - the Configuration
getConfiguration
protected final T getConfiguration()
- Returns the
AbstractStatisticsViewControllerConfiguration.
- Returns:
AbstractStatisticsViewControllerConfiguration
hasRoleForServer
protected final boolean hasRoleForServer(User user, StatisticsServer server)
- Checks whether the given
User has the Role required for
the given StatisticsServer.
- Parameters:
user - the Userserver - the StatisticsServer
- Returns:
true if end only if the given User has the
matching Role, false otherwise