Revision 58394
Added by Konstantina Galouni about 4 years ago
LayoutDAO.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
Layout findById(String Id); |
11 | 11 |
|
12 |
Layout save(Layout entity);
|
|
12 |
Layout findByPortalPid(String portalPid);
|
|
13 | 13 |
|
14 |
Layout save(Layout layout); |
|
15 |
|
|
14 | 16 |
void deleteAll(); |
15 | 17 |
|
16 | 18 |
void delete(String id); |
Also available in: Unified diff
[use-UoaAdminToolsLibrary | Admin Tools Service]:
REMINDER NOTE: change war name and properties (e.g. in MongoConfig.java) when merging to trunk.
1. Move MongoDBDAOs to folder /dao/MongoDBDAOs.
2. Move entities for Subscriber to folder /entities/subscriber.
3. Move entities for Curator to folder /entities/curator.
4. Add services for Layout, Statistics and Subscribers (to be called by controllers).
5. Rename "CommunitySubscribers" to "PortalSubscribers", "CommunitySubscribersController" to "PortalSubscribersController" and "CommunitySubscribersDAO" to "PortalSubscribersDAO".
6. Update all files to import appropriate files (from library or locally).
7. Create "ConnectController", "ExploreController" and update "CommunityController".
8. UoaAdminToolsApplication.java: scanBasePackages = {"eu.dnetlib.uoaadmintools", "eu.dnetlib.uoaadmintoolslibrary"}
9. MongoConnection.java: basePackages = {"eu.dnetlib.uoaadmintools.dao", "eu.dnetlib.uoaadmintoolslibrary.dao"}
10. Update update_db.js for changing db collections and entries according to new schema.