|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.bulkedit.BulkEditChange
public class BulkEditChange
Utility class to store changes to item that may occur during a batch edit.
| Constructor Summary | |
|---|---|
BulkEditChange()
Initalise a change holder for a new item |
|
BulkEditChange(Item i)
Initalise a new change holder for an existing item |
|
| Method Summary | |
|---|---|
ArrayList<DCValue> |
getAdds()
Get the list of elements and their values that have been added. |
ArrayList<DCValue> |
getComplete()
Get the list of all values |
ArrayList<DCValue> |
getConstant()
Get the list of unchanged values |
Item |
getItem()
Get the DSpace Item that these changes are applicable to. |
ArrayList<Collection> |
getNewOwningCollections()
Get the list of new owning Collections |
ArrayList<Collection> |
getOldOwningCollections()
Get the list of old owning Collections |
ArrayList<DCValue> |
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 |
isNewItem()
Does this change object represent a new item? |
void |
registerAdd(DCValue dcv)
Add an added metadata value |
void |
registerConstant(DCValue dcv)
Add an unchanged metadata value |
void |
registerNewOwningCollection(Collection c)
Add a new owning Collection |
void |
registerOldOwningCollection(Collection c)
Add an old owning Collection |
void |
registerRemove(DCValue dcv)
Add a removed metadata value |
void |
setItem(Item i)
Store the item - used when a new item is created |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BulkEditChange()
public BulkEditChange(Item i)
i - The Item to store| Method Detail |
|---|
public void setItem(Item i)
i - The itempublic void registerAdd(DCValue dcv)
dcv - The value to addpublic void registerRemove(DCValue dcv)
dcv - The value to removepublic void registerConstant(DCValue dcv)
dcv - The value to keep unchangedpublic void registerNewOwningCollection(Collection c)
c - The new owning Collectionpublic void registerOldOwningCollection(Collection c)
c - The old owning Collectionpublic Item getItem()
public ArrayList<DCValue> getAdds()
public ArrayList<DCValue> getRemoves()
public ArrayList<DCValue> getConstant()
public ArrayList<DCValue> getComplete()
public ArrayList<Collection> getNewOwningCollections()
public ArrayList<Collection> getOldOwningCollections()
public boolean isNewItem()
public boolean hasChanges()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||