@Requirement(reqId="DOI_INTER_030", reqName="Interface avec la base de donn\u00e9es de gestion des suffixes DOI") public abstract class AbstractProjectSuffixDBHelper extends Object
Constructor and Description |
---|
AbstractProjectSuffixDBHelper() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
addProjectSuffix(int projectID,
String projectName)
Adds a suffix project in the database.
|
abstract boolean |
deleteProject(int projectID)
Deletes a suffix project from the database.
|
abstract List<DOIUser> |
getAllDOIUsersForProject(int doiSuffix)
Returns the users related to a project.
|
abstract int |
getIDFrom(String projectName)
Returns the project suffix based on the project name.
|
abstract String |
getProjectFrom(int projectID)
Returns the project name based on the suffix project.
|
abstract List<DOIProject> |
getProjects()
Returns the database records.
|
abstract List<DOIProject> |
getProjectsFromUser(String userName)
Returns the projects related to a specific user.
|
abstract boolean |
isExistID(int projectID)
Tests is a suffix project exists in the database.
|
abstract boolean |
isExistProjectName(String projectName)
Tests is the project name exists in the database.
|
abstract boolean |
renameProject(int projectID,
String newProjectName)
Rename a project in the database.
|
public abstract boolean addProjectSuffix(int projectID, String projectName)
projectID
- suffix projectprojectName
- project namepublic abstract boolean renameProject(int projectID, String newProjectName)
projectID
- suffix project to be renamednewProjectName
- the new project namepublic abstract boolean deleteProject(int projectID)
projectID
- the suffix projectpublic abstract boolean isExistID(int projectID)
projectID
- suffix projectpublic abstract boolean isExistProjectName(String projectName)
projectName
- the project namepublic abstract String getProjectFrom(int projectID) throws DOIDbException
projectID
- the suffix projectDOIDbException
- when an error occurspublic abstract int getIDFrom(String projectName) throws DOIDbException
projectName
- the project nameDOIDbException
- When an error occurspublic abstract List<DOIProject> getProjects() throws DOIDbException
DOIDbException
- When an error occurspublic abstract List<DOIProject> getProjectsFromUser(String userName) throws DOIDbException
userName
- usernameDOIDbException
- When an error occurspublic abstract List<DOIUser> getAllDOIUsersForProject(int doiSuffix) throws DOIDbException
doiSuffix
- projectDOIDbException
- When an error occurs.Copyright © 2017–2020 CNES. All rights reserved.