Allow to define per project if plugin config parameter is editable

It is now possible to decide for a project specific plugin
configuration parameter whether for a specific project it is editable
in the UI.

Change-Id: I29f55ca80d0c304ec61e5f7be10128629c7945cf
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-11-17 18:55:48 +01:00
parent d32beef525
commit 0d48523187
10 changed files with 140 additions and 53 deletions

View File

@@ -17,6 +17,7 @@ package com.google.gerrit.server.config;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.gerrit.extensions.annotations.ExtensionPoint;
import com.google.gerrit.server.project.ProjectState;
import java.util.Arrays;
import java.util.List;
@@ -121,4 +122,8 @@ public class ProjectConfigEntry {
public List<String> getPermittedValues() {
return permittedValues;
}
public boolean isEditable(ProjectState project) {
return true;
}
}