Class ProjectMetadata
java.lang.Object
com.linecorp.centraldogma.server.metadata.ProjectMetadata
- All Implemented Interfaces:
Identifiable, HasWeight
Specifies details of a
Project.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProjectMetadata(String name, Map<String, RepositoryMetadata> repos, Map<String, Member> members, @Nullable Map<String, TokenRegistration> tokens, @Nullable Map<String, TokenRegistration> appIds, UserAndTimestamp creation, @Nullable UserAndTimestamp removal) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionappIds()Returns theTokenRegistrations of this project.creation()Returns who created this project when.booleaninthashCode()id()Returns theString-formatted identifier.Returns theMemberof the specified ID in this project.@Nullable MembermemberOrDefault(String memberId, @Nullable Member defaultMember) Returns theMemberof the specified ID in this project.members()Returns theMembers of this project.name()Returns the project name.@Nullable UserAndTimestampremoval()Returns who removed this project when.Returns theRepositoryMetadataof the specified repository in this project.repos()Returns the metadata of the repositories in this project.@Nullable TokenRegistrationtokenOrDefault(String appId, @Nullable TokenRegistration defaultToken) Returns theTokenRegistrationof the specified application ID in this project.toString()intweight()Returns the weight of this object.Returns a newProjectMetadatawithout the Dogma repository.
-
Field Details
-
DOGMA_PROJECT_METADATA
-
-
Constructor Details
-
ProjectMetadata
public ProjectMetadata(String name, Map<String, RepositoryMetadata> repos, Map<String, Member> members, @Nullable Map<String, TokenRegistration> tokens, @Nullable Map<String, TokenRegistration> appIds, 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
-
appIds
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
-
memberOrDefault
-
tokenOrDefault
public @Nullable TokenRegistration tokenOrDefault(String appId, @Nullable TokenRegistration defaultToken) Returns theTokenRegistrationof the specified application ID in this project. -
weight
-
equals
-
hashCode
-
toString
-
withoutDogmaRepo
Returns a newProjectMetadatawithout the Dogma repository.
-