Class ProjectMetadata
java.lang.Object
com.linecorp.centraldogma.server.metadata.ProjectMetadata
- All Implemented Interfaces:
Identifiable,HasWeight
Specifies details of a
Project.-
Constructor Summary
ConstructorsConstructorDescriptionProjectMetadata(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.booleaninthashCode()id()Returns theString-formatted identifier.Returns theMemberof the specified ID in this project.memberOrDefault(String memberId, Member defaultMember) Returns theMemberof the specified ID in this project.members()Returns theMembers of this project.name()Returns the project name.removal()Returns who removed this project when.Returns theRepositoryMetadataof the specified repository in this project.repos()Returns the metadata of the repositories in this project.tokens()Returns theTokenRegistrations of this project.toString()intweight()Returns the weight of this object.Returns a newProjectMetadatawithout the Dogma repository.
-
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:IdentifiableReturns theString-formatted identifier.- Specified by:
idin interfaceIdentifiable
-
name
Returns the project name. -
repos
Returns the metadata of the repositories in this project. -
members
Returns theMembers of this project. -
tokens
Returns theTokenRegistrations of this project. -
creation
Returns who created this project when. -
removal
Returns who removed this project when. -
repo
Returns theRepositoryMetadataof the specified repository in this project. -
member
Returns theMemberof the specified ID in this project. -
memberOrDefault
Returns theMemberof the specified ID in this project.defaultMemberis returned if there is no such member. -
weight
public int weight()Description copied from interface:HasWeightReturns the weight of this object. -
equals
-
hashCode
public int hashCode() -
toString
-
withoutDogmaRepo
Returns a newProjectMetadatawithout the Dogma repository.
-