All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.server.domain.dao.RepositoryDao Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.server.domain.dao;

import java.util.List;

import com.greenpepper.server.GreenPepperServerException;
import com.greenpepper.server.domain.Repository;
import com.greenpepper.server.domain.RepositoryType;
import com.greenpepper.server.domain.component.ContentType;

public interface RepositoryDao
{
    /**
     * Retrieves the Repository.
     * If none found an GreenPepperServerException is thrown.
     * 

* @param repositoryUid * @return the Repository. */ public Repository getByUID(String repositoryUID); /** * Retrieves the Repository. * If none found an GreenPepperServerException is thrown. *

* @param projectName * @param repositoryName * @return the Repository. */ public Repository getByName(String projectName, String repositoryName); /** * Retrieves all the registered Repositories. *

* @return the repositories */ public List getAll(); /** * Retrieves all the registered Repositories for a project. *

* @param projectName * @return all the registered Repositories for a project. */ public List getAll(String projectName); /** * Retrieves all the registered Test Repositories for project. *

* @param projectName * @return the Tests repositories */ public List getAllTestRepositories(String projectName); /** * Retrieves all the registered Requirement Repositories for a project. *

* @param projectName * @return the Requirements repositories */ public List getAllRequirementRepositories(String projectName); /** * Retrieve all the repository of a certain type. * * @param contentType * @return */ public List getAllRepositories(ContentType contentType); /** * Retrieves the repository type by name. *

* @param repositoryTypeName * @return the repository type. */ public RepositoryType getTypeByName(String repositoryTypeName); /** * Creates a new Repository. *

* @param newRepository * @return the created repository * @throws GreenPepperServerException */ public Repository create(Repository newRepository) throws GreenPepperServerException; /** * Updates the Repository. *

* @param repository * @throws GreenPepperServerException */ public void update(Repository repository) throws GreenPepperServerException; /** * Removes the repository if this one doesnt hold any specifications * @param repositoryUid * @throws GreenPepperServerException */ public void remove(String repositoryUid) throws GreenPepperServerException; /** * Retrieves all available RepositoryTypes. *

* @return */ public List getAllTypes(); /** * Create a new Repository Type *

* @param Repository type * @return the Requirement type created */ public RepositoryType create(RepositoryType repositoryType); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy