org.opengts.db.tables
Class Account

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<Account>
          extended by org.opengts.db.tables.Account
All Implemented Interfaces:
UserInformation

public class Account
extends AccountRecord<Account>
implements UserInformation


Nested Class Summary
static class Account.AccountType
           
static class Account.AltitudeUnits
           
static class Account.AreaUnits
           
static class Account.Currency
           
static class Account.DistanceUnits
           
static class Account.EconomyUnits
           
static class Account.ForceUnits
           
static class Account.GeocoderMode
           
static class Account.Key
           
static class Account.LatLonFormat
           
static class Account.MassUnits
           
static class Account.PressureUnits
           
static class Account.SMSDefaultState
           
static class Account.SpeedUnits
           
static class Account.TemperatureUnits
           
static class Account.VolumeUnits
           
 
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord
AccountRecord.AccountKey<RT extends DBRecord>
 
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord
DBRecord.DBChangeListener
 
Field Summary
static java.lang.String _PROP_DemoAccount_device_dateRange
           
static DBField[] AccountManagerInfo
           
static java.lang.String ACL_CHANGE_ACCOUNT
           
static java.lang.String ACL_CHANGE_PASSWORD
           
static java.lang.String ACL_CHANGE_USER
           
static double ACRES_PER_SQUARE_METER
           
static DBField[] AddressFieldInfo
           
static double AT_PER_KPA
           
static double ATM_PER_KPA
           
static double BAR_PER_KPA
           
static double BAR_PER_PA
           
static java.lang.String BLANK_PASSWORD
           
static double CUBIC_FEET_PER_LITER
           
static DBField[] DataPushInfo
           
static long DFT_EXPIRATION_SEC
           
static DBField[] ELogHOSInfo
           
protected static DBFactory<Account> factory
           
static DBField[] FieldInfo
           
static java.lang.String FLD_accountType
           
static java.lang.String FLD_addressCity
           
static java.lang.String FLD_addressCountry
           
static java.lang.String FLD_addressLine1
           
static java.lang.String FLD_addressLine2
           
static java.lang.String FLD_addressLine3
           
static java.lang.String FLD_addressPostalCode
           
static java.lang.String FLD_addressState
           
static java.lang.String FLD_allowNotify
           
static java.lang.String FLD_allowWebService
           
static java.lang.String FLD_autoAddDevices
           
static java.lang.String FLD_contactEmail
           
static java.lang.String FLD_contactName
           
static java.lang.String FLD_contactPhone
           
static java.lang.String FLD_currencyUnits
           
static java.lang.String FLD_dataPushURL
           
static java.lang.String FLD_dcsPropertiesID
           
static java.lang.String FLD_defaultUser
           
static java.lang.String FLD_distanceUnits
           
static java.lang.String FLD_economyUnits
           
static java.lang.String FLD_eLogEnabled
           
static java.lang.String FLD_eLogPassword
           
static java.lang.String FLD_eLogUsername
           
static java.lang.String FLD_emailProperties
           
static java.lang.String FLD_expirationTime
           
static java.lang.String FLD_fuelCostPerLiter
           
static java.lang.String FLD_geocoderMode
           
static java.lang.String FLD_isAccountManager
           
static java.lang.String FLD_isBorderCrossing
           
static java.lang.String FLD_lastDataPushTime
           
static java.lang.String FLD_lastDataRequestTime
           
static java.lang.String FLD_lastLoginTime
           
static java.lang.String FLD_latLonFormat
           
static java.lang.String FLD_managerID
           
static java.lang.String FLD_mapLegendDevice
           
static java.lang.String FLD_mapLegendGroup
           
static java.lang.String FLD_maximumDevices
           
static java.lang.String FLD_maxPingCount
           
static java.lang.String FLD_notifyEmail
           
static java.lang.String FLD_passwdChangeTime
           
static java.lang.String FLD_passwdQueryTime
           
static java.lang.String FLD_password
           
static java.lang.String FLD_pressureUnits
           
static java.lang.String FLD_privateLabelJsp
           
static java.lang.String FLD_privateLabelName
           
static java.lang.String FLD_requestIPAddress
           
static java.lang.String FLD_requestPassCode
           
static java.lang.String FLD_retainedEventAge
           
static java.lang.String FLD_smsEnabled
           
static java.lang.String FLD_smsProperties
           
static java.lang.String FLD_speedUnits
           
static java.lang.String FLD_temperatureUnits
           
static java.lang.String FLD_timeZone
           
static java.lang.String FLD_totalPingCount
           
static java.lang.String FLD_volumeUnits
           
static double G_PER_MPSS_FORCE
           
static double KPA_PER_BAR
           
static double KPA_PER_PSI
           
static double LBS_PER_KG
           
static double LITERS_PER_UK_GALLON
           
static double LITERS_PER_US_GALLON
           
static DBField[] MapLegendFieldInfo
           
static long MAX_EXPIRATION_SEC
           
static long MAX_UNCONFIRMED_SEC
           
static double METERS_PER_SEC_SQ_PER_G
           
static double MMHG_PER_KPA
           
static double MPH_PER_SEC_PER_G
           
static double MPH_PER_SEC_PER_MPSS
           
static double MPSS_PER_G_FORCE
           
static java.lang.String OPTCOLS_AccountManagerInfo
           
static java.lang.String OPTCOLS_AddressFieldInfo
           
static java.lang.String OPTCOLS_DataPushInfo
           
static java.lang.String OPTCOLS_ELogHOSInfo
           
static java.lang.String OPTCOLS_MapLegendFieldInfo
           
static double PA_PER_KPA
           
static java.lang.String PROP_DemoAccount_
           
static java.lang.String PROP_DemoAccount_accountName
           
static java.lang.String PROP_DemoAccount_deviceNames
           
static double PSF_PER_KPA
           
static double PSI_PER_KPA
           
static double SQUARE_FEET_PER_METER
           
static double SQUARE_KILOMETERS_PER_METER
           
static double SQUARE_METERS_PER_ACRE
           
static double SQUARE_METERS_PER_FOOT
           
static double SQUARE_METERS_PER_KILOMETER
           
static double SQUARE_METERS_PER_MILE
           
static double SQUARE_MILES_PER_METER
           
static java.lang.String SUPER_ACCOUNT_SEPARATOR
           
static int TEMP_PASSWORD_LENGTH
           
static double TORR_PER_KPA
           
static double UK_GALLONS_PER_LITER
           
static double US_GALLONS_PER_LITER
           
 
Fields inherited from class org.opengts.db.AccountRecord
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes
 
Fields inherited from class org.opengts.dbtools.DBRecord
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps
 
Constructor Summary
Account()
           
Account(Account.Key key)
           
 
Method Summary
static double _getEventsPerSecond()
          Accumulate total Events-Per-Second from values stored in each individual Device
static java.lang.String _getKeyFieldString(boolean getTitle, java.lang.String key, java.lang.String arg, java.util.Locale locale, BasicPrivateLabel bpl, Account acct)
           
 long adjustRetainedEventTime(long oldTimeSec)
           
 boolean checkPassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
           
static boolean checkPassword(BasicPrivateLabel bpl, java.lang.String enteredPass, java.lang.String tablePass)
           
 java.lang.Object convertFieldUnits(DBField field, java.lang.Object value, boolean inclUnits, java.util.Locale locale)
           
 long countOldEvents(long oldTimeSec, boolean log)
          Count old events for all devices within this account.
Note: Will return -1 if EventData table is InnoDB.
static Account createNewAccount(Account acctMgr, java.lang.String acctID, java.lang.String passwd)
          Creates a new Account with the specified ID and password
static java.lang.String createRandomPassword(int length)
          Creates a random password with the specified number of characters
static Account createTemporaryAccount(java.lang.String accountID, int expireDays, java.lang.String encPass, java.lang.String contactName, java.lang.String contactEmail, java.lang.String privateLabelName)
          Creates a temporary account
static void deactivateAccounts(java.lang.String[] acctID)
          Deactivates the specified list of Accounts.
static java.lang.String decodePassword(BasicPrivateLabel bpl, java.lang.String tablePass)
           
static void deleteAccounts(java.lang.String[] acctID)
          Deletes the specified Accounts, including all owned Devices, Users, Events, etc.
 long deleteOldEvents(long oldTimeSec, boolean log)
          Delete old events for all devices within this account.
Note: Will return -1 if EventData table is InnoDB.
 boolean doesExpire()
           
static java.lang.String encodePassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
           
 boolean exceedsMaximumDevices(long devCnt, boolean zeroIsUnlimited)
          Return true if the specified value exceeds the allow maximum number of devices
static boolean exists(java.lang.String acctID)
          Returns true if the specified Account-ID exists
 java.lang.String formatDate(DateTime dt)
           
 java.lang.String formatDateTime(DateTime dt)
           
 java.lang.String formatDateTime(long dt)
           
 java.lang.String formatTime(DateTime dt)
           
static Account getAccount(java.lang.String acctID)
          Gets an Account with the specified Account-ID.
static Account getAccount(java.lang.String acctID, boolean create)
          Gets or creates an Account with the specified Account-ID
