Class UserProfileMfaDao
java.lang.Object
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserProfileMfa, Long, IEntityContext>, IGenericDao<UserProfileMfa>, IUserProfileMfaDao
Implementation of the
IUserProfileMfaDao for reading and writing UserProfileMfa entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertUserProfileMfa(IEntityContext ec, UserProfileMfa mfaConfig) Checks if the user profile MFA config can be persisted (create/update).static voidcleanupUserProfileMfa(IEntityContext ec, UserProfileMfa mfaConfig) protected IFCDaoActionHook<UserProfileMfa> getUserProfileMfa(IEntityContext ec, Long userProfileId) Retrieves theUserProfileMfafor the given user profile ID.Methods inherited from class GenericDao
getEntityRefs, getPostActionHook, readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from interface IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
UserProfileMfaDao
public UserProfileMfaDao()
-
-
Method Details
-
cleanupUserProfileMfa
-
assertUserProfileMfa
Description copied from interface:IUserProfileMfaDaoChecks if the user profile MFA config can be persisted (create/update). If the state of the user profile MFA config does not allow persisting than aDatabaseAccessExceptionwill be thrown.- Specified by:
assertUserProfileMfain interfaceIUserProfileMfaDao- Parameters:
ec- entity context for accessing the database.mfaConfig- to check.
-
getUserProfileMfa
Description copied from interface:IUserProfileMfaDaoRetrieves theUserProfileMfafor the given user profile ID. If there is no MFA configuration for the user profile, an empty Optional is returned.The returned
UserProfileMfamay not be verfied yet, so it is important to check if the MFA is verified before using it for authentication purposes. The verification state can be checked using theUserProfileMfa.isVerified()method.- Specified by:
getUserProfileMfain interfaceIUserProfileMfaDao- Parameters:
ec- entity context for accessing the database.userProfileId- ID of the user profile to retrieve the MFA config for if it exists for the user profile.- Returns:
- an Optional containing the
UserProfileMfaif it exists, or an empty Optional if it does not. - See Also:
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<UserProfileMfa>
-