001package service.tut.pori.users;
002
003import core.tut.pori.users.ExternalAccountConnection.UserServiceType;
004import core.tut.pori.users.UserEvent;
005import core.tut.pori.users.UserIdentity;
006
007/**
008 * User Event with extensions for user service events.
009 * 
010 */
011public class UserServiceEvent extends UserEvent{
012  private static final long serialVersionUID = 6070897020729593055L;
013  private UserServiceType _serviceType = null;
014  
015  /**
016   * 
017   * 
018   * @param eventType
019   * @param serviceType optional service type
020   * @param source
021   * @param userId
022   */
023  public UserServiceEvent(EventType eventType, UserServiceType serviceType, Class<?> source, UserIdentity userId) {
024    super(source, userId, eventType);
025    _serviceType = serviceType;
026  }
027
028  /**
029   * @return the serviceType or null if none specified
030   */
031  public UserServiceType getUserServiceType() {
032    return _serviceType;
033  }
034}