|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBRecord<RT> org.opengts.db.AccountRecord<Account> org.opengts.db.tables.Account
public class Account
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 java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPTCOLS_AddressFieldInfo
public static final java.lang.String OPTCOLS_MapLegendFieldInfo
public static final java.lang.String OPTCOLS_AccountManagerInfo
public static final java.lang.String OPTCOLS_DataPushInfo
public static final java.lang.String OPTCOLS_ELogHOSInfo
public static final java.lang.String ACL_CHANGE_PASSWORD
public static final java.lang.String ACL_CHANGE_ACCOUNT
public static final java.lang.String ACL_CHANGE_USER
public static java.lang.String SUPER_ACCOUNT_SEPARATOR
public static java.lang.String PROP_DemoAccount_
public static java.lang.String PROP_DemoAccount_accountName
public static java.lang.String PROP_DemoAccount_deviceNames
public static java.lang.String _PROP_DemoAccount_device_dateRange
public static final long DFT_EXPIRATION_SEC
public static final long MAX_EXPIRATION_SEC
public static final long MAX_UNCONFIRMED_SEC
public static final int TEMP_PASSWORD_LENGTH
public static final java.lang.String BLANK_PASSWORD
public static final double LITERS_PER_US_GALLON
public static final double US_GALLONS_PER_LITER
public static final double LITERS_PER_UK_GALLON
public static final double UK_GALLONS_PER_LITER
public static final double CUBIC_FEET_PER_LITER
public static final double PA_PER_KPA
public static final double PSF_PER_KPA
public static final double PSI_PER_KPA
public static final double TORR_PER_KPA
public static final double MMHG_PER_KPA
public static final double ATM_PER_KPA
public static final double AT_PER_KPA
public static final double BAR_PER_PA
public static final double BAR_PER_KPA
public static final double KPA_PER_BAR
public static final double KPA_PER_PSI
public static final double LBS_PER_KG
public static final double METERS_PER_SEC_SQ_PER_G
public static final double MPSS_PER_G_FORCE
public static final double G_PER_MPSS_FORCE
public static final double MPH_PER_SEC_PER_MPSS
public static final double MPH_PER_SEC_PER_G
public static final double SQUARE_METERS_PER_KILOMETER
public static final double SQUARE_KILOMETERS_PER_METER
public static final double SQUARE_METERS_PER_MILE
public static final double SQUARE_MILES_PER_METER
public static final double SQUARE_METERS_PER_ACRE
public static final double ACRES_PER_SQUARE_METER
public static final double SQUARE_METERS_PER_FOOT
public static final double SQUARE_FEET_PER_METER
public static final java.lang.String FLD_accountType
public static final java.lang.String FLD_notifyEmail
public static final java.lang.String FLD_allowNotify
public static final java.lang.String FLD_speedUnits
public static final java.lang.String FLD_distanceUnits
public static final java.lang.String FLD_volumeUnits
public static final java.lang.String FLD_pressureUnits
public static final java.lang.String FLD_economyUnits
public static final java.lang.String FLD_temperatureUnits
public static final java.lang.String FLD_currencyUnits
public static final java.lang.String FLD_fuelCostPerLiter
public static final java.lang.String FLD_latLonFormat
public static final java.lang.String FLD_geocoderMode
public static final java.lang.String FLD_privateLabelName
public static final java.lang.String FLD_privateLabelJsp
public static final java.lang.String FLD_isBorderCrossing
public static final java.lang.String FLD_retainedEventAge
public static final java.lang.String FLD_maximumDevices
public static final java.lang.String FLD_totalPingCount
public static final java.lang.String FLD_maxPingCount
public static final java.lang.String FLD_autoAddDevices
public static final java.lang.String FLD_dcsPropertiesID
public static final java.lang.String FLD_smsEnabled
public static final java.lang.String FLD_smsProperties
public static final java.lang.String FLD_emailProperties
public static final java.lang.String FLD_expirationTime
public static final java.lang.String FLD_allowWebService
public static final java.lang.String FLD_defaultUser
public static final java.lang.String FLD_password
public static final java.lang.String FLD_contactName
public static final java.lang.String FLD_contactPhone
public static final java.lang.String FLD_contactEmail
public static final java.lang.String FLD_timeZone
public static final java.lang.String FLD_passwdChangeTime
public static final java.lang.String FLD_passwdQueryTime
public static final java.lang.String FLD_lastLoginTime
public static final DBField[] FieldInfo
public static final java.lang.String FLD_addressLine1
public static final java.lang.String FLD_addressLine2
public static final java.lang.String FLD_addressLine3
public static final java.lang.String FLD_addressCity
public static final java.lang.String FLD_addressState
public static final java.lang.String FLD_addressPostalCode
public static final java.lang.String FLD_addressCountry
public static final DBField[] AddressFieldInfo
public static final java.lang.String FLD_mapLegendDevice
public static final java.lang.String FLD_mapLegendGroup
public static final DBField[] MapLegendFieldInfo
public static final java.lang.String FLD_isAccountManager
public static final java.lang.String FLD_managerID
public static final DBField[] AccountManagerInfo
public static final java.lang.String FLD_requestPassCode
public static final java.lang.String FLD_requestIPAddress
public static final java.lang.String FLD_dataPushURL
public static final java.lang.String FLD_lastDataRequestTime
public static final java.lang.String FLD_lastDataPushTime
public static final DBField[] DataPushInfo
public static final java.lang.String FLD_eLogEnabled
public static final java.lang.String FLD_eLogUsername
public static final java.lang.String FLD_eLogPassword
public static final DBField[] ELogHOSInfo
protected static DBFactory<Account> factory
Constructor Detail |
---|
public Account()
public Account(Account.Key key)
Method Detail |
---|
public static java.lang.String[] GetTitles(java.util.Locale loc)
public static java.lang.String getAccountDisplayID(java.lang.String accountID)
public static java.lang.String GetDemoAccountID()
public static boolean IsDemoAccount(java.lang.String accountID)
public static java.lang.String[] GetDemoAccountDeviceIDs()
public static boolean IsDemoDevice(java.lang.String accountID, java.lang.String deviceID)
public static java.lang.String[] GetDemoDeviceDateRange(java.lang.String accountID, java.lang.String deviceID)
public static Account.SMSDefaultState GetDefaultSmsEnabledState()
public static boolean IsFixedSmsEnabledState()
public static void setDefaultPasswordHandler(PasswordHandler ph)
public static PasswordHandler getDefaultPasswordHandler()
public static PasswordHandler getPasswordHandler(BasicPrivateLabel bpl)
public static java.lang.String GetDefaultTimeZone()
public static Account.AccountType getAccountType(Account a)
a
- The account from which the AccountType will be obtained.
If null, the default AccountType will be returned.
public static Account.GeocoderMode getGeocoderMode(Account a)
a
- The account from which the GeocoderMode will be obtained.
If null, the default GeocoderMode will be returned.
public static Account.GeocoderMode getGeocoderMode(java.lang.String code)
code
- The name of the GeocoderMode (one of "none", "geozone", "partial", "full")
public static Account.GeocoderMode getGeocoderMode(java.lang.String code, Account.GeocoderMode dft)
code
- The name of the GeocoderMode (one of "none", "geozone", "partial", "full")dft
- The default GeocoderMode if the specified name is invalid.
public static Account.SpeedUnits getSpeedUnits(Account a)
a
- The account from which the SpeedUnits will be obtained.
If null, the default SpeedUnits will be returned.
public static Account.SpeedUnits getSpeedUnits(User u)
u
- The user from which the SpeedUnits will be obtained.
If null, the default SpeedUnits will be returned.
public static Account.DistanceUnits getDistanceUnits(Account a)
a
- The account from which the DistanceUnits will be obtained.
If null, the default DistanceUnits will be returned.
public static Account.DistanceUnits getDistanceUnits(User u)
u
- The user from which the DistanceUnits will be obtained.
If null, the default DistanceUnits will be returned.
public static Account.AltitudeUnits getAltitudeUnits(Account a)
a
- The account from which the AltitudeUnits will be obtained.
If null, the default AltitudeUnits will be returned.
public static Account.AltitudeUnits getAltitudeUnits(User u)
u
- The user from which the AltitudeUnits will be obtained.
If null, the default AltitudeUnits will be returned.
public static Account.TemperatureUnits getTemperatureUnits(Account a)
a
- The account from which the TemperatureUnits will be obtained.
If null, the default TemperatureUnits will be returned.
public static Account.VolumeUnits getVolumeUnits(Account a)
a
- The account from which the VolumeUnits will be obtained.
If null, the default VolumeUnits will be returned.
public static Account.Currency GetCurrency(java.lang.String code)
public static java.lang.String GetDefaultCurrency()
public static java.lang.String getCurrency(Account a)
a
- The account for which the currency units is returned
public static java.lang.String GetDefaultCurrencySymbol()
public static java.lang.String getCurrencySymbol(Account a)
a
- The account for which the currency symbol is returned
public static Account.EconomyUnits getEconomyUnits(Account a)
a
- The account from which the EconomyUnits will be obtained.
If null, the default EconomyUnits will be returned.
public static Account.PressureUnits getPressureUnits(Account a)
a
- The account from which the PressureUnits will be obtained.
If null, the default PressureUnits will be returned.
public static Account.MassUnits getMassUnits(Account a)
a
- The account from which the MassUnits will be obtained.
If null, the default MassUnits will be returned.
public static Account.LatLonFormat getLatLonFormat(Account a)
a
- The account from which the LatLonFormat will be obtained.
If null, the default LatLonFormat will be returned.
public static java.lang.String TABLE_NAME()
public static DBFactory<Account> getFactory()
public static java.lang.String getTableDescription(java.util.Locale loc)
public java.lang.String getDefaultUser()
public void setDefaultUser(java.lang.String v)
public static java.lang.String getDefaultUser(Account acct, boolean rtnAdmin)
acct
- The AccountrtnAdmin
- True to return the "admin" user-id if the account default user-id is not defined
public java.lang.String getPassword()
public void setPassword(java.lang.String p)
public java.lang.String getEncodedPassword()
getEncodedPassword
in interface UserInformation
public void setEncodedPassword(java.lang.String p)
public java.lang.String getDecodedPassword(BasicPrivateLabel bpl)
public void setDecodedPassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
setDecodedPassword
in interface UserInformation
public java.lang.String resetPassword(BasicPrivateLabel bpl)
public boolean checkPassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
checkPassword
in interface UserInformation
public static boolean checkPassword(BasicPrivateLabel bpl, java.lang.String enteredPass, java.lang.String tablePass)
public static java.lang.String encodePassword(BasicPrivateLabel bpl, java.lang.String enteredPass)
public static java.lang.String decodePassword(BasicPrivateLabel bpl, java.lang.String tablePass)
public int getAccountType()
public void setAccountType(int v)
public void setAccountType(Account.AccountType v)
public void setAccountType(java.lang.String v, java.util.Locale locale)
public java.lang.String getContactName()
getContactName
in interface UserInformation
public void setContactName(java.lang.String v)
setContactName
in interface UserInformation
public java.lang.String getContactPhone()
getContactPhone
in interface UserInformation
public void setContactPhone(java.lang.String v)
setContactPhone
in interface UserInformation
public java.lang.String getContactEmail()
getContactEmail
in interface UserInformation
public void setContactEmail(java.lang.String v)
setContactEmail
in interface UserInformation
public java.lang.String getNotifyEmail()
public void setNotifyEmail(java.lang.String v)
public static int getMaximumNotifyEmailLength()
public boolean getAllowNotify()
public void setAllowNotify(boolean v)
v
- The "Allow Notification" state for this Accountpublic static java.util.TimeZone getTimeZone(Account account, java.util.TimeZone dft)
public java.util.TimeZone getTimeZone(java.util.TimeZone dft)
public java.lang.String getTimeZone()
getTimeZone
in interface UserInformation
public void setTimeZone(java.lang.String v)
setTimeZone
in interface UserInformation
public DateTime getCurrentDateTime()
public long getPasswdChangeTime()
public void setPasswdChangeTime(long v)
public boolean hasPasswordExpired()
public long getPasswdQueryTime()
getPasswdQueryTime
in interface UserInformation
public void setPasswdQueryTime(long v)
setPasswdQueryTime
in interface UserInformation
public boolean hasRetainedEventAge()
public long getRetainedEventAge()
public void setRetainedEventAge(long v)
public long adjustRetainedEventTime(long oldTimeSec)
public boolean isAtMaximumDevices(boolean zeroIsUnlimited)
public boolean exceedsMaximumDevices(long devCnt, boolean zeroIsUnlimited)
public long getMaximumDevices()
public void setMaximumDevices(long v)
public int getTotalPingCount()
public void setTotalPingCount(int v)
public boolean incrementPingCount(long pingTime, boolean reload, boolean update)
public boolean resetTotalPingCount(boolean update)
public int getMaxPingCount()
public void setMaxPingCount(int v)
public long getExpirationTime()
public void setExpirationTime(long v)
public boolean isExpired()
public boolean doesExpire()
public boolean willExpire(long withinSec)
public static boolean IsAlwaysAllowWebService()
public static boolean GetAllowWebService(Account acct)
public boolean getAllowWebService()
public void setAllowWebService(boolean v)
v
- The "Allow Web-Service" state for this Accountpublic java.lang.String getAddressLine1()
public java.lang.String getAddressLine2()
public java.lang.String getAddressLine3()
public java.lang.String[] getAddressLines()
public java.lang.String getAddressCity()
public java.lang.String getAddressState()
public java.lang.String getAddressPostalCode()
public java.lang.String getAddressCountry()
public void setAddressLine1(java.lang.String v)
public void setAddressLine2(java.lang.String v)
public void setAddressLine3(java.lang.String v)
public void setAddressLines(java.lang.String[] lines)
public void setAddressCity(java.lang.String v)
public void setAddressState(java.lang.String v)
public void setAddressPostalCode(java.lang.String v)
public void setAddressCountry(java.lang.String v)
public int getSpeedUnits()
public void setSpeedUnits(int v)
public void setSpeedUnits(Account.SpeedUnits v)
public void setSpeedUnits(java.lang.String v, java.util.Locale locale)
public java.lang.String getSpeedString(double speedKPH, boolean inclUnits, java.util.Locale locale)
public java.lang.String getSpeedString(double speedKPH, java.lang.String format, boolean inclUnits, java.util.Locale locale)
public java.lang.String getSpeedString(double speedKPH, java.lang.String format, Account.SpeedUnits speedUnitsEnum, boolean inclUnits, java.util.Locale locale)
public int getDistanceUnits()
public void setDistanceUnits(int v)
public void setDistanceUnits(Account.DistanceUnits v)
public void setDistanceUnits(java.lang.String v, java.util.Locale locale)
public java.lang.String getDistanceString(double distKM, boolean inclUnits, java.util.Locale locale)
public int getVolumeUnits()
public void setVolumeUnits(int v)
public void setVolumeUnits(Account.VolumeUnits v)
public void setVolumeUnits(java.lang.String v, java.util.Locale locale)
public double getFuelCostPerLiter()
public void setFuelCostPerLiter(double v)
v
- The Fuel cost per Literpublic int getPressureUnits()
public void setPressureUnits(int v)
public void setPressureUnits(Account.PressureUnits v)
public void setPressureUnits(java.lang.String v, java.util.Locale locale)
public int getEconomyUnits()
public void setEconomyUnits(int v)
public void setEconomyUnits(Account.EconomyUnits v)
public void setEconomyUnits(java.lang.String v, java.util.Locale locale)
public int getTemperatureUnits()
public void setTemperatureUnits(int v)
public void setTemperatureUnits(Account.TemperatureUnits v)
public void setTemperatureUnits(java.lang.String v, java.util.Locale locale)
public java.lang.String getCurrencyUnits()
public void setCurrencyUnits(java.lang.String v)
public void setCurrencyUnits(Account.Currency v)
public int getLatLonFormat()
public void setLatLonFormat(int v)
public void setLatLonFormat(Account.LatLonFormat v)
public void setLatLonFormat(java.lang.String v, java.util.Locale locale)
public int getGeocoderMode()
public void setGeocoderMode(int v)
public void setGeocoderMode(Account.GeocoderMode v)
public void setGeocoderMode(java.lang.String v, java.util.Locale locale)
public java.lang.String getPrivateLabelName()
public void setPrivateLabelName(java.lang.String v)
public java.lang.String getPrivateLabelJsp()
public void setPrivateLabelJsp(java.lang.String v)
public long getLastLoginTime()
getLastLoginTime
in interface UserInformation
public void setLastLoginTime(long v)
setLastLoginTime
in interface UserInformation
public boolean getIsBorderCrossing()
public void setIsBorderCrossing(boolean v)
public boolean isBorderCrossing()
public static boolean SupportsBorderCrossing()
public boolean okToAutoAddDevice()
public boolean getAutoAddDevices()
public void setAutoAddDevices(boolean v)
public java.lang.String getDcsPropertiesID()
public void setDcsPropertiesID(java.lang.String v)
public boolean getSmsEnabled()
public void setSmsEnabled(boolean v)
public java.lang.String getSmsProperties()
public void setSmsProperties(java.lang.String v)
public RTProperties getSmsRTProperties()
public void setSmsRTProperties(RTProperties v)
public java.lang.String getEmailProperties()
public void setEmailProperties(java.lang.String v)
public RTProperties getEmailRTProperties()
public void setEmailRTProperties(RTProperties v)
public java.lang.String getMapLegendDevice()
public void setMapLegendDevice(java.lang.String v)
public java.lang.String getMapLegendGroup()
public void setMapLegendGroup(java.lang.String v)
public void setMapLegend(boolean isFleet, java.lang.String legend)
public java.lang.String getMapLegend(boolean isFleet)
public static boolean SupportsAccountManager()
public boolean getIsAccountManager()
public void setIsAccountManager(boolean v)
public boolean isAccountManager()
public java.lang.String getManagerID()
public void setManagerID(java.lang.String v)
public boolean hasManagerID()
public java.lang.String getRequestPassCode()
public void setRequestPassCode(java.lang.String v)
public DTIPAddrList getRequestIPAddress()
public void setRequestIPAddress(DTIPAddrList v)
public void setRequestIPAddress(java.lang.String v)
public boolean isValidRequestIPAddress(java.lang.String ipAddr)
public static boolean SupportsDataPushURL()
public java.lang.String getDataPushURL()
public void setDataPushURL(java.lang.String v)
public long getLastDataRequestTime()
public void setLastDataRequestTime(long v)
public long getLastDataPushTime()
public void setLastDataPushTime(long v)
public boolean getELogEnabled()
public void setELogEnabled(boolean v)
v
- The "ELog/HOS Enabled" state for this Accountpublic java.lang.String getELogUsername()
public void setELogUsername(java.lang.String v)
public java.lang.String getELogPassword()
public void setELogPassword(java.lang.String p)
public void setCreationDefaultValues()
DBRecord
setCreationDefaultValues
in class DBRecord<Account>
public boolean hasAdminUser()
public void setCurrentUser(User user)
user
- The current context userpublic User getCurrentUser()
public static java.lang.String getReportEmailAddress(Account account, User user)
account
- The account to test for email address, if user not specifieduser
- The overriding user to test for email address first
public java.lang.String getReportEmailAddress(User user)
user
- The overriding user to test for email address first
public Device getDevice(java.lang.String devID) throws DBException
DBException
public long getDeviceCount()
public boolean hasDeviceLastNotifySince(long sinceTime, User user) throws DBException
DBException
public static boolean hasAnyDeviceLastNotifySince(long sinceTime) throws DBException
DBException
public java.lang.Object convertFieldUnits(DBField field, java.lang.Object value, boolean inclUnits, java.util.Locale locale)
public java.lang.String toString()
DBRecord
toString
in class DBRecord<Account>
public static BasicPrivateLabel getPrivateLabel(Account acct)
public BasicPrivateLabel getPrivateLabel()
public boolean hasPrivateLabel()
public java.util.Locale getLocale()
public java.lang.String getDateFormat()
public java.lang.String getTimeFormat()
public java.lang.String getDateTimeFormat()
public java.lang.String formatDate(DateTime dt)
public java.lang.String formatTime(DateTime dt)
public java.lang.String formatDateTime(DateTime dt)
public java.lang.String formatDateTime(long dt)
public java.lang.String[] getDeviceTitles(java.util.Locale loc)
public java.lang.String[] getDeviceTitles(java.util.Locale loc, java.lang.String[] dft)
public void setDeviceTitle(java.lang.String singular, java.lang.String plural)
public java.lang.String getNewDeviceDescription()
public java.lang.String getNewDeviceDescription(java.util.Locale loc, java.lang.String dftDesc)
public void setNewDeviceDescription(java.lang.String singular)
public void setNewDeviceDescription(java.lang.String singular, java.lang.String plural)
public java.lang.String[] getDeviceGroupTitles(java.util.Locale loc)
public java.lang.String[] getDeviceGroupTitles(java.util.Locale loc, java.lang.String[] dft)
public void setDeviceGroupTitle(java.lang.String singular, java.lang.String plural)
public java.lang.String[] getEntityTitles(java.util.Locale loc)
public java.lang.String[] getEntityTitles(java.util.Locale loc, java.lang.String[] dft)
public void setEntityTitle(java.lang.String singular, java.lang.String plural)
public java.lang.String[] getAddressTitles(java.util.Locale loc)
public java.lang.String[] getAddressTitles(java.util.Locale loc, java.lang.String[] dft)
public void setAddressTitle(java.lang.String singular, java.lang.String plural)
public static java.util.Collection<java.lang.String> getAllAccounts() throws DBException
DBException
public static java.util.Collection<java.lang.String> getDataPushAccountIDs() throws DBException
DBException
public static java.util.Collection<java.lang.String> getAllAccounts(DBSelect<Account> dsel) throws DBException
DBException
public static java.util.Collection<java.lang.String> getAuthorizedAccounts(Account account) throws DBException
DBException
public static boolean exists(java.lang.String acctID) throws DBException
acctID
- The Account-ID to test for existance
DBException
public static Account getAccount(java.lang.String acctID) throws DBException
acctID
- The Account-ID to retrieve
DBException
public static Account getAccount(java.lang.String acctID, boolean create) throws DBException
acctID
- The Account ID to get or create.create
- True to create a nee account, false to get an existing account
DBException
- if the account already exists and 'create' was specified,
or if the account does not exist and 'create' was not specified.public static Account createNewAccount(Account acctMgr, java.lang.String acctID, java.lang.String passwd) throws DBException
acctMgr
- The creating accountacctID
- The account ID to createpasswd
- The account password
DBException
- if an error occurs, or if account already existspublic 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
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 namecontactEmail
- The account contact email addressprivateLabelName
- The assigned PrivateLabel name
DBException
public static java.lang.String createRandomPassword(int length)
length
- The length of the created password
public static java.util.List<java.lang.String> getAccountIDsForContactEmail(java.lang.String emailAddr) throws DBException
emailAddr
- The contact email address
DBException
public static java.lang.String[] getUnconfirmedAccounts() throws DBException
DBException
public static java.lang.String[] getUnconfirmedAccounts(long ageSec) throws DBException
ageSec
- The specified 'age' of an existing account, in seconds
DBException
public static java.lang.String[] getExpiredAccounts() throws DBException
DBException
public static java.lang.String[] getExpiredAccounts(long deltaSec) throws DBException
deltaSec
- The number of seconds specifying a range which represents the
Accounts which are due to expire within the next 'deltaSec' seconds.
DBException
public static java.lang.String[] getExpiredAccounts(long deltaSec, boolean activeState) throws DBException
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.
DBException
public static void deactivateAccounts(java.lang.String[] acctID) throws DBException
acctID
- An array of account-ids to deactivate
DBException
public static void deleteAccounts(java.lang.String[] acctID) throws DBException
acctID
- An array of Account-IDs to delete
DBException
public long countOldEvents(long oldTimeSec, boolean log) throws DBException
oldTimeSec
- The Epoch time before which all events will be counted.log
- True to print the progress to the logging output.
DBException
public long deleteOldEvents(long oldTimeSec, boolean log) throws DBException
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.
DBException
public static double getEventsPerSecond()
public static double _getEventsPerSecond() throws DBException
DBException
public static java.lang.String getKeyFieldTitle(java.lang.String key, java.lang.String arg, java.util.Locale locale)
public java.lang.String getKeyFieldValue(java.lang.String key, java.lang.String arg, BasicPrivateLabel bpl)
public static java.lang.String _getKeyFieldString(boolean getTitle, java.lang.String key, java.lang.String arg, java.util.Locale locale, BasicPrivateLabel bpl, Account acct)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |