Class ProcessContext

    • Constructor Detail

      • ProcessContext

        public ProcessContext()
        Creates an empty ProcessContext.
      • ProcessContext

        public ProcessContext​(VariablesSecureApp vars)
        Creates a ProcessContext using the information of VariablesSecureApp object.
        Parameters:
        vars - a VariablesSecureApp object with the session information used to initialize the ProcessContext properties.
      • ProcessContext

        public ProcessContext​(VariablesSecureApp vars,
                              String client,
                              String org,
                              boolean roleSecurity)
        Create a request with the selected client and organization.
        Parameters:
        vars -
        client -
        org -
    • Method Detail

      • getUser

        public String getUser()
        Returns:
        the user
      • getRole

        public String getRole()
        Returns:
        the role
      • getLanguage

        public String getLanguage()
        Returns:
        the language
      • getTheme

        public String getTheme()
        Returns:
        the theme
      • getClient

        public String getClient()
        Returns:
        the client
      • getOrganization

        public String getOrganization()
        Returns:
        the organization
      • getWarehouse

        public String getWarehouse()
        Returns:
        the warehouse
      • getCommand

        public String getCommand()
        Returns:
        the command
      • getUserClient

        public String getUserClient()
        Returns:
        the userClient
      • getUserOrganization

        public String getUserOrganization()
        Returns:
        the userOrganization
      • getDbSessionID

        public String getDbSessionID()
        Returns:
        the dbSessionID
      • getJavaDateFormat

        public String getJavaDateFormat()
        Returns:
        the javaDateFormat
      • getJavaDateTimeFormat

        public String getJavaDateTimeFormat()
        Returns:
        the javaDateTimeFormat
      • getJsDateFormat

        public String getJsDateFormat()
        Returns:
        the jsDateFormat
      • getSqlDateFormat

        public String getSqlDateFormat()
        Returns:
        the sqlDateFormat
      • getAccessLevel

        public String getAccessLevel()
        Returns:
        the accessLevel
      • isRoleSecurity

        public boolean isRoleSecurity()
        Returns:
        whether the security for the process is based on role.
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a JSON string representation of this ProcessContext
      • newInstance

        public static ProcessContext newInstance​(String processContext)
        Parameters:
        processContext - a String with the JSON representation of a ProcessContext
        Returns:
        a new instance created from the provided JSON representation of a ProcessContext. This method returns null if the provided String is null, empty or if it is an invalid JSON definition of a ProcessContext.