From bf53bbf31629cb43dea75a03b255df7645513ab7 Mon Sep 17 00:00:00 2001 From: Thomas Schnaak <schnaak@uni-potsdam.de> Date: Wed, 30 May 2018 18:21:27 +0200 Subject: [PATCH] feat: added Interface for ProjectDescription --- .../gf/interfaces/IProjectDescription.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IProjectDescription.java diff --git a/gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IProjectDescription.java b/gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IProjectDescription.java new file mode 100644 index 00000000..cc89a287 --- /dev/null +++ b/gemeinsamforschen/src/main/java/unipotsdam/gf/interfaces/IProjectDescription.java @@ -0,0 +1,67 @@ +package unipotsdam.gf.interfaces; + +import java.util.ArrayList; + +/** + * Interface for Project Description + */ +public interface IProjectDescription { + + /** + * Save description to database + * @param description + */ + void saveDescription(String description); + + /** + * Add a new link to ProjectDescription + * @param link url of the link + * @param name name to shoe on website + */ + void addLink(String link, String name); + + /** + * Delete link + * @param name name of the link + */ + void deleteLink(String name); + + /** + * Get name of the project + * @param projectId Id of the project + * @return name of the project + */ + + String getName(long projectId); + + /** + * Get Description of the project + * @param projectId Id of the project + * @return Desription of the project + */ + String getDescription(long projectId); + + /** + * Get Lecturer of the project + * @param projectId Id of the project + * @return Lecturer of the project + */ + long getLecturer(long projectId); + + /** + * Get all Students of the project (Group) + * @param projectId Id of the Project + * @return Students of the project + */ + ArrayList<Long> getStudents(long projectId); + + /** + * Get all Links of the project + * @param projectId Id of the Project + * @return all links of the project + */ + ArrayList<Long> getLinks(long projectId); + + + +} -- GitLab