|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.events.handlers.AbstractLimitedSupportEventHandler
org.jasig.portal.events.handlers.db.JpaPortalEventStore
@Repository public class JpaPortalEventStore
Stores portal events using JPA/Hibenate no internall batch segementation is done to the passed list
of PortalEvents. If a PortalEvent is not mapped as a persistent entity a message is logged
at the WARN level and the event is ignored.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
protected static String |
STATS_SESSION_ID_PERSON_ATTR
|
| Constructor Summary | |
|---|---|
JpaPortalEventStore()
|
|
| Method Summary | |
|---|---|
protected EventType |
findExistingEventType(EventType eventType)
Contains the logic to query for an already persisted EventType with the same type value. |
EntityManager |
getEntityManager()
|
protected StatsSession |
getStatsSession(IPerson person)
Gets a StatsSession object for the specified person, creating, populating and persisting it if needed |
void |
handleEvent(PortalEvent event)
Method to handle any processing of the event that is needed. |
void |
handleEvents(PortalEvent... events)
Method to handle any processing of an array of events that is needed. |
boolean |
isLogSessionGroups()
|
void |
setEntityManager(EntityManager entityManager)
|
void |
setLogSessionGroups(boolean logSessionGroups)
If group keys should be included in the stats session. |
void |
storePortalEvents(PortalEvent... portalEvents)
|
protected void |
updateStatsSessionGroups(StatsSession session,
IPerson person)
Sets the StatsSession.setGroups(Set) using the keys from the IGroupMembers returned by
IGroupMember.getAllContainingGroups() |
| Methods inherited from class org.jasig.portal.events.handlers.AbstractLimitedSupportEventHandler |
|---|
getIgnoredUserNames, getSupportedEvents, getSupportedUserNames, isExplicitMatching, isRequireAll, isSupportGuest, setExplicitMatching, setIgnoredUserNames, setRequireAll, setSupportedEvents, setSupportedUserNames, setSupportGuest, supports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.events.EventHandler |
|---|
supports |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
protected static final String STATS_SESSION_ID_PERSON_ATTR
| Constructor Detail |
|---|
public JpaPortalEventStore()
| Method Detail |
|---|
public EntityManager getEntityManager()
public void setEntityManager(EntityManager entityManager)
entityManager - the entityManager to setpublic boolean isLogSessionGroups()
public void setLogSessionGroups(boolean logSessionGroups)
logSessionGroups - the logSessionGroups to setpublic void handleEvent(PortalEvent event)
EventHandler
handleEvent in interface EventHandlerevent - the event to handle.public void handleEvents(PortalEvent... events)
BatchingEventHandler
handleEvents in interface BatchingEventHandlerevents - the events to handle.public void storePortalEvents(PortalEvent... portalEvents)
storePortalEvents in interface IPortalEventStoreprotected StatsSession getStatsSession(IPerson person)
protected void updateStatsSessionGroups(StatsSession session,
IPerson person)
throws GroupsException
StatsSession.setGroups(Set) using the keys from the IGroupMembers returned by
IGroupMember.getAllContainingGroups()
GroupsExceptionprotected EventType findExistingEventType(EventType eventType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||