Project

General

Profile

« Previous | Next » 

Revision 58394

[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.

View differences:

Notifications.java
13 13
    Boolean notifyForNewManagers = true;
14 14
    Boolean notifyForNewSubscribers = true;
15 15
    String managerEmail;
16
    String communityPid;
16
    String portalPid;
17 17
    public Notifications(){
18 18

  
19 19
    }
20
    public Notifications(String managerEmail, String communityPid){
20
    public Notifications(String managerEmail, String portalPid){
21 21
        this();
22
        this.communityPid = communityPid;
22
        this.portalPid = portalPid;
23 23
        this.managerEmail = managerEmail;
24 24
    }
25 25
    public String getId() {
......
54 54
        this.managerEmail = managerEmail;
55 55
    }
56 56

  
57
    public String getCommunityPid() {
58
        return communityPid;
57
    public String getPortalPid() {
58
        return portalPid;
59 59
    }
60 60

  
61
    public void setCommunityPid(String communityPid) {
62
        this.communityPid = communityPid;
61
    public void setPortalPid(String portalPid) {
62
        this.portalPid = portalPid;
63 63
    }
64 64

  
65 65
    @Override
......
69 69
                ", notifyForNewManagers=" + notifyForNewManagers +
70 70
                ", notifyForNewSubscribers=" + notifyForNewSubscribers +
71 71
                ", managerEmail='" + managerEmail + '\'' +
72
                ", communityPid='" + communityPid + '\'' +
72
                ", portalPid='" + portalPid + '\'' +
73 73
                '}';
74 74
    }
75 75
}

Also available in: Unified diff