Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.

IPersonDao.cs

Description du code

IPersonDao.cs est un fichier du projet BiblioBrol.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/src/.

Projet BiblioBrol :

Gestion de media en CSharp.

Pour plus d'infos, vous pouvez consulter la brève analyse.

Code source ou contenu du fichier

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using be.gaudry.observer;
  5.  
  6. namespace be.gaudry.bibliobrol.model.dao
  7. {
  8. public interface IPersonDao : IObservable
  9. {
  10. #region person
  11. /// <summary>
  12. /// Test if a person exists with the same name and firstname
  13. /// </summary>
  14. /// <param name="person">(Person) person to test</param>
  15. /// <returns>(int) id of the person found (-1 if not found)</returns>
  16. int personExists(Person person);
  17. /// <summary>
  18. /// Insert a person into the persistant layer
  19. /// </summary>
  20. /// <param name="person">(Person) person to insert</param>
  21. /// <returns>(int) id of the new person (-1 if a problem occurs)</returns>
  22. int insertPerson(Person person);
  23. /// <summary>
  24. /// Load a person from the persistant layer with an id arg.
  25. /// If this person shoud be modified, editing bool arg is true
  26. /// to avoid concurent modifications (nobody else can save this person).
  27. /// </summary>
  28. /// <param name="id">(int) Id of the selected person</param>
  29. /// <param name="editing">(bool) Shoud be modified or not</param>
  30. /// <returns>Selected person, or a new person if _ found</returns>
  31. Person loadPerson(int id, bool editing);
  32. /// <summary>
  33. /// Load a person from the persistant layer with a lastname and a firstname.
  34. /// Search case insensitive.
  35. /// </summary>
  36. /// <param name="lastName">(string) lastname of the searched person</param>
  37. /// <param name="firstName">(string) firstname of the searched person</param>
  38. /// <returns>Persons found, or empty list</returns>
  39. List<Person> loadPersons(string lastName, string firstName);
  40. /// <summary>
  41. /// Load all persons from the persistant layer
  42. /// </summary>
  43. /// <returns>List of Persons</returns>
  44. List<Person> loadPersons();
  45. /// <summary>
  46. /// Load all persons matches (case insensitive) lastName
  47. /// </summary>
  48. /// <param name="lastName">(String) lastName to match</param>
  49. /// <returns>List of persons with the same lastName</returns>
  50. List<Person> loadPersons(String lastName);
  51. /// <summary>
  52. /// Load persons value objects (only display and id)
  53. /// </summary>
  54. /// <returns>List of PersonVos</returns>
  55. List<PersonLO> loadVos();
  56. /// <summary>
  57. /// Load persons value objects with selected role (only display and id)
  58. /// If role id is less or equals than 0, all persons are loaded
  59. /// </summary>
  60. /// <param name="editing">(ActorRole) person's role</param>
  61. /// <returns>List of PersonVos</returns>
  62. List<PersonLO> loadPersonsVos(ActorRole role);
  63. /// <summary>
  64. /// Load persons value objects with the same name
  65. /// </summary>
  66. /// <param name="name">(string) person's lastname</param>
  67. /// <returns>List of PersonVos</returns>
  68. List<PersonLO> loadPersonsVos(string name);
  69. /// <summary>
  70. /// Store new values for a person.
  71. /// Verify if some phones had been deleted, and delete it from the persistant layer.
  72. /// Add new phones if exists.
  73. /// Update existing phones.
  74. /// </summary>
  75. /// <param name="person">Person with new values to store</param>
  76. /// <returns>true if update is done</returns>
  77. bool updatePerson(Person person);
  78. /// <summary>
  79. /// Lock person to avoid concurent modifications.
  80. /// </summary>
  81. /// <param name="id">person's id to lock</param>
  82. /// <returns>false if a problem occurs (todo : if already locked)</returns>
  83. bool lockPerson(int id);
  84. /// <summary>
  85. /// unlock person to allow modifications.
  86. /// </summary>
  87. /// <param name="id">person's id to unlock</param>
  88. bool unlockPerson(int id);
  89. /// <summary>
  90. /// Delete a person from the persistant layer,
  91. /// and delete all associated phones
  92. /// </summary>
  93. /// <param name="p">(Person) person to delete</param>
  94. /// <returns>true if deleted</returns>
  95. bool deletePerson(Person person);
  96. #endregion
  97.  
  98. #region user
  99.  
  100. /// <summary>
  101. /// Insert a person into the persistant layer and add it in the bibliobrolusers group
  102. /// </summary>
  103. /// <param name="person">(Person) person to insert</param>
  104. /// <returns>(int) id of the new person (-1 if a problem occurs)</returns>
  105. int insertBibliobrolUser(Person person);
  106. User loadUser(int persId);
  107. int saveUser(User user);
  108. void deleteUser(User user, bool deletePerson);
  109. #endregion
  110.  
  111. ActorRole getUserRole();
  112. }
  113. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/model/dao/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1719821498 01/07/2024 10:11:38
| _msaccess0 octets1541007197 31/10/2018 18:33:17
| _config0 octets1541007197 31/10/2018 18:33:17
| _mysql0 octets1541007198 31/10/2018 18:33:18
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/model/dao/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csIExporterDao.cs1.98 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIBrolDao.cs6.25 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIImporterDao.cs686 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csITaskDao.cs351 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csDAOFactory.cs2.58 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIMediaBrolDao.cs9.86 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIStatsDao.cs431 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIPersonDao.cs4.87 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csDAOUtils.cs2.18 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csISerieDao.cs362 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIConfigDao.cs705 octets31/10/2018 18:32:54-refusé-

Utilisation de l'explorateur de code

  • Navigation :
    • Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
    • Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
    • La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
    • Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
  • Affichage :
    • Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
  • Actions :
    • Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 16/10/2009, zuletzt geändert 26/10/2018
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/cs-bibliobrol-source-rf-model/dao//IPersonDao.cs.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.