Skip to content

Commit

Permalink
Forwardable flag on Certificates interface
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Dec 19, 2017
1 parent 49b6b47 commit 658da25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ public interface CertificatePredicates extends KapuaUpdatableEntityPredicates {

public static final String STATUS = "status";

public static final String FORWARDABLE = "forwardable";

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*******************************************************************************/
package org.eclipse.kapua.service.certificate;

import java.util.List;

import org.eclipse.kapua.KapuaException;
import org.eclipse.kapua.model.id.KapuaId;
import org.eclipse.kapua.model.query.KapuaQuery;
Expand All @@ -32,5 +34,5 @@ public interface CertificateService extends KapuaEntityService<Certificate, Cert

Certificate generate(CertificateGenerator generator) throws KapuaException;

CertificateListResult findAncestorsCertificates(KapuaId scopeId);
List<Certificate> findAncestorsCertificates(KapuaId scopeId, CertificateUsage usage) throws KapuaException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package org.eclipse.kapua.service.certificate.internal;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.google.common.base.Strings;
Expand Down Expand Up @@ -138,7 +139,7 @@ public Certificate generate(CertificateGenerator generator) throws KapuaExceptio
}

@Override
public CertificateListResult findAncestorsCertificates(KapuaId scopeId) {
public List<Certificate> findAncestorsCertificates(KapuaId scopeId, CertificateUsage usage) {
throw new UnsupportedOperationException();
}
}

0 comments on commit 658da25

Please sign in to comment.