mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
Merge pull request #3329 from atmire/w2p-80200_Retain_UUIDs
Fix #3330: Retain UUIDs on packager restore
This commit is contained in:
@@ -11,6 +11,7 @@ import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
@@ -89,6 +90,16 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Takes a pre-determined UUID to be passed to the object to allow for the
|
||||
* restoration of previously defined UUID's.
|
||||
*
|
||||
* @param uuid Takes a uuid to be passed to the Pre-Defined UUID Generator
|
||||
*/
|
||||
protected Community(UUID uuid) {
|
||||
this.predefinedUUID = uuid;
|
||||
}
|
||||
|
||||
void addSubCommunity(Community subCommunity) {
|
||||
subCommunities.add(subCommunity);
|
||||
setModified();
|
||||
|
Reference in New Issue
Block a user