Class ApplicationConfigurationHelper
- java.lang.Object
-
- org.fcrepo.migration.validator.impl.ApplicationConfigurationHelper
-
public class ApplicationConfigurationHelper extends Object
A helper class for configuring and creating application components.- Author:
- dbernstein
-
-
Constructor Summary
Constructors Constructor Description ApplicationConfigurationHelper(Fedora3ValidationConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancheckNumObjects()ObjectValidationConfiggetObjectValidationConfig()intgetThreadCount()org.fcrepo.migration.ObjectSourceobjectSource()org.fcrepo.storage.ocfl.OcflObjectSessionFactoryocflObjectSessionFactory()Creates and return an OcflObjectSessionFactory.edu.wisc.library.ocfl.api.OcflRepositoryocflRepository()Retrieves the OcflRepositorySet<String>readObjectsToValidate()Read the file containing the object ids if available and return it as a setValidationResultWritervalidationResultWriter()
-
-
-
Constructor Detail
-
ApplicationConfigurationHelper
public ApplicationConfigurationHelper(Fedora3ValidationConfig config)
-
-
Method Detail
-
validationResultWriter
public ValidationResultWriter validationResultWriter()
-
objectSource
public org.fcrepo.migration.ObjectSource objectSource()
-
ocflRepository
public edu.wisc.library.ocfl.api.OcflRepository ocflRepository()
Retrieves the OcflRepository- Returns:
- the OcflRepository
-
ocflObjectSessionFactory
public org.fcrepo.storage.ocfl.OcflObjectSessionFactory ocflObjectSessionFactory()
Creates and return an OcflObjectSessionFactory.- Returns:
- a session factory
-
readObjectsToValidate
public Set<String> readObjectsToValidate()
Read the file containing the object ids if available and return it as a set- Returns:
- a Set of objectIds
- Throws:
RuntimeException- if the file cannot be read
-
getThreadCount
public int getThreadCount()
-
getObjectValidationConfig
public ObjectValidationConfig getObjectValidationConfig()
-
checkNumObjects
public Boolean checkNumObjects()
-
-