-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: AttestationDefinition vertical (#565)
* feat: implement AttestationDefinition vertical * merge hell * update api change date * checkstyle
- Loading branch information
1 parent
381f587
commit 9498f34
Showing
130 changed files
with
2,109 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
.../org/eclipse/edc/issuerservice/defaults/store/InMemoryAttestationDefinitionStoreTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2025 Cofinity-X | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Cofinity-X - initial API and implementation | ||
* | ||
*/ | ||
|
||
package org.eclipse.edc.issuerservice.defaults.store; | ||
|
||
import org.eclipse.edc.issuerservice.spi.issuance.attestation.AttestationDefinitionStore; | ||
import org.eclipse.edc.issuerservice.spi.issuance.attestation.store.AttestationDefinitionStoreTestBase; | ||
|
||
class InMemoryAttestationDefinitionStoreTest extends AttestationDefinitionStoreTestBase { | ||
|
||
private final InMemoryAttestationDefinitionStore store = new InMemoryAttestationDefinitionStore(); | ||
|
||
@Override | ||
protected AttestationDefinitionStore getStore() { | ||
return store; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
core/issuerservice/issuerservice-credential-definitions/build.gradle.kts
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
.../eclipse/edc/issuerservice/credentialdefinition/CredentialDefinitionServiceExtension.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...uance/src/main/java/org/eclipse/edc/issuerservice/issuance/IssuanceServicesExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (c) 2025 Cofinity-X | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Cofinity-X - initial API and implementation | ||
* | ||
*/ | ||
|
||
package org.eclipse.edc.issuerservice.issuance; | ||
|
||
import org.eclipse.edc.issuerservice.issuance.attestation.AttestationDefinitionServiceImpl; | ||
import org.eclipse.edc.issuerservice.issuance.credentialdefinition.CredentialDefinitionServiceImpl; | ||
import org.eclipse.edc.issuerservice.spi.issuance.attestation.AttestationDefinitionService; | ||
import org.eclipse.edc.issuerservice.spi.issuance.attestation.AttestationDefinitionStore; | ||
import org.eclipse.edc.issuerservice.spi.issuance.credentialdefinition.CredentialDefinitionService; | ||
import org.eclipse.edc.issuerservice.spi.issuance.credentialdefinition.store.CredentialDefinitionStore; | ||
import org.eclipse.edc.issuerservice.spi.participant.store.ParticipantStore; | ||
import org.eclipse.edc.runtime.metamodel.annotation.Extension; | ||
import org.eclipse.edc.runtime.metamodel.annotation.Inject; | ||
import org.eclipse.edc.runtime.metamodel.annotation.Provider; | ||
import org.eclipse.edc.spi.system.ServiceExtension; | ||
import org.eclipse.edc.transaction.spi.TransactionContext; | ||
|
||
import static org.eclipse.edc.issuerservice.issuance.IssuanceServicesExtension.NAME; | ||
|
||
@Extension(value = NAME) | ||
public class IssuanceServicesExtension implements ServiceExtension { | ||
public static final String NAME = "IssuerService Issuance Services Extension"; | ||
@Inject | ||
private TransactionContext transactionContext; | ||
@Inject | ||
private CredentialDefinitionStore store; | ||
|
||
@Inject | ||
private AttestationDefinitionStore attestationDefinitionStore; | ||
@Inject | ||
private ParticipantStore participantStore; | ||
|
||
@Provider | ||
public CredentialDefinitionService createParticipantService() { | ||
return new CredentialDefinitionServiceImpl(transactionContext, store, attestationDefinitionStore); | ||
} | ||
|
||
@Provider | ||
public AttestationDefinitionService createAttestationService() { | ||
return new AttestationDefinitionServiceImpl(transactionContext, attestationDefinitionStore, participantStore); | ||
} | ||
} |
Oops, something went wrong.