Skip to content

Package: CertificateInfoService

CertificateInfoService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2018, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.certificate.info;
14:
15: import org.eclipse.kapua.KapuaException;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.model.query.KapuaQuery;
18: import org.eclipse.kapua.service.KapuaEntityService;
19: import org.eclipse.kapua.service.certificate.CertificateUsage;
20:
21: import java.util.List;
22:
23: /**
24: * {@link CertificateInfo} {@link KapuaEntityService} definition.
25: *
26: * @since 1.1.0
27: */
28: public interface CertificateInfoService extends KapuaEntityService<CertificateInfo, CertificateInfoCreator> {
29:
30: @Override
31: CertificateInfoListResult query(KapuaQuery query) throws KapuaException;
32:
33: /**
34: * @param scopeId
35: * @param usage
36: * @return
37: * @throws KapuaException
38: * @since 1.1.0
39: */
40: List<CertificateInfo> findAncestorsCertificates(KapuaId scopeId, CertificateUsage usage) throws KapuaException;
41: }