static java.lang.String getAccountDisplayID(java.lang.String accountID)
           
static java.util.List<java.lang.String> getAccountIDsForContactEmail(java.lang.String emailAddr)
          Returns an array of Account-IDs managed by the specified contact email address
 int getAccountType()
           
static Account.AccountType getAccountType(Account a)
          Returns the defined AccountType for the specified account.
 java.lang.String getAddressCity()
           
 java.lang.String getAddressCountry()
           
 java.lang.String getAddressLine1()
           
 java.lang.String getAddressLine2()
           
 java.lang.String getAddressLine3()
           
 java.lang.String[] getAddressLines()
           
 java.lang.String getAddressPostalCode()
           
 java.lang.String getAddressState()
           
 java.lang.String[] getAddressTitles(java.util.Locale loc)
           
 java.lang.String[] getAddressTitles(java.util.Locale loc, java.lang.String[] dft)
           
static java.util.Collection<java.lang.String> getAllAccounts()
           
static java.util.Collection<java.lang.String> getAllAccounts(DBSelect<Account> dsel)
           
 boolean getAllowNotify()
          Returns true if notifications are allowed for this Account
 boolean getAllowWebService()
          Returns true if web-service access is allowed for this Account
static boolean GetAllowWebService(Account acct)
          Returns true if web-service access is allowed for the specified Account
static Account.AltitudeUnits getAltitudeUnits(Account a)
          Returns the defined AltitudeUnits for the specified account.
static Account.AltitudeUnits getAltitudeUnits(User u)
          Returns the defined AltitudeUnits for the specified user.
static java.util.Collection<java.lang.String> getAuthorizedAccounts(Account account)
           
 boolean getAutoAddDevices()
          Gets the 'auto-add' devices enabled state for this account
 java.lang.String getContactEmail()
           
 java.lang.String getContactName()
           
 java.lang.String getContactPhone()
           
static java.lang.String getCurrency(Account a)
          Returns the currency units for the specified account
static Account.Currency GetCurrency(java.lang.String code)
           
static java.lang.String getCurrencySymbol(Account a)
          Returns the currency symbol for the specified account
 java.lang.String getCurrencyUnits()
           
 DateTime getCurrentDateTime()
           
 User getCurrentUser()
          Gets the current context user
static java.util.Collection<java.lang.String> getDataPushAccountIDs()
           
 java.lang.String getDataPushURL()
           
 java.lang.String getDateFormat()
           
 java.lang.String getDateTimeFormat()
           
 java.lang.String getDcsPropertiesID()
           
 java.lang.String getDecodedPassword(BasicPrivateLabel bpl)
           
static java.lang.String GetDefaultCurrency()
          Returns the default currency
static java.lang.String GetDefaultCurrencySymbol()
          Returns the default currency symbol
static PasswordHandler getDefaultPasswordHandler()
           
static Account.SMSDefaultState GetDefaultSmsEnabledState()
           
static java.lang.String GetDefaultTimeZone()
          Gets the default Account timezone
 java.lang.String getDefaultUser()
          Gets the default login user-id
static java.lang.String getDefaultUser(Account acct, boolean rtnAdmin)
          Gets the default login user-id for the specified account
static java.lang.String[] GetDemoAccountDeviceIDs()
           
static java.lang.String GetDemoAccountID()
           
static java.lang.String[] GetDemoDeviceDateRange(java.lang.String accountID, java.lang.String deviceID)
           
 Device getDevice(java.lang.String devID)
           
 long getDeviceCount()
           
 java.lang.String[] getDeviceGroupTitles(java.util.Locale loc)
           
 java.lang.String[] getDeviceGroupTitles(java.util.Locale loc, java.lang.String[] dft)
           
 java.lang.String[] getDeviceTitles(java.util.Locale loc)
           
 java.lang.String[] getDeviceTitles(java.util.Locale loc, java.lang.String[] dft)
           
 java.lang.String getDistanceString(double distKM, boolean inclUnits, java.util.Locale locale)
           
 int getDistanceUnits()
           
static Account.DistanceUnits getDistanceUnits(Account a)
          Returns the defined DistanceUnits for the specified account.
static Account.DistanceUnits getDistanceUnits(User u)
          Returns the defined DistanceUnits for the specified user.
 int getEconomyUnits()
           
static Account.EconomyUnits getEconomyUnits(Account a)
          Returns the defined EconomyUnits for the specified account.
 boolean getELogEnabled()
          Returns true if ELog/HOS is enabled for this Account
 java.lang.String getELogPassword()
          Gets the ELog/HOS password
 java.lang.String getELogUsername()
          Gets the ELog/HOS username
 java.lang.String getEmailProperties()
           
 RTProperties getEmailRTProperties()
           
 java.lang.String getEncodedPassword()
           
 java.lang.String[] getEntityTitles(java.util.Locale loc)
           
 java.lang.String[] getEntityTitles(java.util.Locale loc, java.lang.String[] dft)
           
static double getEventsPerSecond()
          Accumulate total Events-Per-Second from values stored in each individual Device
 long getExpirationTime()
           
static java.lang.String[] getExpiredAccounts()
          Returns an array of currently expired Account-IDs
static java.lang.String[] getExpiredAccounts(long deltaSec)
          Returns an array of account-ids which are expired.
static java.lang.String[] getExpiredAccounts(long deltaSec, boolean activeState)
          Returns an array of account-ids which are expired, or active, depending on the value specified for 'activeState'.
static DBFactory<Account> getFactory()
           
 double getFuelCostPerLiter()
          Gets the Fuel cost per Liter
 int getGeocoderMode()
           
static Account.GeocoderMode getGeocoderMode(Account a)
          Returns the defined GeocoderMode for the specified account.
static Account.GeocoderMode getGeocoderMode(java.lang.String code)
          Gets the GeocoderMode enum value for the specified name
static Account.GeocoderMode getGeocoderMode(java.lang.String code, Account.GeocoderMode dft)
          Gets the GeocoderMode enum value for the specified name
 boolean getIsAccountManager()
           
 boolean getIsBorderCrossing()
           
static java.lang.String getKeyFieldTitle(java.lang.String key, java.lang.String arg, java.util.Locale locale)
           
 java.lang.String getKeyFieldValue(java.lang.String key, java.lang.String arg, BasicPrivateLabel bpl)
           
 long getLastDataPushTime()
           
 long getLastDataRequestTime()
           
 long getLastLoginTime()
           
 int getLatLonFormat()
           
static Account.LatLonFormat getLatLonFormat(Account a)
          Returns the defined LatLonFormat for the specified account.
 java.util.Locale getLocale()
           
 java.lang.String getManagerID()
           
 java.lang.String getMapLegend(boolean isFleet)
           
 java.lang.String getMapLegendDevice()
           
 java.lang.String getMapLegendGroup()
           
static Account.MassUnits getMassUnits(Account a)
          Returns the defined MassUnits for the specified account.
 long getMaximumDevices()
           
static int getMaximumNotifyEmailLength()
          Gets the maximum Notify Email length
 int getMaxPingCount()
           
 java.lang.String getNewDeviceDescription()
           
 java.lang.String getNewDeviceDescription(java.util.Locale loc, java.lang.String dftDesc)
           
 java.lang.String getNotifyEmail()
           
 long getPasswdChangeTime()
           
 long getPasswdQueryTime()
           
 java.lang.String getPassword()
           
static PasswordHandler getPasswordHandler(BasicPrivateLabel bpl)
           
 int getPressureUnits()
           
static Account.PressureUnits getPressureUnits(Account a)
          Returns the defined PressureUnits for the specified account.
 BasicPrivateLabel getPrivateLabel()
           
static BasicPrivateLabel getPrivateLabel(Account acct)
           
 java.lang.String getPrivateLabelJsp()
           
 java.lang.String getPrivateLabelName()
           
static java.lang.String getReportEmailAddress(Account account, User user)
          Returns the email address to which reports should be emailed
 java.lang.String getReportEmailAddress(User user)
          Returns the email address to which reports should be emailed
 DTIPAddrList getRequestIPAddress()
           
 java.lang.String getRequestPassCode()
           
 long getRetainedEventAge()
           
 boolean getSmsEnabled()
           
 java.lang.String getSmsProperties()
           
 RTProperties getSmsRTProperties()
           
 java.lang.String getSpeedString(double speedKPH, boolean inclUnits, java.util.Locale locale)
           
 java.lang.String getSpeedString(double speedKPH, java.lang.String format, Account.SpeedUnits speedUnitsEnum, boolean inclUnits, java.util.Locale locale)
           
 java.lang.String getSpeedString(double speedKPH, java.lang.String format, boolean inclUnits, java.util.Locale locale)
           
 int getSpeedUnits()
           
static Account.SpeedUnits getSpeedUnits(Account a)
          Returns the defined SpeedUnits for the specified account.
static Account.SpeedUnits getSpeedUnits(User u)
          Returns the defined SpeedUnits for the specified user.
static java.lang.String getTableDescription(java.util.Locale loc)
           
 int getTemperatureUnits()
           
static Account.TemperatureUnits getTemperatureUnits(Account a)
          Returns the defined TemperatureUnits for the specified account.
 java.lang.String getTimeFormat()
           
 java.lang.String getTimeZone()
           
