Search in sources :

Example 1 with ConsistencyCheckerVerbosity

use of org.eclipse.winery.repository.backend.consistencycheck.ConsistencyCheckerVerbosity in project winery by eclipse.

the class AdminTopResource method checkConsistency.

@GET
@Path("consistencycheck")
@Produces(MediaType.APPLICATION_JSON)
public ConsistencyErrorLogger checkConsistency(@QueryParam("serviceTemplatesOnly") boolean serviceTemplatesOnly, @QueryParam("checkDocumentation") boolean checkDocumentation) {
    IRepository repo = RepositoryFactory.getRepository();
    EnumSet<ConsistencyCheckerVerbosity> verbosity = EnumSet.of(ConsistencyCheckerVerbosity.NONE);
    ConsistencyCheckerConfiguration config = new ConsistencyCheckerConfiguration(serviceTemplatesOnly, checkDocumentation, verbosity, repo);
    return ConsistencyChecker.checkCorruption(config);
}
Also used : ConsistencyCheckerConfiguration(org.eclipse.winery.repository.backend.consistencycheck.ConsistencyCheckerConfiguration) ConsistencyCheckerVerbosity(org.eclipse.winery.repository.backend.consistencycheck.ConsistencyCheckerVerbosity) IRepository(org.eclipse.winery.repository.backend.IRepository)

Aggregations

IRepository (org.eclipse.winery.repository.backend.IRepository)1 ConsistencyCheckerConfiguration (org.eclipse.winery.repository.backend.consistencycheck.ConsistencyCheckerConfiguration)1 ConsistencyCheckerVerbosity (org.eclipse.winery.repository.backend.consistencycheck.ConsistencyCheckerVerbosity)1