Class RepositoryMetadata
java.lang.Object
com.linecorp.centraldogma.server.metadata.RepositoryMetadata
- All Implemented Interfaces:
Identifiable
Specifies details of a
Repository
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionRepositoryMetadata
(String name, Roles roles, UserAndTimestamp creation, UserAndTimestamp removal, QuotaConfig writeQuota) 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
ofInternal
(String name, UserAndTimestamp creation) Creates a new instance with internal project roles.removal()
Returns who removed this repository when.roles()
Returns theRoles
of this repository.toString()
Returns the maximum allowed write quota.
-
Field Details
-
DEFAULT_PROJECT_ROLES
-
-
Constructor Details
-
RepositoryMetadata
public RepositoryMetadata(String name, Roles roles, UserAndTimestamp creation, @Nullable UserAndTimestamp removal, @Nullable QuotaConfig writeQuota) 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. -
ofInternal
Creates a new instance with internal project roles. -
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. -
removal
Returns who removed this repository when. -
writeQuota
Returns the maximum allowed write quota. -
equals
-
hashCode
public int hashCode() -
toString
-