mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 14:33:09 +00:00
Give feedback when an EPerson is created or destroyed
This commit is contained in:
@@ -1289,6 +1289,7 @@ public class EPerson extends DSpaceObject
|
|||||||
try {
|
try {
|
||||||
eperson.update();
|
eperson.update();
|
||||||
context.commit();
|
context.commit();
|
||||||
|
System.out.printf("Created EPerson %d\n", eperson.getID());
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
context.abort();
|
context.abort();
|
||||||
System.err.println(ex.getMessage());
|
System.err.println(ex.getMessage());
|
||||||
@@ -1341,6 +1342,7 @@ public class EPerson extends DSpaceObject
|
|||||||
try {
|
try {
|
||||||
eperson.delete();
|
eperson.delete();
|
||||||
context.commit();
|
context.commit();
|
||||||
|
System.out.printf("Deleted EPerson %d\n", eperson.getID());
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
System.err.println(ex.getMessage());
|
System.err.println(ex.getMessage());
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
Reference in New Issue
Block a user