@Entity public class Bundle extends DSpaceObject implements DSpaceObjectLegacySupport
The corresponding Bitstream objects are loaded into memory. At present, there
is no metadata associated with bundles - they are simple containers. Thus,
the update method doesn't do much yet. Creating, adding or
removing bitstreams has instant effect in the database.
| Modifier and Type | Field and Description |
|---|---|
protected BundleService |
bundleService |
id| Modifier | Constructor and Description |
|---|---|
protected |
Bundle()
Protected constructor, create object using:
BundleService.create(Context, Item, String) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBitstreams()
Clear the list of bitstream of this bundle
|
boolean |
equals(Object obj) |
List<Bitstream> |
getBitstreams()
Get a copy of the bitstream list of this bundle
Note that this is a copy and if you wish to manipulate the bistream list, you should use
, or
|
List<Item> |
getItems()
Get the items this bundle appears in
|
Integer |
getLegacyId() |
String |
getName()
Get the name of the bundle
|
Bitstream |
getPrimaryBitstream()
Get the primary bitstream ID of the bundle
|
int |
getType()
return type found in Constants
|
int |
hashCode() |
void |
removeBitstream(Bitstream bitstream)
Remove the given bitstream from this bundles bitstream list
|
void |
setName(Context context,
String name)
Set the name of the bundle
|
void |
setPrimaryBitstreamID(Bitstream bitstream)
Set the primary bitstream ID of the bundle
|
void |
unsetPrimaryBitstreamID()
Unset the primary bitstream ID of the bundle
|
addDetails, addHandle, addMetadata, clearDetails, clearModified, getDetails, getHandle, getHandles, getID, getMetadata, getResourcePolicies, isMetadataModified, isModified, removeMetadata, removeMetadata, setMetadata, setMetadataModified, setModifiedprotected transient BundleService bundleService
protected Bundle()
BundleService.create(Context, Item, String)public Integer getLegacyId()
getLegacyId in interface DSpaceObjectLegacySupportpublic String getName()
getName in class DSpaceObjectpublic void setName(Context context, String name) throws SQLException
context - contextname - string name of the bundle (ORIGINAL, TEXT, THUMBNAIL) are the
values currently usedSQLException - if database errorpublic Bitstream getPrimaryBitstream()
public void setPrimaryBitstreamID(Bitstream bitstream)
bitstream - primary bitstream (e.g. index html file)public void unsetPrimaryBitstreamID()
public List<Bitstream> getBitstreams()
public void clearBitstreams()
public void removeBitstream(Bitstream bitstream)
bitstream - The bitstream to removepublic List<Item> getItems()
Item s this bundle appears inpublic int getType()
getType in class DSpaceObjectCopyright © 2017 DuraSpace. All rights reserved.