Package io.mosip.authentication.core.dto
Interface ObjectWithMetadata
- All Known Implementing Classes:
AuthenticationFailedException,AuthRequestDTO,EkycAuthRequestDTO,IdAuthenticationAppException,IdAuthenticationBaseException,IdAuthenticationBusinessException,IdAuthenticationDaoException,IDAuthenticationUnknownException,IDDataValidationException,IdentityDTO,IdentityKeyBindingRequestDTO,IdValidationFailedException,KycAuthRequestDTO,KycExchangeRequestDTO,OtpRequestDTO,RetryingBeforeRetryIntervalException,SecurityFailedException,ServiceTimeoutException,VciExchangeRequestDTO
public interface ObjectWithMetadata
The Interface ObjectWithMetadata - base interface for objects with metadata.
- Author:
- Loganathan Sekar
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcopyAllMetadaTo(ObjectWithMetadata target) Copy all metada to.default voidcopyMetadataTo(ObjectWithMetadata target, String key) Copy metadata to.Gets the metadata.getMetadata(String key) Gets the metadata.default <T> Optional<T> getMetadata(String key, Class<T> clazz) Gets the metadata.default voidputAllMetadata(Map<String, Object> metadata) Put all metadata.default voidputMetadata(String key, Object data) Put metadata.voidsetMetadata(Map<String, Object> metadata) Sets the metadata.
-
Method Details
-
getMetadata
Gets the metadata.- Returns:
- the metadata
-
setMetadata
Sets the metadata.- Parameters:
metadata- the metadata
-
putMetadata
Put metadata.- Parameters:
key- the keydata- the data
-
putAllMetadata
Put all metadata.- Parameters:
metadata- the metadata
-
getMetadata
Gets the metadata.- Parameters:
key- the key- Returns:
- the metadata
-
getMetadata
Gets the metadata.- Type Parameters:
T- the generic type- Parameters:
key- the keyclazz- the clazz- Returns:
- the metadata
-
copyMetadataTo
Copy metadata to.- Parameters:
target- the targetkey- the key
-
copyAllMetadaTo
Copy all metada to.- Parameters:
target- the target
-