static java.util.TimeZone getTimeZone(Account account, java.util.TimeZone dft)
           
 java.util.TimeZone getTimeZone(java.util.TimeZone dft)
           
static java.lang.String[] GetTitles(java.util.Locale loc)
           
 int getTotalPingCount()
           
static java.lang.String[] getUnconfirmedAccounts()
          Returns an array of Account-IDs that have been created more than 11 hours ago, and have not yet logged in to the system.
static java.lang.String[] getUnconfirmedAccounts(long ageSec)
          Returns an array of Account-IDs that have been created more than 'ageSec' seconds ago, and have not yet logged in to the system.
 int getVolumeUnits()
           
static Account.VolumeUnits getVolumeUnits(Account a)
          Returns the defined VolumeUnits for the specified account.
 boolean hasAdminUser()
          Returns true if this Account has an "admin" user
static boolean hasAnyDeviceLastNotifySince(long sinceTime)
           
 boolean hasDeviceLastNotifySince(long sinceTime, User user)
           
 boolean hasManagerID()
           
 boolean hasPasswordExpired()
           
 boolean hasPrivateLabel()
           
 boolean hasRetainedEventAge()
           
 boolean incrementPingCount(long pingTime, boolean reload, boolean update)
           
 boolean isAccountManager()
           
static boolean IsAlwaysAllowWebService()
          Returns true if web-service access is always allowed for all Accounts
 boolean isAtMaximumDevices(boolean zeroIsUnlimited)
          Return true if this account is at the maximum number of allowed devices
 boolean isBorderCrossing()
           
static boolean IsDemoAccount(java.lang.String accountID)
           
static boolean IsDemoDevice(java.lang.String accountID, java.lang.String deviceID)
           
 boolean isExpired()
           
static boolean IsFixedSmsEnabledState()
           
 boolean isValidRequestIPAddress(java.lang.String ipAddr)
           
static void main(java.lang.String[] argv)
           
 boolean okToAutoAddDevice()
          Returns true if this Account can "auto-add" at least one new devices
 java.lang.String resetPassword(BasicPrivateLabel bpl)
           
 boolean resetTotalPingCount(boolean update)
           
 void setAccountType(Account.AccountType v)
           
 void setAccountType(int v)
           
 void setAccountType(java.lang.String v, java.util.Locale locale)
           
 void setAddressCity(java.lang.String v)
           
 void setAddressCountry(java.lang.String v)
           
 void setAddressLine1(java.lang.String v)
           
 void setAddressLine2(java.lang.String v)
           
 void setAddressLine3(java.lang.String v)
           
 void setAddressLines(java.lang.String[] lines)
           
 void setAddressPostalCode(java.lang.String v)
           
 void setAddressState(java.lang.String v)
           
 void setAddressTitle(java.lang.String singular, java.lang.String plural)
           
 void setAllowNotify(boolean v)
          Sets the "Allow Notification" state for this Account
 void setAllowWebService(boolean v)
          Sets the "Allow Web-Service" state for this Account
 void setAutoAddDevices(boolean v)
          Sets the 'auto-add' devices enabled state for this account
 void setContactEmail(java.lang.String v)
           
 void setContactName(java.lang.String v)
           
 void setContactPhone(java.lang.String v)
           
 void setCreationDefaultValues()
          Override to set default values
 void setCurrencyUnits(Account.Currency v)
           
 void setCurrencyUnits(java.lang.String v)
           
 void setCurrentUser(User user)
          Sets the current context user
 void setDataPushURL(java.lang.String v)
           
 void setDcsPropertiesID(java.lang.String v)
           
 void setDecodedPassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
           
static void setDefaultPasswordHandler(PasswordHandler ph)
           
 void setDefaultUser(java.lang.String v)
          Sets the default login user-id
 void setDeviceGroupTitle(java.lang.String singular, java.lang.String plural)
           
 void setDeviceTitle(java.lang.String singular, java.lang.String plural)
           
 void setDistanceUnits(Account.DistanceUnits v)
           
 void setDistanceUnits(int v)
           
 void setDistanceUnits(java.lang.String v, java.util.Locale locale)
           
 void setEconomyUnits(Account.EconomyUnits v)
           
 void setEconomyUnits(int v)
           
 void setEconomyUnits(java.lang.String v, java.util.Locale locale)
           
 void setELogEnabled(boolean v)
          Sets the "ELog/HOS Enabled" state for this Account
 void setELogPassword(java.lang.String p)
          Sets the ELog/HOS password
 void setELogUsername(java.lang.String v)
          Sets the ELog/HOS username
 void setEmailProperties(java.lang.String v)
           
 void setEmailRTProperties(RTProperties v)
           
 void setEncodedPassword(java.lang.String p)
           
 void setEntityTitle(java.lang.String singular, java.lang.String plural)
           
 void setExpirationTime(long v)
           
 void setFuelCostPerLiter(double v)
          Sets the Fuel cost per Liter
 void setGeocoderMode(Account.GeocoderMode v)
           
 void setGeocoderMode(int v)
           
 void setGeocoderMode(java.lang.String v, java.util.Locale locale)
           
 void setIsAccountManager(boolean v)
           
 void setIsBorderCrossing(boolean v)
           
 void setLastDataPushTime(long v)
           
 void setLastDataRequestTime(long v)
           
 void setLastLoginTime(long v)
           
 void setLatLonFormat(Account.LatLonFormat v)
           
 void setLatLonFormat(int v)
           
 void setLatLonFormat(java.lang.String v, java.util.Locale locale)
           
 void setManagerID(java.lang.String v)
           
 void setMapLegend(boolean isFleet, java.lang.String legend)
           
 void setMapLegendDevice(java.lang.String v)
           
 void setMapLegendGroup(java.lang.String v)
           
 void setMaximumDevices(long v)
           
 void setMaxPingCount(int v)
           
 void setNewDeviceDescription(java.lang.String singular)
           
 void setNewDeviceDescription(java.lang.String singular, java.lang.String plural)
           
 void setNotifyEmail(java.lang.String v)
           
 void setPasswdChangeTime(long v)
           
 void setPasswdQueryTime(long v)
           
 void setPassword(java.lang.String p)
           
 void setPressureUnits(Account.PressureUnits v)
           
 void setPressureUnits(int v)
           
 void setPressureUnits(java.lang.String v, java.util.Locale locale)
           
 void setPrivateLabelJsp(java.lang.String v)
           
 void setPrivateLabelName(java.lang.String v)
           
 void setRequestIPAddress(DTIPAddrList v)
           
 void setRequestIPAddress(java.lang.String v)
           
 void setRequestPassCode(java.lang.String v)
           
 void setRetainedEventAge(long v)
           
 void setSmsEnabled(boolean v)
           
 void setSmsProperties(java.lang.String v)
           
 void setSmsRTProperties(RTProperties v)
           
 void setSpeedUnits(Account.SpeedUnits v)
           
 void setSpeedUnits(int v)
           
 void setSpeedUnits(java.lang.String v, java.util.Locale locale)
           
 void setTemperatureUnits(Account.TemperatureUnits v)
           
 void setTemperatureUnits(int v)
           
 void setTemperatureUnits(java.lang.String v, java.util.Locale locale)
           
 void setTimeZone(java.lang.String v)
           
 void setTotalPingCount(int v)
           
 void setVolumeUnits(Account.VolumeUnits v)
           
 void setVolumeUnits(int v)
           
 void setVolumeUnits(java.lang.String v, java.util.Locale locale)
           
static boolean SupportsAccountManager()
           
static boolean SupportsBorderCrossing()
           
static boolean SupportsDataPushURL()
           
static java.lang.String TABLE_NAME()
           
 java.lang.String toString()
          Returns a String representation of the DBRecordKey for this DBRecord
 boolean willExpire(long withinSec)
           
 
Methods inherited from class org.opengts.db.AccountRecord
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, GetSimpleLocalString, getSystemAdminAccount, getSystemAdminAccountID, hasAccount, hasSystemAdminAccountID, isAccountManager, isActive, isSystemAdmin, isSystemAdmin, isSystemAdminAccountID, isValidID, newField_accountID, newField_accountID, newField_displayName, newField_displayName, newField_isActive, newField_isActive, newField_notes, newField_notes, setAccount, setDisplayName, setIsActive, setNotes, setRuntimeDefaultValues
 
Methods inherited from class org.opengts.dbtools.DBRecord
_getFactory, _reload, addChangedNotification, addExcludedUpdateFields, adjustStringLength_1, adjustStringLength, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, geKeyValue, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentAccount, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getKeyValue, getLastCaughtSQLException, getLastUpdateAccount, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getTemporaryProperties, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, hasOptionalFieldValue, hasTemporaryProperties, insert, isFieldUnsigned, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateAccount, newField_lastUpdateAccount, newField_lastUpdateTime, newField_lastUpdateUser, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, recordDidInsert, recordDidUpdate, recordWillInsert, recordWillUpdate, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationMillis, setCreationTime, SetCurrentAccount, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setKeyValue, setLastCaughtSQLException, setLastUpdateAccount, setLastUpdateTime, setLastUpdateUser, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setValidating, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVirtual, toXML, toXML, toXML, toXML, toXML, unlock, update, update, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPTCOLS_AddressFieldInfo

