Class Users
java.lang.Object
com.skava.model.datatransferobjects.Users
- All Implemented Interfaces:
Serializable
This class defines the model Users (Data transfer Object). Users is a place where all the user information
and its sub-ordinates are maintained.
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method is used to checks if address is duplicate or not.boolean
This method is used to checks for empty key and value in customProperties map.boolean
This method is used to checks the multiple default address.boolean
This method is used to checks if user is a guest user or not.boolean
isMandatoryPropertyMissing
(boolean isActivation, int type) This method is used to checks if is mandatory property missing.
-
Constructor Details
-
Users
public Users()Instantiates a new Users. -
Users
public Users(long userId) User Constructor with user id.- Parameters:
userId
- Indicates the user's id.
-
-
Method Details
-
isGuestUser
public boolean isGuestUser()This method is used to checks if user is a guest user or not.- Returns:
- true, if user is a guest user else return false.
-
isMandatoryPropertyMissing
public boolean isMandatoryPropertyMissing(boolean isActivation, int type) This method is used to checks if is mandatory property missing.- Parameters:
isActivation
- Indicates the boolean value which is used to check the mandatory properties.type
- Indicates the type of the user.- Returns:
- boolean value true, if is mandatory property missing else return false.
-
checkDuplicateAddress
public boolean checkDuplicateAddress()This method is used to checks if address is duplicate or not.- Returns:
- boolean value true, if it have duplicate address, else return false.
-
checkMultipleDefaultAddress
public boolean checkMultipleDefaultAddress()This method is used to checks the multiple default address.- Returns:
- boolean value true, if it have multiple default address, else return false.
-
checkEmptyKeyValueCustomProperties
public boolean checkEmptyKeyValueCustomProperties()This method is used to checks for empty key and value in customProperties map.- Returns:
- boolean value true if key and value is empty, else return false.
-