|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.license.CreativeCommons
public class CreativeCommons
| Nested Class Summary | |
|---|---|
static class |
CreativeCommons.MdField
Helper class for using CC-related Metadata fields |
| Field Summary | |
|---|---|
static String |
CC_BUNDLE_NAME
The Bundle Name |
protected static Templates |
templates
|
| Constructor Summary | |
|---|---|
CreativeCommons()
|
|
| Method Summary | |
|---|---|
static String |
fetchLicenseRdf(String ccResult)
|
static String |
fetchLicenseRDF(String license_url)
|
static String |
fetchLicenseText(String license_url)
Get a few license-specific properties. |
static CreativeCommons.MdField |
getCCField(String fieldId)
Returns a metadata field handle for given field Id |
static String |
getLicenseRDF(Item item)
|
static Bitstream |
getLicenseRdfBitstream(Item item)
Get Creative Commons license RDF, returning Bitstream object. |
static String |
getLicenseText(Item item)
|
static Bitstream |
getLicenseTextBitstream(Item item)
Get Creative Commons license Text, returning Bitstream object. |
static String |
getLicenseURL(Item item)
|
static boolean |
hasLicense(Context context,
Item item)
|
static boolean |
isEnabled()
Simple accessor for enabling of CC |
static void |
removeLicense(Context context,
Item item)
|
static void |
setLicense(Context context,
Item item,
InputStream licenseStm,
String mimeType)
Used by DSpaceMetsIngester |
static 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 |
static void |
setLicenseRDF(Context context,
Item item,
String licenseRdf)
setLicenseRDF CC Web Service method for setting the RDF bitstream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CC_BUNDLE_NAME
protected static final Templates templates
| Constructor Detail |
|---|
public CreativeCommons()
| Method Detail |
|---|
public static boolean isEnabled()
public static void setLicenseRDF(Context context,
Item item,
String licenseRdf)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static void setLicense(Context context,
Item item,
String cc_license_url)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static void setLicense(Context context,
Item item,
InputStream licenseStm,
String mimeType)
throws SQLException,
IOException,
AuthorizeException
context - item - licenseStm - mimeType -
SQLException
IOException
AuthorizeException - * // PATCHED 12/01 FROM JIRA re: mimetypes for CCLicense and License RDF wjb
public static void removeLicense(Context context,
Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static boolean hasLicense(Context context,
Item item)
throws SQLException,
IOException
SQLException
IOException
public static String getLicenseURL(Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static String getLicenseText(Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static String getLicenseRDF(Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static Bitstream getLicenseRdfBitstream(Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
public static Bitstream getLicenseTextBitstream(Item item)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeExceptionpublic static String fetchLicenseRdf(String ccResult)
public static String fetchLicenseText(String license_url)
public static String fetchLicenseRDF(String license_url)
public static CreativeCommons.MdField getCCField(String fieldId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||