~registry/dhis2-academy/trunk

« back to all changes in this revision

Viewing changes to local/vn/dhis-service-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/importitem/impl/DefaultImportReportService.java

  • Committer: Abyot Asalefew Gizaw
  • Date: 2012-10-12 00:13:55 UTC
  • Revision ID: abyota@gmail.com-20121012001355-yehfghfqirdvqmd7
Updating the acadmy trunk with the main DHIS2 trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    {
75
75
        int id = importReportStore.addImportReport( importReport );
76
76
 
77
 
        i18nService.addObject( importReport );
78
 
 
79
77
        return id;
80
78
    }
81
79
 
98
96
 
99
97
    public ImportReport getImportReport( String name )
100
98
    {
101
 
        return importReportStore.getImportReport( name );
 
99
        return i18n( i18nService, importReportStore.getImportReport( name ) );
102
100
    }
103
101
 
104
102
    public void updateImportReport( ImportReport importReport )
105
103
    {
106
104
        importReportStore.updateImportReport( importReport );
107
 
 
108
 
        i18nService.verify( importReport );
109
105
    }
110
106
 
111
107
    public Collection<ImportReport> getImportReports( OrganisationUnit organisationUnit )
125
121
    {
126
122
        int id = importReportStore.addImportItem( excelItem );
127
123
 
128
 
        i18nService.addObject( excelItem );
129
 
 
130
124
        return id;
131
125
    }
132
126
 
139
133
 
140
134
    public Collection<ImportItem> getAllImportItem()
141
135
    {
142
 
        return i18n( i18nService, importReportStore.getAllImportItem() );
 
136
        return importReportStore.getAllImportItem();
143
137
    }
144
138
 
145
139
    public void updateImportItem( ImportItem excelItem )
146
140
    {
147
141
        importReportStore.updateImportItem( excelItem );
148
 
 
149
 
        i18nService.verify( excelItem );
150
142
    }
151
143
 
152
144
    public ImportItem getImportItem( int id )
153
145
    {
154
 
        return i18n( i18nService, importReportStore.getImportItem( id ) );
 
146
        return importReportStore.getImportItem( id );
155
147
    }
156
148
 
157
149
    public ImportItem getImportItem( String name )