Esempio n. 1
0
 /// <summary>
 /// Marque une assignation comme étant complétée ou non
 /// </summary>
 public void UpdateTaskCompleted(object taskID, bool completed)
 {
     try
     {
         mainControl.TaskService.UpdateTaskCompleted(taskID, completed);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Retire une assignation faite à une personne
 /// </summary>
 public void RemoveAssignation(object taskID, object personID)
 {
     try
     {
         mainControl.AssignationService.RemoveAssignation(taskID, personID);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Ajouter une personne à son groupe
 /// </summary>
 public void AddPersonToGroup(object adminID, object personToAddID, object groupID)
 {
     try
     {
         mainControl.FollowingService.AddPersonToGroup(adminID, personToAddID, groupID);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Insertion du message dans la base de données
 /// </summary>
 public void InsertChatMessage(chathistory chatMessage)
 {
     try
     {
         mainControl.ChatHistoryService.InsertChatMessage(chatMessage);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Efface une Task
 /// </summary>
 public void DeleteTask(object taskID)
 {
     try
     {
         mainControl.TaskService.DeleteTask(taskID);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Changement du status d'un Event
 /// </summary>
 public void ChangeEventStatus(object taskID, object taskStatus)
 {
     try
     {
         mainControl.EventService.ChangeEventStatus(taskID, taskStatus);
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Recherche du nombre de personnes qui suivent un groupe (following) (appel du service)
 /// </summary>
 public int GetGroupFollowers(object groupID)
 {
     try
     {
         return(mainControl.FollowingService.GetTheFollowers(groupID).Count());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(0);
     }
 }
Esempio n. 8
0
 /// <summary>
 /// Recherche des messages chats pour un Groupe
 /// </summary>
 ///
 ////////////////////////JE DOIS ME SERVIRE DE CELLE CI ////////////////////////
 public List <chathistory> GetGroupChatHistory(object groupID)
 {
     try
     {
         return(mainControl.ChatHistoryService.GetAllMessagesFromGroup(groupID).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 9
0
 /// <summary>
 /// Recherche de tout les Events non complétés d'un groupe
 /// </summary>
 public List <@event> GetGroupEvent(object groupID, object date = null)
 {
     try
     {
         return(mainControl.EventService.GetGroupEvent(groupID, date).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 10
0
 /// <summary>
 /// Recherche d'un utilisateur selon un valeur donnée dans un colonne de la table person
 /// </summary>
 public List <person> GetPersonBy(string columnName, object value)
 {
     try
     {
         return(mainControl.PersonService.GetBy(columnName, value).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 11
0
 /// <summary>
 /// Recherche de tout les personnes dont le username (email) ou le nom concorde avec la valeur recherchée
 /// </summary>
 public List <person> GetAllPersons(object searchValue)
 {
     try
     {
         return(mainControl.PersonService.GetBy(person.COLUMN_ALL, searchValue).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 12
0
 /// <summary>
 /// Validation de l'acces au site (appel du service)
 /// </summary>
 public person LoginValidation(string username, string password)
 {
     try
     {
         return(mainControl.PersonService.LoginValidation(username, password));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 13
0
 /// <summary>
 /// Recherche d'un groupe selon son ID
 /// </summary>
 public group GetGroupByID(object groupID)
 {
     try
     {
         return(mainControl.GroupService.GetByID(groupID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 14
0
 /// <summary>
 /// Fermeture d'un groupe
 /// </summary>
 public bool CloseGroup(object adminID, object groupID)
 {
     try
     {
         return(mainControl.GroupService.CloseGroup(adminID, groupID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(false);
     }
 }
Esempio n. 15
0
 /// <summary>
 /// Création d'une nouvelle Task dans un groupe
 /// </summary>
 public task CreateNewTask(task newTask, object groupID, object personID)
 {
     try
     {
         return(mainControl.TaskService.CreateNewTask(newTask, groupID, personID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 16
0
 /// <summary>
 /// Recherche de toutes les Tasks associées à un groupe
 /// </summary>
 public List <task> GetGroupTasks(object groupID, bool completed)
 {
     try
     {
         return(mainControl.TaskService.GetGroupTasks(groupID, completed).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 17
0
 /// <summary>
 /// Recherche des message d'un groupe
 /// </summary>
 public List <message> GetGroupMessages(object groupID)
 {
     try
     {
         return(mainControl.MessageService.GetGroupMessages(groupID).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 18
0
 /// <summary>
 /// Creation d'un nouveau message dans un groupe
 /// </summary>
 public bool CreateNewMessage(message messageToCreate)
 {
     try
     {
         return(mainControl.MessageService.CreateNewMessage(messageToCreate));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(false);
     }
 }
Esempio n. 19
0
 /// <summary>
 /// Vérification si la personne est l'administrateur du groupe
 /// </summary>
 public bool PersonIsGroupAdmin(object activePersonID, object activeGroupID)
 {
     try
     {
         return(mainControl.FollowingService.PersonIsGroupAdmin(activePersonID, activeGroupID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(false);
     }
 }
Esempio n. 20
0
 /// <summary>
 /// Retire une personne du groupe
 /// </summary>
 /// <param name="groupID">Le groupe ID du groupe à modifier</param>
 /// <param name="followerID">Le ID de la person à retirer du groupe</param>
 /// <returns>True si la personne à été retiré, une erreur sinon</returns>
 public bool RemoveTheFollower(object groupID, object followerID)
 {
     try
     {
         return(mainControl.FollowingService.RemoveTheFollower(groupID, followerID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(false);
     }
 }
Esempio n. 21
0
 /// <summary>
 /// Mise à jour d'un utilisateur
 /// </summary>
 public person UpdatePerson(object personID, person personToUpdate)
 {
     try
     {
         return(mainControl.PersonService.UpdatePerson(personID, personToUpdate));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 22
0
 /// <summary>
 /// Recherche des personnes qui suivent un groupe (following)
 /// </summary>
 public List <person> GetGroupFollowers(object groupID)
 {
     try
     {
         return(mainControl.FollowingService.GetTheFollowers(groupID).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 23
0
 /// <summary>
 /// Assignation d'une Person à une Task
 /// </summary>
 public assignation AssignTaskToPerson(assignation newAssignation)
 {
     try
     {
         return(mainControl.AssignationService.AssignTaskToPerson(newAssignation));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 24
0
 /// <summary>
 /// Enregistrement d'un nouvel utilisateur (appel du service)
 /// </summary>
 public bool RegisterUser(person newUser, string emailConfirmation, string passwordConfirmation)
 {
     try
     {
         return(mainControl.PersonService.RegisterNewUser(newUser, emailConfirmation, passwordConfirmation));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(false);
     }
 }
Esempio n. 25
0
 /// <summary>
 /// Création d'un nouveau groupe et inscription du membre à celui-ci
 /// </summary>
 public group CreateNewGroupAndRegister(group newGroup, object personID)
 {
     try
     {
         return(mainControl.GroupService.CreateNewGroupAndRegister(newGroup, personID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 26
0
 /// <summary>
 /// Recherche des informations (person/following/groups) reliés à une person par son ID
 ///
 /// </summary>
 /// <param name="personID"></param>
 /// <returns></returns>
 public person GetPersonData(object personID)
 {
     try
     {
         return(mainControl.PersonService.GetPersonData(personID));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 27
0
 /// <summary>
 /// Création d'un nouvel évènement dans un groupe
 /// </summary>
 public @event CreateNewEvent(@event newEvent)
 {
     try
     {
         return(mainControl.EventService.CreateNewEvent(newEvent));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 28
0
 /// <summary>
 /// Recherche des groupes actif qu'une person suis (appel du service)
 /// </summary>
 public List <group> GetPersonGroups(object personID)
 {
     try
     {
         return(mainControl.GroupService.GetPersonGroups(personID).ToList());
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }
Esempio n. 29
0
 /// <summary>
 /// Mise à jour des informations d'un groupe
 /// </summary>
 public group UpdateGroup(object groupID, group groupToUpdate)
 {
     try
     {
         return(mainControl.GroupService.UpdateGroup(groupID, groupToUpdate));
     }
     catch (ServiceException serviceException)
     {
         ExceptionLog.LogTheError(serviceException.Message);
         return(null);
     }
 }