Class CachedProjectConfig


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

    This class is immutable and thread-safe.

    • Constructor Detail

      • CachedProjectConfig

        public CachedProjectConfig()
    • Method Detail

      • getProject

        public abstract Project getProject()
      • getAllGroupUUIDs

        public com.google.common.collect.ImmutableSet<AccountGroup.UUID> getAllGroupUUIDs()
        Returns a set of all groups used by this configuration.
      • 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.
      • getAccessSectionNames

        public com.google.common.collect.ImmutableSet<String> getAccessSectionNames()
        Returns all AccessSection names.
      • 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.
      • 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.
      • 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()