Add top level /config REST API
/config/server/ part is hard coded for now, but we may add more config specific resource names later. /config/server/capabilities retrieves the known server wide capabilities list. The list has to be loaded dynamically from the server to permit plugins to declare their own capabilities. Change-Id: I83692bd021925d37659bfbc88b3e3b67b92c18c1
This commit is contained in:
committed by
Shawn Pearce
parent
665c2a88d3
commit
28b8ea6f9e
@@ -17,6 +17,7 @@ package com.google.gerrit.common.data;
|
||||
import com.google.gerrit.reviewdb.client.Project;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class ProjectAccess {
|
||||
@@ -28,6 +29,7 @@ public class ProjectAccess {
|
||||
protected boolean isConfigVisible;
|
||||
protected boolean canUpload;
|
||||
protected LabelTypes labelTypes;
|
||||
protected Map<String, String> capabilities;
|
||||
|
||||
public ProjectAccess() {
|
||||
}
|
||||
@@ -112,4 +114,12 @@ public class ProjectAccess {
|
||||
public void setLabelTypes(LabelTypes labelTypes) {
|
||||
this.labelTypes = labelTypes;
|
||||
}
|
||||
|
||||
public Map<String, String> getCapabilities() {
|
||||
return capabilities;
|
||||
}
|
||||
|
||||
public void setCapabilities(Map<String, String> capabilities) {
|
||||
this.capabilities = capabilities;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user