Class UserTrackingServiceImpl
java.lang.Object
org.opencastproject.usertracking.impl.UserTrackingServiceImpl
- All Implemented Interfaces:
org.opencastproject.usertracking.api.UserTrackingService,org.osgi.service.cm.ManagedService
public class UserTrackingServiceImpl
extends Object
implements org.opencastproject.usertracking.api.UserTrackingService, org.osgi.service.cm.ManagedService
Implementation of org.opencastproject.usertracking.api.UserTrackingService
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.db.DBSessionprotected org.opencastproject.db.DBSessionFactorystatic final Stringprotected javax.persistence.EntityManagerFactoryThe factory used to generate the entity managerstatic final Stringstatic final Stringstatic final StringJPA persistence unit namestatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activation callback to be executed once all dependencies are setorg.opencastproject.usertracking.api.UserActionaddUserFootprint(org.opencastproject.usertracking.api.UserAction action, org.opencastproject.usertracking.api.UserSession session) org.opencastproject.usertracking.api.UserActionaddUserTrackingEvent(org.opencastproject.usertracking.api.UserAction a, org.opencastproject.usertracking.api.UserSession session) org.opencastproject.usertracking.api.FootprintListgetFootprints(String mediapackageId, String userId) org.opencastproject.usertracking.api.ReportgetReport(int offset, int limit) org.opencastproject.usertracking.api.Reportorg.opencastproject.usertracking.api.UserActiongetUserAction(Long id) org.opencastproject.usertracking.api.UserActionListgetUserActions(int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByDay(String day, int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByType(String type, int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByTypeAndDay(String type, String day, int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByTypeAndMediapackageId(String type, String mediapackageId, int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByTypeAndMediapackageIdByDate(String type, String mediapackageId, int offset, int limit) org.opencastproject.usertracking.api.UserActionListgetUserActionsByTypeAndMediapackageIdByDescendingDate(String type, String mediapackageId, int offset, int limit) booleanintvoidsetDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) voidupdated(Dictionary props)
-
Field Details
-
PERSISTENCE_UNIT
JPA persistence unit name- See Also:
-
FOOTPRINT_KEY
- See Also:
-
DETAILED_TRACKING
- See Also:
-
IP_LOGGING
- See Also:
-
USER_LOGGING
- See Also:
-
SESSION_LOGGING
- See Also:
-
emf
protected javax.persistence.EntityManagerFactory emfThe factory used to generate the entity manager -
dbSessionFactory
protected org.opencastproject.db.DBSessionFactory dbSessionFactory -
db
protected org.opencastproject.db.DBSession db
-
-
Constructor Details
-
UserTrackingServiceImpl
public UserTrackingServiceImpl()
-
-
Method Details
-
setDBSessionFactory
public void setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) -
activate
public void activate()Activation callback to be executed once all dependencies are set -
updated
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-
getViews
- Specified by:
getViewsin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
addUserFootprint
public org.opencastproject.usertracking.api.UserAction addUserFootprint(org.opencastproject.usertracking.api.UserAction action, org.opencastproject.usertracking.api.UserSession session) throws org.opencastproject.usertracking.api.UserTrackingException - Specified by:
addUserFootprintin interfaceorg.opencastproject.usertracking.api.UserTrackingService- Throws:
org.opencastproject.usertracking.api.UserTrackingException
-
addUserTrackingEvent
public org.opencastproject.usertracking.api.UserAction addUserTrackingEvent(org.opencastproject.usertracking.api.UserAction a, org.opencastproject.usertracking.api.UserSession session) throws org.opencastproject.usertracking.api.UserTrackingException - Specified by:
addUserTrackingEventin interfaceorg.opencastproject.usertracking.api.UserTrackingService- Throws:
org.opencastproject.usertracking.api.UserTrackingException
-
getUserActions
public org.opencastproject.usertracking.api.UserActionList getUserActions(int offset, int limit) - Specified by:
getUserActionsin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByType
public org.opencastproject.usertracking.api.UserActionList getUserActionsByType(String type, int offset, int limit) - Specified by:
getUserActionsByTypein interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByTypeAndMediapackageId
public org.opencastproject.usertracking.api.UserActionList getUserActionsByTypeAndMediapackageId(String type, String mediapackageId, int offset, int limit) - Specified by:
getUserActionsByTypeAndMediapackageIdin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByTypeAndDay
public org.opencastproject.usertracking.api.UserActionList getUserActionsByTypeAndDay(String type, String day, int offset, int limit) - Specified by:
getUserActionsByTypeAndDayin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByTypeAndMediapackageIdByDate
public org.opencastproject.usertracking.api.UserActionList getUserActionsByTypeAndMediapackageIdByDate(String type, String mediapackageId, int offset, int limit) - Specified by:
getUserActionsByTypeAndMediapackageIdByDatein interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByTypeAndMediapackageIdByDescendingDate
public org.opencastproject.usertracking.api.UserActionList getUserActionsByTypeAndMediapackageIdByDescendingDate(String type, String mediapackageId, int offset, int limit) - Specified by:
getUserActionsByTypeAndMediapackageIdByDescendingDatein interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserActionsByDay
public org.opencastproject.usertracking.api.UserActionList getUserActionsByDay(String day, int offset, int limit) - Specified by:
getUserActionsByDayin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getReport
public org.opencastproject.usertracking.api.Report getReport(int offset, int limit) - Specified by:
getReportin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getReport
public org.opencastproject.usertracking.api.Report getReport(String from, String to, int offset, int limit) throws ParseException - Specified by:
getReportin interfaceorg.opencastproject.usertracking.api.UserTrackingService- Throws:
ParseException
-
getFootprints
public org.opencastproject.usertracking.api.FootprintList getFootprints(String mediapackageId, String userId) - Specified by:
getFootprintsin interfaceorg.opencastproject.usertracking.api.UserTrackingService
-
getUserAction
public org.opencastproject.usertracking.api.UserAction getUserAction(Long id) throws org.opencastproject.usertracking.api.UserTrackingException, org.opencastproject.util.NotFoundException - Specified by:
getUserActionin interfaceorg.opencastproject.usertracking.api.UserTrackingService- Throws:
org.opencastproject.usertracking.api.UserTrackingExceptionorg.opencastproject.util.NotFoundException- See Also:
-
getUserTrackingEnabled
public boolean getUserTrackingEnabled()- Specified by:
getUserTrackingEnabledin interfaceorg.opencastproject.usertracking.api.UserTrackingService- See Also:
-