Interface Project
public interface Project
A top-level element in Central Dogma storage model. A project has
"dogma"
and "meta"
repositories by default which contain project configuration files accessible by system administrators
and project owners respectively.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionauthor()
Returns the author who initially created this project.long
Returns the creation time of this project, in milliseconds.Returns the list of internal repositories which areREPO_DOGMA
andREPO_META
.static boolean
isInternalRepo
(String repoName) Returnstrue
if the specified repository is an internal repository.static boolean
isReservedRepoName
(String repoName) Deprecated.metadata()
Returns theProjectMetadata
of this project.metaRepo()
Returns theMetaRepository
of this project.name()
Returns the name of this project.repos()
Returns theRepositoryManager
of this project.Deprecated.This will be removed after migrating the content in meta repository to dogma repository.
-
Field Details
-
REPO_DOGMA
The repository that contains project configuration files, which are accessible by system administrators.- See Also:
-
REPO_META
The repository that contains project configuration files, which are accessible by project owners.- See Also:
-
-
Method Details
-
name
String name()Returns the name of this project. -
creationTimeMillis
long creationTimeMillis()Returns the creation time of this project, in milliseconds. -
author
Author author()Returns the author who initially created this project. -
metaRepo
MetaRepository metaRepo()Returns theMetaRepository
of this project. -
repos
RepositoryManager repos()Returns theRepositoryManager
of this project. -
metadata
Returns theProjectMetadata
of this project.null
if the project is internal. -
internalRepos
Returns the list of internal repositories which areREPO_DOGMA
andREPO_META
. -
isInternalRepo
Returnstrue
if the specified repository is an internal repository. -
isReservedRepoName
Deprecated.UseisInternalRepo(String)
instead.Returnstrue
if the specified repository name is reserved by Central Dogma. -
resetMetaRepository
Deprecated.This will be removed after migrating the content in meta repository to dogma repository.Resets theMetaRepository
of this project.
-
isInternalRepo(String)
instead.