public class UserEventLoggingService extends atg.reporting.datacollection.IdGeneratorLoggingService implements UserEventLogging
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mDataListenersSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
UserEventLoggingService()
Constructs an instanceof UserEventLoggingService
|
| Modifier and Type | Method and Description |
|---|---|
void |
doStartService()
Loads the logging event type ids.
|
java.lang.Integer |
getEventTypeId(java.lang.String pTypeName)
Returns the id of the given named user event type
|
java.lang.String[] |
getEventTypes()
Returns the list of the known user event types available for logging
|
java.lang.String |
getLoginLoggingEventTypeName()
Returns property LoginLoggingEventTypeName
|
java.lang.String |
getLogoutLoggingEventTypeName()
Returns property LogoutLoggingEventTypeName
|
java.lang.String |
getNewSessionLoggingEventTypeName()
Returns property NewSessionLoggingEventTypeName
|
java.lang.String |
getRegistrationLoggingEventTypeName()
Returns property RegistrationLoggingEventTypeName
|
java.lang.String |
getSessionExpirationLoggingEventTypeName()
Returns property SessionExpirationLoggingEventTypeName
|
long |
getTotalItemCount()
Returns property TotalItemCount
|
atg.reporting.datacollection.UserEventTypes |
getUserEventTypes()
Returns property UserEventTypes
|
java.lang.Long |
logEndSession(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
Generates a log entry indicating that a session was expired
|
java.lang.Long |
logLogin(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
Generates a log entry indicating that a user logged into the system
|
java.lang.Long |
logLogout(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
Generates a log entry indicating that a user logged out of the system
|
java.lang.Long |
logNewSession(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
Generates a log entry indicating that a new session was created
|
java.lang.Long |
logRegistration(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
Generates a log entry indicating that a new user registered
|
void |
setLoginLoggingEventTypeName(java.lang.String pLoginLoggingEventTypeName)
Sets property LoginLoggingEventTypeName
|
void |
setLogoutLoggingEventTypeName(java.lang.String pLogoutLoggingEventTypeName)
Sets property LogoutLoggingEventTypeName
|
void |
setNewSessionLoggingEventTypeName(java.lang.String pNewSessionLoggingEventTypeName)
Sets property NewSessionLoggingEventTypeName
|
void |
setRegistrationLoggingEventTypeName(java.lang.String pRegistrationLoggingEventTypeName)
Sets property RegistrationLoggingEventTypeName
|
void |
setSessionExpirationLoggingEventTypeName(java.lang.String pSessionExpirationLoggingEventTypeName)
Sets property SessionExpirationLoggingEventTypeName
|
void |
setUserEventTypes(atg.reporting.datacollection.UserEventTypes pUserEventTypes)
Sets property UserEventTypes
|
getIdBurnFactor, getIdGenerator, getIdSource, getIdSpace, isEnableLogging, nextId, setEnableLogging, setIdBurnFactor, setIdGenerator, setIdSource, setIdSpaceaddDataListener, getDataListenerCount, getDataListeners, removeDataListener, sendDataItemaddLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic UserEventLoggingService()
public void setNewSessionLoggingEventTypeName(java.lang.String pNewSessionLoggingEventTypeName)
public java.lang.String getNewSessionLoggingEventTypeName()
public void setSessionExpirationLoggingEventTypeName(java.lang.String pSessionExpirationLoggingEventTypeName)
public java.lang.String getSessionExpirationLoggingEventTypeName()
public void setLoginLoggingEventTypeName(java.lang.String pLoginLoggingEventTypeName)
public java.lang.String getLoginLoggingEventTypeName()
public void setRegistrationLoggingEventTypeName(java.lang.String pRegistrationLoggingEventTypeName)
public java.lang.String getRegistrationLoggingEventTypeName()
public void setLogoutLoggingEventTypeName(java.lang.String pLogoutLoggingEventTypeName)
public java.lang.String getLogoutLoggingEventTypeName()
public void setUserEventTypes(atg.reporting.datacollection.UserEventTypes pUserEventTypes)
public atg.reporting.datacollection.UserEventTypes getUserEventTypes()
public long getTotalItemCount()
public void doStartService()
throws ServiceException
doStartService in class atg.reporting.datacollection.IdGeneratorLoggingServiceServiceException - if the Service had a problem starting uppublic java.lang.String[] getEventTypes()
public java.lang.Integer getEventTypeId(java.lang.String pTypeName)
throws atg.reporting.datacollection.LoggingException
pTypeName - the name of the type (e.g. "new session")LoggingException - if there was a problem fetching the user
event type idpublic java.lang.Long logNewSession(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
throws atg.reporting.datacollection.LoggingException
logNewSession in interface UserEventLoggingpSessionId - the id of the new sessionpProfileId - the id of the user who started the new sessionpMember - true if the action is coming from a "member"LoggingException - if there was a problem while performing the log operationpublic java.lang.Long logEndSession(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
throws atg.reporting.datacollection.LoggingException
logEndSession in interface UserEventLoggingpSessionId - the id of the expired sessionpProfileId - the id of the user whose session expiredpMember - true if the action is coming from a "member"LoggingException - if there was a problem while performing the log operationpublic java.lang.Long logLogin(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
throws atg.reporting.datacollection.LoggingException
logLogin in interface UserEventLoggingpSessionId - the id of the user's sessionpProfileId - the id of the user who logged inpMember - true if the action is coming from a "member"LoggingException - if there was a problem while performing the log operationpublic java.lang.Long logRegistration(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
throws atg.reporting.datacollection.LoggingException
logRegistration in interface UserEventLoggingpSessionId - the id of the user's sessionpProfileId - the id of the user who registeredpMember - true if the action is coming from a "member"LoggingException - if there was a problem while performing the log operationpublic java.lang.Long logLogout(java.lang.String pSessionId,
java.lang.String pProfileId,
boolean pMember)
throws atg.reporting.datacollection.LoggingException
logLogout in interface UserEventLoggingpSessionId - the id of the user's sessionpProfileId - the id of the user who logged outpMember - true if the action is coming from a "member"LoggingException - if there was a problem while performing the log operation