Enhancing the PR for DS-1990.

Adds a cache to the Identifier array in the DSpaceObject class.
Renames the method from lookupIdentifiers into getIdentifiers.
This commit is contained in:
Pascal-Nicolas Becker
2014-08-12 16:12:16 +02:00
parent 446c7efc31
commit 3fdc76c8ea
11 changed files with 108 additions and 69 deletions

View File

@@ -547,7 +547,7 @@ public class EPerson extends DSpaceObject
+ e.getID()));
context.addEvent(new Event(Event.CREATE, Constants.EPERSON, e.getID(),
null, e.lookupIdentifiers(context)));
null, e.getIdentifiers(context)));
return e;
}
@@ -578,7 +578,7 @@ public class EPerson extends DSpaceObject
}
myContext.addEvent(new Event(Event.DELETE, Constants.EPERSON, getID(),
getEmail(), lookupIdentifiers(myContext)));
getEmail(), getIdentifiers(myContext)));
// Remove from cache
myContext.removeCached(this, getID());
@@ -1008,13 +1008,13 @@ public class EPerson extends DSpaceObject
if (modified)
{
myContext.addEvent(new Event(Event.MODIFY, Constants.EPERSON,
getID(), null, lookupIdentifiers(myContext)));
getID(), null, getIdentifiers(myContext)));
modified = false;
}
if (modifiedMetadata)
{
myContext.addEvent(new Event(Event.MODIFY_METADATA, Constants.EPERSON,
getID(), getDetails(), lookupIdentifiers(myContext)));
getID(), getDetails(), getIdentifiers(myContext)));
modifiedMetadata = false;
clearDetails();
}