Package org.imixs.marty.profile
Class ProfileEvent
java.lang.Object
org.imixs.marty.profile.ProfileEvent
The ProfileEvent provides a CDI observer pattern. The ProfileEvent is fired
by the ProfileService EJB. An event Observer can react on a lookup or create
event.
The ProfileEvent defines the following event types:
- ON_PROFILE_LOOKUP - send if a local lookup for a profile failed
- ON_PROFILE_CREATE - send immediately after a profile was created
- Version:
- 1.0
- Author:
- Ralph Soika
- See Also:
-
org.imixs.marty.ejb.ProfileService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionProfileEvent(String userId, org.imixs.workflow.ItemCollection profile, int eventType) Creates a profile event based on a existing Profile ItemCollection -
Method Summary
Modifier and TypeMethodDescriptionintorg.imixs.workflow.ItemCollectionvoidsetProfile(org.imixs.workflow.ItemCollection profile) void
-
Field Details
-
ON_PROFILE_LOOKUP
public static final int ON_PROFILE_LOOKUP- See Also:
-
ON_PROFILE_CREATE
public static final int ON_PROFILE_CREATE- See Also:
-
ON_PROFILE_LOGIN
public static final int ON_PROFILE_LOGIN- See Also:
-
-
Constructor Details
-
ProfileEvent
Creates a profile event based on a existing Profile ItemCollection- Parameters:
userId- - useridprofile- - optional profile ItemCollectioneventType-
-
-
Method Details
-
getEventType
public int getEventType() -
getProfile
public org.imixs.workflow.ItemCollection getProfile() -
setProfile
public void setProfile(org.imixs.workflow.ItemCollection profile) -
getUserId
-
setUserId
-