Share via


JmgEmployee.checkAutorized Method

Checks whether the worker can make registrations in the system.

Syntax

public boolean checkAutorized(boolean throwError, [boolean addToInfolog])

Run On

Called

Parameters

  • throwError
    Type: boolean
    A Boolean value that indicates whether an error must be thrown if the worker is not authorized.
  • addToInfolog
    Type: boolean
    A Boolean value that indicates whether the error must be shown in the Infolog.

Return Value

Type: boolean
true if the worker is authorized correctly; otherwise, false.

Exceptions

Exception Condition
Error

The worker is not authorized correctly.

Remarks

If the system is configured to use passwords, the user is prompted to input a password.

See Also

Reference

JmgEmployee Table