Package sonia.scm.repository
Interface RepositoryDAO
- All Superinterfaces:
CreationTimeAware
,GenericDAO<Repository>
,LastModifiedAware
,TypedObject
Data access object for repositories. This class should only used by the
RepositoryManager
. Plugins and other classes should use the
RepositoryManager
instead.- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(NamespaceAndName namespaceAndName) Returns true if a repository with specified namespace and name exists in the backend.get
(NamespaceAndName namespaceAndName) Returns the repository with the specified namespace and name or null if no such repository exists in the backend.Methods inherited from interface sonia.scm.CreationTimeAware
getCreationTime
Methods inherited from interface sonia.scm.GenericDAO
add, contains, contains, delete, get, getAll, modify
Methods inherited from interface sonia.scm.LastModifiedAware
getLastModified
Methods inherited from interface sonia.scm.TypedObject
getType
-
Method Details
-
contains
Returns true if a repository with specified namespace and name exists in the backend.- Parameters:
namespaceAndName
- namespace and name of the repository- Returns:
- true if the repository exists
-
get
Returns the repository with the specified namespace and name or null if no such repository exists in the backend.- Returns:
- repository with the specified namespace and name or null
-