Class RepositoryMetadata
java.lang.Object
com.linecorp.centraldogma.server.metadata.RepositoryMetadata
- All Implemented Interfaces:
Identifiable
,HasWeight
Specifies details of a
Repository
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryMetadata
(String name, Roles roles, UserAndTimestamp creation, UserAndTimestamp removal, RepositoryStatus repositoryStatus) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreation()
Returns who created this repository when.boolean
int
hashCode()
id()
Returns theString
-formatted identifier.name()
Returns the repository name.static RepositoryMetadata
of
(String name, UserAndTimestamp creation) Creates a new instance with default properties.static RepositoryMetadata
of
(String name, UserAndTimestamp creation, ProjectRoles projectRoles) Creates a new instance.static RepositoryMetadata
ofDogma
(RepositoryStatus repositoryStatus) Creates a new instance for dogma repository.removal()
Returns who removed this repository when.roles()
Returns theRoles
of this repository.status()
Returns theRepositoryStatus
.toString()
int
weight()
Returns the weight of this object.
-
Field Details
-
DEFAULT_PROJECT_ROLES
-
-
Constructor Details
-
RepositoryMetadata
public RepositoryMetadata(String name, Roles roles, @Nullable UserAndTimestamp creation, @Nullable UserAndTimestamp removal, @Nullable RepositoryStatus repositoryStatus) Creates a new instance.
-
-
Method Details
-
of
Creates a new instance with default properties. -
of
public static RepositoryMetadata of(String name, UserAndTimestamp creation, ProjectRoles projectRoles) Creates a new instance. -
ofDogma
Creates a new instance for dogma repository. -
id
Description copied from interface:Identifiable
Returns theString
-formatted identifier.- Specified by:
id
in interfaceIdentifiable
-
name
Returns the repository name. -
roles
Returns theRoles
of this repository. -
creation
Returns who created this repository when. This returnsnull
if this repository isProject.REPO_DOGMA
. -
removal
Returns who removed this repository when. -
status
Returns theRepositoryStatus
. -
weight
public int weight()Description copied from interface:HasWeight
Returns the weight of this object. -
equals
-
hashCode
public int hashCode() -
toString
-