diff --git a/Documents/Diagramme/DiagrammeDeClasses/README_accesDonnees.md b/Documents/Diagramme/DiagrammeDeClasses/README_accesDonnees.md index 7e674566..31331f9e 100644 --- a/Documents/Diagramme/DiagrammeDeClasses/README_accesDonnees.md +++ b/Documents/Diagramme/DiagrammeDeClasses/README_accesDonnees.md @@ -13,16 +13,54 @@ abstract class IGenericRepository { + deleteItem(item) : bool } abstract class IUserRepository extends IGenericRepository { - + addFriend(int user1,int user2) : void - + deleteFriend(int user1,int user2) : void } interface INotificationRepository extends IGenericRepository { } interface IRelationshipRequestRepository extends IGenericRepository { } -abstract class dataManager { - //possede tout les IRepository extends de IGenericRepository - + void save() - + void load() +interface ITrainingRepository extends IGenericRepository { } -``` +class NotificationRepository implements INotificationRepository { + - notifications : array + + getItemById(int id) : object + + getNbItems() : int + + getItems(int index, int count, string orderingPropertyName, bool descending) : array + + getItemsByName(string substring, int index, int count, string orderingPropertyName, bool descending) : array + + getItemByName(string substring, int index, int count, string orderingPropertyName, bool descending) : object + + updateItem(oldItem, newItem) : void + + addItem(item) : void + + deleteItem(item) : bool +} +class RelationshipRequestRepository implements IRelationshipRequestRepository { + - requests : array + + getItemById(int id) : object + + getNbItems() : int + + getItems(int index, int count, string orderingPropertyName, bool descending) : array + + getItemsByName(string substring, int index, int count, string orderingPropertyName, bool descending) : array + + getItemByName(string substring, int index, int count, string orderingPropertyName, bool descending) : object + + updateItem(oldItem, newItem) : void + + addItem(item) : void + + deleteItem(item) : bool +} +class TrainingRepository implements ITrainingRepository { + - trainings : array + + getItemById(int id) : object + + getNbItems() : int + + getItems(int index, int count, string orderingPropertyName, bool descending) : array + + getItemsByDate(date, int index, int count, string orderingPropertyName, bool descending) : array + + updateItem(oldItem, newItem) : void + + addItem(item) : void + + deleteItem(item) : bool +} +class UserRepository implements IUserRepository { + - users : array + + getItemById(int id) : object + + getNbItems() : int + + getItems(int index, int count, string orderingPropertyName, bool descending) : array + + getItemsByName(string substring, int index, int count, string orderingPropertyName, bool descending) : array + + getItemByName(string substring, int index, int count, string orderingPropertyName, bool descending) : object + + updateItem(oldItem, newItem) : void + + addItem(item) : void + + deleteItem(item) : bool +} +``` \ No newline at end of file