Class SystemInstance

java.lang.Object
com.aquima.interactions.portal.model.session.SystemInstance

public final class SystemInstance extends Object
Class that can be used to access the system instance with its attribute values. This class is for internal use only, so does not contain all needed methods for external use.
Since:
8.4
Author:
Jon van Leuven
  • Field Details

  • Method Details

    • getInstance

      public static SystemInstance getInstance(IProfile profile)
      This method can be used to acquire a system instance.
      Parameters:
      profile - The profile that contains the system instance.
      Returns:
      The system instance, never null.
    • getToday

      public IValue getToday()
      This method returns the current value for system.today.
    • setToday

      public void setToday(DateValue today)
      This method sets the current value for system.today.
      Parameters:
      today - The value for system.today
    • getEvent

      public IValue getEvent()
      This method returns the current value for system.event.
      Returns:
      The current value for system.event, never null.
    • setEvent

      public void setEvent(IValue events)
      This method sets the current values for system.event.
      Parameters:
      events - The values for system.event
    • setEvent

      public void setEvent(String... events)
      This method sets the current values for system.event.
      Parameters:
      events - The values for system.event
    • addEvent

      public void addEvent(String event)
      This method adds a value to system.event.
      Parameters:
      event - The value to add to system.event
    • setChannel

      public void setChannel(String channelName)
      This method sets the current value for system.channel.
      Parameters:
      channelName - The value for system.channel
    • setUserInfo

      public void setUserInfo(String userId, String userName, String[] roles, String[] teams, String tenant)
      This method sets the current value for system.authorizationroles.
      Parameters:
      roles - The values for system.authorizationroles
    • getLanguageName

      public IValue getLanguageName()
      This method returns the current value of system.language
      Returns:
      the value for system.language
    • setLanguageName

      public void setLanguageName(String name)
      This method sets the current value for system.language.
      Parameters:
      name - The value for system.language
    • setCurrentPage

      public void setCurrentPage(String pageName)
      This method sets the current value for system.currentpage.
      Parameters:
      pageName - The value for system.currentpage
    • setPageValid

      public void setPageValid(boolean pageValid)
      This method sets the current value for system.pagevalid.
      Parameters:
      pageValid - The value for system.pagevalid
    • getTaskId

      public IValue getTaskId()
    • setTaskId

      public void setTaskId(IValue taskId)
    • getTaskName

      public IValue getTaskName()
    • setTaskName

      public void setTaskName(IValue taskName)
    • getCaseId

      public IValue getCaseId()
    • setCaseId

      public void setCaseId(IValue caseId)