/** * Utility method if no additional arguments are to be supplied to the * license template. (equivalent to calling the full getLicenseText * supplying {@code null} for the additionalInfo argument) * * @param locale Formatter locale * @param collection collection to get license from * @param item the item object of the license * @param eperson EPerson to get firstname, lastname and email from * @return the license text, with no custom substitutions. */ public static String getLicenseText(Locale locale, Collection collection, Item item, EPerson eperson) { return getLicenseText(locale, collection, item, eperson, null); }
String license = LicenseUtils.getLicenseText( context.getCurrentLocale(), subInfo.getSubmissionItem() .getCollection(),
String licenseText = LicenseUtils.getLicenseText(context .getCurrentLocale(), collection, submission.getItem(), submission.getSubmitter());