public class SynchronizeLogic
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private SynchronizeCommunication |
synchronizeCommunication
This attribute represents the SynchronizeCommunication for the communication with imond.
|
| Constructor and Description |
|---|
SynchronizeLogic(SynchronizeCommunication synchronizecommunicationMain)
This is the constructor for SynchronizeLogic.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
areWeInAdminMode()
This method checks if we are in the admin mode.
|
java.lang.String |
authenticate(java.lang.String password)
The method authenticates the user on fli4l and lets check the password.
|
private void |
switchToAdminMode(java.lang.String adminPwd)
This method switches to admin mode, if the password is the admin password.
|
private final SynchronizeCommunication synchronizeCommunication
public SynchronizeLogic(SynchronizeCommunication synchronizecommunicationMain)
synchronizecommunicationMain - this is the SynchronizeCommnication of the main class.public java.lang.String authenticate(java.lang.String password)
throws CommunicationException
password - password for authentication on fli4lCommunicationException - if there are problems with the connectionprivate void switchToAdminMode(java.lang.String adminPwd)
throws CommunicationException
adminPwd - admin passwordCommunicationException - if there are problems with the connectionprivate boolean areWeInAdminMode()
throws CommunicationException
CommunicationException - if there are problems with the connection