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:
Jacek Centkowski
2015-06-17 12:25:59 +02:00
committed by David Pursehouse
parent 794bd3a35e
commit 7138543d04

View File

@@ -214,7 +214,8 @@ public class CreateProject implements RestModifyView<TopLevelResource, ProjectIn
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 {
final Project.NameKey nameKey = args.getProject();
try {