Uses of Class
com.skava.service.impl.UserCommonServices
Packages that use UserCommonServices
Package
Description
This package contains the user Helper classes.
This package contains the user service authenticator definition class.
This package contains the user service implementation classes.
This package contains the user service authenticator implementation class.
This package holds the user util method classes.
This package contains the user service validator clases.
-
Uses of UserCommonServices in com.skava.helper
Methods in com.skava.helper with parameters of type UserCommonServicesModifier and TypeMethodDescriptionstatic void
AccessControlHelper.checkingRoles
(com.skava.core.auth.AuthTokenHandler authTokenHandler, UserCommonServices userCommonServices, long userId, long collectionId, String locale) UserPasswordCriteriaHelper.checkNewPasswordWithOldPasswordList
(PwdHashingStrategy passwordHashingAlgorithm, String newPassword, String hashedNewPassword, List<String> oldPasswordList, int collectionPropsLimit, String locale, UserCommonServices userCommonServices) This method is used to check new Password with old password list.static void
AccessControlHelper.preAuthorize
(com.skava.core.auth.AuthTokenHandler authTokenHandler, UserCommonServices userCommonServices, String privilege, long userId, long collectionId, long businessId, String locale) This method is used to check pre authorize by checking user id and privileges for business id.static void
AccessControlHelper.preAuthorize
(com.skava.core.auth.AuthTokenHandler authTokenHandler, UserCommonServices userCommonServices, String privilege, long userId, long collectionId, String locale) This method is used to check pre authorize by checking user id and privileges for business id.static void
AccessControlHelper.preAuthorize
(com.skava.core.auth.AuthTokenHandler authTokenHandler, UserCommonServices userCommonServices, String privilege, String locale, long collectionId, long businessId) This method is used to check pre authorize by checking user id and privileges for business id.static void
AccessControlHelper.preAuthorize
(com.skava.core.auth.AuthTokenHandler authTokenHandler, UserCommonServices userCommonServices, String privilege, List<Long> userIds, long collectionId, long businessId, String locale) This method is used to check pre authorize by checking user id and privileges for business id.static UsersResponse
UserPasswordHelper.updatePassword
(UserCommonServices userCommonServices, long userId, String password, String locale, Map<String, String> propMap, long collectionId, CollectionCommonServices collectionCommonServices) This method is used to update user password in DB, Password is validated and then saved in DB, current password is set as old password and new password is saved in DB if old password exists.static UsersResponse
UserPasswordHelper.validatePasswordIntervalAndLimit
(UserCommonServices userCommonServices, long userId, String password, String locale, Map<String, String> propMap, long collectionId, CollectionCommonServices collectionCommonServices) Represents the response returned by the UserPasswordHelper.validatePasswordIntervalAndLimit method. -
Uses of UserCommonServices in com.skava.service.authenticator
Methods in com.skava.service.authenticator with parameters of type UserCommonServicesModifier and TypeMethodDescriptionUserAuthenticatorService.authenticate
(UserAuthRequest request, AuthenticationConfig config, UserCommonServices userCommonServices) This method is used to authenticate the given credentials.default AuthenticatedUser
UserAuthenticatorService.authenticate
(UserAuthRequest request, AuthenticationConfig config, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, com.skava.core.event.EventClientComponent eventClientComponent) This method is used to authenticate the given credentials.default boolean
UserAuthenticatorService.checkPasswordExpiry
(UserAuthRequest request, CollectionCommonServices collectionCommonServices, UserCommonServices userCommonServices, AuthenticationConfig authenticationConfig) -
Uses of UserCommonServices in com.skava.service.impl
Methods in com.skava.service.impl with parameters of type UserCommonServicesModifier and TypeMethodDescriptionCreateUserOTPActivationServiceImpl.generatOTPForSignUpMFAAndCheckRecentOTPs
(UserCommonServices userCommonServices, Collection collection, UsersEntity userEntity, CollectionCommonServices collectionCommonServices, boolean isResendOTP, boolean isResetOTP, int resendCount) This method is used to generate OTP andactivationParamstatic UsersResponse
ValidateActivationServiceImpl.updatUserInformation
(UserCommonServices userCommonServices, long userId, UserActivationRequest request, long collectionId) This method is used to update user information in DB.Constructors in com.skava.service.impl with parameters of type UserCommonServicesModifierConstructorDescriptionCreateBlackListItemServiceImpl
(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) Default ConstructorDeleteBlackListServiceImpl
(UserCommonServices userCommonServices) FindAllBlackListItemServiceImpl
(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) The class constructor.ValidateMFAServiceImpl
(UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) Default Constructor. -
Uses of UserCommonServices in com.skava.service.impl.authenticator
Methods in com.skava.service.impl.authenticator with parameters of type UserCommonServicesModifier and TypeMethodDescriptionCustomUserAuthenticatorServiceImpl.authenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices) This method is used to authenticate the given credentials by custom authenticator.CustomUserAuthenticatorServiceImpl.authenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, com.skava.core.event.EventClientComponent eventClientComponent) This method is used to authenticate the given credentials by default authenticator.DefaultUserAuthenticatorServiceImpl.authenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices) This method is used to authenticate the given credentials by default authenticator.DefaultUserAuthenticatorServiceImpl.authenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, com.skava.core.event.EventClientComponent eventClientComponent) This method is used to authenticate the given credentials by default authenticator.boolean
DefaultUserAuthenticatorServiceImpl.checkPasswordExpiry
(UserAuthRequest request, CollectionCommonServices collectionCommonServices, UserCommonServices userCommonServices, AuthenticationConfig authenticationConfig) This method is used to check password is expiry or not in MFA Flow -
Uses of UserCommonServices in com.skava.util
Methods in com.skava.util with parameters of type UserCommonServicesModifier and TypeMethodDescriptionstatic void
UserAuthUtil.deleteLoginAttemptCountCustomPropertyFromDB
(UsersEntity user, UserCommonServices userCommonServices, String name) This method is used to delete the given custom properties from DB.static void
UserAuthUtil.deleteMultipleCustomPropertiesFromDB
(UsersEntity user, UserCommonServices userCommonServices, List<String> names) This method is used to delete the given custom properties from DB.static void
UserUtil.deleteMultipleCustomPropertiesFromDB
(UsersEntity user, UserCommonServices userCommonServices, List<String> names) Deletes multiple custom properties from the database for a given user.static List<UsersEntity>
CreateUserUtil.generateActivationParam
(List<UsersEntity> usersEntity, Collection collection, UserRequest request, String userVerifyMethod, CreateUserOTPActivationServiceImpl createUserOTPActivationService, UserCommonServices userCommonServices) This method is used to generate activation param for the list of users.static String
UserLoginMFAUtil.generateLoginTokenAndOTPForLoginMFAAndCheckRecentOTPs
(UserCommonServices userCommonServices, UserAuthRequest request, Collection collection, UsersEntity userEntity, com.skava.core.event.EventClientComponent eventClientComponent, CollectionCommonServices collectionCommonServices) This method is used to generate login OTP and login Token which is used for MFA login.static String
UserUpdateMFAUtil.generateTokenAndOTPForMFAAndCheckRecentOTPs
(UserCommonServices userCommonServices, UserRequest request, Collection collection, Users user, com.skava.core.event.EventClientComponent eventClientComponent, CollectionCommonServices collectionCommonServices) This method is used to generate OTP and Token which is used for MFA .static String
UserUpdateMFAUtil.generateTokenAndOTPForMFAAndCheckRecentOTPs
(UserCommonServices userCommonServices, UserRequest request, Collection collection, Users user, com.skava.core.event.EventClientComponent eventClientComponent, CollectionCommonServices collectionCommonServices, String routingKey) This method is used to generate OTP and Token which is used for MFA .static String
UserUtil.getBearerToken
(long userId, String identityType, String authorizationData, long bearerExpiryTimeMins, UserCommonServices userCommonServices) This method is used to generate bearer tokenstatic List<CollectionAttributeEntity>
CacheUtil.getCollectionAttributeFromCacheOrDB
(UserCommonServices userCommonServices, CollectionAttributeRepository collectionAttributeRepository) This method is used to load collection attributes value from Cache or DB.static Set<CollectionPropertyEntity>
UserCollectionUtil.getCollectionProperties
(CollectionEntity collection, List<CollectionProperty> requestProperties, List<CollectionAttributeEntity> attributes, UserCommonServices userCommonServices, String locale, boolean isCreate) This method will compare collection attributes and collection properties from the request object and adds it to the CollectionPropertyEntity set.static Collection
CacheUtil.getCollectionValueFromCacheOrDB
(UserCommonServices userCommonServices, Long collectionId, Long businessId, String locale, boolean isloadProperties) This method is used to get collection value from cache or DB.static ConsentEntity
CacheUtil.getConsentEntityFromDBOrCache
(ConsentCommonServices consentCommonServices, long consentId, long collectionId, UserCommonServices userCommonServices, String locale, boolean saveToCache) This method is used to load consent entity value from cache or DB.static String
UserUtil.getDecryptedSecretCode
(UserCommonServices userCommonServices, String randomToken) This method is used to decrypt secret code.static String
UserUtil.getEncryptedSecretCode
(UserCommonServices userCommonServices, String randomToken) This method is used to encrypt secret code.static String
UserUtil.getLoginToken
(long userId, UserCommonServices userCommonServices) This method is used to generate login token.UserUtil.getPropertiesMap
(long collectionId, String locale, UserCommonServices userCommonServices) This method is used to fetch collection from collection repository and returns the collection properties as key-value map.static Set<CollectionPropertyEntity>
UserCollectionUtil.getUpdatedCollectionProperties
(CollectionEntity collection, List<CollectionProperty> requestProperties, List<CollectionAttributeEntity> attributes, UserCommonServices userCommonServices, String locale) This method is used to retrieve the updated collection properties for the given collection.static Users
CacheUtil.getUserValueFromCacheOrDB
(UserCommonServices userCommonServices, long collectionId, long userId, String locale, boolean isFullProfile, int type) This method is used to load user from cache or database.static boolean
UserUtil.isMFAEnabledFor
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, String name) isMFAEnabledFor method will fetch the list of process that allows MFA , i.e. login/signup/updatestatic boolean
CacheUtil.isValidCollection
(long collectionId, long businessId, CollectionRepository collectionRepository, UserCommonServices accountCommonServices) static void
SearchUtil.isValidSearchKey
(UserCommonServices userCommonServices, String searchKey, String locale) This method is used to validate the search key and value.static String
UserAuthUtil.loadEnableUserMergeValueFromDB
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method is used to load collection property value from DBstatic String
UserUtil.loadEnableUserMergeValueFromDB
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method is used to load collection property value from DBstatic int
UserAuthUtil.loadFailMaxLimitFromCollectionProperties
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method used to load collection property of resend limit for MFAstatic int
UserUtil.loadFailMaxLimitFromCollectionProperties
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method used to load collection property of resend limit for MFAstatic String
UserAuthUtil.loadMFAValueFromDB
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, String name) This method is used to load collection property value from DBstatic String
UserUtil.loadMFAValueFromDB
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, String name) This method is used to load collection property value from DBstatic int
UserLoginMFAUtil.loadRecentOTPFromCollectionProperties
(Collection collection, CollectionCommonServices collectionCommonServices, UserCommonServices userCommonServices) This method is used to load Recent OTP value count from database for the given collection.static int
UserAuthUtil.loadResendMaxLimitFromCollectionProperties
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method used to load collection property of resend limit for MFAstatic int
UserUtil.loadResendMaxLimitFromCollectionProperties
(Collection collection, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices) This method used to load collection property of resend limit for MFAstatic int
UserAuthUtil.loadType
(String requestType, UserCommonServices userCommonServices, String locale) This method is used to set integer type based on the given string type.static UsersEntity
UserMergeUtil.mergeUsers
(UsersEntity winner, UsersEntity fakeUser, com.skava.core.event.EventClientComponent eventClientComponent, Collection collection, UserCommonServices userCommonServices, UserEventCommonPayLoad userEventCommonPayLoad) This method is used to merge fake user and winner user and trigger an usr event for this user merge.static void
UserLoginMFAUtil.saveMFAAuth
(String secretCode, UserCommonServices userCommonServices, long userId, String loginToken) This method is used to savev MFA authenticator.static UserAuthResponse
UserAuthUtil.setAuthResponseAndGenerateLoginToken
(UsersEntity userEntity, UserCommonServices userCommonServices) This method is used to generate login token and set user id in user model object.static void
UserAuthUtil.updateEmailNotifyProp
(UserAuthRequest request, UserCommonServices userCommonServices, Optional<UsersEntity> user) updateEmailNotifyProp - This method is used to update email notify property.static void
UserLoginMFAUtil.updateMFAAuth
(MfaAuthStatus status, MFAAuthEntity mfaAuthEntity, UserCommonServices userCommonServices, long userId) This method is used to update MFA authenticator.static void
UserLoginMFAUtil.updateMFALoginAuth
(MfaLoginTokenStatus status, MFAAuthEntity mfaAuthEntity, UserCommonServices userCommonServices, long userId) This method is used to update MFA authenticator.static CollectionEntity
UserCollectionUtil.validateCollection
(UserCommonServices userCommonServices, Long collectionId, Long businessId, String locale) This method is used to retrieve the collection for the given collectionId and businessId. -
Uses of UserCommonServices in com.skava.validator.services
Constructors in com.skava.validator.services with parameters of type UserCommonServicesModifierConstructorDescriptionCreateBlackListItemServiceValidator
(UserCommonServices userCommonServices) Default Constructor.