Skip to content

Commit

Permalink
pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Feb 7, 2025
1 parent 2a62dd4 commit 0ac2d3e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


/**
* Provides a mapping from the canonical format to SQL column names for a {@code VerifiableCredentialResource}
* Provides a mapping from the canonical format to SQL column names for a {@code CredentialDefinition}
*/
public class CredentialDefinitionMapping extends TranslationMapping {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,49 @@

import java.util.Collection;

/**
* Service interface for managing credential definitions.
*/
public interface CredentialDefinitionService {

/**
* Creates a new credential definition.
*
* @param credentialDefinition the credential definition to create
* @return a service result indicating success or failure
*/
ServiceResult<Void> createCredentialDefinition(CredentialDefinition credentialDefinition);

/**
* Deletes a credential definition.
*
* @param credentialDefinitionId the ID of the credential definition to delete
* @return a service result indicating success or failure
*/
ServiceResult<Void> deleteCredentialDefinition(String credentialDefinitionId);

/**
* Updates an existing credential definition.
*
* @param credentialDefinition the credential definition to update
* @return a service result indicating success or failure
*/

ServiceResult<Void> updateCredentialDefinition(CredentialDefinition credentialDefinition);

/**
* Queries credential definitions.
*
* @param querySpec the query specification
* @return a service result containing the matching credential definitions
*/
ServiceResult<Collection<CredentialDefinition>> queryCredentialDefinitions(QuerySpec querySpec);

/**
* Finds a credential definition by ID.
*
* @param credentialDefinitionId the ID of the credential definition to find
* @return a service result containing the credential definition, if found
*/
ServiceResult<CredentialDefinition> findCredentialDefinitionById(String credentialDefinitionId);
}

0 comments on commit 0ac2d3e

Please sign in to comment.