Class ParticipantImpl

java.lang.Object
com.flowable.engage.engine.impl.notification.ParticipantImpl
All Implemented Interfaces:
Participant

public class ParticipantImpl
extends java.lang.Object
implements Participant
Author:
Filip Hrisafov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String id  
    protected java.util.Collection<java.lang.String> participantTypes  
  • Constructor Summary

    Constructors 
    Constructor Description
    ParticipantImpl​(java.lang.String id, java.util.Collection<java.lang.String> participantTypes)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getId()
    Returns the id of the participant (equals the user id).
    java.util.Collection<java.lang.String> getParticipantTypes()
    Returns the participant types of the user.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      protected final java.lang.String id
    • participantTypes

      protected final java.util.Collection<java.lang.String> participantTypes
  • Constructor Details

    • ParticipantImpl

      public ParticipantImpl​(java.lang.String id, java.util.Collection<java.lang.String> participantTypes)
  • Method Details

    • getId

      public java.lang.String getId()
      Description copied from interface: Participant
      Returns the id of the participant (equals the user id).
      Specified by:
      getId in interface Participant
      Returns:
      the id of the participant user
    • getParticipantTypes

      public java.util.Collection<java.lang.String> getParticipantTypes()
      Description copied from interface: Participant
      Returns the participant types of the user. As the user might be included in more than one type, this method returns a collection of types (e.g. if the user is both owner and assignee, it would return two values in the collection).
      Specified by:
      getParticipantTypes in interface Participant
      Returns:
      the collection of types for this participant