mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Reintroduce factored-out methods as @deprecated wrappers, so we don't
break third-party code. These should *not* be mirrored in ConfigurationService.
This commit is contained in:

committed by
Mark H. Wood

parent
2b56480842
commit
6c89fb1ac0
@@ -769,6 +769,60 @@ public class ConfigurationManager
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link NewsManager#getNewsFilePath()}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static String getNewsFilePath()
|
||||
{
|
||||
return NewsManager.getNewsFilePath();
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link NewsManager#readNewsFile(java.lang.String)}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static String readNewsFile(String name)
|
||||
{
|
||||
return NewsManager.readNewsFile(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link NewsManager#writeNewsFile(java.lang.String, java.lang.String)}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static String writeNewsFile(String file, String news)
|
||||
{
|
||||
return NewsManager.writeNewsFile(file, news);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link LicenseManager#getLicenseText(java.lang.String)}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static String getLicenseText(String licenseFile)
|
||||
{
|
||||
return LicenseManager.getLicenseText(licenseFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link LicenseManager#getDefaultSubmissionLicense()}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static String getDefaultSubmissionLicense()
|
||||
{
|
||||
return LicenseManager.getDefaultSubmissionLicense();
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for {@link LicenseManager#writeLicenseFile(java.lang.String, java.lang.String)}.
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
public static void writeLicenseFile(String licenseFile, String newLicense)
|
||||
{
|
||||
LicenseManager.writeLicenseFile(licenseFile, newLicense);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively interpolate variable references in value of
|
||||
* property named "key".
|
||||
|
Reference in New Issue
Block a user