forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in task/main-cris/DSC-2092 (pull request DSpace#3248)
[DSC-2092] Approved-by: Giuseppe Digilio
- Loading branch information
Showing
7 changed files
with
209 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...rc/main/java/org/dspace/importer/external/ror/service/RorImportMetadataSourceService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.importer.external.ror.service; | ||
|
||
import org.dspace.importer.external.service.components.QuerySource; | ||
|
||
/** | ||
* @author Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com) | ||
**/ | ||
public interface RorImportMetadataSourceService extends QuerySource { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
dspace-api/src/main/java/org/dspace/importer/external/ror/service/RorServicesFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.importer.external.ror.service; | ||
|
||
import org.dspace.services.factory.DSpaceServicesFactory; | ||
|
||
/** | ||
* Factory that handles {@code RorImportMetadataSourceService} instance | ||
* | ||
* @author Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com) | ||
**/ | ||
public abstract class RorServicesFactory { | ||
|
||
public abstract RorImportMetadataSourceService getRorImportMetadataSourceService(); | ||
|
||
public static RorServicesFactory getInstance() { | ||
return DSpaceServicesFactory.getInstance().getServiceManager() | ||
.getServiceByName("rorServiceFactory", RorServicesFactory.class); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...ce-api/src/main/java/org/dspace/importer/external/ror/service/RorServicesFactoryImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.importer.external.ror.service; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
/** | ||
* @author Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com) | ||
**/ | ||
public class RorServicesFactoryImpl extends RorServicesFactory { | ||
|
||
protected RorImportMetadataSourceService metadataSourceService; | ||
|
||
public RorServicesFactoryImpl(@Autowired RorImportMetadataSourceService metadataSourceService) { | ||
this.metadataSourceService = metadataSourceService; | ||
} | ||
|
||
@Override | ||
public RorImportMetadataSourceService getRorImportMetadataSourceService() { | ||
return metadataSourceService; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters