public class ProjectConfig extends VersionedMetaData implements ValidationError.Sink
Modifier and Type | Class and Description |
---|---|
static class |
ProjectConfig.Factory |
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS |
static String |
COMMENTLINK |
static String |
KEY_ALLOW_POST_SUBMIT |
static String |
KEY_BRANCH |
static String |
KEY_CAN_OVERRIDE |
static String |
KEY_COPY_ALL_SCORES_IF_NO_CHANGE |
static String |
KEY_COPY_ALL_SCORES_IF_NO_CODE_CHANGE |
static String |
KEY_COPY_ALL_SCORES_ON_MERGE_FIRST_PARENT_UPDATE |
static String |
KEY_COPY_ALL_SCORES_ON_TRIVIAL_REBASE |
static String |
KEY_COPY_MAX_SCORE |
static String |
KEY_COPY_MIN_SCORE |
static String |
KEY_DEFAULT_VALUE |
static String |
KEY_FUNCTION |
static String |
KEY_IGNORE_SELF_APPROVAL |
static String |
KEY_VALUE |
static String |
LABEL |
static String |
PROJECT_CONFIG |
inserter, newTree, projectName, reader, revision, rw
commit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, openUpdate, readConfig, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
public static final String COMMENTLINK
public static final String LABEL
public static final String KEY_FUNCTION
public static final String KEY_DEFAULT_VALUE
public static final String KEY_COPY_MIN_SCORE
public static final String KEY_ALLOW_POST_SUBMIT
public static final String KEY_IGNORE_SELF_APPROVAL
public static final String KEY_COPY_MAX_SCORE
public static final String KEY_COPY_ALL_SCORES_ON_MERGE_FIRST_PARENT_UPDATE
public static final String KEY_COPY_ALL_SCORES_ON_TRIVIAL_REBASE
public static final String KEY_COPY_ALL_SCORES_IF_NO_CODE_CHANGE
public static final String KEY_COPY_ALL_SCORES_IF_NO_CHANGE
public static final String KEY_VALUE
public static final String KEY_CAN_OVERRIDE
public static final String KEY_BRANCH
public static final String PROJECT_CONFIG
public static final String ACCESS
public static CommentLinkInfoImpl buildCommentLink(org.eclipse.jgit.lib.Config cfg, String name, boolean allowRaw) throws IllegalArgumentException
IllegalArgumentException
public void addCommentLinkSection(CommentLinkInfoImpl commentLink)
public void load(org.eclipse.jgit.lib.Repository repo) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public void load(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId revision) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public void load(org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.ObjectId revision) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public Project.NameKey getName()
public Project getProject()
public AccountsSection getAccountsSection()
public AccessSection getAccessSection(String name)
public AccessSection getAccessSection(String name, boolean create)
public Collection<AccessSection> getAccessSections()
public BranchOrderSection getBranchOrderSection()
public Map<Project.NameKey,SubscribeSection> getSubscribeSections()
public Collection<SubscribeSection> getSubscribeSections(Branch.NameKey branch)
public void addSubscribeSection(SubscribeSection s)
public void remove(AccessSection section)
public void remove(AccessSection section, Permission permission)
public void remove(AccessSection section, Permission permission, PermissionRule rule)
public void replace(AccessSection section)
public ContributorAgreement getContributorAgreement(String name)
public ContributorAgreement getContributorAgreement(String name, boolean create)
public Collection<ContributorAgreement> getContributorAgreements()
public void remove(ContributorAgreement section)
public void replace(ContributorAgreement section)
public Collection<NotifyConfig> getNotifyConfigs()
public void putNotifyConfig(String name, NotifyConfig nc)
public Collection<CommentLinkInfoImpl> getCommentLinkSections()
public ConfiguredMimeTypes getMimeTypes()
public GroupReference resolve(GroupReference group)
public GroupReference getGroup(AccountGroup.UUID uuid)
public GroupReference getGroup(String groupName)
public Set<AccountGroup.UUID> getAllGroupUUIDs()
public org.eclipse.jgit.lib.ObjectId getRulesId()
public long getMaxObjectSizeLimit()
public boolean getCheckReceivedObjects()
public boolean updateGroupNames(GroupBackend groupBackend)
groupBackend
- cache to use when looking up group information by UUID.public List<ValidationError> getValidationErrors()
protected String getRefName()
getRefName
in class VersionedMetaData
protected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onLoad
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public PluginConfig getPluginConfig(String pluginName)
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onSave
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static String validMaxObjectSizeLimit(String value) throws org.eclipse.jgit.errors.ConfigInvalidException
org.eclipse.jgit.errors.ConfigInvalidException
public void error(ValidationError error)
error
in interface ValidationError.Sink
public boolean hasLegacyPermissions()