working on extended states
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -73,7 +73,7 @@ public class ProjectModule extends BaseHandler implements ProjectService {
|
||||
head = path.pop();
|
||||
yield switch (head) {
|
||||
case null -> getProject(ex, projectId, user.get());
|
||||
case STATES -> getStateList(ex);
|
||||
case STATES -> super.doGet(path, ex); // TODO THIS SHOULD NO LONGER BE REQUIRED
|
||||
default -> super.doGet(path, ex);
|
||||
};
|
||||
}
|
||||
@@ -138,13 +138,6 @@ public class ProjectModule extends BaseHandler implements ProjectService {
|
||||
return sendContent(ex,map);
|
||||
}
|
||||
|
||||
private boolean getStateList(HttpExchange ex) throws IOException {
|
||||
var map = new HashMap<Integer,String>();
|
||||
for (var status : PREDEFINED) map.put(status.code(),status.name());
|
||||
map.put(23,"evil");
|
||||
return sendContent(ex,map);
|
||||
}
|
||||
|
||||
public Map<Long, Project> listCompanyProjects(long companyId, boolean includeClosed) throws UmbrellaException {
|
||||
var projectList = projects.ofCompany(companyId, includeClosed);
|
||||
loadMembers(projectList.values());
|
||||
|
||||
Reference in New Issue
Block a user