-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.service.certificate.info; | ||
|
||
import org.eclipse.kapua.model.query.predicate.MatchPredicate; | ||
|
||
public interface CertificateInfoMatchPredicate<T> extends MatchPredicate<T> { | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.service.certificate.info.internal; | ||
|
||
import org.eclipse.kapua.commons.model.query.predicate.AbstractMatchPredicate; | ||
import org.eclipse.kapua.service.certificate.info.CertificateInfoAttributes; | ||
import org.eclipse.kapua.service.certificate.info.CertificateInfoMatchPredicate; | ||
|
||
import java.util.Arrays; | ||
|
||
public class CertificateInfoMatchPredicateImpl<T> extends AbstractMatchPredicate<T> implements CertificateInfoMatchPredicate<T> { | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param matchTerm | ||
* @since 2.1.0 | ||
*/ | ||
public CertificateInfoMatchPredicateImpl(T matchTerm) { | ||
this.attributeNames = Arrays.asList( | ||
Check warning on line 30 in service/security/certificate/internal/src/main/java/org/eclipse/kapua/service/certificate/info/internal/CertificateInfoMatchPredicateImpl.java Codecov / codecov/patchservice/security/certificate/internal/src/main/java/org/eclipse/kapua/service/certificate/info/internal/CertificateInfoMatchPredicateImpl.java#L29-L30
|
||
CertificateInfoAttributes.NAME, | ||
CertificateInfoAttributes.SERIAL, | ||
CertificateInfoAttributes.SIGNATURE, | ||
CertificateInfoAttributes.ALGORITHM, | ||
CertificateInfoAttributes.SUBJECT | ||
); | ||
this.matchTerm = matchTerm; | ||
} | ||
Check warning on line 38 in service/security/certificate/internal/src/main/java/org/eclipse/kapua/service/certificate/info/internal/CertificateInfoMatchPredicateImpl.java Codecov / codecov/patchservice/security/certificate/internal/src/main/java/org/eclipse/kapua/service/certificate/info/internal/CertificateInfoMatchPredicateImpl.java#L37-L38
|
||
|
||
} |