This commit is contained in:
Maxime Dagnicourt
2008-02-24 12:51:05 +00:00
parent 3f38438686
commit 9a6b799ef1
2 changed files with 18 additions and 2 deletions

View File

@@ -136,6 +136,22 @@ public class ConferenceManagerBean implements IConferenceManager {
return list; return list;
} }
public List<Conference> getNotFinishConferences(){
List<Conference> conferences = new ArrayList<Conference>();
List<Conference> tmpConferences = this.getConferences();
for (Conference conf : tmpConferences) {
if(new Date().before(conf.getDateStart())){
conferences.add(conf);
}
}
return conferences;
}
public List<Conference> getNotFinishConferences(User user){
//TODO
return null;
}
/* /*
* *

View File

@@ -47,8 +47,8 @@ public interface IConferenceManager {
// Listing methods // Listing methods
public List<Conference> getConferences(); public List<Conference> getConferences();
public List<Conference> getConferences(User user); public List<Conference> getConferences(User user);
public List<Conference> getNotFinishConferences();
public List<Conference> getNotFinishConferences(User user);
// Role and User management methods // Role and User management methods
public Role addRole(Role.RoleType roleType, String login, Integer confId); public Role addRole(Role.RoleType roleType, String login, Integer confId);
public void removeRole(Role role); public void removeRole(Role role);