Class ProfileRegistrationServiceImplRuntimeDelegatable
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImpl
de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImplRuntimeDelegatable
- All Implemented Interfaces:
ProfileRegistrationService
@Generated(value="de.adorsys.datasafe.runtimedelegate.RuntimeDelegateGenerator",
comments="This class performs functionality delegation based on contextClass content. If contextClass contains overriding class - it will be used.")
public class ProfileRegistrationServiceImplRuntimeDelegatable
extends ProfileRegistrationServiceImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionProfileRegistrationServiceImplRuntimeDelegatable(OverridesRegistry context, ProfileStoreService storeProfile, StorageKeyStoreOperations storageKeyStoreOper, DocumentKeyStoreOperations keyStoreOper, BucketAccessService access, StorageCheckService checkService, StorageWriteService writeService, GsonSerde serde, DFSConfig dfsConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAllAllowableKeystores(UserIDAuth user, UserPrivateProfile profile) voidcreateDocumentKeystore(UserIDAuth user, UserPrivateProfile profile) voidstatic voidoverrideWith(OverridesRegistry context, Function<ProfileRegistrationServiceImplRuntimeDelegatable.ArgumentsCaptor, ProfileRegistrationServiceImpl> ctorCaptor) This is a typesafe function to register overriding class into context.voidregisterPrivate(CreateUserPrivateProfile profile) Register users' private profile at the location specified byDFSConfig, creates keystore and publishes public keys, but only if keystore doesn't exist.voidregisterPublic(CreateUserPublicProfile profile) Register users' public profile at the location specified byDFSConfig, overwrites it if exists.voidIMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.
-
Constructor Details
-
ProfileRegistrationServiceImplRuntimeDelegatable
@Inject public ProfileRegistrationServiceImplRuntimeDelegatable(@Nullable OverridesRegistry context, ProfileStoreService storeProfile, StorageKeyStoreOperations storageKeyStoreOper, DocumentKeyStoreOperations keyStoreOper, BucketAccessService access, StorageCheckService checkService, StorageWriteService writeService, GsonSerde serde, DFSConfig dfsConfig) - Parameters:
context- Context class to search for overrides.
-
-
Method Details
-
registerPublic
Description copied from class:ProfileRegistrationServiceImplRegister users' public profile at the location specified byDFSConfig, overwrites it if exists. IMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerPublicin interfaceProfileRegistrationService- Overrides:
registerPublicin classProfileRegistrationServiceImpl
-
registerPrivate
Description copied from class:ProfileRegistrationServiceImplRegister users' private profile at the location specified byDFSConfig, creates keystore and publishes public keys, but only if keystore doesn't exist. IMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerPrivatein interfaceProfileRegistrationService- Overrides:
registerPrivatein classProfileRegistrationServiceImpl
-
createAllAllowableKeystores
- Specified by:
createAllAllowableKeystoresin interfaceProfileRegistrationService- Overrides:
createAllAllowableKeystoresin classProfileRegistrationServiceImpl
-
createDocumentKeystore
- Specified by:
createDocumentKeystorein interfaceProfileRegistrationService- Overrides:
createDocumentKeystorein classProfileRegistrationServiceImpl
-
createStorageKeystore
- Specified by:
createStorageKeystorein interfaceProfileRegistrationService- Overrides:
createStorageKeystorein classProfileRegistrationServiceImpl
-
registerUsingDefaults
Description copied from class:ProfileRegistrationServiceImplIMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerUsingDefaultsin interfaceProfileRegistrationService- Overrides:
registerUsingDefaultsin classProfileRegistrationServiceImpl- Parameters:
user- User authorization to register
-
overrideWith
public static void overrideWith(OverridesRegistry context, Function<ProfileRegistrationServiceImplRuntimeDelegatable.ArgumentsCaptor, ProfileRegistrationServiceImpl> ctorCaptor) This is a typesafe function to register overriding class into context.
-