Merge "Add JavaDoc for config info objects"
This commit is contained in:
@@ -19,6 +19,7 @@ import com.google.gerrit.extensions.client.AuthType;
|
|||||||
import com.google.gerrit.extensions.client.GitBasicAuthPolicy;
|
import com.google.gerrit.extensions.client.GitBasicAuthPolicy;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code auth} section of {@code gerrit.config}. */
|
||||||
public class AuthInfo {
|
public class AuthInfo {
|
||||||
public AuthType authType;
|
public AuthType authType;
|
||||||
public Boolean useContributorAgreements;
|
public Boolean useContributorAgreements;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code change} section of {@code gerrit.config}. */
|
||||||
public class ChangeConfigInfo {
|
public class ChangeConfigInfo {
|
||||||
public Boolean allowBlame;
|
public Boolean allowBlame;
|
||||||
public Boolean showAssigneeInChangesTable;
|
public Boolean showAssigneeInChangesTable;
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API response containing values from the {@code index.change} section of {@code gerrit.config}.
|
||||||
|
*/
|
||||||
public class ChangeIndexConfigInfo {
|
public class ChangeIndexConfigInfo {
|
||||||
public Boolean indexMergeable;
|
public Boolean indexMergeable;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ package com.google.gerrit.extensions.common;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code download} section of {@code gerrit.config}. */
|
||||||
public class DownloadInfo {
|
public class DownloadInfo {
|
||||||
public Map<String, DownloadSchemeInfo> schemes;
|
public Map<String, DownloadSchemeInfo> schemes;
|
||||||
public List<String> archives;
|
public List<String> archives;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code gerrit} section of {@code gerrit.config}. */
|
||||||
public class GerritInfo {
|
public class GerritInfo {
|
||||||
public String allProjects;
|
public String allProjects;
|
||||||
public String allUsers;
|
public String allUsers;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code index} section of {@code gerrit.config}. */
|
||||||
public class IndexConfigInfo {
|
public class IndexConfigInfo {
|
||||||
public ChangeIndexConfigInfo change;
|
public ChangeIndexConfigInfo change;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code receive} section of {@code gerrit.config}. */
|
||||||
public class ReceiveInfo {
|
public class ReceiveInfo {
|
||||||
public Boolean enableSignedPush;
|
public Boolean enableSignedPush;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from {@code gerrit.config} as nested objects. */
|
||||||
public class ServerInfo {
|
public class ServerInfo {
|
||||||
public AccountsInfo accounts;
|
public AccountsInfo accounts;
|
||||||
public AuthInfo auth;
|
public AuthInfo auth;
|
||||||
|
|||||||
@@ -14,4 +14,10 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API response containing values from the {@code sshd} section of {@code gerrit.config}.
|
||||||
|
*
|
||||||
|
* <p>This is currently empty, but is a class (rather than boolean) for consistency. If we ever
|
||||||
|
* export SSH configuration, more fields will be added here.
|
||||||
|
*/
|
||||||
public class SshdInfo {}
|
public class SshdInfo {}
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code suggest} section of {@code gerrit.config}. */
|
||||||
public class SuggestInfo {
|
public class SuggestInfo {
|
||||||
|
|
||||||
|
/** Number of characters after which we provide suggestions for group member completion. */
|
||||||
public int from;
|
public int from;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
package com.google.gerrit.extensions.common;
|
package com.google.gerrit.extensions.common;
|
||||||
|
|
||||||
|
/** API response containing values from the {@code user} section of {@code gerrit.config}. */
|
||||||
public class UserConfigInfo {
|
public class UserConfigInfo {
|
||||||
public String anonymousCowardName;
|
public String anonymousCowardName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user