mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-18 05:22:10 +01:00
added missing javadoc
This commit is contained in:
@@ -27,6 +27,19 @@ package sonia.scm.web.api;
|
||||
import de.otto.edison.hal.HalRepresentation;
|
||||
import sonia.scm.repository.Repository;
|
||||
|
||||
/**
|
||||
* Maps a repository to a hal representation.
|
||||
* This is especially useful if a plugin would deliver a repository to the frontend.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public interface RepositoryToHalMapper {
|
||||
|
||||
/**
|
||||
* Returns the hal representation of the repository.
|
||||
*
|
||||
* @param repository repository to map
|
||||
* @return hal representation
|
||||
*/
|
||||
HalRepresentation map(Repository repository);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user