public static final java.lang.String OPTCOLS_AddressFieldInfo
See Also:
Constant Field Values

OPTCOLS_MapLegendFieldInfo

public static final java.lang.String OPTCOLS_MapLegendFieldInfo
See Also:
Constant Field Values

OPTCOLS_AccountManagerInfo

public static final java.lang.String OPTCOLS_AccountManagerInfo
See Also:
Constant Field Values

OPTCOLS_DataPushInfo

public static final java.lang.String OPTCOLS_DataPushInfo
See Also:
Constant Field Values

OPTCOLS_ELogHOSInfo

public static final java.lang.String OPTCOLS_ELogHOSInfo
See Also:
Constant Field Values

ACL_CHANGE_PASSWORD

public static final java.lang.String ACL_CHANGE_PASSWORD
See Also:
Constant Field Values

ACL_CHANGE_ACCOUNT

public static final java.lang.String ACL_CHANGE_ACCOUNT
See Also:
Constant Field Values

ACL_CHANGE_USER

public static final java.lang.String ACL_CHANGE_USER
See Also:
Constant Field Values

SUPER_ACCOUNT_SEPARATOR

public static java.lang.String SUPER_ACCOUNT_SEPARATOR

PROP_DemoAccount_

public static java.lang.String PROP_DemoAccount_

PROP_DemoAccount_accountName

public static java.lang.String PROP_DemoAccount_accountName

PROP_DemoAccount_deviceNames

public static java.lang.String PROP_DemoAccount_deviceNames

_PROP_DemoAccount_device_dateRange

public static java.lang.String _PROP_DemoAccount_device_dateRange

DFT_EXPIRATION_SEC

public static final long DFT_EXPIRATION_SEC

MAX_EXPIRATION_SEC

public static final long MAX_EXPIRATION_SEC

MAX_UNCONFIRMED_SEC

public static final long MAX_UNCONFIRMED_SEC

TEMP_PASSWORD_LENGTH

public static final int TEMP_PASSWORD_LENGTH
See Also:
Constant Field Values

BLANK_PASSWORD

public static final java.lang.String BLANK_PASSWORD
See Also:
Constant Field Values

LITERS_PER_US_GALLON

public static final double LITERS_PER_US_GALLON
See Also:
Constant Field Values

US_GALLONS_PER_LITER

public static final double US_GALLONS_PER_LITER
See Also:
Constant Field Values

LITERS_PER_UK_GALLON

public static final double LITERS_PER_UK_GALLON
See Also:
Constant Field Values

UK_GALLONS_PER_LITER

public static final double UK_GALLONS_PER_LITER
See Also:
Constant Field Values

CUBIC_FEET_PER_LITER

public static final double CUBIC_FEET_PER_LITER
See Also:
Constant Field Values

PA_PER_KPA

public static final double PA_PER_KPA
See Also:
Constant Field Values

PSF_PER_KPA

public static final double PSF_PER_KPA
See Also:
Constant Field Values

PSI_PER_KPA

public static final double PSI_PER_KPA
See Also:
Constant Field Values

TORR_PER_KPA

public static final double TORR_PER_KPA
See Also:
Constant Field Values

MMHG_PER_KPA

public static final double MMHG_PER_KPA
See Also:
Constant Field Values

ATM_PER_KPA

public static final double ATM_PER_KPA
See Also:
Constant Field Values

AT_PER_KPA

public static final double AT_PER_KPA
See Also:
Constant Field Values

BAR_PER_PA

public static final double BAR_PER_PA
See Also:
Constant Field Values

BAR_PER_KPA

public static final double BAR_PER_KPA
See Also:
Constant Field Values

KPA_PER_BAR

public static final double KPA_PER_BAR
See Also:
Constant Field Values

KPA_PER_PSI

public static final double KPA_PER_PSI
See Also:
Constant Field Values

LBS_PER_KG

public static final double LBS_PER_KG
See Also:
Constant Field Values

METERS_PER_SEC_SQ_PER_G

public static final double METERS_PER_SEC_SQ_PER_G
See Also:
Constant Field Values

MPSS_PER_G_FORCE

public static final double MPSS_PER_G_FORCE
See Also:
Constant Field Values

G_PER_MPSS_FORCE

public static final double G_PER_MPSS_FORCE
See Also:
Constant Field Values

MPH_PER_SEC_PER_MPSS

public static final double MPH_PER_SEC_PER_MPSS
See Also:
Constant Field Values

MPH_PER_SEC_PER_G

public static final double MPH_PER_SEC_PER_G
See Also:
Constant Field Values

SQUARE_METERS_PER_KILOMETER

public static final double SQUARE_METERS_PER_KILOMETER
See Also:
Constant Field Values

SQUARE_KILOMETERS_PER_METER

public static final double SQUARE_KILOMETERS_PER_METER
See Also:
Constant Field Values

SQUARE_METERS_PER_MILE

public static final double SQUARE_METERS_PER_MILE
See Also:
Constant Field Values

SQUARE_MILES_PER_METER

public static final double SQUARE_MILES_PER_METER
See Also:
Constant Field Values

SQUARE_METERS_PER_ACRE

public static final double SQUARE_METERS_PER_ACRE
See Also:
Constant Field Values

ACRES_PER_SQUARE_METER

public static final double ACRES_PER_SQUARE_METER
See Also:
Constant Field Values

SQUARE_METERS_PER_FOOT

public static final double SQUARE_METERS_PER_FOOT
See Also:
Constant Field Values

SQUARE_FEET_PER_METER

public static final double SQUARE_FEET_PER_METER
See Also:
Constant Field Values

FLD_accountType

public static final java.lang.String FLD_accountType
See Also:
Constant Field Values

FLD_notifyEmail

public static final java.lang.String FLD_notifyEmail
See Also:
Constant Field Values

FLD_allowNotify

public static final java.lang.String FLD_allowNotify
See Also:
Constant Field Values

FLD_speedUnits

public static final java.lang.String FLD_speedUnits
See Also:
Constant Field Values

FLD_distanceUnits

public static final java.lang.String FLD_distanceUnits
See Also:
Constant Field Values

FLD_volumeUnits

public static final java.lang.String FLD_volumeUnits
See Also:
Constant Field Values

FLD_pressureUnits

public static final java.lang.String FLD_pressureUnits
See Also:
Constant Field Values

FLD_economyUnits

public static final java.lang.String FLD_economyUnits
See Also:
Constant Field Values

FLD_temperatureUnits

public static final java.lang.String FLD_temperatureUnits
See Also:
Constant Field Values

FLD_currencyUnits

public static final java.lang.String FLD_currencyUnits
See Also:
Constant Field Values

FLD_fuelCostPerLiter

public static final java.lang.String FLD_fuelCostPerLiter
See Also:
Constant Field Values

FLD_latLonFormat

public static final java.lang.String FLD_latLonFormat
See Also:
Constant Field Values

FLD_geocoderMode

public static final java.lang.String FLD_geocoderMode
See Also:
Constant Field Values

FLD_privateLabelName

public static final java.lang.String FLD_privateLabelName
See Also:
Constant Field Values

FLD_privateLabelJsp

public static final java.lang.String FLD_privateLabelJsp
See Also:
Constant Field Values

FLD_isBorderCrossing

public static final java.lang.String FLD_isBorderCrossing
See Also:
Constant Field Values

FLD_retainedEventAge

public static final java.lang.String FLD_retainedEventAge
See Also:
Constant Field Values

FLD_maximumDevices

public static final java.lang.String FLD_maximumDevices
See Also:
Constant Field Values

FLD_totalPingCount

public static final java.lang.String FLD_totalPingCount
See Also:
Constant Field Values

FLD_maxPingCount

public static final java.lang.String FLD_maxPingCount
See Also:
Constant Field Values

FLD_autoAddDevices

public static final java.lang.String FLD_autoAddDevices
See Also:
Constant Field Values

FLD_dcsPropertiesID

public static final java.lang.String FLD_dcsPropertiesID
See Also:
Constant Field Values

FLD_smsEnabled

public static final java.lang.String FLD_smsEnabled
See Also:
Constant Field Values

FLD_smsProperties

public static final java.lang.String FLD_smsProperties
See Also:
Constant Field Values

FLD_emailProperties

public static final java.lang.String FLD_emailProperties
See Also:
Constant Field Values

FLD_expirationTime

public static final java.lang.String FLD_expirationTime
See Also:
Constant Field Values

FLD_allowWebService

public static final java.lang.String FLD_allowWebService
See Also:
Constant Field Values

FLD_defaultUser

public static final java.lang.String FLD_defaultUser
See Also:
Constant Field Values

FLD_password

public static final java.lang.String FLD_password
See Also:
Constant Field Values

FLD_contactName

public static final java.lang.String FLD_contactName
See Also:
Constant Field Values

FLD_contactPhone

public static final java.lang.String FLD_contactPhone
See Also:
Constant Field Values

FLD_contactEmail

