Merge "Make all classes of the group REST API public"
This commit is contained in:
@@ -211,12 +211,12 @@ public class AddMembers implements RestModifyView<GroupResource, Input> {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class PutMember implements RestModifyView<GroupResource, Input> {
|
public static class PutMember implements RestModifyView<GroupResource, Input> {
|
||||||
|
|
||||||
private final AddMembers put;
|
private final AddMembers put;
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
PutMember(AddMembers put, String id) {
|
public PutMember(AddMembers put, String id) {
|
||||||
this.put = put;
|
this.put = put;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
@@ -240,11 +240,11 @@ public class AddMembers implements RestModifyView<GroupResource, Input> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
static class UpdateMember implements RestModifyView<MemberResource, Input> {
|
public static class UpdateMember implements RestModifyView<MemberResource, Input> {
|
||||||
private final GetMember get;
|
private final GetMember get;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
UpdateMember(GetMember get) {
|
public UpdateMember(GetMember get) {
|
||||||
this.get = get;
|
this.get = get;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,12 +127,12 @@ public class AddSubgroups implements RestModifyView<GroupResource, Input> {
|
|||||||
groupsUpdateProvider.get().updateGroup(parentGroupUuid, groupUpdate);
|
groupsUpdateProvider.get().updateGroup(parentGroupUuid, groupUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
static class PutSubgroup implements RestModifyView<GroupResource, Input> {
|
public static class PutSubgroup implements RestModifyView<GroupResource, Input> {
|
||||||
|
|
||||||
private final AddSubgroups addSubgroups;
|
private final AddSubgroups addSubgroups;
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
PutSubgroup(AddSubgroups addSubgroups, String id) {
|
public PutSubgroup(AddSubgroups addSubgroups, String id) {
|
||||||
this.addSubgroups = addSubgroups;
|
this.addSubgroups = addSubgroups;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
@@ -156,11 +156,11 @@ public class AddSubgroups implements RestModifyView<GroupResource, Input> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
static class UpdateSubgroup implements RestModifyView<SubgroupResource, Input> {
|
public static class UpdateSubgroup implements RestModifyView<SubgroupResource, Input> {
|
||||||
private final Provider<GetSubgroup> get;
|
private final Provider<GetSubgroup> get;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
UpdateSubgroup(Provider<GetSubgroup> get) {
|
public UpdateSubgroup(Provider<GetSubgroup> get) {
|
||||||
this.get = get;
|
this.get = get;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,12 +92,12 @@ public class DeleteMembers implements RestModifyView<GroupResource, Input> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
static class DeleteMember implements RestModifyView<MemberResource, Input> {
|
public static class DeleteMember implements RestModifyView<MemberResource, Input> {
|
||||||
|
|
||||||
private final Provider<DeleteMembers> delete;
|
private final Provider<DeleteMembers> delete;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
DeleteMember(Provider<DeleteMembers> delete) {
|
public DeleteMember(Provider<DeleteMembers> delete) {
|
||||||
this.delete = delete;
|
this.delete = delete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,12 +96,12 @@ public class DeleteSubgroups implements RestModifyView<GroupResource, Input> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
static class DeleteSubgroup implements RestModifyView<SubgroupResource, Input> {
|
public static class DeleteSubgroup implements RestModifyView<SubgroupResource, Input> {
|
||||||
|
|
||||||
private final Provider<DeleteSubgroups> delete;
|
private final Provider<DeleteSubgroups> delete;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
DeleteSubgroup(Provider<DeleteSubgroups> delete) {
|
public DeleteSubgroup(Provider<DeleteSubgroups> delete) {
|
||||||
this.delete = delete;
|
this.delete = delete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class GroupsCollection
|
|||||||
private boolean hasQuery2;
|
private boolean hasQuery2;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
GroupsCollection(
|
public GroupsCollection(
|
||||||
DynamicMap<RestView<GroupResource>> views,
|
DynamicMap<RestView<GroupResource>> views,
|
||||||
Provider<ListGroups> list,
|
Provider<ListGroups> list,
|
||||||
Provider<QueryGroups> queryGroups,
|
Provider<QueryGroups> queryGroups,
|
||||||
|
|||||||
Reference in New Issue
Block a user