mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
Merge pull request #1249 from tdonohue/DS-3005
DS-3005: Ensure ItemService is initialized in all constructors
This commit is contained in:
@@ -50,6 +50,8 @@ public class MetadataExport
|
|||||||
*/
|
*/
|
||||||
public MetadataExport(Context c, Iterator<Item> toExport, boolean exportAll)
|
public MetadataExport(Context c, Iterator<Item> toExport, boolean exportAll)
|
||||||
{
|
{
|
||||||
|
itemService = ContentServiceFactory.getInstance().getItemService();
|
||||||
|
|
||||||
// Store the export settings
|
// Store the export settings
|
||||||
this.toExport = toExport;
|
this.toExport = toExport;
|
||||||
this.exportAll = exportAll;
|
this.exportAll = exportAll;
|
||||||
@@ -64,6 +66,8 @@ public class MetadataExport
|
|||||||
*/
|
*/
|
||||||
public MetadataExport(Context c, Community toExport, boolean exportAll)
|
public MetadataExport(Context c, Community toExport, boolean exportAll)
|
||||||
{
|
{
|
||||||
|
itemService = ContentServiceFactory.getInstance().getItemService();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Try to export the community
|
// Try to export the community
|
||||||
|
Reference in New Issue
Block a user