Package org.teamapps.model.controlcenter
Class UdbUser
java.lang.Object
org.teamapps.universaldb.pojo.AbstractUdbEntity<User>
org.teamapps.model.controlcenter.UdbUser
- All Implemented Interfaces:
User,org.teamapps.universaldb.pojo.Entity<User>,org.teamapps.universaldb.pojo.Identifiable,org.teamapps.universaldb.record.EntityBuilder<User>
public class UdbUser extends org.teamapps.universaldb.pojo.AbstractUdbEntity<User> implements User
-
Field Summary
Fields Modifier and Type Field Description protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexacceptedPoliciesprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexaccessTokensprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexaddressprotected static org.teamapps.universaldb.index.bool.BooleanIndexdarkThemeprotected static org.teamapps.universaldb.index.text.TextIndexdisplayLanguageprotected static org.teamapps.universaldb.index.text.TextIndexemailprotected static org.teamapps.universaldb.index.text.TextIndexfirstNameprotected static org.teamapps.universaldb.index.text.TextIndexfirstNameTranslatedprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexlanguageSettingsprotected static org.teamapps.universaldb.index.numeric.IntegerIndexlastLoginprotected static org.teamapps.universaldb.index.text.TextIndexlastNameprotected static org.teamapps.universaldb.index.text.TextIndexlastNameTranslatedprotected static org.teamapps.universaldb.index.text.TextIndexloginprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexloginStatsprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaCreatedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaCreationDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaDeletedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaDeletionDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaModificationDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaModifiedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaRestoreDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaRestoredByprotected static org.teamapps.universaldb.index.text.TextIndexmobileprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexorganizationUnitprotected static org.teamapps.universaldb.index.text.TextIndexpasswordprotected static org.teamapps.universaldb.index.text.TextIndexphoneprotected static org.teamapps.universaldb.index.binary.BinaryIndexprofilePictureprotected static org.teamapps.universaldb.index.binary.BinaryIndexprofilePictureLargeprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexroleAssignmentsprotected static org.teamapps.universaldb.index.TableIndextableprotected static org.teamapps.universaldb.index.text.TextIndexthemeprotected static org.teamapps.universaldb.index.numeric.ShortIndexuserAccountStatusFields inherited from interface org.teamapps.model.controlcenter.User
FIELD_ACCEPTED_POLICIES, FIELD_ACCESS_TOKENS, FIELD_ADDRESS, FIELD_DARK_THEME, FIELD_DISPLAY_LANGUAGE, FIELD_EMAIL, FIELD_FIRST_NAME, FIELD_FIRST_NAME_TRANSLATED, FIELD_LANGUAGE_SETTINGS, FIELD_LAST_LOGIN, FIELD_LAST_NAME, FIELD_LAST_NAME_TRANSLATED, FIELD_LOGIN, FIELD_LOGIN_STATS, FIELD_META_CREATED_BY, FIELD_META_CREATION_DATE, FIELD_META_DELETED_BY, FIELD_META_DELETION_DATE, FIELD_META_MODIFICATION_DATE, FIELD_META_MODIFIED_BY, FIELD_META_RESTORE_DATE, FIELD_META_RESTORED_BY, FIELD_MOBILE, FIELD_ORGANIZATION_UNIT, FIELD_PASSWORD, FIELD_PHONE, FIELD_PROFILE_PICTURE, FIELD_PROFILE_PICTURE_LARGE, FIELD_ROLE_ASSIGNMENTS, FIELD_THEME, FIELD_USER_ACCOUNT_STATUS -
Constructor Summary
-
Method Summary
Methods inherited from class org.teamapps.universaldb.pojo.AbstractUdbEntity
addMultiReferenceValue, clearChanges, clearFieldChanges, createdBy, createEntityList, createEntityList, createEntityList, deleteRecord, equals, getBooleanValue, getChangedValue, getChangeValue, getCorrelationId, getDateAsEpochMilli, getDateTimeAsEpochMilli, getDateTimeValue, getDateValue, getDoubleValue, getEntityValue, getEnumValue, getFloatValue, getId, getIntValue, getLocalDateValue, getLongValue, getMultiReferenceValue, getMultiReferenceValueAsBitSet, getMultiReferenceValueCount, getQualifiedName, getRecordUpdates, getReferenceChangeValue, getShortValue, getTableId, getTableIndex, getTextValue, getTimestampAsEpochMilli, getTimestampAsEpochSecond, getTimestampValue, getTimeValue, getTranslatableTextValue, hashCode, isChanged, isChanged, isDeleted, isModified, isRestorable, isStored, removeAllMultiReferenceValue, removeMultiReferenceValue, restoreDeletedRecord, saveRecord, saveRecord, setBooleanValue, setChangeValue, setDatabase, setDateAsEpochMilli, setDateTimeAsEpochMilli, setDateTimeValue, setDateValue, setDoubleValue, setEntityValue, setEnumValue, setFloatValue, setIntValue, setLocalDateAsEpochMilli, setLocalDateValue, setLongValue, setMultiReferenceValue, setShortValue, setSingleReferenceValue, setTextValue, setTimestampAsEpochMilli, setTimestampAsEpochSecond, setTimestampValue, setTimeValue, setTranslatableTextValue, sort, sort, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.universaldb.pojo.Entity
clearChanges, clearFieldChanges, getEntityValue, getId, getRecordUpdates, isChanged, isDeleted, isModified, isRestorable, isStored, setEntityValueMethods inherited from interface org.teamapps.universaldb.pojo.Identifiable
getQualifiedName
-
Field Details
-
table
protected static org.teamapps.universaldb.index.TableIndex table -
metaCreationDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaCreationDate -
metaCreatedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaCreatedBy -
metaModificationDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaModificationDate -
metaModifiedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaModifiedBy -
metaDeletionDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaDeletionDate -
metaDeletedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaDeletedBy -
metaRestoreDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaRestoreDate -
metaRestoredBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaRestoredBy -
firstName
protected static org.teamapps.universaldb.index.text.TextIndex firstName -
firstNameTranslated
protected static org.teamapps.universaldb.index.text.TextIndex firstNameTranslated -
lastName
protected static org.teamapps.universaldb.index.text.TextIndex lastName -
lastNameTranslated
protected static org.teamapps.universaldb.index.text.TextIndex lastNameTranslated -
profilePicture
protected static org.teamapps.universaldb.index.binary.BinaryIndex profilePicture -
profilePictureLarge
protected static org.teamapps.universaldb.index.binary.BinaryIndex profilePictureLarge -
displayLanguage
protected static org.teamapps.universaldb.index.text.TextIndex displayLanguage -
email
protected static org.teamapps.universaldb.index.text.TextIndex email -
mobile
protected static org.teamapps.universaldb.index.text.TextIndex mobile -
phone
protected static org.teamapps.universaldb.index.text.TextIndex phone -
login
protected static org.teamapps.universaldb.index.text.TextIndex login -
lastLogin
protected static org.teamapps.universaldb.index.numeric.IntegerIndex lastLogin -
password
protected static org.teamapps.universaldb.index.text.TextIndex password -
theme
protected static org.teamapps.universaldb.index.text.TextIndex theme -
darkTheme
protected static org.teamapps.universaldb.index.bool.BooleanIndex darkTheme -
userAccountStatus
protected static org.teamapps.universaldb.index.numeric.ShortIndex userAccountStatus -
acceptedPolicies
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex acceptedPolicies -
address
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex address -
organizationUnit
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex organizationUnit -
accessTokens
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex accessTokens -
roleAssignments
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex roleAssignments -
languageSettings
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex languageSettings -
loginStats
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex loginStats
-
-
Constructor Details
-
UdbUser
public UdbUser() -
UdbUser
public UdbUser(int id, boolean createEntity)
-
-
Method Details
-
getAll
-
getDeletedRecords
-
sort
-
sort
public static java.util.List<User> sort(java.util.BitSet recordIds, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path) -
getCount
public static int getCount() -
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<User>
-
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<User>
-
getMetaCreationDate
public java.time.Instant getMetaCreationDate()- Specified by:
getMetaCreationDatein interfaceUser
-
setMetaCreationDate
- Specified by:
setMetaCreationDatein interfaceUser
-
getMetaCreationDateAsEpochSecond
public int getMetaCreationDateAsEpochSecond()- Specified by:
getMetaCreationDateAsEpochSecondin interfaceUser
-
setMetaCreationDateAsEpochSecond
- Specified by:
setMetaCreationDateAsEpochSecondin interfaceUser
-
getMetaCreationDateAsEpochMilli
public long getMetaCreationDateAsEpochMilli()- Specified by:
getMetaCreationDateAsEpochMilliin interfaceUser
-
setMetaCreationDateAsEpochMilli
- Specified by:
setMetaCreationDateAsEpochMilliin interfaceUser
-
getMetaCreatedBy
public int getMetaCreatedBy()- Specified by:
getMetaCreatedByin interfaceUser
-
setMetaCreatedBy
- Specified by:
setMetaCreatedByin interfaceUser
-
getMetaModificationDate
public java.time.Instant getMetaModificationDate()- Specified by:
getMetaModificationDatein interfaceUser
-
setMetaModificationDate
- Specified by:
setMetaModificationDatein interfaceUser
-
getMetaModificationDateAsEpochSecond
public int getMetaModificationDateAsEpochSecond()- Specified by:
getMetaModificationDateAsEpochSecondin interfaceUser
-
setMetaModificationDateAsEpochSecond
- Specified by:
setMetaModificationDateAsEpochSecondin interfaceUser
-
getMetaModificationDateAsEpochMilli
public long getMetaModificationDateAsEpochMilli()- Specified by:
getMetaModificationDateAsEpochMilliin interfaceUser
-
setMetaModificationDateAsEpochMilli
- Specified by:
setMetaModificationDateAsEpochMilliin interfaceUser
-
getMetaModifiedBy
public int getMetaModifiedBy()- Specified by:
getMetaModifiedByin interfaceUser
-
setMetaModifiedBy
- Specified by:
setMetaModifiedByin interfaceUser
-
getMetaDeletionDate
public java.time.Instant getMetaDeletionDate()- Specified by:
getMetaDeletionDatein interfaceUser
-
setMetaDeletionDate
- Specified by:
setMetaDeletionDatein interfaceUser
-
getMetaDeletionDateAsEpochSecond
public int getMetaDeletionDateAsEpochSecond()- Specified by:
getMetaDeletionDateAsEpochSecondin interfaceUser
-
setMetaDeletionDateAsEpochSecond
- Specified by:
setMetaDeletionDateAsEpochSecondin interfaceUser
-
getMetaDeletionDateAsEpochMilli
public long getMetaDeletionDateAsEpochMilli()- Specified by:
getMetaDeletionDateAsEpochMilliin interfaceUser
-
setMetaDeletionDateAsEpochMilli
- Specified by:
setMetaDeletionDateAsEpochMilliin interfaceUser
-
getMetaDeletedBy
public int getMetaDeletedBy()- Specified by:
getMetaDeletedByin interfaceUser
-
setMetaDeletedBy
- Specified by:
setMetaDeletedByin interfaceUser
-
getMetaRestoreDate
public java.time.Instant getMetaRestoreDate()- Specified by:
getMetaRestoreDatein interfaceUser
-
setMetaRestoreDate
- Specified by:
setMetaRestoreDatein interfaceUser
-
getMetaRestoreDateAsEpochSecond
public int getMetaRestoreDateAsEpochSecond()- Specified by:
getMetaRestoreDateAsEpochSecondin interfaceUser
-
setMetaRestoreDateAsEpochSecond
- Specified by:
setMetaRestoreDateAsEpochSecondin interfaceUser
-
getMetaRestoreDateAsEpochMilli
public long getMetaRestoreDateAsEpochMilli()- Specified by:
getMetaRestoreDateAsEpochMilliin interfaceUser
-
setMetaRestoreDateAsEpochMilli
- Specified by:
setMetaRestoreDateAsEpochMilliin interfaceUser
-
getMetaRestoredBy
public int getMetaRestoredBy()- Specified by:
getMetaRestoredByin interfaceUser
-
setMetaRestoredBy
- Specified by:
setMetaRestoredByin interfaceUser
-
getFirstName
public java.lang.String getFirstName()- Specified by:
getFirstNamein interfaceUser
-
setFirstName
- Specified by:
setFirstNamein interfaceUser
-
getFirstNameTranslated
public java.lang.String getFirstNameTranslated()- Specified by:
getFirstNameTranslatedin interfaceUser
-
setFirstNameTranslated
- Specified by:
setFirstNameTranslatedin interfaceUser
-
getLastName
public java.lang.String getLastName()- Specified by:
getLastNamein interfaceUser
-
setLastName
- Specified by:
setLastNamein interfaceUser
-
getLastNameTranslated
public java.lang.String getLastNameTranslated()- Specified by:
getLastNameTranslatedin interfaceUser
-
setLastNameTranslated
- Specified by:
setLastNameTranslatedin interfaceUser
-
getProfilePicture
public byte[] getProfilePicture()- Specified by:
getProfilePicturein interfaceUser
-
setProfilePicture
- Specified by:
setProfilePicturein interfaceUser
-
getProfilePictureLength
public int getProfilePictureLength()- Specified by:
getProfilePictureLengthin interfaceUser
-
getProfilePictureInputStreamSupplier
public java.util.function.Supplier<java.io.InputStream> getProfilePictureInputStreamSupplier()- Specified by:
getProfilePictureInputStreamSupplierin interfaceUser
-
getProfilePictureLarge
public byte[] getProfilePictureLarge()- Specified by:
getProfilePictureLargein interfaceUser
-
setProfilePictureLarge
- Specified by:
setProfilePictureLargein interfaceUser
-
getProfilePictureLargeLength
public int getProfilePictureLargeLength()- Specified by:
getProfilePictureLargeLengthin interfaceUser
-
getProfilePictureLargeInputStreamSupplier
public java.util.function.Supplier<java.io.InputStream> getProfilePictureLargeInputStreamSupplier()- Specified by:
getProfilePictureLargeInputStreamSupplierin interfaceUser
-
getDisplayLanguage
public java.lang.String getDisplayLanguage()- Specified by:
getDisplayLanguagein interfaceUser
-
setDisplayLanguage
- Specified by:
setDisplayLanguagein interfaceUser
-
getEmail
public java.lang.String getEmail() -
setEmail
-
getMobile
public java.lang.String getMobile() -
setMobile
-
getPhone
public java.lang.String getPhone() -
setPhone
-
getLogin
public java.lang.String getLogin() -
setLogin
-
getLastLogin
public java.time.Instant getLastLogin()- Specified by:
getLastLoginin interfaceUser
-
setLastLogin
- Specified by:
setLastLoginin interfaceUser
-
getLastLoginAsEpochSecond
public int getLastLoginAsEpochSecond()- Specified by:
getLastLoginAsEpochSecondin interfaceUser
-
setLastLoginAsEpochSecond
- Specified by:
setLastLoginAsEpochSecondin interfaceUser
-
getLastLoginAsEpochMilli
public long getLastLoginAsEpochMilli()- Specified by:
getLastLoginAsEpochMilliin interfaceUser
-
setLastLoginAsEpochMilli
- Specified by:
setLastLoginAsEpochMilliin interfaceUser
-
getPassword
public java.lang.String getPassword()- Specified by:
getPasswordin interfaceUser
-
setPassword
- Specified by:
setPasswordin interfaceUser
-
getTheme
public java.lang.String getTheme() -
setTheme
-
getDarkTheme
public boolean getDarkTheme()- Specified by:
getDarkThemein interfaceUser
-
setDarkTheme
- Specified by:
setDarkThemein interfaceUser
-
isDarkTheme
public boolean isDarkTheme()- Specified by:
isDarkThemein interfaceUser
-
getUserAccountStatus
- Specified by:
getUserAccountStatusin interfaceUser
-
setUserAccountStatus
- Specified by:
setUserAccountStatusin interfaceUser
-
getAcceptedPolicies
- Specified by:
getAcceptedPoliciesin interfaceUser
-
setAcceptedPolicies
- Specified by:
setAcceptedPoliciesin interfaceUser
-
getAddress
- Specified by:
getAddressin interfaceUser
-
setAddress
- Specified by:
setAddressin interfaceUser
-
getOrganizationUnit
- Specified by:
getOrganizationUnitin interfaceUser
-
setOrganizationUnit
- Specified by:
setOrganizationUnitin interfaceUser
-
getAccessTokens
- Specified by:
getAccessTokensin interfaceUser
-
setAccessTokens
- Specified by:
setAccessTokensin interfaceUser
-
getAccessTokensCount
public int getAccessTokensCount()- Specified by:
getAccessTokensCountin interfaceUser
-
setAccessTokens
- Specified by:
setAccessTokensin interfaceUser
-
getAccessTokensAsBitSet
public java.util.BitSet getAccessTokensAsBitSet()- Specified by:
getAccessTokensAsBitSetin interfaceUser
-
addAccessTokens
- Specified by:
addAccessTokensin interfaceUser
-
addAccessTokens
- Specified by:
addAccessTokensin interfaceUser
-
removeAccessTokens
- Specified by:
removeAccessTokensin interfaceUser
-
removeAccessTokens
- Specified by:
removeAccessTokensin interfaceUser
-
removeAllAccessTokens
- Specified by:
removeAllAccessTokensin interfaceUser
-
getRoleAssignments
- Specified by:
getRoleAssignmentsin interfaceUser
-
setRoleAssignments
- Specified by:
setRoleAssignmentsin interfaceUser
-
getRoleAssignmentsCount
public int getRoleAssignmentsCount()- Specified by:
getRoleAssignmentsCountin interfaceUser
-
setRoleAssignments
- Specified by:
setRoleAssignmentsin interfaceUser
-
getRoleAssignmentsAsBitSet
public java.util.BitSet getRoleAssignmentsAsBitSet()- Specified by:
getRoleAssignmentsAsBitSetin interfaceUser
-
addRoleAssignments
- Specified by:
addRoleAssignmentsin interfaceUser
-
addRoleAssignments
- Specified by:
addRoleAssignmentsin interfaceUser
-
removeRoleAssignments
- Specified by:
removeRoleAssignmentsin interfaceUser
-
removeRoleAssignments
- Specified by:
removeRoleAssignmentsin interfaceUser
-
removeAllRoleAssignments
- Specified by:
removeAllRoleAssignmentsin interfaceUser
-
getLanguageSettings
- Specified by:
getLanguageSettingsin interfaceUser
-
setLanguageSettings
- Specified by:
setLanguageSettingsin interfaceUser
-
getLanguageSettingsCount
public int getLanguageSettingsCount()- Specified by:
getLanguageSettingsCountin interfaceUser
-
setLanguageSettings
- Specified by:
setLanguageSettingsin interfaceUser
-
getLanguageSettingsAsBitSet
public java.util.BitSet getLanguageSettingsAsBitSet()- Specified by:
getLanguageSettingsAsBitSetin interfaceUser
-
addLanguageSettings
- Specified by:
addLanguageSettingsin interfaceUser
-
addLanguageSettings
- Specified by:
addLanguageSettingsin interfaceUser
-
removeLanguageSettings
- Specified by:
removeLanguageSettingsin interfaceUser
-
removeLanguageSettings
- Specified by:
removeLanguageSettingsin interfaceUser
-
removeAllLanguageSettings
- Specified by:
removeAllLanguageSettingsin interfaceUser
-
getLoginStats
- Specified by:
getLoginStatsin interfaceUser
-
setLoginStats
- Specified by:
setLoginStatsin interfaceUser
-
save
- Specified by:
savein interfaceorg.teamapps.universaldb.pojo.Entity<User>
-
delete
public void delete()- Specified by:
deletein interfaceorg.teamapps.universaldb.pojo.Entity<User>
-
restoreDeleted
public void restoreDeleted()- Specified by:
restoreDeletedin interfaceorg.teamapps.universaldb.pojo.Entity<User>
-