public static final java.lang.String FLD_contactEmail
See Also:
Constant Field Values

FLD_timeZone

public static final java.lang.String FLD_timeZone
See Also:
Constant Field Values

FLD_passwdChangeTime

public static final java.lang.String FLD_passwdChangeTime
See Also:
Constant Field Values

FLD_passwdQueryTime

public static final java.lang.String FLD_passwdQueryTime
See Also:
Constant Field Values

FLD_lastLoginTime

public static final java.lang.String FLD_lastLoginTime
See Also:
Constant Field Values

FieldInfo

public static final DBField[] FieldInfo

FLD_addressLine1

public static final java.lang.String FLD_addressLine1
See Also:
Constant Field Values

FLD_addressLine2

public static final java.lang.String FLD_addressLine2
See Also:
Constant Field Values

FLD_addressLine3

public static final java.lang.String FLD_addressLine3
See Also:
Constant Field Values

FLD_addressCity

public static final java.lang.String FLD_addressCity
See Also:
Constant Field Values

FLD_addressState

public static final java.lang.String FLD_addressState
See Also:
Constant Field Values

FLD_addressPostalCode

public static final java.lang.String FLD_addressPostalCode
See Also:
Constant Field Values

FLD_addressCountry

public static final java.lang.String FLD_addressCountry
See Also:
Constant Field Values

AddressFieldInfo

public static final DBField[] AddressFieldInfo

FLD_mapLegendDevice

public static final java.lang.String FLD_mapLegendDevice
See Also:
Constant Field Values

FLD_mapLegendGroup

public static final java.lang.String FLD_mapLegendGroup
See Also:
Constant Field Values

MapLegendFieldInfo

public static final DBField[] MapLegendFieldInfo

FLD_isAccountManager

public static final java.lang.String FLD_isAccountManager
See Also:
Constant Field Values

FLD_managerID

public static final java.lang.String FLD_managerID
See Also:
Constant Field Values

AccountManagerInfo

public static final DBField[] AccountManagerInfo

FLD_requestPassCode

public static final java.lang.String FLD_requestPassCode
See Also:
Constant Field Values

FLD_requestIPAddress

public static final java.lang.String FLD_requestIPAddress
See Also:
Constant Field Values

FLD_dataPushURL

public static final java.lang.String FLD_dataPushURL
See Also:
Constant Field Values

FLD_lastDataRequestTime

public static final java.lang.String FLD_lastDataRequestTime
See Also:
Constant Field Values

FLD_lastDataPushTime

public static final java.lang.String FLD_lastDataPushTime
See Also:
Constant Field Values

DataPushInfo

public static final DBField[] DataPushInfo

FLD_eLogEnabled

public static final java.lang.String FLD_eLogEnabled
See Also:
Constant Field Values

FLD_eLogUsername

public static final java.lang.String FLD_eLogUsername
See Also:
Constant Field Values

FLD_eLogPassword

public static final java.lang.String FLD_eLogPassword
See Also:
Constant Field Values

ELogHOSInfo

public static final DBField[] ELogHOSInfo

factory

protected static DBFactory<Account> factory
Constructor Detail

Account

public Account()

Account

public Account(Account.Key key)
Method Detail

GetTitles

public static java.lang.String[] GetTitles(java.util.Locale loc)

getAccountDisplayID

public static java.lang.String getAccountDisplayID(java.lang.String accountID)

GetDemoAccountID

public static java.lang.String GetDemoAccountID()

IsDemoAccount

public static boolean IsDemoAccount(java.lang.String accountID)

GetDemoAccountDeviceIDs

public static java.lang.String[] GetDemoAccountDeviceIDs()

IsDemoDevice

public static boolean IsDemoDevice(java.lang.String accountID,
                                   java.lang.String deviceID)

GetDemoDeviceDateRange

public static java.lang.String[] GetDemoDeviceDateRange(java.lang.String accountID,
                                                        java.lang.String deviceID)

GetDefaultSmsEnabledState

public static Account.SMSDefaultState GetDefaultSmsEnabledState()

IsFixedSmsEnabledState

public static boolean IsFixedSmsEnabledState()

setDefaultPasswordHandler

public static void setDefaultPasswordHandler(PasswordHandler ph)

getDefaultPasswordHandler

public static PasswordHandler getDefaultPasswordHandler()

getPasswordHandler

public static PasswordHandler getPasswordHandler(BasicPrivateLabel bpl)

GetDefaultTimeZone

public static java.lang.String GetDefaultTimeZone()
Gets the default Account timezone


getAccountType

public static Account.AccountType getAccountType(Account a)
Returns the defined AccountType for the specified account.

Parameters:
a - The account from which the AccountType will be obtained. If null, the default AccountType will be returned.
Returns:
The AccountType

getGeocoderMode

public static Account.GeocoderMode getGeocoderMode(Account a)
Returns the defined GeocoderMode for the specified account.

Parameters:
a - The account from which the GeocoderMode will be obtained. If null, the default GeocoderMode will be returned.
Returns:
The GeocoderMode

getGeocoderMode

public static Account.GeocoderMode getGeocoderMode(java.lang.String code)
Gets the GeocoderMode enum value for the specified name

Parameters:
code - The name of the GeocoderMode (one of "none", "geozone", "partial", "full")
Returns:
The GeocoderMode, or GeocoderMode.NONE if the name is invalid

getGeocoderMode

public static Account.GeocoderMode getGeocoderMode(java.lang.String code,
                                                   Account.GeocoderMode dft)
Gets the GeocoderMode enum value for the specified name

Parameters:
code - The name of the GeocoderMode (one of "none", "geozone", "partial", "full")
dft - The default GeocoderMode if the specified name is invalid.
Returns:
The GeocoderMode, or the specified default if the name is invalid

getSpeedUnits

public static Account.SpeedUnits getSpeedUnits(Account a)
Returns the defined SpeedUnits for the specified account.

Parameters:
a - The account from which the SpeedUnits will be obtained. If null, the default SpeedUnits will be returned.
Returns:
The SpeedUnits

getSpeedUnits

public static Account.SpeedUnits getSpeedUnits(User u)
Returns the defined SpeedUnits for the specified user.

Parameters:
u - The user from which the SpeedUnits will be obtained. If null, the default SpeedUnits will be returned.
Returns:
The SpeedUnits

getDistanceUnits

public static Account.DistanceUnits getDistanceUnits(Account a)
Returns the defined DistanceUnits for the specified account.

Parameters:
a - The account from which the DistanceUnits will be obtained. If null, the default DistanceUnits will be returned.
Returns:
The DistanceUnits

getDistanceUnits

public static Account.DistanceUnits getDistanceUnits(User u)
Returns the defined DistanceUnits for the specified user.

Parameters:
u - The user from which the DistanceUnits will be obtained. If null, the default DistanceUnits will be returned.
Returns:
The DistanceUnits

getAltitudeUnits

public static Account.AltitudeUnits getAltitudeUnits(Account a)
Returns the defined AltitudeUnits for the specified account.

Parameters:
a - The account from which the AltitudeUnits will be obtained. If null, the default AltitudeUnits will be returned.
Returns:
The AltitudeUnits

getAltitudeUnits

public static Account.AltitudeUnits getAltitudeUnits(User u)
Returns the defined AltitudeUnits for the specified user.

Parameters:
u - The user from which the AltitudeUnits will be obtained. If null, the default AltitudeUnits will be returned.
Returns:
The AltitudeUnits

getTemperatureUnits

public static Account.TemperatureUnits getTemperatureUnits(Account a)
Returns the defined TemperatureUnits for the specified account.

Parameters:
a - The account from which the TemperatureUnits will be obtained. If null, the default TemperatureUnits will be returned.
Returns:
The TemperatureUnits

getVolumeUnits

public static Account.VolumeUnits getVolumeUnits(Account a)
Returns the defined VolumeUnits for the specified account.

Parameters:
a - The account from which the VolumeUnits will be obtained. If null, the default VolumeUnits will be returned.
Returns:
The VolumeUnits

GetCurrency

public static Account.Currency GetCurrency(java.lang.String code)

GetDefaultCurrency

public static java.lang.String GetDefaultCurrency()
Returns the default currency

Returns:
The default currency

getCurrency

public static java.lang.String getCurrency(Account a)
Returns the currency units for the specified account

Parameters:
a - The account for which the currency units is returned
Returns:
The currency units for the specified account

GetDefaultCurrencySymbol

public static java.lang.String GetDefaultCurrencySymbol()
Returns the default currency symbol

Returns:
The default currency symbol

getCurrencySymbol

public static java.lang.String getCurrencySymbol(Account a)
Returns the currency symbol for the specified account

Parameters:
a - The account for which the currency symbol is returned
Returns:
The currency symbol for the specified account

getEconomyUnits

public static Account.EconomyUnits getEconomyUnits(Account a)
Returns the defined EconomyUnits for the specified account.

Parameters:
a - The account from which the EconomyUnits will be obtained. If null, the default EconomyUnits will be returned.
Returns:
The EconomyUnits

getPressureUnits

public static Account.PressureUnits getPressureUnits(Account a)
Returns the defined PressureUnits for the specified account.

