|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.LicenseUtils
public class LicenseUtils
Utility class to manage generation and storing of the license text that the submitter has to grant/granted for archiving the item
| Constructor Summary | |
|---|---|
LicenseUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseUtils()
| Method Detail |
|---|
public static String getLicenseText(Locale locale,
Collection collection,
Item item,
EPerson eperson,
Map<String,Object> additionalInfo)
locale - collection - item - eperson - additionalInfo -
LicenseArgumentFormatter
public 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 granted
SQLException
IOException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||