public class BitstreamUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
mapTableName |
static String |
tableName |
static String |
TYPE_AIP |
static String |
TYPE_CON |
static String |
TYPE_ORE |
| 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 String |
getBitstreamType(org.dspace.core.Context c,
org.dspace.content.Bitstream b) |
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 org.dspace.content.Bitstream |
getObsoletedBy(org.dspace.core.Context c,
org.dspace.content.Bitstream b) |
static org.dspace.content.Bitstream |
getObsoletes(org.dspace.core.Context c,
org.dspace.content.Bitstream b) |
static Version |
getVersion(org.dspace.core.Context c,
org.dspace.content.Bitstream b) |
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 String tableName
public static String mapTableName
public static String TYPE_ORE
public static String TYPE_AIP
public static String TYPE_CON
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 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 - SQLExceptionpublic static Version getVersion(org.dspace.core.Context c, org.dspace.content.Bitstream b)
public static String getBitstreamType(org.dspace.core.Context c, org.dspace.content.Bitstream b)
public static org.dspace.content.Bitstream getObsoletedBy(org.dspace.core.Context c,
org.dspace.content.Bitstream b)
public static org.dspace.content.Bitstream getObsoletes(org.dspace.core.Context c,
org.dspace.content.Bitstream b)
Copyright © 2014 DuraSpace. All rights reserved.