/************************************************************************* * * * SignServer: The OpenSource Automated Signing Server * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.signserver.server.validators; import java.util.LinkedList; import java.util.List; import org.signserver.common.ProcessableConfig; import org.signserver.common.ValidatorStatus; import org.signserver.common.WorkerStatus; import org.signserver.server.BaseProcessable; /** * Base class that all (document) validators can extend to cover basic in common * functionality. * * @author Markus KilÄs * @version $Id: BaseValidator.java 2962 2012-11-08 14:43:43Z netmackan $ */ public abstract class BaseValidator extends BaseProcessable implements IValidator { /** * @see org.signserver.server.IProcessable#getStatus() */ @Override public WorkerStatus getStatus(final List additionalFatalErrors) { final List fatalErrors = new LinkedList(additionalFatalErrors); fatalErrors.addAll(getFatalErrors()); return new ValidatorStatus(workerId, fatalErrors, new ProcessableConfig(config)); } }