Output entity type when starting to import entities of a type
parent
9330316c49
commit
dfb25f0d38
|
|
@ -18,7 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.libreccm.imexport;
|
package org.libreccm.imexport;
|
||||||
|
|
||||||
import org.libreccm.categorization.Categorization;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.libreccm.core.UnexpectedErrorException;
|
import org.libreccm.core.UnexpectedErrorException;
|
||||||
import org.libreccm.files.CcmFiles;
|
import org.libreccm.files.CcmFiles;
|
||||||
import org.libreccm.files.CcmFilesConfiguration;
|
import org.libreccm.files.CcmFilesConfiguration;
|
||||||
|
|
@ -26,7 +27,6 @@ import org.libreccm.files.FileAccessException;
|
||||||
import org.libreccm.files.FileAlreadyExistsException;
|
import org.libreccm.files.FileAlreadyExistsException;
|
||||||
import org.libreccm.files.FileDoesNotExistException;
|
import org.libreccm.files.FileDoesNotExistException;
|
||||||
import org.libreccm.files.InsufficientPermissionsException;
|
import org.libreccm.files.InsufficientPermissionsException;
|
||||||
import org.libreccm.security.Permission;
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -72,6 +72,10 @@ import javax.transaction.Transactional;
|
||||||
@RequestScoped
|
@RequestScoped
|
||||||
public class ImportExport {
|
public class ImportExport {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LogManager.getLogger(
|
||||||
|
ImportExport.class
|
||||||
|
);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private CcmFiles ccmFiles;
|
private CcmFiles ccmFiles;
|
||||||
|
|
||||||
|
|
@ -268,6 +272,7 @@ public class ImportExport {
|
||||||
final AbstractEntityImExporter<?> entityImExporter
|
final AbstractEntityImExporter<?> entityImExporter
|
||||||
) {
|
) {
|
||||||
final String type = entityImExporter.getEntityClass().getName();
|
final String type = entityImExporter.getEntityClass().getName();
|
||||||
|
LOGGER.info("Importing entities of type {}...", type);
|
||||||
|
|
||||||
final String tocPath = String.format(
|
final String tocPath = String.format(
|
||||||
"imports/%s/%s/%s.json",
|
"imports/%s/%s/%s.json",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue