public class BulkEditChange extends Object
| Constructor and Description |
|---|
BulkEditChange()
Initialise a change holder for a new item
|
BulkEditChange(Item i)
Initialise a new change holder for an existing item
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeOwningCollection(Collection oldC,
Collection newC)
Register a change to the owning collection
|
List<Metadatum> |
getAdds()
Get the list of elements and their values that have been added.
|
List<Metadatum> |
getComplete()
Get the list of all values
|
List<Metadatum> |
getConstant()
Get the list of unchanged values
|
Item |
getItem()
Get the DSpace Item that these changes are applicable to.
|
List<Collection> |
getNewMappedCollections()
Get the list of new mapped Collections
|
Collection |
getNewOwningCollection()
Get the new owning collection
|
List<Collection> |
getOldMappedCollections()
Get the list of old mapped Collections
|
Collection |
getOldOwningCollection()
Get the old owning collection
|
List<Metadatum> |
getRemoves()
Get the list of elements and their values that have been removed.
|
boolean |
hasChanges()
Have any changes actually been recorded, or is this empty?
|
boolean |
isDeleted()
Does this change object represent a deleted item?
|
boolean |
isNewItem()
Does this change object represent a new item?
|
boolean |
isReinstated()
Does this change object represent a reinstated item?
|
boolean |
isWithdrawn()
Does this change object represent a withdrawn item?
|
void |
registerAdd(Metadatum dcv)
Add an added metadata value
|
void |
registerConstant(Metadatum dcv)
Add an unchanged metadata value
|
void |
registerNewMappedCollection(Collection c)
Add a new mapped Collection
|
void |
registerOldMappedCollection(Collection c)
Add an old mapped Collection
|
void |
registerRemove(Metadatum dcv)
Add a removed metadata value
|
void |
setDeleted()
Set that this item has been deleted
|
void |
setItem(Item i)
Store the item - used when a new item is created
|
void |
setOwningCollection(Collection newC)
Set the owning collection of an item
|
void |
setReinstated()
Set that this item has been deleted
|
void |
setWithdrawn()
Set that this item has been withdrawn
|
public BulkEditChange()
public BulkEditChange(Item i)
i - The Item to storepublic void setItem(Item i)
i - The itempublic void registerAdd(Metadatum dcv)
dcv - The value to addpublic void registerRemove(Metadatum dcv)
dcv - The value to removepublic void registerConstant(Metadatum dcv)
dcv - The value to keep unchangedpublic void registerNewMappedCollection(Collection c)
c - The new mapped Collectionpublic void registerOldMappedCollection(Collection c)
c - The old mapped Collectionpublic void changeOwningCollection(Collection oldC, Collection newC)
oldC - The old owning collectionnewC - The new owning collectionpublic void setOwningCollection(Collection newC)
newC - The new owning collectionpublic Item getItem()
public List<Metadatum> getAdds()
public List<Metadatum> getRemoves()
public List<Metadatum> getConstant()
public List<Metadatum> getComplete()
public List<Collection> getNewMappedCollections()
public List<Collection> getOldMappedCollections()
public Collection getOldOwningCollection()
public Collection getNewOwningCollection()
public boolean isNewItem()
public boolean isDeleted()
public void setDeleted()
public boolean isWithdrawn()
public void setWithdrawn()
public boolean isReinstated()
public void setReinstated()
public boolean hasChanges()
Copyright © 2014 DuraSpace. All Rights Reserved.