CreateProject: Expose createProject method
Exposing this method allows plugins to inject CreateProject and invoke it directly, avoiding the checks that are performed by the apply method. Change-Id: Ie2ebbbb50d85dffe33c57ed2a36a6ceb2aae6314
This commit is contained in:
committed by
David Pursehouse
parent
794bd3a35e
commit
7138543d04
@@ -214,7 +214,8 @@ public class CreateProject implements RestModifyView<TopLevelResource, ProjectIn
|
|||||||
return Response.created(json.format(projectState));
|
return Response.created(json.format(projectState));
|
||||||
}
|
}
|
||||||
|
|
||||||
private ProjectState createProject(CreateProjectArgs args)
|
// TODO(dpursehouse): Add @UsedAt annotation
|
||||||
|
public ProjectState createProject(CreateProjectArgs args)
|
||||||
throws BadRequestException, ResourceConflictException, IOException, ConfigInvalidException {
|
throws BadRequestException, ResourceConflictException, IOException, ConfigInvalidException {
|
||||||
final Project.NameKey nameKey = args.getProject();
|
final Project.NameKey nameKey = args.getProject();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user