Parameters:
a - The account from which the PressureUnits will be obtained. If null, the default PressureUnits will be returned.
Returns:
The PressureUnits

getMassUnits

public static Account.MassUnits getMassUnits(Account a)
Returns the defined MassUnits for the specified account.

Parameters:
a - The account from which the MassUnits will be obtained. If null, the default MassUnits will be returned.
Returns:
The MassUnits

getLatLonFormat

public static Account.LatLonFormat getLatLonFormat(Account a)
Returns the defined LatLonFormat for the specified account.

Parameters:
a - The account from which the LatLonFormat will be obtained. If null, the default LatLonFormat will be returned.
Returns:
The LatLonFormat

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<Account> getFactory()

getTableDescription

public static java.lang.String getTableDescription(java.util.Locale loc)

getDefaultUser

public java.lang.String getDefaultUser()
Gets the default login user-id


setDefaultUser

public void setDefaultUser(java.lang.String v)
Sets the default login user-id


getDefaultUser

public static java.lang.String getDefaultUser(Account acct,
                                              boolean rtnAdmin)
Gets the default login user-id for the specified account

Parameters:
acct - The Account
rtnAdmin - True to return the "admin" user-id if the account default user-id is not defined
Returns:
The default account user-id.

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String p)

getEncodedPassword

public java.lang.String getEncodedPassword()
Specified by:
getEncodedPassword in interface UserInformation

setEncodedPassword

public void setEncodedPassword(java.lang.String p)

getDecodedPassword

public java.lang.String getDecodedPassword(BasicPrivateLabel bpl)

setDecodedPassword

public void setDecodedPassword(BasicPrivateLabel bpl,
                               java.lang.String enteredPass)
Specified by:
setDecodedPassword in interface UserInformation

resetPassword

public java.lang.String resetPassword(BasicPrivateLabel bpl)

checkPassword

public boolean checkPassword(BasicPrivateLabel bpl,
                             java.lang.String enteredPass)
Specified by:
checkPassword in interface UserInformation

checkPassword

public static boolean checkPassword(BasicPrivateLabel bpl,
                                    java.lang.String enteredPass,
                                    java.lang.String tablePass)

encodePassword

public static java.lang.String encodePassword(BasicPrivateLabel bpl,
                                              java.lang.String enteredPass)

decodePassword

public static java.lang.String decodePassword(BasicPrivateLabel bpl,
                                              java.lang.String tablePass)

getAccountType

public int getAccountType()

setAccountType

public void setAccountType(int v)

setAccountType

public void setAccountType(Account.AccountType v)

setAccountType

public void setAccountType(java.lang.String v,
                           java.util.Locale locale)

getContactName

public java.lang.String getContactName()
Specified by:
getContactName in interface UserInformation

setContactName

public void setContactName(java.lang.String v)
Specified by:
setContactName in interface UserInformation

getContactPhone

public java.lang.String getContactPhone()
Specified by:
getContactPhone in interface UserInformation

setContactPhone

public void setContactPhone(java.lang.String v)
Specified by:
setContactPhone in interface UserInformation

getContactEmail

public java.lang.String getContactEmail()
Specified by:
getContactEmail in interface UserInformation

setContactEmail

public void setContactEmail(java.lang.String v)
Specified by:
setContactEmail in interface UserInformation

getNotifyEmail

public java.lang.String getNotifyEmail()

setNotifyEmail

public void setNotifyEmail(java.lang.String v)

getMaximumNotifyEmailLength

public static int getMaximumNotifyEmailLength()
Gets the maximum Notify Email length


getAllowNotify

public boolean getAllowNotify()
Returns true if notifications are allowed for this Account

Returns:
True if notifications are allowed for this Account

setAllowNotify

public void setAllowNotify(boolean v)
Sets the "Allow Notification" state for this Account

Parameters:
v - The "Allow Notification" state for this Account

getTimeZone

public static java.util.TimeZone getTimeZone(Account account,
                                             java.util.TimeZone dft)

getTimeZone

public java.util.TimeZone getTimeZone(java.util.TimeZone dft)

getTimeZone

public java.lang.String getTimeZone()
Specified by:
getTimeZone in interface UserInformation

setTimeZone

public void setTimeZone(java.lang.String v)
Specified by:
setTimeZone in interface UserInformation

getCurrentDateTime

public DateTime getCurrentDateTime()

getPasswdChangeTime

public long getPasswdChangeTime()

setPasswdChangeTime

public void setPasswdChangeTime(long v)

hasPasswordExpired

public boolean hasPasswordExpired()

getPasswdQueryTime

public long getPasswdQueryTime()
Specified by:
getPasswdQueryTime in interface UserInformation

setPasswdQueryTime

public void setPasswdQueryTime(long v)
Specified by:
setPasswdQueryTime in interface UserInformation

hasRetainedEventAge

public boolean hasRetainedEventAge()

getRetainedEventAge

public long getRetainedEventAge()

setRetainedEventAge

public void setRetainedEventAge(long v)

adjustRetainedEventTime

public long adjustRetainedEventTime(long oldTimeSec)

isAtMaximumDevices

public boolean isAtMaximumDevices(boolean zeroIsUnlimited)
Return true if this account is at the maximum number of allowed devices


exceedsMaximumDevices

public boolean exceedsMaximumDevices(long devCnt,
                                     boolean zeroIsUnlimited)
Return true if the specified value exceeds the allow maximum number of devices


getMaximumDevices

public long getMaximumDevices()

setMaximumDevices

public void setMaximumDevices(long v)

getTotalPingCount

public int getTotalPingCount()

setTotalPingCount

public void setTotalPingCount(int v)

incrementPingCount

public boolean incrementPingCount(long pingTime,
                                  boolean reload,
                                  boolean update)

resetTotalPingCount

public boolean resetTotalPingCount(boolean update)

getMaxPingCount

public int getMaxPingCount()

setMaxPingCount

public void setMaxPingCount(int v)

getExpirationTime

public long getExpirationTime()

setExpirationTime

public void setExpirationTime(long v)

isExpired

public boolean isExpired()

doesExpire

public boolean doesExpire()

willExpire

public boolean willExpire(long withinSec)

IsAlwaysAllowWebService

public static boolean IsAlwaysAllowWebService()
Returns true if web-service access is always allowed for all Accounts

Returns:
True if web-service access is always allowed for all Accounts

GetAllowWebService

public static boolean GetAllowWebService(Account acct)
Returns true if web-service access is allowed for the specified Account

Returns:
True if web-service access is allowed for the specified Account

getAllowWebService

public boolean getAllowWebService()
Returns true if web-service access is allowed for this Account

Returns:
True if web-service access is allowed for this Account

setAllowWebService

public void setAllowWebService(boolean v)
Sets the "Allow Web-Service" state for this Account

Parameters:
v - The "Allow Web-Service" state for this Account

getAddressLine1

public java.lang.String getAddressLine1()

getAddressLine2

public java.lang.String getAddressLine2()

getAddressLine3

public java.lang.String getAddressLine3()

getAddressLines

public java.lang.String[] getAddressLines()

getAddressCity

public java.lang.String getAddressCity()

getAddressState

public java.lang.String getAddressState()

getAddressPostalCode

public java.lang.String getAddressPostalCode()

getAddressCountry

public java.lang.String getAddressCountry()

setAddressLine1

public void setAddressLine1(java.lang.String v)

setAddressLine2

public void setAddressLine2(java.lang.String v)

setAddressLine3

public void setAddressLine3(java.lang.String v)

setAddressLines

public void setAddressLines(java.lang.String[] lines)

setAddressCity

public void setAddressCity(java.lang.String v)

setAddressState

public void setAddressState(java.lang.String v)

setAddressPostalCode

public void setAddressPostalCode(java.lang.String v)

setAddressCountry

public void setAddressCountry(java.lang.String v)

getSpeedUnits

public int getSpeedUnits()

setSpeedUnits

public void setSpeedUnits(int v)

setSpeedUnits

public void setSpeedUnits(Account.SpeedUnits v)

setSpeedUnits

public void setSpeedUnits(java.lang.String v,
                          java.util.Locale locale)

getSpeedString

public java.lang.String getSpeedString(double speedKPH,
                                       boolean inclUnits,
                                       java.util.Locale locale)

getSpeedString

public java.lang.String getSpeedString(double speedKPH,
                                       java.lang.String format,
                                       boolean inclUnits,
                                       java.util.Locale locale)

getSpeedString

public java.lang.String getSpeedString(double speedKPH,
                                       java.lang.String format,
                                       Account.SpeedUnits speedUnitsEnum,
                                       boolean inclUnits,
                                       java.util.Locale locale)

getDistanceUnits

public int getDistanceUnits()

setDistanceUnits

public void setDistanceUnits(int v)

setDistanceUnits

public void setDistanceUnits(Account.DistanceUnits v)

setDistanceUnits

public void setDistanceUnits(java.lang.String v,
                             java.util.Locale locale)

getDistanceString

public java.lang.String getDistanceString(double distKM,
                                          boolean inclUnits,
                                          java.util.Locale locale)

getVolumeUnits

