public interface IManagementBusiness
Modifier and Type | Method and Description |
---|---|
boolean |
addDevice(DeviceModel model,
java.lang.String serialNumber,
java.lang.String firmwareVersion,
CommunicationType communication)
Adds the device.
|
boolean |
addMission(java.lang.String id,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate)
Adds the mission.
|
boolean |
addPhoneLine(java.lang.String number,
java.lang.String ICC,
java.lang.String PIN,
java.lang.String PUK,
java.lang.String company,
java.lang.String holder)
Adds the phone line.
|
boolean |
addUser(java.lang.String logname,
java.lang.String encodedPassword,
java.lang.String name,
java.lang.String surname,
java.lang.String email,
java.lang.String phone,
java.lang.String rolename)
Adds the user.
|
boolean |
addVehicle(java.lang.String plate,
java.lang.String brand,
java.lang.String model,
java.lang.String color)
Adds the vehicle.
|
boolean |
changePassword(java.lang.String logname,
java.lang.String oldEncodedPassword,
java.lang.String newEncodedPassword)
Change password.
|
boolean |
deleteDevice(java.lang.Integer id)
Delete device.
|
boolean |
deleteMission(java.lang.String id)
Delete mission.
|
boolean |
deletePhoneLine(java.lang.String nmber)
Delete phone line.
|
boolean |
deleteUser(java.lang.String logname)
Delete user.
|
boolean |
deleteVehicle(java.lang.String plate)
Delete vehicle.
|
java.util.Collection<DeviceJPA> |
getDevices()
Gets the devices.
|
java.util.Collection<MissionJPA> |
getMissions()
Gets the missions.
|
java.util.Collection<PhoneLineJPA> |
getPhoneLines()
Gets the phone lines.
|
java.util.Collection<UserJPA> |
getUsers()
Gets the users.
|
java.util.Collection<VehicleJPA> |
getVehicles()
Gets the vehicles.
|
boolean |
updateDevice(java.lang.Integer deviceId,
DeviceModel model,
java.lang.String serialNumber,
java.lang.String firmwareVersion,
CommunicationType communication)
Update device.
|
boolean |
updateMission(java.lang.String id,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate)
Update mission.
|
boolean |
updatePhoneLine(java.lang.String number,
java.lang.String ICC,
java.lang.String PIN,
java.lang.String PUK,
java.lang.String company,
java.lang.String holder,
java.lang.Integer deviceId)
Update phone line.
|
boolean |
updateUser(java.lang.String logname,
java.lang.String name,
java.lang.String surname,
java.lang.String email,
java.lang.String phone,
java.lang.String rolename)
Update user.
|
boolean |
updateVehicle(java.lang.String plate,
java.lang.String brand,
java.lang.String model,
java.lang.String color,
java.lang.String missionId,
java.lang.Integer deviceId)
Update vehicle.
|
boolean addUser(java.lang.String logname, java.lang.String encodedPassword, java.lang.String name, java.lang.String surname, java.lang.String email, java.lang.String phone, java.lang.String rolename) throws java.lang.Exception
logname
- the lognameencodedPassword
- the encoded passwordname
- the namesurname
- the surnameemail
- the emailphone
- the phonerolename
- the rolenamejava.lang.Exception
- the exceptionjava.util.Collection<UserJPA> getUsers() throws java.lang.Exception
java.lang.Exception
- the exceptionboolean deleteUser(java.lang.String logname) throws java.lang.Exception
logname
- the lognamejava.lang.Exception
- the exceptionboolean updateUser(java.lang.String logname, java.lang.String name, java.lang.String surname, java.lang.String email, java.lang.String phone, java.lang.String rolename) throws java.lang.Exception
logname
- the lognamename
- the namesurname
- the surnameemail
- the emailphone
- the phonerolename
- the rolenamejava.lang.Exception
- the exceptionboolean changePassword(java.lang.String logname, java.lang.String oldEncodedPassword, java.lang.String newEncodedPassword) throws java.lang.Exception
logname
- the lognameoldEncodedPassword
- the old encoded passwordnewEncodedPassword
- the new encoded passwordjava.lang.Exception
- the exceptionboolean addMission(java.lang.String id, java.lang.String description, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
id
- the iddescription
- the descriptionstartDate
- the start dateendDate
- the end datejava.lang.Exception
- the exceptionjava.util.Collection<MissionJPA> getMissions() throws java.lang.Exception
java.lang.Exception
- the exceptionboolean deleteMission(java.lang.String id) throws java.lang.Exception
id
- the idjava.lang.Exception
- the exceptionboolean updateMission(java.lang.String id, java.lang.String description, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
id
- the iddescription
- the descriptionstartDate
- the start dateendDate
- the end datejava.lang.Exception
- the exceptionboolean addVehicle(java.lang.String plate, java.lang.String brand, java.lang.String model, java.lang.String color) throws PersistenceException
plate
- the platebrand
- the brandmodel
- the modelcolor
- the colorPersistenceException
- the persistence exceptionjava.util.Collection<VehicleJPA> getVehicles() throws PersistenceException
PersistenceException
- the persistence exceptionboolean deleteVehicle(java.lang.String plate) throws PersistenceException
plate
- the platePersistenceException
- the persistence exceptionboolean updateVehicle(java.lang.String plate, java.lang.String brand, java.lang.String model, java.lang.String color, java.lang.String missionId, java.lang.Integer deviceId) throws PersistenceException
plate
- the platebrand
- the brandmodel
- the modelcolor
- the colormissionId
- the mission iddeviceId
- the device idPersistenceException
- the persistence exceptionboolean addDevice(DeviceModel model, java.lang.String serialNumber, java.lang.String firmwareVersion, CommunicationType communication) throws PersistenceException
model
- the modelserialNumber
- the serial numberfirmwareVersion
- the firmware versioncommunication
- the communicationPersistenceException
- the persistence exceptionjava.util.Collection<DeviceJPA> getDevices() throws PersistenceException
PersistenceException
- the persistence exceptionboolean deleteDevice(java.lang.Integer id) throws PersistenceException
id
- the idPersistenceException
- the persistence exceptionboolean updateDevice(java.lang.Integer deviceId, DeviceModel model, java.lang.String serialNumber, java.lang.String firmwareVersion, CommunicationType communication) throws PersistenceException
deviceId
- the device idmodel
- the modelserialNumber
- the serial numberfirmwareVersion
- the firmware versioncommunication
- the communicationPersistenceException
- the persistence exceptionboolean addPhoneLine(java.lang.String number, java.lang.String ICC, java.lang.String PIN, java.lang.String PUK, java.lang.String company, java.lang.String holder) throws PersistenceException
number
- the numberICC
- the iccPIN
- the pinPUK
- the pukcompany
- the companyholder
- the holderPersistenceException
- the persistence exceptionjava.util.Collection<PhoneLineJPA> getPhoneLines() throws PersistenceException
PersistenceException
- the persistence exceptionboolean updatePhoneLine(java.lang.String number, java.lang.String ICC, java.lang.String PIN, java.lang.String PUK, java.lang.String company, java.lang.String holder, java.lang.Integer deviceId) throws PersistenceException
number
- the numberICC
- the iccPIN
- the pinPUK
- the pukcompany
- the companyholder
- the holderdeviceId
- the device idPersistenceException
- the persistence exceptionboolean deletePhoneLine(java.lang.String nmber) throws PersistenceException
nmber
- the nmberPersistenceException
- the persistence exception