/******************************************************************************* | |
* Copyright (c) 2016 Parasoft. | |
* | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v2.0 | |
* which accompanies this distribution, and is available at | |
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
* Contributors: | |
* Janusz Studzizba - initial API and implementation | |
* Dariusz Oszczedlowski - initial API and implementation | |
* Magdalena Gniewek - initial API and implementation | |
* Michal Wlodarczyk - initial API and implementation | |
*******************************************************************************/ | |
package org.eclipse.opencert.webapp.reports.manager; | |
import java.util.List; | |
import org.eclipse.opencert.webapp.reports.dao.AssuranceAssetEventDAO; | |
import org.eclipse.opencert.apm.assuranceassets.assuranceasset.AssuranceAssetEvent; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class AssuranceAssetEventManager { | |
public static final String SPRING_NAME = "assuranceAssetEventManager";; | |
@Autowired | |
private AssuranceAssetEventDAO assuranceAssetEventDAO; | |
public List<AssuranceAssetEvent> getAssuranceAssetEvents(Long evaluationUid) | |
{ | |
List<AssuranceAssetEvent> events = assuranceAssetEventDAO.getEvaluationAssetEvent(evaluationUid); | |
return events; | |
} | |
public void setDateToNow(Long eventCdoId) | |
{ | |
assuranceAssetEventDAO.setDateToNow(eventCdoId); | |
} | |
} |