public static class IEmployeeService.Default extends Object implements IEmployeeService
IEmployeeService.Default, IEmployeeService.Stub
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IEmployeeListener listener,
ResultStatus resultStatus)
Register a listener to be called when the active employee changes, which
coincides with the lockscreen being shown or dismissed.
|
IBinder |
asBinder() |
Employee |
createEmployee(Employee employee,
ResultStatus resultStatus)
Create a new employee.
|
void |
deleteEmployee(String id,
ResultStatus resultStatus)
Delete an existing employee.
|
Employee |
getActiveEmployee(ResultStatus resultStatus)
Return the employee currently logged in to this device.
|
Employee |
getEmployee(String id,
ResultStatus resultStatus)
Return the employee for the particular UUID.
|
List<Employee> |
getEmployees(ResultStatus resultStatus)
Return a list of all employees.
|
void |
login(ResultStatus resultStatus)
Deprecated.
Please use
Lockscreen#unlock() , Lockscreen#unlock(String) ,
or Lockscreen#unlockDefault() . |
void |
logout(ResultStatus resultStatus)
Deprecated.
Please use
Lockscreen#lock() . |
void |
removeListener(IEmployeeListener listener,
ResultStatus resultStatus)
Unregister a previously registered employee changed listener.
|
Employee |
setEmployeePin(String id,
String pin,
ResultStatus resultStatus)
Deprecated.
Use
updateEmployee(Employee, ResultStatus) instead. |
Employee |
updateEmployee(Employee employee,
ResultStatus resultStatus)
Update an existing employee.
|
public Employee getActiveEmployee(ResultStatus resultStatus) throws RemoteException
getActiveEmployee
in interface IEmployeeService
RemoteException
public Employee getEmployee(String id, ResultStatus resultStatus) throws RemoteException
getEmployee
in interface IEmployeeService
RemoteException
public List<Employee> getEmployees(ResultStatus resultStatus) throws RemoteException
getEmployees
in interface IEmployeeService
RemoteException
public Employee createEmployee(Employee employee, ResultStatus resultStatus) throws RemoteException
createEmployee
in interface IEmployeeService
RemoteException
public Employee updateEmployee(Employee employee, ResultStatus resultStatus) throws RemoteException
updateEmployee
in interface IEmployeeService
RemoteException
public Employee setEmployeePin(String id, String pin, ResultStatus resultStatus) throws RemoteException
updateEmployee(Employee, ResultStatus)
instead.setEmployeePin
in interface IEmployeeService
RemoteException
public void deleteEmployee(String id, ResultStatus resultStatus) throws RemoteException
deleteEmployee
in interface IEmployeeService
RemoteException
public void logout(ResultStatus resultStatus) throws RemoteException
Lockscreen#lock()
.logout
in interface IEmployeeService
RemoteException
public void login(ResultStatus resultStatus) throws RemoteException
Lockscreen#unlock()
, Lockscreen#unlock(String)
,
or Lockscreen#unlockDefault()
.login
in interface IEmployeeService
RemoteException
public void addListener(IEmployeeListener listener, ResultStatus resultStatus) throws RemoteException
addListener
in interface IEmployeeService
RemoteException
public void removeListener(IEmployeeListener listener, ResultStatus resultStatus) throws RemoteException
removeListener
in interface IEmployeeService
RemoteException
public IBinder asBinder()
asBinder
in interface IInterface