Class CachedProjectConfig

java.lang.Object
com.google.gerrit.entities.CachedProjectConfig

public abstract class CachedProjectConfig extends Object
Cached representation of values parsed from ProjectConfig.

This class is immutable and thread-safe.

  • Constructor Details

    • CachedProjectConfig

      public CachedProjectConfig()
  • Method Details

    • getProject

      public abstract Project getProject()
    • getGroups

      public abstract com.google.common.collect.ImmutableMap<AccountGroup.UUID,GroupReference> getGroups()
    • getAllGroupUUIDs

      public com.google.common.collect.ImmutableSet<AccountGroup.UUID> getAllGroupUUIDs()
      Returns a set of all groups used by this configuration.
    • getGroup

      public Optional<GroupReference> getGroup(AccountGroup.UUID uuid)
      Returns the group reference for a AccountGroup.UUID, if the group is used by at least one rule.
    • getGroupByName

      public Optional<GroupReference> getGroupByName(@Nullable String name)
      Returns the group reference for matching the given name, if the group is used by at least one rule.
    • getAccountsSection

      public abstract AccountsSection getAccountsSection()
      Returns the account section containing visibility information about accounts.
    • getAccessSections

      public abstract com.google.common.collect.ImmutableSortedMap<String,AccessSection> getAccessSections()
      Returns a map of AccessSections keyed by their name.
    • getAccessSection

      public Optional<AccessSection> getAccessSection(String refName)
      Returns the AccessSection with to the given name.
    • getAccessSectionNames

      public com.google.common.collect.ImmutableSet<String> getAccessSectionNames()
      Returns all AccessSection names.
    • getBranchOrderSection

      public abstract Optional<BranchOrderSection> getBranchOrderSection()
      Returns the BranchOrderSection containing the order in which branches should be shown.
    • getContributorAgreements

      public abstract com.google.common.collect.ImmutableMap<String,ContributorAgreement> getContributorAgreements()
      Returns the ContributorAgreements keyed by their name.
    • getNotifySections

      public abstract com.google.common.collect.ImmutableMap<String,NotifyConfig> getNotifySections()
      Returns the NotifyConfigs keyed by their name.
    • getLabelSections

      public abstract com.google.common.collect.ImmutableMap<String,LabelType> getLabelSections()
      Returns the LabelTypes keyed by their name.
    • getSubmitRequirementSections

      public abstract com.google.common.collect.ImmutableMap<String,SubmitRequirement> getSubmitRequirementSections()
      Returns the SubmitRequirements keyed by their name.
    • getMimeTypes

      public abstract ConfiguredMimeTypes getMimeTypes()
      Returns configured ConfiguredMimeTypess.
    • getSubscribeSections

      public abstract com.google.common.collect.ImmutableMap<Project.NameKey,SubscribeSection> getSubscribeSections()
      Returns SubscribeSection keyed by the Project.NameKey they reference.
    • getCommentLinkSections

      public abstract com.google.common.collect.ImmutableMap<String,StoredCommentLinkInfo> getCommentLinkSections()
      Returns StoredCommentLinkInfo keyed by their name.
    • getRulesId

      public abstract Optional<org.eclipse.jgit.lib.ObjectId> getRulesId()
      Returns the blob ID of the rules.pl file, if present.
    • getRevision

      public abstract Optional<org.eclipse.jgit.lib.ObjectId> getRevision()
      Returns the SHA1 of the refs/meta/config branch.
    • getMaxObjectSizeLimit

      public abstract long getMaxObjectSizeLimit()
      Returns the maximum allowed object size.
    • getCheckReceivedObjects

      public abstract boolean getCheckReceivedObjects()
      Returns true 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

      public abstract com.google.common.collect.ImmutableMap<String,String> getPluginConfigs()
    • getProjectLevelConfigs

      public abstract com.google.common.collect.ImmutableMap<String,String> getProjectLevelConfigs()
    • getParsedProjectLevelConfigs

      public abstract com.google.common.collect.ImmutableMap<String,ImmutableConfig> getParsedProjectLevelConfigs()
    • builder

      public static CachedProjectConfig.Builder builder()
    • toBuilder

      public abstract CachedProjectConfig.Builder toBuilder()