Revision 56174
Added by Konstantina Galouni almost 5 years ago
MongoDBPageDAO.java | ||
---|---|---|
9 | 9 |
public interface MongoDBPageDAO extends PageDAO, MongoRepository<Page, String> { |
10 | 10 |
List<Page> findAll(); |
11 | 11 |
List<Page> findByConnect(boolean connect); |
12 |
List<Page> findByCommunities(boolean communities); |
|
12 | 13 |
List<Page> findByOpenaire(boolean openaire); |
13 | 14 |
Page findById(String Id); |
14 | 15 |
|
Also available in: Unified diff
1. CommunityController.java: Add check for pid: "connect"
2. DivIdController.java: Bug fix: Save and Update methods should get parameter DivIdResponse
3. PageController.java: pid == "connect" case - get pages that are enabled in connect
4. CommunityPage.java & Page.java & PageDAO.java & MongoDBPageDAO.java: Rename "connect" field to "communities" and use "connect" field for connect general pages (not community specific)
5. update_db.js: Add function to set "communities" field in each page with value from "connect" field, and make "connect" false.