Permalink
Browse files

Removed check for validity of site names.

  • Loading branch information...
1 parent f017c21 commit 3b62a3c0da762f9332381faf4cf3a27097d50dba Markus Binsteiner committed Jun 15, 2012
@@ -286,7 +286,7 @@ public Machine modifyMachine(@PathParam("machineName") String machName,
* @param type
* the name of the resource
*/
- @POST
+ @DELETE
@Path("/develop/deleteall/{resourceType}")
public void delete(@PathParam("resourceType") String type);
@@ -8,7 +8,6 @@
import org.apache.commons.lang3.StringUtils;
-import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
/**
@@ -21,9 +20,6 @@
@XmlRootElement
public class Project {
- public static final List<String> ALLOWED_SITES = ImmutableList.of(
- "Auckland", "Bluefern", "NIWA");
-
private String projectId = "";
private String projectTitle = "";
private List<User> users = Lists.newArrayList();
@@ -167,13 +163,6 @@ public void validate(boolean fullCheck) {
"Project name can't be blank.");
}
- if (StringUtils.isNotBlank(getSite())) {
- if (!ALLOWED_SITES.contains(getSite())) {
- throw new ProjectFault(this, "Invalid project.",
- "Site name not allowed.");
- }
- }
-
if (!fullCheck) {
return;
}

0 comments on commit 3b62a3c

Please sign in to comment.