return this.getEntity(s, s.getProject().getIdNum())[0].toJSON();
}
@Override
public Project makeEntity(Session s, String content) throws WPISuiteException {
User theUser = s.getUser();
logger.log(Level.FINER, "Attempting new Project creation...");
Project p;
try{
p = Project.fromJSON(content);
} catch(JsonSyntaxException e){
logger.log(Level.WARNING, "Invalid Project entity creation string.");
throw new BadRequestException("The entity creation string had invalid format. Entity String: " + content);
}
logger.log(Level.FINE, "New project: "+ p.getName() +" submitted by: "+ theUser.getName() );
p.setOwner(theUser);
if(getEntity(s,p.getIdNum())[0] == null)
{
if(getEntityByName(s, p.getName())[0] == null)