Package com.google.gerrit.entities
Class CachedProjectConfig
java.lang.Object
com.google.gerrit.entities.CachedProjectConfig
Cached representation of values parsed from
ProjectConfig
.
This class is immutable and thread-safe.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CachedProjectConfig.Builder
builder()
getAccessSection
(String refName) Returns theAccessSection
with to the given name.com.google.common.collect.ImmutableSet
<String> Returns allAccessSection
names.abstract com.google.common.collect.ImmutableSortedMap
<String, AccessSection> Returns a map ofAccessSection
s keyed by their name.abstract AccountsSection
Returns the account section containing visibility information about accounts.com.google.common.collect.ImmutableSet
<AccountGroup.UUID> Returns a set of all groups used by this configuration.abstract Optional
<BranchOrderSection> Returns theBranchOrderSection
containing the order in which branches should be shown.abstract boolean
Returnstrue
if received objects should be checked for validity.abstract com.google.common.collect.ImmutableMap
<String, StoredCommentLinkInfo> ReturnsStoredCommentLinkInfo
keyed by their name.abstract com.google.common.collect.ImmutableMap
<String, ContributorAgreement> Returns theContributorAgreement
s keyed by their name.abstract com.google.common.collect.ImmutableMap
<String, com.google.common.collect.ImmutableList<String>> Returns a list of panel sections keyed by title.getGroup
(AccountGroup.UUID uuid) Returns the group reference for aAccountGroup.UUID
, if the group is used by at least one rule.getGroupByName
(String name) Returns the group reference for matching the givenname
, if the group is used by at least one rule.abstract com.google.common.collect.ImmutableMap
<AccountGroup.UUID, GroupReference> Returns theLabelType
s keyed by their name.abstract long
Returns the maximum allowed object size.abstract ConfiguredMimeTypes
Returns configuredConfiguredMimeTypes
s.abstract com.google.common.collect.ImmutableMap
<String, NotifyConfig> Returns theNotifyConfig
s keyed by their name.abstract com.google.common.collect.ImmutableMap
<String, ImmutableConfig> abstract Project
abstract Optional
<org.eclipse.jgit.lib.ObjectId> Returns the SHA1 of therefs/meta/config
branch.abstract Optional
<org.eclipse.jgit.lib.ObjectId> Returns the blob ID of therules.pl
file, if present.abstract com.google.common.collect.ImmutableMap
<String, SubmitRequirement> Returns theSubmitRequirement
s keyed by their name.abstract com.google.common.collect.ImmutableMap
<Project.NameKey, SubscribeSection> ReturnsSubscribeSection
keyed by theProject.NameKey
they reference.com.google.common.collect.ImmutableList
<SubscribeSection> getSubscribeSections
(BranchNameKey branch) abstract CachedProjectConfig.Builder
-
Constructor Details
-
CachedProjectConfig
public CachedProjectConfig()
-
-
Method Details
-
getProject
-
getGroups
public abstract com.google.common.collect.ImmutableMap<AccountGroup.UUID,GroupReference> getGroups() -
getAllGroupUUIDs
Returns a set of all groups used by this configuration. -
getGroup
Returns the group reference for aAccountGroup.UUID
, if the group is used by at least one rule. -
getGroupByName
Returns the group reference for matching the givenname
, if the group is used by at least one rule. -
getAccountsSection
Returns the account section containing visibility information about accounts. -
getAccessSections
public abstract com.google.common.collect.ImmutableSortedMap<String,AccessSection> getAccessSections()Returns a map ofAccessSection
s keyed by their name. -
getAccessSection
Returns theAccessSection
with to the given name. -
getAccessSectionNames
Returns allAccessSection
names. -
getBranchOrderSection
Returns theBranchOrderSection
containing the order in which branches should be shown. -
getContributorAgreements
public abstract com.google.common.collect.ImmutableMap<String,ContributorAgreement> getContributorAgreements()Returns theContributorAgreement
s keyed by their name. -
getNotifySections
Returns theNotifyConfig
s keyed by their name. -
getLabelSections
Returns theLabelType
s keyed by their name. -
getSubmitRequirementSections
public abstract com.google.common.collect.ImmutableMap<String,SubmitRequirement> getSubmitRequirementSections()Returns theSubmitRequirement
s keyed by their name. -
getMimeTypes
Returns configuredConfiguredMimeTypes
s. -
getSubscribeSections
public abstract com.google.common.collect.ImmutableMap<Project.NameKey,SubscribeSection> getSubscribeSections()ReturnsSubscribeSection
keyed by theProject.NameKey
they reference. -
getCommentLinkSections
public abstract com.google.common.collect.ImmutableMap<String,StoredCommentLinkInfo> getCommentLinkSections()ReturnsStoredCommentLinkInfo
keyed by their name. -
getRulesId
Returns the blob ID of therules.pl
file, if present. -
getRevision
Returns the SHA1 of therefs/meta/config
branch. -
getMaxObjectSizeLimit
public abstract long getMaxObjectSizeLimit()Returns the maximum allowed object size. -
getCheckReceivedObjects
public abstract boolean getCheckReceivedObjects()Returnstrue
if received objects should be checked for validity. -
getExtensionPanelSections
public abstract com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableList<String>> getExtensionPanelSections()Returns a list of panel sections keyed by title. -
getSubscribeSections
public com.google.common.collect.ImmutableList<SubscribeSection> getSubscribeSections(BranchNameKey branch) -
getPluginConfigs
-
getProjectLevelConfigs
-
getParsedProjectLevelConfigs
public abstract com.google.common.collect.ImmutableMap<String,ImmutableConfig> getParsedProjectLevelConfigs() -
builder
-
toBuilder
-