Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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. 

...