Package com.skava.util
Class UserConsentUtil
java.lang.Object
com.skava.util.UserConsentUtil
This is a Utility class for User model which contains validator and helper methods used in this service
for user consent.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserConsentHistoryEntity
createUserConsentHistory
(UserConsentEntity userConsentEntity, String action) This method is used to create user consent history entity.static List<UserConsentHistoryEntity>
createUserConsentHistoryList
(List<UserConsentEntity> userConsentEntities, String action) This method is used to create user consent history entity from user consent entity
-
Method Details
-
createUserConsentHistoryList
public static List<UserConsentHistoryEntity> createUserConsentHistoryList(List<UserConsentEntity> userConsentEntities, String action) This method is used to create user consent history entity from user consent entity- Parameters:
userConsentEntities
- HoldsList
ofUserConsentEntity
object used for creating user consent history entity.action
- Indicates the action of user consent.- Returns:
- The
List
ofUserConsentHistoryEntity
object.
-
createUserConsentHistory
public static UserConsentHistoryEntity createUserConsentHistory(UserConsentEntity userConsentEntity, String action) This method is used to create user consent history entity.- Parameters:
userConsentEntity
- HoldsUserConsentEntity
object used for creating user consent history entity.action
- Indicates the actions of user consent.- Returns:
- The
UserConsentHistoryEntity
object.
-