public class ProfileEventTrigger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
ProfileEventTrigger() |
Modifier and Type | Method and Description |
---|---|
atg.service.event.EventDistributor |
getDistributor()
The EventDistributor to send fired events to.
|
atg.userprofiling.dms.DPSMessageSource |
getMessageSource()
Returns property messageSource
|
long |
getNumLoginEvents()
Returns property NumLoginEvents
|
long |
getNumLogoutEvents()
Returns property NumLogoutEvents
|
long |
getNumRegisterEvents()
Returns property NumRegisterEvents
|
boolean |
isBroadcastAdminRegisterEvents()
Returns property BroadcastAdminRegisterEvents
|
boolean |
isBroadcastLoginEvents()
Returns property BroadcastLoginEvents
|
boolean |
isBroadcastLogoutEvents()
Returns property BroadcastLogoutEvents
|
boolean |
isBroadcastRegisterEvents()
Returns property BroadcastRegisterEvents
|
void |
sendAdminRegisterEvent(RepositoryItem pAdminProfile,
RepositoryItem pProfile,
DynamoHttpServletRequest pRequest)
Sends off an event indicating that the given user profile was
registered by the given administrator profile.
|
void |
sendLoginEvent(RepositoryItem pProfile,
DynamoHttpServletRequest pRequest)
Sends off a SessionEvent of type login for the given profile.
|
void |
sendLogoutEvent(RepositoryItem pProfile,
DynamoHttpServletRequest pRequest)
Sends off a SessionEvent of type logout for the given profile.
|
void |
sendLogoutEvent(java.lang.String pProfileId,
DynamoHttpServletRequest pRequest)
Sends off a SessionEvent of type logout for the given profile.
|
void |
sendRegisterEvent(RepositoryItem pProfile,
DynamoHttpServletRequest pRequest)
Sends off a SessionEvent of type register for the given profile.
|
void |
setBroadcastAdminRegisterEvents(boolean pBroadcastAdminRegisterEvents)
Sets property BroadcastAdminRegisterEvents
|
void |
setBroadcastLoginEvents(boolean pBroadcastLoginEvents)
Sets property BroadcastLoginEvents
|
void |
setBroadcastLogoutEvents(boolean pBroadcastLogoutEvents)
Sets property BroadcastLogoutEvents
|
void |
setBroadcastRegisterEvents(boolean pBroadcastRegisterEvents)
Sets property BroadcastRegisterEvents
|
void |
setDistributor(atg.service.event.EventDistributor pValue)
The EventDistributor to send fired events to.
|
void |
setMessageSource(atg.userprofiling.dms.DPSMessageSource pMessageSource)
Sets property messageSource
|
public void setDistributor(atg.service.event.EventDistributor pValue)
public atg.service.event.EventDistributor getDistributor()
public long getNumLoginEvents()
public long getNumLogoutEvents()
public long getNumRegisterEvents()
public void setBroadcastLoginEvents(boolean pBroadcastLoginEvents)
public boolean isBroadcastLoginEvents()
public void setBroadcastLogoutEvents(boolean pBroadcastLogoutEvents)
public boolean isBroadcastLogoutEvents()
public void setBroadcastRegisterEvents(boolean pBroadcastRegisterEvents)
public boolean isBroadcastRegisterEvents()
public void setBroadcastAdminRegisterEvents(boolean pBroadcastAdminRegisterEvents)
public boolean isBroadcastAdminRegisterEvents()
public void setMessageSource(atg.userprofiling.dms.DPSMessageSource pMessageSource)
public atg.userprofiling.dms.DPSMessageSource getMessageSource()
public void sendLoginEvent(RepositoryItem pProfile, DynamoHttpServletRequest pRequest)
public void sendLogoutEvent(RepositoryItem pProfile, DynamoHttpServletRequest pRequest)
public void sendLogoutEvent(java.lang.String pProfileId, DynamoHttpServletRequest pRequest)
pProfileId
- the id of the person who has logged outpRequest
- the current request
NOTE: The user may have already logged out at this point, and thus
the request will not point to their profile any longerpublic void sendRegisterEvent(RepositoryItem pProfile, DynamoHttpServletRequest pRequest)
public void sendAdminRegisterEvent(RepositoryItem pAdminProfile, RepositoryItem pProfile, DynamoHttpServletRequest pRequest)