public interface CreativeCommonsService
| Modifier and Type | Field and Description |
|---|---|
static String |
CC_BUNDLE_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
fetchLicenseRdf(String ccResult) |
String |
fetchLicenseRDF(String license_url) |
String |
fetchLicenseText(String license_url)
Get a few license-specific properties.
|
LicenseMetadataValue |
getCCField(String fieldId) |
String |
getLicenseRDF(Context context,
Item item) |
Bitstream |
getLicenseRdfBitstream(Item item)
Get Creative Commons license RDF, returning Bitstream object.
|
String |
getLicenseText(Context context,
Item item) |
Bitstream |
getLicenseTextBitstream(Item item)
Get Creative Commons license Text, returning Bitstream object.
|
String |
getLicenseURL(Context context,
Item item) |
boolean |
hasLicense(Context context,
Item item) |
boolean |
isEnabled()
Simple accessor for enabling of CC
|
void |
removeLicense(Context context,
Item item) |
void |
setLicense(Context context,
Item item,
InputStream licenseStm,
String mimeType)
Used by DSpaceMetsIngester
|
void |
setLicense(Context context,
Item item,
String cc_license_url)
This is a bit of the "do-the-right-thing" method for CC stuff in an item
|
void |
setLicenseRDF(Context context,
Item item,
String licenseRdf)
setLicenseRDF
CC Web Service method for setting the RDF bitstream
|
static final String CC_BUNDLE_NAME
boolean isEnabled()
void setLicenseRDF(Context context, Item item, String licenseRdf) throws SQLException, IOException, AuthorizeException
void setLicense(Context context, Item item, String cc_license_url) throws SQLException, IOException, AuthorizeException
void setLicense(Context context, Item item, InputStream licenseStm, String mimeType) throws SQLException, IOException, AuthorizeException
context - item - licenseStm - mimeType - SQLException - if database errorIOException - if IO errorAuthorizeException - if authorization error
* // PATCHED 12/01 FROM JIRA re: mimetypes for CCLicense and License RDF wjbvoid removeLicense(Context context, Item item) throws SQLException, IOException, AuthorizeException
boolean hasLicense(Context context, Item item) throws SQLException, IOException
SQLExceptionIOExceptionString getLicenseURL(Context context, Item item) throws SQLException, IOException, AuthorizeException
String getLicenseText(Context context, Item item) throws SQLException, IOException, AuthorizeException
String getLicenseRDF(Context context, Item item) throws SQLException, IOException, AuthorizeException
Bitstream getLicenseRdfBitstream(Item item) throws SQLException, IOException, AuthorizeException
SQLExceptionIOExceptionAuthorizeExceptionBitstream getLicenseTextBitstream(Item item) throws SQLException, IOException, AuthorizeException
SQLExceptionIOExceptionAuthorizeExceptionString fetchLicenseText(String license_url)
LicenseMetadataValue getCCField(String fieldId)
Copyright © 2016 DuraSpace. All rights reserved.