Make all classes of the account REST API public
This allows us at Google to have a custom Guice module that binds the account REST endpoints. Change-Id: I79988ef09d922fcc6178a963d5f6007846a04d4c Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -38,7 +38,7 @@ import com.google.inject.Singleton;
|
||||
import java.util.Optional;
|
||||
|
||||
@Singleton
|
||||
class Capabilities implements ChildCollection<AccountResource, AccountResource.Capability> {
|
||||
public class Capabilities implements ChildCollection<AccountResource, AccountResource.Capability> {
|
||||
private final Provider<CurrentUser> self;
|
||||
private final PermissionBackend permissionBackend;
|
||||
private final DynamicMap<RestView<AccountResource.Capability>> views;
|
||||
|
||||
@@ -50,7 +50,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import org.kohsuke.args4j.Option;
|
||||
|
||||
class GetCapabilities implements RestReadView<AccountResource> {
|
||||
public class GetCapabilities implements RestReadView<AccountResource> {
|
||||
@Option(name = "-q", metaVar = "CAP", usage = "Capability to inspect")
|
||||
void addQuery(String name) {
|
||||
if (query == null) {
|
||||
@@ -163,7 +163,7 @@ class GetCapabilities implements RestReadView<AccountResource> {
|
||||
}
|
||||
|
||||
@Singleton
|
||||
static class CheckOne implements RestReadView<AccountResource.Capability> {
|
||||
public static class CheckOne implements RestReadView<AccountResource.Capability> {
|
||||
private final PermissionBackend permissionBackend;
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
@Singleton
|
||||
class GetOAuthToken implements RestReadView<AccountResource> {
|
||||
public class GetOAuthToken implements RestReadView<AccountResource> {
|
||||
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
|
||||
|
||||
private static final String BEARER_TYPE = "bearer";
|
||||
|
||||
@@ -156,7 +156,7 @@ public class StarredChanges
|
||||
}
|
||||
|
||||
@Singleton
|
||||
static class Put implements RestModifyView<AccountResource.StarredChange, EmptyInput> {
|
||||
public static class Put implements RestModifyView<AccountResource.StarredChange, EmptyInput> {
|
||||
private final Provider<CurrentUser> self;
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user