public class LicenseUtils extends Object
| Constructor and Description |
|---|
LicenseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLicenseText(Locale locale,
Collection collection,
Item item,
EPerson eperson)
Utility method if no additional arguments are to be supplied to the
license template.
|
static String |
getLicenseText(Locale locale,
Collection collection,
Item item,
EPerson eperson,
Map<String,Object> additionalInfo)
Return the text of the license that the user has granted/must grant
before for submit the item.
|
static void |
grantLicense(Context context,
Item item,
String licenseText)
Store a copy of the license a user granted in the item.
|
public static String getLicenseText(Locale locale, Collection collection, Item item, EPerson eperson, Map<String,Object> additionalInfo)
locale - collection - item - eperson - additionalInfo - LicenseArgumentFormatterpublic static String getLicenseText(Locale locale, Collection collection, Item item, EPerson eperson)
null for the additionalInfo argument)locale - collection - item - eperson - public static void grantLicense(Context context, Item item, String licenseText) throws SQLException, IOException, AuthorizeException
context - the dspace contextitem - the item object of the licenselicenseText - the license the user grantedSQLExceptionIOExceptionAuthorizeExceptionCopyright © 2013 DuraSpace. All Rights Reserved.