Class DatarouterAccount
java.lang.Object
io.datarouter.model.databean.BaseDatabean<DatarouterAccountKey,DatarouterAccount>
io.datarouter.auth.storage.account.DatarouterAccount
- All Implemented Interfaces:
io.datarouter.model.databean.Databean<DatarouterAccountKey,,DatarouterAccount> Comparable<io.datarouter.model.databean.Databean<?,?>>
public class DatarouterAccount
extends io.datarouter.model.databean.BaseDatabean<DatarouterAccountKey,DatarouterAccount>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class io.datarouter.model.databean.BaseDatabean
DEFAULT_KEY_FIELD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDatarouterAccount(String accountName, DatarouterAccount account) This constructor is specifically used to migrating account namesDatarouterAccount(String accountName, io.datarouter.types.MilliTime createdAt, String creator) -
Method Summary
Modifier and TypeMethodDescriptionio.datarouter.types.MilliTimegetCreatedDate(ZoneId zoneId) booleanio.datarouter.types.MilliTimegetLastUsedDate(ZoneId zoneId) voidsetCallerType(String callerType) voidsetEnableUserMappings(boolean enableUserMappings) voidsetLastUsed(io.datarouter.types.MilliTime lastUsedAt) voidsetReferrer(String referrer) voidMethods inherited from class io.datarouter.model.databean.BaseDatabean
compareTo, equals, getDatabeanName, getKey, getKeyFieldName, getKeyFields, hashCode, toString
-
Field Details
-
callerType
-
referer
-
-
Constructor Details
-
DatarouterAccount
public DatarouterAccount() -
DatarouterAccount
-
DatarouterAccount
This constructor is specifically used to migrating account names- Parameters:
accountName- new accountNameaccount- the old account databean
-
-
Method Details
-
getKeySupplier
-
getCreatedDate
-
getCreator
-
setLastUsed
public void setLastUsed(io.datarouter.types.MilliTime lastUsedAt) -
getLastUsedDate
-
getLastUsed
public io.datarouter.types.MilliTime getLastUsed() -
getLastUsedInstant
-
toggleUserMappings
public void toggleUserMappings() -
getEnableUserMappings
public boolean getEnableUserMappings() -
setEnableUserMappings
public void setEnableUserMappings(boolean enableUserMappings) -
getCreated
public io.datarouter.types.MilliTime getCreated() -
setCallerType
-
getCallerType
-
getReferrer
-
setReferrer
-