THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
package org.apache.fineract.infrastructure.bulkimport.service; import org.apache.fineract.infrastructure.bulkimport.data.Result; import org.apache.poi.ss.usermodel.Workbook; public interface WorkBookPopulatorService { public Result generateTemplate(final Workbook workbook) ; } |
Code Block |
---|
package org.apache.fineract.infrastructure.bulkimport.data;
import java.util.ArrayList;
import java.util.List;
public class Result {
private List<String> errors = new ArrayList<>();
public void addError(String message) {
errors.add(message);
}
public List<String> getErrors() {
return errors;
}
public boolean isSuccess() {
return errors.isEmpty();
}
} |
Security
Separate permissions should be defined to access this functionality. The user who doesn't have this permission should not be allowed to import the data.
...