Class UserTypeCreateEvent

java.lang.Object
overit.geocall.bl.GenericEvent<BOUserType>
overit.geocall.bl.BusinessEvent<BOUserType>
overit.geocall.basic.bl.usertype.event.UserTypeCreateEvent

public class UserTypeCreateEvent extends BusinessEvent<BOUserType>
Event that will be called to request a user type creation
Since:
9.2
GCApi:
event
Reactors:
BTUserTypeCreate(-10), BTUserTypeCreateLog(0), BTUserTypeCreate(0)
Spouts:
UserTypeCreateEventSpoutImpl
  • Field Details

    • userType

      protected BOUserType userType
    • sameCompany

      protected boolean sameCompany
  • Constructor Details

    • UserTypeCreateEvent

      public UserTypeCreateEvent(BOUserType userType)
      Create a new event that will be called to request a user type creation
      Parameters:
      userType - the instance of the user type that will be created
    • UserTypeCreateEvent

      public UserTypeCreateEvent(BOUserType userType, boolean sameCompany)
      Create a new event that will be called to request a user type creation
      Parameters:
      userType - the instance of the user type that will be created
      sameCompany - boolean value indicating if the user is from the same company of the caller
  • Method Details

    • getUserType

      public BOUserType getUserType()
      Returns the instance of the user type that will be created
      Returns:
      the instance of the user type that will be created
    • isSameCompany

      public boolean isSameCompany()
      Returns true if the user share the same company of the caller, false otherwise
      Returns:
      true if the user share the same company of the caller, false otherwise