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>
  • Field Details

    • callerType

      public String callerType
    • referer

      public String referer
  • Constructor Details

    • DatarouterAccount

      public DatarouterAccount()
    • DatarouterAccount

      public DatarouterAccount(String accountName, io.datarouter.types.MilliTime createdAt, String creator)
    • DatarouterAccount

      public DatarouterAccount(String accountName, DatarouterAccount account)
      This constructor is specifically used to migrating account names
      Parameters:
      accountName - new accountName
      account - the old account databean
  • Method Details

    • getKeySupplier

      public Supplier<DatarouterAccountKey> getKeySupplier()
    • getCreatedDate

      public String getCreatedDate(ZoneId zoneId)
    • getCreator

      public String getCreator()
    • setLastUsed

      public void setLastUsed(io.datarouter.types.MilliTime lastUsedAt)
    • getLastUsedDate

      public String getLastUsedDate(ZoneId zoneId)
    • getLastUsed

      public io.datarouter.types.MilliTime getLastUsed()
    • getLastUsedInstant

      public Instant getLastUsedInstant()
    • toggleUserMappings

      public void toggleUserMappings()
    • getEnableUserMappings

      public boolean getEnableUserMappings()
    • setEnableUserMappings

      public void setEnableUserMappings(boolean enableUserMappings)
    • getCreated

      public io.datarouter.types.MilliTime getCreated()
    • setCallerType

      public void setCallerType(String callerType)
    • getCallerType

      public String getCallerType()
    • getReferrer

      public String getReferrer()
    • setReferrer

      public void setReferrer(String referrer)