This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user