Skip to content

Commit

Permalink
Added JavaDoc to all the services classes and interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
r-monti committed Jan 21, 2024
1 parent 3ca1e91 commit 4a4dfd9
Show file tree
Hide file tree
Showing 23 changed files with 70 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package model.service.condition;

import model.entity.Condition;

import java.util.ArrayList;

/**
* Interfaccia per la gestione delle patologie.
*/
public interface ConditionInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/condition/ConditionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import java.util.ArrayList;

/**
* Questa classe provvede alle funzionalità per gestire le patologie.
*/
public class ConditionManager implements ConditionInterface {
DAOCondition c=new DAOCondition();
public ArrayList<Condition> getConditionsOfPatient(int id_patient) { return c.getConditionsOfPatient(id_patient);}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/model/service/email/EmailManagerInterface.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package model.service.email;


/**
* Interfaccia per inviare email.
*/
public interface EmailManagerInterface {

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/model/service/encryption/Encryption.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package model.service.encryption;

import org.mindrot.jbcrypt.BCrypt;

/**
* Questa classe provvede alle funzionalità per criptare le password.
*/
public class Encryption implements EncryptionInterface {
public String encryptPassword(String plainTextPassword) {
// Generate a salt for BCrypt
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/exercise/ExerciseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import java.util.List;
import java.util.Map;

/**
* Questa classe provvede alle funzionalità per la gestione degli esercizi.
*/
public class ExerciseManager implements ExerciseManagerInterface {
private final DAOExerciseGlossary daoEG = new DAOExerciseGlossary();
private final DAOExercise daoE = new DAOExercise();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import java.util.List;
import java.util.Map;

/**
* Interfaccia per la gestione degli esercizi
*/
public interface ExerciseManagerInterface {

/**
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/model/service/exercise/SpeechRecognition.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;


/**
* Questa classe provvede alle funzionalità per il riconoscimento vocale.
* Legge la configurazione dal file properties chiamato 'azure.properties'.
*/
public class SpeechRecognition implements SpeechRecognitionInterface{
private static final Logger logger = LoggerFactory.getLogger(SpeechRecognition.class);
private static final String AZURE_PROPERTIES = "/azure.properties";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import java.io.InputStream;
import java.util.concurrent.ExecutionException;


/**
* Interfaccia per il riconoscimento vocale tramite Azure
*/
public interface SpeechRecognitionInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/license/LicenseActivation.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import model.DAO.DAOLicense;
import model.entity.License;

/**
* Questa classe provvede alle funzionalità per gestire le licenze.
*/
public class LicenseActivation implements LicenseActivationInterface {
DAOLicense daoLicense;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package model.service.license;
import model.entity.License;

/**
* Interfaccia per la gestione delle licenze.
*/
public interface LicenseActivationInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/login/Authenticator.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

import java.security.SecureRandom;

/**
* Questa classe provvede alle funzionalità per effettuare il login.
*/
public class Authenticator implements LoginInterface {
DAOUser db;
Encryption encryption;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/model/service/login/LoginInterface.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package model.service.login;


/**
* Interfaccia per le funzionalità di login
*/
public interface LoginInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/message/MessageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import java.util.ArrayList;
import java.util.List;

/**
* Questa classe provvede alle funzionalità per inviare messaggi.
*/
public class MessageManager implements MessageManagerInterface {
public MessageManager() {
this.db = new DAOMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import java.util.List;

/**
* Interfaccia per la gestione dei messaggi
*/
public interface MessageManagerInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/registration/Registration.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import model.service.user.UserData;
import model.service.user.UserRegistry;

/**
* Questa classe provvede alle funzionalità per la registrazione
*/
public class Registration implements RegistrationInterface {

LicenseActivation la;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package model.service.registration;

/**
* Interfaccia per la classe Registrazione
*/
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/schedule/ScheduleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import java.sql.Date;
import java.util.List;

/**
* Questa classe provvede alle funzionalità per la gestione dell'agenda e prenotazioni
*/
public class ScheduleManager implements ScheduleManagerInterface {
DAOSchedule db;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import java.util.List;

/**
* Interfaccia per l'agenda e prenotazioni
*/
public interface ScheduleManagerInterface {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/telemetry/AnalyticsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import model.DAO.DAOAnalytics;

/**
* Questa classe provvede alle funzionalità per il prelievo di statistiche di utilizzo
*/
public class AnalyticsManager implements AnalyticsManagerInterface{
public void storeAnalytics(int userId, String type, String description) {
new DAOAnalytics().storeAnalytics(userId, type, description);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package model.service.telemetry;

/**
* Contiene metodi per il salvataggio e manipolazione di informazioni di telemetria degli utenti.
* Interfaccia per il salvataggio e manipolazione di informazioni di telemetria degli utenti.
*/
public interface AnalyticsManagerInterface {

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/user/UserData.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import java.util.ArrayList;
import java.util.HashMap;

/**
* Questa classe provvede alle funzionalità per gestire le informazioni degli utenti.
*/
public class UserData implements UserDataInterface {
DAOUser db;
public UserData() {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/user/UserRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import java.sql.Connection;

/**
* Questa classe provvede alle funzionalità per la gestione delle informazioni personali degli utenti.
*/
public class UserRegistry implements UserRegistryInterface {
DAOPersonalInfo db;
public UserRegistry() {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/model/service/user/UserRegistryInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import model.entity.PersonalInfo;

/**
* Interfaccia per la gestione dei dati personali dell'utente
*/
public interface UserRegistryInterface {

/**
Expand Down

0 comments on commit 4a4dfd9

Please sign in to comment.