public class BitstreamUtil extends Object
| Constructor and Description |
|---|
BitstreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(org.dspace.content.Bitstream bitstream)
Allow access to delete method on Bitstream from code outside the package.
|
static void |
delete(org.dspace.core.Context context,
org.dspace.content.Bitstream bitstream,
boolean cleanup)
Allow access to delete method on Bitstream from code outside the package.
|
static org.dspace.content.Bitstream |
findByUuid(org.dspace.core.Context context,
String uuid)
Add support to retrieve the last modified date.
|
static Date |
getDateCreated(org.dspace.core.Context context,
org.dspace.content.Bitstream bitstream)
Add support to get the date created from the Bitstream.
|
static Date |
getLastModifiedDate(org.dspace.core.Context context,
org.dspace.content.Bitstream bitstream)
Add support to retrieve the last modified date.
|
static String |
getUuid(org.dspace.core.Context context,
org.dspace.content.Bitstream bitstream) |
static boolean |
isDeleted(org.dspace.content.Bitstream bitstream)
isDeleted should have been a public method on Bitstream, utility method to determine if Bitstream is deleted.
|
public static void delete(org.dspace.core.Context context,
org.dspace.content.Bitstream bitstream,
boolean cleanup)
throws SQLException,
IOException
bitstream - SQLExceptionIOExceptionpublic static void delete(org.dspace.content.Bitstream bitstream)
throws SQLException
bitstream - SQLExceptionpublic static boolean isDeleted(org.dspace.content.Bitstream bitstream)
throws SQLException
bitstream - SQLExceptionpublic static org.dspace.content.Bitstream findByUuid(org.dspace.core.Context context,
String uuid)
throws SQLException
context - uuid - SQLExceptionpublic static String getUuid(org.dspace.core.Context context, org.dspace.content.Bitstream bitstream) throws SQLException
context - bitstream - SQLExceptionpublic static Date getLastModifiedDate(org.dspace.core.Context context, org.dspace.content.Bitstream bitstream) throws SQLException
context - bitstream - SQLExceptionpublic static Date getDateCreated(org.dspace.core.Context context, org.dspace.content.Bitstream bitstream) throws SQLException
context - bitstream - SQLExceptionCopyright © 2016 DuraSpace. All rights reserved.