public interface BitstreamService extends DSpaceObjectService<Bitstream>, DSpaceObjectLegacySupportService<Bitstream>
| Modifier and Type | Method and Description |
|---|---|
int |
countBitstreamsWithoutPolicy(Context context) |
Long |
countByStoreNumber(Context context,
Integer storeNumber) |
int |
countDeletedBitstreams(Context context) |
int |
countTotal(Context context) |
Bitstream |
create(Context context,
Bundle bundle,
InputStream is)
Create a new bitstream, with a new ID.
|
Bitstream |
create(Context context,
InputStream is)
Create a new bitstream, with a new ID.
|
void |
expunge(Context context,
Bitstream bitstream)
Remove a bitstream that has been set to "deleted" from the database
|
List<Bitstream> |
findAll(Context context) |
List<Bitstream> |
findBitstreamsWithNoRecentChecksum(Context context) |
Iterator<Bitstream> |
findByStoreNumber(Context context,
Integer storeNumber) |
List<Bitstream> |
findDeletedBitstreams(Context context)
Retrieve all bitstreams with the deleted flag set to true
|
List<Bitstream> |
findDuplicateInternalIdentifier(Context context,
Bitstream bitstream) |
Bitstream |
getBitstreamByName(Item item,
String bundleName,
String bitstreamName) |
Iterator<Bitstream> |
getCollectionBitstreams(Context context,
Collection collection) |
Iterator<Bitstream> |
getCommunityBitstreams(Context context,
Community community) |
Bitstream |
getFirstBitstream(Item item,
String bundleName) |
BitstreamFormat |
getFormat(Context context,
Bitstream bitstream) |
String |
getFormatDescription(Context context,
Bitstream bitstream)
Get the description of the format - either the user's or the description
of the format defined by the system.
|
Iterator<Bitstream> |
getItemBitstreams(Context context,
Item item) |
List<Bitstream> |
getNotReferencedBitstreams(Context context) |
boolean |
isRegisteredBitstream(Bitstream bitstream)
Determine if this bitstream is registered (available elsewhere on
filesystem than in assetstore).
|
Bitstream |
register(Context context,
Bundle bundle,
int assetstore,
String bitstreamPath)
Register a new bitstream, with a new ID.
|
Bitstream |
register(Context context,
int assetstore,
String bitstreamPath)
Register a new bitstream, with a new ID.
|
InputStream |
retrieve(Context context,
Bitstream bitstream)
Retrieve the contents of the bitstream
|
void |
setFormat(Context context,
Bitstream bitstream,
BitstreamFormat bitstreamFormat)
Set the format of the bitstream.
|
void |
setUserFormatDescription(Context context,
Bitstream bitstream,
String desc)
Set the user's format description.
|
addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, delete, find, getAdminObject, getIdentifiers, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getName, getParentObject, getSupportsTypeConstant, getTypeText, removeMetadataValues, setMetadataSingleValue, update, updateLastModifiedfindByIdOrLegacyId, findByLegacyId, getSupportsTypeConstantList<Bitstream> findAll(Context context) throws SQLException
SQLExceptionBitstream create(Context context, InputStream is) throws IOException, SQLException
context - DSpace context objectis - the bits to put in the bitstreamIOException - if IO errorSQLException - if database errorBitstream create(Context context, Bundle bundle, InputStream is) throws IOException, SQLException, AuthorizeException
context - DSpace context objectbundle - The bundle in which our bitstream should be added.is - the bits to put in the bitstreamIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorBitstream register(Context context, Bundle bundle, int assetstore, String bitstreamPath) throws IOException, SQLException, AuthorizeException
context - DSpace context objectbundle - The bundle in which our bitstream should be added.assetstore - corresponds to an assetstore in dspace.cfgbitstreamPath - the path and filename relative to the assetstoreIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorBitstream register(Context context, int assetstore, String bitstreamPath) throws IOException, SQLException, AuthorizeException
context - DSpace context objectassetstore - corresponds to an assetstore in dspace.cfgbitstreamPath - the path and filename relative to the assetstoreIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorvoid setUserFormatDescription(Context context, Bitstream bitstream, String desc) throws SQLException
context - DSpace context objectbitstream - DSpace bitstreamdesc - the user's description of the formatSQLException - if database errorString getFormatDescription(Context context, Bitstream bitstream) throws SQLException
context - DSpace context objectbitstream - DSpace bitstreamSQLException - if database errorvoid setFormat(Context context, Bitstream bitstream, BitstreamFormat bitstreamFormat) throws SQLException
null sets the type
of this bitstream to "unknown".context - DSpace context objectbitstream - DSpace bitstreambitstreamFormat - the format of this bitstream, or null for
unknownSQLException - if database errorInputStream retrieve(Context context, Bitstream bitstream) throws IOException, SQLException, AuthorizeException
context - DSpace context objectbitstream - DSpace bitstreamIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorboolean isRegisteredBitstream(Bitstream bitstream)
bitstream - DSpace bitstreamList<Bitstream> findDeletedBitstreams(Context context) throws SQLException
context - the dspace contextSQLException - if database errorvoid expunge(Context context, Bitstream bitstream) throws SQLException, AuthorizeException
context - the dspace contextbitstream - the bitstream to deleted from the databaseSQLException - if database errorAuthorizeException - if authorization errorList<Bitstream> findDuplicateInternalIdentifier(Context context, Bitstream bitstream) throws SQLException
SQLExceptionIterator<Bitstream> getItemBitstreams(Context context, Item item) throws SQLException
SQLExceptionIterator<Bitstream> getCollectionBitstreams(Context context, Collection collection) throws SQLException
SQLExceptionIterator<Bitstream> getCommunityBitstreams(Context context, Community community) throws SQLException
SQLExceptionList<Bitstream> findBitstreamsWithNoRecentChecksum(Context context) throws SQLException
SQLExceptionBitstream getBitstreamByName(Item item, String bundleName, String bitstreamName) throws SQLException
SQLExceptionBitstream getFirstBitstream(Item item, String bundleName) throws SQLException
SQLExceptionBitstreamFormat getFormat(Context context, Bitstream bitstream) throws SQLException
SQLExceptionIterator<Bitstream> findByStoreNumber(Context context, Integer storeNumber) throws SQLException
SQLExceptionLong countByStoreNumber(Context context, Integer storeNumber) throws SQLException
SQLExceptionint countTotal(Context context) throws SQLException
SQLExceptionint countDeletedBitstreams(Context context) throws SQLException
SQLExceptionint countBitstreamsWithoutPolicy(Context context) throws SQLException
SQLExceptionList<Bitstream> getNotReferencedBitstreams(Context context) throws SQLException
SQLExceptionCopyright © 2016 DuraSpace. All rights reserved.