public int getVolumeUnits()

setVolumeUnits

public void setVolumeUnits(int v)

setVolumeUnits

public void setVolumeUnits(Account.VolumeUnits v)

setVolumeUnits

public void setVolumeUnits(java.lang.String v,
                           java.util.Locale locale)

getFuelCostPerLiter

public double getFuelCostPerLiter()
Gets the Fuel cost per Liter

Returns:
The Fuel cost per Liter

setFuelCostPerLiter

public void setFuelCostPerLiter(double v)
Sets the Fuel cost per Liter

Parameters:
v - The Fuel cost per Liter

getPressureUnits

public int getPressureUnits()

setPressureUnits

public void setPressureUnits(int v)

setPressureUnits

public void setPressureUnits(Account.PressureUnits v)

setPressureUnits

public void setPressureUnits(java.lang.String v,
                             java.util.Locale locale)

getEconomyUnits

public int getEconomyUnits()

setEconomyUnits

public void setEconomyUnits(int v)

setEconomyUnits

public void setEconomyUnits(Account.EconomyUnits v)

setEconomyUnits

public void setEconomyUnits(java.lang.String v,
                            java.util.Locale locale)

getTemperatureUnits

public int getTemperatureUnits()

setTemperatureUnits

public void setTemperatureUnits(int v)

setTemperatureUnits

public void setTemperatureUnits(Account.TemperatureUnits v)

setTemperatureUnits

public void setTemperatureUnits(java.lang.String v,
                                java.util.Locale locale)

getCurrencyUnits

public java.lang.String getCurrencyUnits()

setCurrencyUnits

public void setCurrencyUnits(java.lang.String v)

setCurrencyUnits

public void setCurrencyUnits(Account.Currency v)

getLatLonFormat

public int getLatLonFormat()

setLatLonFormat

public void setLatLonFormat(int v)

setLatLonFormat

public void setLatLonFormat(Account.LatLonFormat v)

setLatLonFormat

public void setLatLonFormat(java.lang.String v,
                            java.util.Locale locale)

getGeocoderMode

public int getGeocoderMode()

setGeocoderMode

public void setGeocoderMode(int v)

setGeocoderMode

public void setGeocoderMode(Account.GeocoderMode v)

setGeocoderMode

public void setGeocoderMode(java.lang.String v,
                            java.util.Locale locale)

getPrivateLabelName

public java.lang.String getPrivateLabelName()

setPrivateLabelName

public void setPrivateLabelName(java.lang.String v)

getPrivateLabelJsp

public java.lang.String getPrivateLabelJsp()

setPrivateLabelJsp

public void setPrivateLabelJsp(java.lang.String v)

getLastLoginTime

public long getLastLoginTime()
Specified by:
getLastLoginTime in interface UserInformation

setLastLoginTime

public void setLastLoginTime(long v)
Specified by:
setLastLoginTime in interface UserInformation

getIsBorderCrossing

public boolean getIsBorderCrossing()

setIsBorderCrossing

public void setIsBorderCrossing(boolean v)

isBorderCrossing

public boolean isBorderCrossing()

SupportsBorderCrossing

public static boolean SupportsBorderCrossing()

okToAutoAddDevice

public boolean okToAutoAddDevice()
Returns true if this Account can "auto-add" at least one new devices


getAutoAddDevices

public boolean getAutoAddDevices()
Gets the 'auto-add' devices enabled state for this account


setAutoAddDevices

public void setAutoAddDevices(boolean v)
Sets the 'auto-add' devices enabled state for this account


getDcsPropertiesID

public java.lang.String getDcsPropertiesID()

setDcsPropertiesID

public void setDcsPropertiesID(java.lang.String v)

getSmsEnabled

public boolean getSmsEnabled()

setSmsEnabled

public void setSmsEnabled(boolean v)

getSmsProperties

public java.lang.String getSmsProperties()

setSmsProperties

public void setSmsProperties(java.lang.String v)

getSmsRTProperties

public RTProperties getSmsRTProperties()

setSmsRTProperties

public void setSmsRTProperties(RTProperties v)

getEmailProperties

public java.lang.String getEmailProperties()

setEmailProperties

public void setEmailProperties(java.lang.String v)

getEmailRTProperties

public RTProperties getEmailRTProperties()

setEmailRTProperties

public void setEmailRTProperties(RTProperties v)

getMapLegendDevice

public java.lang.String getMapLegendDevice()

setMapLegendDevice

public void setMapLegendDevice(java.lang.String v)

getMapLegendGroup

public java.lang.String getMapLegendGroup()

setMapLegendGroup

public void setMapLegendGroup(java.lang.String v)

setMapLegend

public void setMapLegend(boolean isFleet,
                         java.lang.String legend)

getMapLegend

public java.lang.String getMapLegend(boolean isFleet)

SupportsAccountManager

public static boolean SupportsAccountManager()

getIsAccountManager

public boolean getIsAccountManager()

setIsAccountManager

public void setIsAccountManager(boolean v)

isAccountManager

public boolean isAccountManager()

getManagerID

public java.lang.String getManagerID()

setManagerID

public void setManagerID(java.lang.String v)

hasManagerID

public boolean hasManagerID()

getRequestPassCode

public java.lang.String getRequestPassCode()

setRequestPassCode

public void setRequestPassCode(java.lang.String v)

getRequestIPAddress

public DTIPAddrList getRequestIPAddress()

setRequestIPAddress

public void setRequestIPAddress(DTIPAddrList v)

setRequestIPAddress

public void setRequestIPAddress(java.lang.String v)

isValidRequestIPAddress

public boolean isValidRequestIPAddress(java.lang.String ipAddr)

SupportsDataPushURL

public static boolean SupportsDataPushURL()

getDataPushURL

public java.lang.String getDataPushURL()

setDataPushURL

public void setDataPushURL(java.lang.String v)

getLastDataRequestTime

public long getLastDataRequestTime()

setLastDataRequestTime

public void setLastDataRequestTime(long v)

getLastDataPushTime

public long getLastDataPushTime()

setLastDataPushTime

public void setLastDataPushTime(long v)

getELogEnabled

public boolean getELogEnabled()
Returns true if ELog/HOS is enabled for this Account

Returns:
True if ELog/HOS is enabled for this Account

setELogEnabled

public void setELogEnabled(boolean v)
Sets the "ELog/HOS Enabled" state for this Account

Parameters:
v - The "ELog/HOS Enabled" state for this Account

getELogUsername

public java.lang.String getELogUsername()
Gets the ELog/HOS username


setELogUsername

public void setELogUsername(java.lang.String v)
Sets the ELog/HOS username


getELogPassword

public java.lang.String getELogPassword()
Gets the ELog/HOS password


setELogPassword

public void setELogPassword(java.lang.String p)
Sets the ELog/HOS password


setCreationDefaultValues

public void setCreationDefaultValues()
Description copied from class: DBRecord
Override to set default values

Overrides:
setCreationDefaultValues in class DBRecord<Account>

hasAdminUser

public boolean hasAdminUser()
Returns true if this Account has an "admin" user

Returns:
True if this Account has an "admin" user

setCurrentUser

public void setCurrentUser(User user)
Sets the current context user

Parameters:
user - The current context user

getCurrentUser

public User getCurrentUser()
Gets the current context user

Returns:
The current context user

getReportEmailAddress

public static java.lang.String getReportEmailAddress(Account account,
                                                     User user)
Returns the email address to which reports should be emailed

Parameters:
account - The account to test for email address, if user not specified
user - The overriding user to test for email address first
Returns:
The report email address, or null if no address was found

getReportEmailAddress

public java.lang.String getReportEmailAddress(User user)
Returns the email address to which reports should be emailed

Parameters:
user - The overriding user to test for email address first
Returns:
The report email address, or null if no address was found

getDevice

public Device getDevice(java.lang.String devID)
                 throws DBException
Throws:
DBException

getDeviceCount

public long getDeviceCount()

hasDeviceLastNotifySince

public boolean hasDeviceLastNotifySince(long sinceTime,
                                        User user)
                                 throws DBException
Throws:
DBException

hasAnyDeviceLastNotifySince

public static boolean hasAnyDeviceLastNotifySince(long sinceTime)
                                           throws DBException
Throws:
DBException

convertFieldUnits

public java.lang.Object convertFieldUnits(DBField field,
                                          java.lang.Object value,
                                          boolean inclUnits,
                                          java.util.Locale locale)

toString

public java.lang.String toString()
Description copied from class: DBRecord
Returns a String representation of the DBRecordKey for this DBRecord

Overrides:
toString in class DBRecord<Account>
Returns:
A String representation of the DBRecordKey for this DBRecord

getPrivateLabel

public static BasicPrivateLabel getPrivateLabel(Account acct)

getPrivateLabel

public BasicPrivateLabel getPrivateLabel()

hasPrivateLabel

public boolean hasPrivateLabel()

getLocale

public java.util.Locale getLocale()

getDateFormat

public java.lang.String getDateFormat()

getTimeFormat

public java.lang.String getTimeFormat()

getDateTimeFormat

public java.lang.String getDateTimeFormat()

formatDate

public java.lang.String formatDate(DateTime dt)

