Class SilverStatisticsPeasSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
-
- org.silverpeas.web.silverstatistics.control.SilverStatisticsPeasSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class SilverStatisticsPeasSessionController extends AbstractAdminComponentSessionController
Class declaration- Author:
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
INDICE_LIB
static int
INDICE_VALUE
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description SilverStatisticsPeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur
-
Method Summary
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
checkAccessGranted, checkAccessGranted, checkAdminAccessOnly, isAccessGranted, isUserAdmin, setAppModeMaintenance, setSpaceModeMaintenance, throwForbiddenError
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setClipboardSelectedElement, setComponentRootName
-
-
-
-
Field Detail
-
INDICE_VALUE
public static final int INDICE_VALUE
- See Also:
- Constant Field Values
-
INDICE_LIB
public static final int INDICE_LIB
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SilverStatisticsPeasSessionController
public SilverStatisticsPeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur- Parameters:
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
-
-
Method Detail
-
isAccessGranted
public boolean isAccessGranted()
Description copied from class:AbstractAdminComponentSessionController
Used mainly byAbstractAdminComponentSessionController.checkAccessGranted()
.Each implementation can precise or change this default implementation.
- Overrides:
isAccessGranted
in classAbstractAdminComponentSessionController
- Returns:
- true if access granted, false otherwise.
-
getUserProfile
public UserAccessLevel getUserProfile()
-
getConnectedUsersList
public Collection<SessionInfo> getConnectedUsersList()
-
getStatsConnexionAllAll
public Collection<String[]> getStatsConnexionAllAll(String dateBegin, String dateEnd)
-
getDistinctUserConnectionsChart
public PeriodChart getDistinctUserConnectionsChart(String dateBegin, String dateEnd)
- Returns:
-
getUserConnectionsChart
public PeriodChart getUserConnectionsChart(String dateBegin, String dateEnd)
- Returns:
-
getUserConnectionsUserChart
public PeriodChart getUserConnectionsUserChart(String dateBegin, String dateEnd, String idUser)
- Returns:
-
getStatsConnexionAllGroup
public Collection<String[]> getStatsConnexionAllGroup(String dateBegin, String dateEnd, String idGroup)
donne les stats pour un groupe seulement cad 2 info, la collection contient donc un seul element- Parameters:
dateBegin
- a begin date string representation yyyy/MM/dddateEnd
- an end date string representation yyyy/MM/ddidGroup
- a user group identifier- Returns:
-
getUserConnectionsGroupChart
public PeriodChart getUserConnectionsGroupChart(String dateBegin, String dateEnd, String idGroup)
- Parameters:
dateBegin
- a begin date string representation yyyy/MM/dddateEnd
- an end date string representation yyyy/MM/ddidGroup
- a user group identifier- Returns:
- an
PeriodChart
that represents the statistic data.
-
getStatsConnexionGroupAll
public Collection<String[]> getStatsConnexionGroupAll(String dateBegin, String dateEnd)
-
getStatsConnexionGroupUser
public Collection<String[]> getStatsConnexionGroupUser(String dateBegin, String dateEnd, String idUser)
-
getStatsConnexionUserAll
public Collection<String[]> getStatsConnexionUserAll(String dateBegin, String dateEnd)
-
getStatsConnexionUser
public Collection<String[]> getStatsConnexionUser(String dateBegin, String dateEnd, String idUser)
-
kickSession
public void kickSession(String sessionId)
-
getTargetUserDetail
public UserDetail getTargetUserDetail(String userId)
-
initUserPanel
public String initUserPanel()
-
retourUserPanel
public void retourUserPanel()
-
getUserConnectionsFqChart
public PeriodChart getUserConnectionsFqChart(String dateBegin, String dateEnd, String statDetail)
- Returns:
-
initAccessUserPanelGroup
public String initAccessUserPanelGroup()
-
retourAccessUserPanelGroup
public void retourAccessUserPanelGroup()
-
initAccessUserPanelUser
public String initAccessUserPanelUser()
-
retourAccessUserPanelUser
public void retourAccessUserPanelUser()
-
initVolumeUserPanelGroup
public String initVolumeUserPanelGroup()
-
initVolumeUserPanelUser
public String initVolumeUserPanelUser()
-
getUserVentilChart
public PieChart getUserVentilChart(String dateStat, String filterIdGroup, String filterIdUser, String spaceId)
-
getEvolutionUserChart
public PeriodChart getEvolutionUserChart(String entite, String entiteId, String filterLibGroup, String filterIdGroup, String filterLibUser, String filterIdUser)
- Returns:
-
getVolumeServicesChart
public PieChart getVolumeServicesChart()
- Returns:
-
getPubliVentilChart
public PieChart getPubliVentilChart(String dateStat, String filterIdGroup, String filterIdUser, String spaceId)
- Returns:
-
getDocsSizeVentilChart
public PieChart getDocsSizeVentilChart(String spaceId)
- Parameters:
spaceId
-- Returns:
-
getEvolutionDocsSizeChart
public PeriodChart getEvolutionDocsSizeChart()
- Returns:
-
getFormYearConnection
public Collection<String[]> getFormYearConnection(String yearValue)
-
getFormYearAccess
public Collection<String[]> getFormYearAccess(String yearValue)
-
getFormYearVolume
public Collection<String[]> getFormYearVolume(String yearValue)
-
getFormMonth
public Collection<String[]> getFormMonth(String monthValue)
-
getDetail
public Collection<String[]> getDetail(String value)
-
getFrequenceDetail
public Collection<String[]> getFrequenceDetail(String value)
-
getSettings
public org.silverpeas.kernel.bundle.SettingBundle getSettings()
- Specified by:
getSettings
in interfaceComponentSessionController
- Overrides:
getSettings
in classAbstractComponentSessionController
-
setMonthBegin
public void setMonthBegin(String s)
-
setYearBegin
public void setYearBegin(String s)
-
setMonthEnd
public void setMonthEnd(String s)
-
setYearEnd
public void setYearEnd(String s)
-
setActorDetail
public void setActorDetail(String s)
-
setFrequenceDetail
public void setFrequenceDetail(String s)
-
setFilterType
public void setFilterType(String s)
-
setFilterLib
public void setFilterLib(String s)
-
setFilterId
public void setFilterId(String s)
-
setAccessMonthBegin
public void setAccessMonthBegin(String s)
-
setAccessYearBegin
public void setAccessYearBegin(String s)
-
setAccessFilterLibGroup
public void setAccessFilterLibGroup(String s)
-
setAccessFilterIdGroup
public void setAccessFilterIdGroup(String s)
-
setAccessFilterLibUser
public void setAccessFilterLibUser(String s)
-
setAccessFilterIdUser
public void setAccessFilterIdUser(String s)
-
setAccessSpaceId
public void setAccessSpaceId(String s)
-
getMonthBegin
public String getMonthBegin()
-
getYearBegin
public String getYearBegin()
-
getMonthEnd
public String getMonthEnd()
-
getYearEnd
public String getYearEnd()
-
getActorDetail
public String getActorDetail()
-
getFrequenceDetail
public String getFrequenceDetail()
-
getFilterType
public String getFilterType()
-
getFilterLib
public String getFilterLib()
-
getFilterId
public String getFilterId()
-
getAccessMonthBegin
public String getAccessMonthBegin()
-
getAccessYearBegin
public String getAccessYearBegin()
-
getAccessFilterLibGroup
public String getAccessFilterLibGroup()
-
getAccessFilterIdGroup
public String getAccessFilterIdGroup()
-
getAccessFilterLibUser
public String getAccessFilterLibUser()
-
getAccessFilterIdUser
public String getAccessFilterIdUser()
-
getAccessSpaceId
public String getAccessSpaceId()
-
clearCurrentStats
public void clearCurrentStats()
-
exportCurrentDataAsCSV
public ExportCSVBuilder exportCurrentDataAsCSV()
-
getPrimaryAxis
public List<StatisticAxisVO> getPrimaryAxis() throws PdcException
- Returns:
- Throws:
PdcException
-
getAxisStats
public List<StatisticVO> getAxisStats(AxisStatsFilter statsFilter)
Retrieve statistics on axis- Parameters:
statsFilter
- an axis stats filter- Returns:
- a Statistic value object
-
buildCustomComponentListWhereToSearch
public List<String> buildCustomComponentListWhereToSearch()
This method allow user to search over multiple component selection
-
getCrossAxisStats
public CrossStatisticVO getCrossAxisStats(CrossAxisStatsFilter statsFilter)
Retrieve cross axis statistics- Parameters:
statsFilter
-- Returns:
- list of statistic value object
-
-