Class ProjectMetadata
java.lang.Object
com.linecorp.centraldogma.server.metadata.ProjectMetadata
- All Implemented Interfaces:
Identifiable
Specifies details of a
Project
.-
Constructor Summary
ConstructorDescriptionProjectMetadata
(String name, Map<String, RepositoryMetadata> repos, Map<String, Member> members, Map<String, TokenRegistration> tokens, UserAndTimestamp creation, UserAndTimestamp removal) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreation()
Returns who created this project when.id()
Returns theString
-formatted identifier.Returns theMember
of the specified ID in this project.memberOrDefault
(String memberId, Member defaultMember) Returns theMember
of the specified ID in this project.members()
Returns theMember
s of this project.name()
Returns the project name.removal()
Returns who removed this project when.Returns theRepositoryMetadata
of the specified repository in this project.repos()
Returns the metadata of the repositories in this project.tokens()
Returns theTokenRegistration
s of this project.toString()
-
Constructor Details
-
ProjectMetadata
public ProjectMetadata(String name, Map<String, RepositoryMetadata> repos, Map<String, Member> members, Map<String, TokenRegistration> tokens, UserAndTimestamp creation, @Nullable UserAndTimestamp removal) Creates a new instance.
-
-
Method Details
-
id
Description copied from interface:Identifiable
Returns theString
-formatted identifier.- Specified by:
id
in interfaceIdentifiable
-
name
Returns the project name. -
repos
Returns the metadata of the repositories in this project. -
members
Returns theMember
s of this project. -
tokens
Returns theTokenRegistration
s of this project. -
creation
Returns who created this project when. -
removal
Returns who removed this project when. -
repo
Returns theRepositoryMetadata
of the specified repository in this project. -
member
Returns theMember
of the specified ID in this project. -
memberOrDefault
Returns theMember
of the specified ID in this project.defaultMember
is returned if there is no such member. -
toString
-