formatTime

public java.lang.String formatTime(DateTime dt)

formatDateTime

public java.lang.String formatDateTime(DateTime dt)

formatDateTime

public java.lang.String formatDateTime(long dt)

getDeviceTitles

public java.lang.String[] getDeviceTitles(java.util.Locale loc)

getDeviceTitles

public java.lang.String[] getDeviceTitles(java.util.Locale loc,
                                          java.lang.String[] dft)

setDeviceTitle

public void setDeviceTitle(java.lang.String singular,
                           java.lang.String plural)

getNewDeviceDescription

public java.lang.String getNewDeviceDescription()

getNewDeviceDescription

public java.lang.String getNewDeviceDescription(java.util.Locale loc,
                                                java.lang.String dftDesc)

setNewDeviceDescription

public void setNewDeviceDescription(java.lang.String singular)

setNewDeviceDescription

public void setNewDeviceDescription(java.lang.String singular,
                                    java.lang.String plural)

getDeviceGroupTitles

public java.lang.String[] getDeviceGroupTitles(java.util.Locale loc)

getDeviceGroupTitles

public java.lang.String[] getDeviceGroupTitles(java.util.Locale loc,
                                               java.lang.String[] dft)

setDeviceGroupTitle

public void setDeviceGroupTitle(java.lang.String singular,
                                java.lang.String plural)

getEntityTitles

public java.lang.String[] getEntityTitles(java.util.Locale loc)

getEntityTitles

public java.lang.String[] getEntityTitles(java.util.Locale loc,
                                          java.lang.String[] dft)

setEntityTitle

public void setEntityTitle(java.lang.String singular,
                           java.lang.String plural)

getAddressTitles

public java.lang.String[] getAddressTitles(java.util.Locale loc)

getAddressTitles

public java.lang.String[] getAddressTitles(java.util.Locale loc,
                                           java.lang.String[] dft)

setAddressTitle

public void setAddressTitle(java.lang.String singular,
                            java.lang.String plural)

getAllAccounts

public static java.util.Collection<java.lang.String> getAllAccounts()
                                                             throws DBException
Throws:
DBException

getDataPushAccountIDs

public static java.util.Collection<java.lang.String> getDataPushAccountIDs()
                                                                    throws DBException
Throws:
DBException

getAllAccounts

public static java.util.Collection<java.lang.String> getAllAccounts(DBSelect<Account> dsel)
                                                             throws DBException
Throws:
DBException

getAuthorizedAccounts

public static java.util.Collection<java.lang.String> getAuthorizedAccounts(Account account)
                                                                    throws DBException
Throws:
DBException

exists

public static boolean exists(java.lang.String acctID)
                      throws DBException
Returns true if the specified Account-ID exists

Parameters:
acctID - The Account-ID to test for existance
Returns:
True if the specified account exists, false otherwise.
Throws:
DBException

getAccount

public static Account getAccount(java.lang.String acctID)
                          throws DBException
Gets an Account with the specified Account-ID. Returns null if the Account ID does not exist

Parameters:
acctID - The Account-ID to retrieve
Returns:
The retrieved Account, or null if the Account does not exist.
Throws:
DBException

getAccount

public static Account getAccount(java.lang.String acctID,
                                 boolean create)
                          throws DBException
Gets or creates an Account with the specified Account-ID

Parameters:
acctID - The Account ID to get or create.
create - True to create a nee account, false to get an existing account
Returns:
The created/retrieved Account (does not return null, not yet saved)
Throws:
DBException - if the account already exists and 'create' was specified, or if the account does not exist and 'create' was not specified.

createNewAccount

public static Account createNewAccount(Account acctMgr,
                                       java.lang.String acctID,
                                       java.lang.String passwd)
                                throws DBException
Creates a new Account with the specified ID and password

Parameters:
acctMgr - The creating account
acctID - The account ID to create
passwd - The account password
Returns:
The created account
Throws:
DBException - if an error occurs, or if account already exists

createTemporaryAccount

public static Account createTemporaryAccount(java.lang.String accountID,
                                             int expireDays,
                                             java.lang.String encPass,
                                             java.lang.String contactName,
                                             java.lang.String contactEmail,
                                             java.lang.String privateLabelName)
                                      throws DBException
Creates a temporary account

Parameters:
accountID - The AccountID used for the temporary account. If null/blank a random accountid will be assigned.
expireDays - The number of days the account will be available.
contactName - The account contact name
contactEmail - The account contact email address
privateLabelName - The assigned PrivateLabel name
Returns:
The created/saved account
Throws:
DBException

createRandomPassword

public static java.lang.String createRandomPassword(int length)
Creates a random password with the specified number of characters

Parameters:
length - The length of the created password
Returns:
The created password.

getAccountIDsForContactEmail

public static java.util.List<java.lang.String> getAccountIDsForContactEmail(java.lang.String emailAddr)
                                                                     throws DBException
Returns an array of Account-IDs managed by the specified contact email address

Parameters:
emailAddr - The contact email address
Returns:
And array of Accounts managed by the specifgied contact email address
Throws:
DBException

getUnconfirmedAccounts

public static java.lang.String[] getUnconfirmedAccounts()
                                                 throws DBException
Returns an array of Account-IDs that have been created more than 11 hours ago, and have not yet logged in to the system.

Returns:
An array of Account-IDs which have been created, but no-one has yet logged into them.
Throws:
DBException

getUnconfirmedAccounts

public static java.lang.String[] getUnconfirmedAccounts(long ageSec)
                                                 throws DBException
Returns an array of Account-IDs that have been created more than 'ageSec' seconds ago, and have not yet logged in to the system.

Parameters:
ageSec - The specified 'age' of an existing account, in seconds
Returns:
An array of Account-IDs which have been created, but no-one has yet logged into them.
Throws:
DBException

getExpiredAccounts

public static java.lang.String[] getExpiredAccounts()
                                             throws DBException
Returns an array of currently expired Account-IDs

Returns:
An array of currently expired Account-IDs
Throws:
DBException

getExpiredAccounts

public static java.lang.String[] getExpiredAccounts(long deltaSec)
                                             throws DBException
Returns an array of account-ids which are expired.

Parameters:
deltaSec - The number of seconds specifying a range which represents the Accounts which are due to expire within the next 'deltaSec' seconds.
Returns:
An array of Account IDs matching the expiration criteria
Throws:
DBException

getExpiredAccounts

public static java.lang.String[] getExpiredAccounts(long deltaSec,
                                                    boolean activeState)
                                             throws DBException
Returns an array of account-ids which are expired, or active, depending on the value specified for 'activeState'.

Parameters:
deltaSec - The number of seconds specifying a range which represents the Accounts which are due to expire within the next 'deltaSec' seconds.
activeState - Accounts matching the specified 'active' state will be returned.
Returns:
An array of Account IDs matching the expiration criteria
Throws:
DBException

deactivateAccounts

public static void deactivateAccounts(java.lang.String[] acctID)
                               throws DBException
Deactivates the specified list of Accounts. A deactivated account is not able to log-in to the system.

Parameters:
acctID - An array of account-ids to deactivate
Throws:
DBException

deleteAccounts

public static void deleteAccounts(java.lang.String[] acctID)
                           throws DBException
Deletes the specified Accounts, including all owned Devices, Users, Events, etc.

Parameters:
acctID - An array of Account-IDs to delete
Throws:
DBException

countOldEvents

public long countOldEvents(long oldTimeSec,
                           boolean log)
                    throws DBException
Count old events for all devices within this account.
Note: Will return -1 if EventData table is InnoDB.

Parameters:
oldTimeSec - The Epoch time before which all events will be counted.
log - True to print the progress to the logging output.
Throws:
DBException

deleteOldEvents

public long deleteOldEvents(long oldTimeSec,
                            boolean log)
                     throws DBException
Delete old events for all devices within this account.
Note: Will return -1 if EventData table is InnoDB. Old events will still be deleted, however it will still go through the motions of attempting to delete events, event if the range is empty.

Parameters:
oldTimeSec - The EPoch time before which all events will be deleted. If there are no events for a device after this specified time, then the most recent event prior to the specified time will be retained.
log - True to print the progress to the logging output.
Throws:
DBException

getEventsPerSecond

public static double getEventsPerSecond()
Accumulate total Events-Per-Second from values stored in each individual Device


_getEventsPerSecond

public static double _getEventsPerSecond()
                                  throws DBException
Accumulate total Events-Per-Second from values stored in each individual Device

Throws:
DBException

getKeyFieldTitle

public static java.lang.String getKeyFieldTitle(java.lang.String key,
                                                java.lang.String arg,
                                                java.util.Locale locale)

getKeyFieldValue

public java.lang.String getKeyFieldValue(java.lang.String key,
                                         java.lang.String arg,
                                         BasicPrivateLabel bpl)

_getKeyFieldString

public static java.lang.String _getKeyFieldString(boolean getTitle,
                                                  java.lang.String key,
                                                  java.lang.String arg,
                                                  java.util.Locale locale,
                                                  BasicPrivateLabel bpl,
                                                  Account acct)

main

public static void main(java.lang.String[] argv)