Employee

public class Employee

Represents an employee.

Methods

create

public static Employee create()

getDisplayName

public String getDisplayName()

The name for display or printing on the receipt. This will generally be a shortened version of the full name.

getEmailAddress

public String getEmailAddress()

The email address of the employee. This will return null if the employee does not have an email address or if the requester does not have permission to read the email address

getLastLoggedInTime

public String getLastLoggedInTime()

The timestamp of most recent login to this device

getLastLoggedOutTime

public String getLastLoggedOutTime()

The timestamp of most recent logout out of this device This may have been due to inactivity or explicitly logging out.

getName

public String getName()

The full name of the employee.

getPhoneNumber

public String getPhoneNumber()

The phone number of the employee. This will return null if the employee does not have a phone number or if the requester does not have permission to read the phone number.

getRecordId

public String getRecordId()

A unique, logical ID for the employee. This is consistent across devices, and is separate from the internal _ID.

getRoles

public ArrayList<Roles> getRoles()

The roles associated with this employee.

isCurrentEmployee

public boolean isCurrentEmployee()

Returns true if this employee is currently logged in.

login

public boolean login()

Performs login

logout

public boolean logout()

Performs logout