org.opengts.war.tools
Class RequestProperties

java.lang.Object
  extended by org.opengts.war.tools.RequestProperties
All Implemented Interfaces:
StringTools.KeyValueMap

public class RequestProperties
extends java.lang.Object
implements StringTools.KeyValueMap


Field Summary
static java.lang.String _HTML_LOGIN
           
static java.lang.String _HTML_LOGIN_FRAME
           
static java.lang.String HTML_LOGIN
           
static java.lang.String HTML_LOGIN_FRAME
           
static java.lang.String KEY_accountDesc
           
static java.lang.String KEY_accountID
           
static java.lang.String KEY_accountJsp
           
static java.lang.String KEY_accuracyUnits
           
static java.lang.String KEY_altitudeUnits
           
static java.lang.String KEY_copyright
           
static java.lang.String KEY_currency
           
static java.lang.String KEY_currencySymbol
           
static java.lang.String KEY_deviceDesc
           
static java.lang.String KEY_deviceID
           
static java.lang.String KEY_distanceUnits
           
static java.lang.String KEY_economyUnits
           
static java.lang.String KEY_groupDesc
           
static java.lang.String KEY_groupID
           
static java.lang.String KEY_hostname
           
static java.lang.String KEY_i18n_Account
           
static java.lang.String KEY_i18n_Accounts
           
static java.lang.String KEY_i18n_Device
           
static java.lang.String KEY_i18n_Devices
           
static java.lang.String KEY_i18n_Group
           
static java.lang.String KEY_i18n_Groups
           
static java.lang.String KEY_i18n_Login
           
static java.lang.String KEY_i18n_User
           
static java.lang.String KEY_i18n_Users
           
static java.lang.String KEY_ipAddress
           
static java.lang.String KEY_isLocaleRTL
           
static java.lang.String KEY_isLoggedIn
           
static java.lang.String KEY_locale
           
static java.lang.String KEY_loginCount
           
static java.lang.String KEY_loginURL
           
static java.lang.String KEY_navigation
           
static java.lang.String KEY_pageName
           
static java.lang.String KEY_pageTitle
           
static java.lang.String KEY_pressureUnits
           
static java.lang.String KEY_privateLabelName
           
static java.lang.String KEY_speedUnits
           
static java.lang.String KEY_statusCodeDesc
           
static java.lang.String KEY_userDesc
           
static java.lang.String KEY_userID
           
static java.lang.String KEY_version
           
static java.lang.String KEY_volumeUnits
           
static PrivateLabel NullPrivateLabel
           
static int PAGE_FRAME_ALL
           
static int PAGE_FRAME_CONTENT
           
static int PAGE_FRAME_CONTENT_MENUBAR
           
static int PAGE_FRAME_FOOTER
           
static int PAGE_FRAME_HEADER
           
static int PAGE_FRAME_LEFT
           
static int PAGE_FRAME_NAVIGATION
           
static int PAGE_FRAME_RIGHT
           
 
Constructor Summary
RequestProperties()
           
 
Method Summary
protected  OrderedSet<java.lang.String> _getDeviceIDsForSelectedGroup(boolean isFleet, boolean inclInactv)
           
 boolean _isLoginErrorAlert()
           
 void _setLoginErrorAlert()
           
 void clearDeviceGroupList()
           
 void clearDeviceList()
           
 OrderedMap<java.lang.String,java.lang.String> createDeviceDescriptionMap(boolean inclID)
           
 java.util.List<IDDescription> createDeviceIDDescriptionList(boolean inclInactv, IDDescription.SortBy sortBy)
           
 OrderedMap<java.lang.String,java.lang.String> createGroupDescriptionMap(boolean inclID, boolean inclAll)
           
 java.util.List<IDDescription> createGroupIDDescriptionList(boolean inclAll, IDDescription.SortBy sortBy)
           
 java.lang.String formatDateTime(DateTime dt)
           
 java.lang.String formatDateTime(DateTime dt, java.lang.String dft)
           
 java.lang.String formatDateTime(DateTime dt, java.util.TimeZone tmz)
           
 java.lang.String formatDateTime(DateTime dt, java.util.TimeZone tmz, java.lang.String dft)
           
 java.lang.String formatDateTime(long timestamp)
           
 java.lang.String formatDateTime(long timestamp, java.lang.String dft)
           
 java.lang.String formatDateTime(long timestamp, java.util.TimeZone tmz)
           
 java.lang.String formatDateTime(long timestamp, java.util.TimeZone tmz, java.lang.String dft)
           
 java.lang.String formatDayNumber(DayNumber dn)
           
 java.lang.String formatDayNumber(DayNumber dn, java.lang.String dft)
           
 java.lang.String formatDayNumber(long dayNumber)
           
 java.lang.String formatDayNumber(long dayNumber, java.lang.String dft)
           
 java.lang.String[] getAddressTitles()
           
 java.lang.String getBaseURI()
           
 java.lang.String getCommandArg()
           
 java.lang.String getCommandName()
           
 boolean getCookiesRequired()
           
 Account getCurrentAccount()
           
 java.lang.String getCurrentAccountID()
           
 User getCurrentUser()
           
 java.lang.String getCurrentUserEncodedPassword()
           
 java.lang.String getCurrentUserID()
           
 java.lang.String getDateFormat()
           
 java.lang.String getDemoAccountID()
           
 java.lang.String[] getDemoDateRange()
           
 java.lang.String getDeviceDescription(java.lang.String devID, boolean rtnDispName)
           
 java.lang.String getDeviceGroupDescription(java.lang.String grpID, boolean rtnDispName)
           
 OrderedSet<java.lang.String> getDeviceGroupIDList(boolean inclAll)
           
 java.lang.String[] getDeviceGroupTitles()
           
 OrderedSet<java.lang.String> getDeviceIDList(boolean inclInactv)
           
 boolean getDeviceNotifyEventsOnly()
           
 java.lang.String[] getDeviceTitles()
           
 Account.DistanceUnits getDistanceUnits()
           
 boolean getEnableDemo()
           
 boolean getEncodeEMailHTML()
           
 java.lang.String[] getEntityTitles()
           
 DateTime getEventDateFrom()
           
 long getEventDateFromSec()
           
 DateTime getEventDateTo()
           
 long getEventDateToSec()
           
 long getEventLimit()
           
 EventData.LimitType getEventLimitType()
           
 long getFleetDeviceEventCount()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
 URIArg getHttpServletRequestURIArg(boolean inclUserPass)
           
 javax.servlet.http.HttpServletResponse getHttpServletResponse()
           
 java.lang.String getIPAddress()
           
 java.lang.String getJspName()
           
 java.lang.String getJspURI()
           
 java.lang.String getKeyValue(java.lang.String key, java.lang.String arg, java.lang.String dft)
           
 DateTime getLastEventTime()
           
 java.util.Locale getLocale()
           
 int GetLoginCount()
          Returns the number of active login session matching the current AccountID/UserID
static int GetLoginCount(javax.servlet.ServletContext sc, java.lang.String accountID, java.lang.String userID)
          Returns the current number of login session matching the specified AccountID/UserID
 EventData[] getMapEvents()
           
 EventData[] getMapEvents(long perDevLimit)
           
 java.util.Collection<Device> getMapEventsByDevice(long perDevLimit)
           
 MapProvider getMapProvider()
           
 OrderedSet<java.lang.String> getMapProviderIconKeys()
           
 java.util.List<java.lang.String> getMapProviderPushpinIDs()
           
 boolean getPageFrameContentOnly()
           
 int getPageFrameSections()
           
 java.lang.String getPageName()
           
 java.lang.String getPageNavigationHTML()
           
 PrivateLabel getPrivateLabel()
           
 PushpinIcon getPushpinIcon(int ppNdx)
           
 PushpinIcon getPushpinIcon(java.lang.String ppName)
           
 Device getSelectedDevice()
           
 DeviceGroup getSelectedDeviceGroup()
           
 java.lang.String getSelectedDeviceGroupID()
           
 java.lang.String getSelectedDeviceID()
           
 boolean getShowAddress()
           
 boolean getShowPassword()
           
 Account.SpeedUnits getSpeedUnits()
           
 int[] getStatusCodes()
          Gets the status-code list, or null if no status-code list defined
 int[] getStatusMarkers()
          Gets the status-code marker, or null if no status-code marker defined
 Account.TemperatureUnits getTemperatureUnits()
           
 java.util.TimeZone getTimeZone()
           
 java.util.List getTimeZonesList()
           
 java.lang.String getTimeZoneString(DateTime dt)
           
 java.lang.String[] getUserList()
           
 WebPage getWebPage()
           
 java.lang.String getWebPageURI()
           
 java.util.Map<java.lang.String,MapShape> getZoomRegionShapes()
           
 boolean hasLastEvent()
           
 boolean hasStatusCodes()
          Returns true if this instance contains a status-code list
 boolean hasStatusMarkers()
          Returns true if this instance contains a status-code marker
 boolean isActualSpecifiedDevice()
           
 boolean isActualSpecifiedGroup()
           
 boolean isDemoAccount()
           
 boolean isFleet()
           
 boolean isLoggedIn()
           
 boolean isLoggedInFromSysAdmin()
          Return True if logged in from SysAdmin account page
static boolean isLoggedInFromSysAdmin(javax.servlet.http.HttpServletRequest request, PrivateLabel _privLabel)
          Return True if logged in from SysAdmin account page
 boolean isReport()
           
 boolean isReturnToSysAdminEnabled()
          Return True if logged in from SysAdmin account page and logging out from the current account will return to the SysAdmin System Accounts page.
static boolean isReturnToSysAdminEnabled(javax.servlet.http.HttpServletRequest request, PrivateLabel _privLabel)
          Return True if logged in from SysAdmin account page and logging out from the current account will return to the SysAdmin System Accounts page.
 boolean isSecure()
           
 boolean isSoapRequest()
           
 void setBaseURI(java.lang.String baseUri)
           
 void setCommandArg(java.lang.String arg)
           
 void setCommandName(java.lang.String cmd)
           
 void setCookiesRequired(boolean cookiesReq)
           
 void setCurrentAccount(Account account)
           
 void setCurrentUser(User user)
           
 void setDeviceNotifyEventsOnly(boolean notifyEvents)
           
 void setEnableDemo(boolean enableDemo)
           
 void setEncodeEMailHTML(boolean state)
           
 void setEventDateFrom(DateTime fr)
           
 void setEventDateTo(DateTime to)
           
 void setEventLimit(long limitCnt)
           
 void setEventLimitType(EventData.LimitType limitType)
           
 void setEventLimitType(java.lang.String limitType)
           
 void setFleet(boolean fleet)
           
 void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
           
 void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
           
 void setIPAddress(java.lang.String ipAddr)
           
 void setLastEventTime(DateTime lastTime)
           
 void setLocaleString(java.lang.String localeStr)
          Sets the locale String code for this Session
 void setMapProvider(MapProvider mapProv)
           
 void setPageFrameContentOnly(boolean contentOnly)
           
 void setPageFrameSections(int pfs)
           
 void setPageName(java.lang.String page)
           
 void setPageNavigationHTML(java.lang.String pageNav)
           
 void setPrivateLabel(PrivateLabel _privLabel)
           
 void setReport(boolean report)
           
 void setSelectedDeviceGroupID(java.lang.String groupID)
           
 void setSelectedDeviceGroupID(java.lang.String groupID, boolean isActualSpecifiedGroup)
           
 void setSelectedDeviceID(java.lang.String devID)
           
 void setSelectedDeviceID(java.lang.String devID, boolean isActualSpecifiedDevice)
           
 void setShowPassword(boolean showPass)
           
 void setSoapRequest(boolean soap)
           
 void setStatusCodes(int[] sc)
          Sets the status-code list
 void setStatusMarkers(int[] sm)
          Sets the status-code marker
 void setTimeZone(java.util.TimeZone tz)
           
 void setTimeZone(java.util.TimeZone tz, java.lang.String tzStr)
           
 void setUserList(java.lang.String[] userList)
           
 void setWebPageURI(java.lang.String uri)
           
static java.lang.String TRACK_BASE_URI()
           
 boolean writePageFrameSection(int pfs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_LOGIN_FRAME

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

_HTML_LOGIN_FRAME

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

HTML_LOGIN

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

_HTML_LOGIN

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

NullPrivateLabel

public static final PrivateLabel NullPrivateLabel

PAGE_FRAME_HEADER

public static final int PAGE_FRAME_HEADER
See Also:
Constant Field Values

PAGE_FRAME_NAVIGATION

public static final int PAGE_FRAME_NAVIGATION
See Also:
Constant Field Values

PAGE_FRAME_FOOTER

public static final int PAGE_FRAME_FOOTER
See Also:
Constant Field Values

PAGE_FRAME_LEFT

public static final int PAGE_FRAME_LEFT
See Also:
Constant Field Values

PAGE_FRAME_RIGHT

public static final int PAGE_FRAME_RIGHT
See Also:
Constant Field Values

PAGE_FRAME_CONTENT

public static final int PAGE_FRAME_CONTENT
See Also:
Constant Field Values

PAGE_FRAME_CONTENT_MENUBAR

public static final int PAGE_FRAME_CONTENT_MENUBAR
See Also:
Constant Field Values

PAGE_FRAME_ALL

public static final int PAGE_FRAME_ALL
See Also:
Constant Field Values

KEY_pageName

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

KEY_navigation

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

KEY_pageTitle

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

KEY_copyright

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

KEY_isLoggedIn

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

KEY_loginURL

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

KEY_loginCount

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

KEY_i18n_Login

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

KEY_accountID

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

KEY_accountDesc

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

KEY_accountJsp

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

KEY_i18n_Account

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

KEY_i18n_Accounts

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

KEY_deviceID

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

KEY_deviceDesc

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

KEY_i18n_Device

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

KEY_i18n_Devices

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

KEY_groupID

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

KEY_groupDesc

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

KEY_i18n_Group

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

KEY_i18n_Groups

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

KEY_userID

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

KEY_userDesc

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

KEY_i18n_User

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

KEY_i18n_Users

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

KEY_speedUnits

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

KEY_altitudeUnits

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

KEY_accuracyUnits

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

KEY_distanceUnits

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

KEY_economyUnits

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

KEY_pressureUnits

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

KEY_volumeUnits

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

KEY_currency

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

KEY_currencySymbol

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

KEY_statusCodeDesc

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

KEY_version

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

KEY_hostname

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

KEY_locale

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

KEY_isLocaleRTL

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

KEY_ipAddress

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

KEY_privateLabelName

public static final java.lang.String KEY_privateLabelName
See Also:
Constant Field Values
Constructor Detail

RequestProperties

public RequestProperties()
Method Detail

TRACK_BASE_URI

public static java.lang.String TRACK_BASE_URI()

getEncodeEMailHTML

public boolean getEncodeEMailHTML()

setEncodeEMailHTML

public void setEncodeEMailHTML(boolean state)

setBaseURI

public void setBaseURI(java.lang.String baseUri)

getBaseURI

public java.lang.String getBaseURI()

setHttpServletResponse

public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse()

setHttpServletRequest

public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()

getHttpServletRequestURIArg

public URIArg getHttpServletRequestURIArg(boolean inclUserPass)

isSecure

public boolean isSecure()

setSoapRequest

public void setSoapRequest(boolean soap)

isSoapRequest

public boolean isSoapRequest()

setCookiesRequired

public void setCookiesRequired(boolean cookiesReq)

getCookiesRequired

public boolean getCookiesRequired()

setIPAddress

public void setIPAddress(java.lang.String ipAddr)

getIPAddress

public java.lang.String getIPAddress()

setPageName

public void setPageName(java.lang.String page)

getPageName

public java.lang.String getPageName()

getWebPage

public WebPage getWebPage()

getJspName

public java.lang.String getJspName()

getJspURI

public java.lang.String getJspURI()

setWebPageURI

public void setWebPageURI(java.lang.String uri)

getWebPageURI

public java.lang.String getWebPageURI()

setReport

public void setReport(boolean report)

isReport

public boolean isReport()

setFleet

public void setFleet(boolean fleet)

isFleet

public boolean isFleet()

getFleetDeviceEventCount

public long getFleetDeviceEventCount()

setDeviceNotifyEventsOnly

public void setDeviceNotifyEventsOnly(boolean notifyEvents)

getDeviceNotifyEventsOnly

public boolean getDeviceNotifyEventsOnly()

setPageNavigationHTML

public void setPageNavigationHTML(java.lang.String pageNav)

getPageNavigationHTML

public java.lang.String getPageNavigationHTML()

setPageFrameSections

public void setPageFrameSections(int pfs)

getPageFrameSections

public int getPageFrameSections()

setPageFrameContentOnly

public void setPageFrameContentOnly(boolean contentOnly)

getPageFrameContentOnly

public boolean getPageFrameContentOnly()

writePageFrameSection

public boolean writePageFrameSection(int pfs)

setCommandName

public void setCommandName(java.lang.String cmd)

getCommandName

public java.lang.String getCommandName()

setCommandArg

public void setCommandArg(java.lang.String arg)

getCommandArg

public java.lang.String getCommandArg()

setPrivateLabel

public void setPrivateLabel(PrivateLabel _privLabel)

getPrivateLabel

public PrivateLabel getPrivateLabel()

setLocaleString

public void setLocaleString(java.lang.String localeStr)
Sets the locale String code for this Session

Parameters:
localeStr - The locale String associated with this Session

getLocale

public java.util.Locale getLocale()

setMapProvider

public void setMapProvider(MapProvider mapProv)

getMapProvider

public MapProvider getMapProvider()

getMapProviderIconKeys

public OrderedSet<java.lang.String> getMapProviderIconKeys()

getMapProviderPushpinIDs

public java.util.List<java.lang.String> getMapProviderPushpinIDs()

getPushpinIcon

public PushpinIcon getPushpinIcon(java.lang.String ppName)

getPushpinIcon

public PushpinIcon getPushpinIcon(int ppNdx)

_setLoginErrorAlert

public void _setLoginErrorAlert()

_isLoginErrorAlert

public boolean _isLoginErrorAlert()

isLoggedInFromSysAdmin

public boolean isLoggedInFromSysAdmin()
Return True if logged in from SysAdmin account page

Returns:
True if logged in from SysAdmin account page

isLoggedInFromSysAdmin

public static boolean isLoggedInFromSysAdmin(javax.servlet.http.HttpServletRequest request,
                                             PrivateLabel _privLabel)
Return True if logged in from SysAdmin account page

Returns:
True if logged in from SysAdmin account page

isReturnToSysAdminEnabled

public boolean isReturnToSysAdminEnabled()
Return True if logged in from SysAdmin account page and logging out from the current account will return to the SysAdmin System Accounts page.


isReturnToSysAdminEnabled

public static boolean isReturnToSysAdminEnabled(javax.servlet.http.HttpServletRequest request,
                                                PrivateLabel _privLabel)
Return True if logged in from SysAdmin account page and logging out from the current account will return to the SysAdmin System Accounts page.


setCurrentAccount

public void setCurrentAccount(Account account)

getCurrentAccount

public Account getCurrentAccount()

getCurrentAccountID

public java.lang.String getCurrentAccountID()

isLoggedIn

public boolean isLoggedIn()

setCurrentUser

public void setCurrentUser(User user)

getCurrentUser

public User getCurrentUser()

getCurrentUserEncodedPassword

public java.lang.String getCurrentUserEncodedPassword()

getCurrentUserID

public java.lang.String getCurrentUserID()

setUserList

public void setUserList(java.lang.String[] userList)

getUserList

public java.lang.String[] getUserList()

setSelectedDeviceGroupID

public void setSelectedDeviceGroupID(java.lang.String groupID)

setSelectedDeviceGroupID

public void setSelectedDeviceGroupID(java.lang.String groupID,
                                     boolean isActualSpecifiedGroup)

getSelectedDeviceGroupID

public java.lang.String getSelectedDeviceGroupID()

isActualSpecifiedGroup

public boolean isActualSpecifiedGroup()

getSelectedDeviceGroup

public DeviceGroup getSelectedDeviceGroup()

clearDeviceGroupList

public void clearDeviceGroupList()

getDeviceGroupIDList

public OrderedSet<java.lang.String> getDeviceGroupIDList(boolean inclAll)

getDeviceGroupDescription

public java.lang.String getDeviceGroupDescription(java.lang.String grpID,
                                                  boolean rtnDispName)

setSelectedDeviceID

public void setSelectedDeviceID(java.lang.String devID)

setSelectedDeviceID

public void setSelectedDeviceID(java.lang.String devID,
                                boolean isActualSpecifiedDevice)

getSelectedDeviceID

public java.lang.String getSelectedDeviceID()

isActualSpecifiedDevice

public boolean isActualSpecifiedDevice()

getSelectedDevice

public Device getSelectedDevice()

clearDeviceList

public void clearDeviceList()

getDeviceIDList

public OrderedSet<java.lang.String> getDeviceIDList(boolean inclInactv)

_getDeviceIDsForSelectedGroup

protected OrderedSet<java.lang.String> _getDeviceIDsForSelectedGroup(boolean isFleet,
                                                                     boolean inclInactv)
                                                              throws DBException
Throws:
DBException

getDeviceDescription

public java.lang.String getDeviceDescription(java.lang.String devID,
                                             boolean rtnDispName)

createGroupIDDescriptionList

public java.util.List<IDDescription> createGroupIDDescriptionList(boolean inclAll,
                                                                  IDDescription.SortBy sortBy)

createGroupDescriptionMap

public OrderedMap<java.lang.String,java.lang.String> createGroupDescriptionMap(boolean inclID,
                                                                               boolean inclAll)

createDeviceIDDescriptionList

public java.util.List<IDDescription> createDeviceIDDescriptionList(boolean inclInactv,
                                                                   IDDescription.SortBy sortBy)

createDeviceDescriptionMap

public OrderedMap<java.lang.String,java.lang.String> createDeviceDescriptionMap(boolean inclID)

getZoomRegionShapes

public java.util.Map<java.lang.String,MapShape> getZoomRegionShapes()

hasStatusCodes

public boolean hasStatusCodes()
Returns true if this instance contains a status-code list


getStatusCodes

public int[] getStatusCodes()
Gets the status-code list, or null if no status-code list defined


setStatusCodes

public void setStatusCodes(int[] sc)
Sets the status-code list


hasStatusMarkers

public boolean hasStatusMarkers()
Returns true if this instance contains a status-code marker


getStatusMarkers

public int[] getStatusMarkers()
Gets the status-code marker, or null if no status-code marker defined


setStatusMarkers

public void setStatusMarkers(int[] sm)
Sets the status-code marker


getMapEvents

public EventData[] getMapEvents()
                         throws DBException
Throws:
DBException

getMapEvents

public EventData[] getMapEvents(long perDevLimit)
                         throws DBException
Throws:
DBException

getMapEventsByDevice

public java.util.Collection<Device> getMapEventsByDevice(long perDevLimit)
                                                  throws DBException
Throws:
DBException

getShowAddress

public boolean getShowAddress()

setEventDateFrom

public void setEventDateFrom(DateTime fr)

getEventDateFrom

public DateTime getEventDateFrom()

getEventDateFromSec

public long getEventDateFromSec()

setEventDateTo

public void setEventDateTo(DateTime to)

getEventDateTo

public DateTime getEventDateTo()

getEventDateToSec

public long getEventDateToSec()

getDateFormat

public java.lang.String getDateFormat()

setTimeZone

public void setTimeZone(java.util.TimeZone tz,
                        java.lang.String tzStr)

getTimeZoneString

public java.lang.String getTimeZoneString(DateTime dt)

setTimeZone

public void setTimeZone(java.util.TimeZone tz)

getTimeZone

public java.util.TimeZone getTimeZone()

getTimeZonesList

public java.util.List getTimeZonesList()

setEventLimit

public void setEventLimit(long limitCnt)

getEventLimit

public long getEventLimit()

setEventLimitType

public void setEventLimitType(EventData.LimitType limitType)

setEventLimitType

public void setEventLimitType(java.lang.String limitType)

getEventLimitType

public EventData.LimitType getEventLimitType()

setLastEventTime

public void setLastEventTime(DateTime lastTime)

hasLastEvent

public boolean hasLastEvent()

getLastEventTime

public DateTime getLastEventTime()

formatDateTime

public java.lang.String formatDateTime(DateTime dt)

formatDateTime

public java.lang.String formatDateTime(DateTime dt,
                                       java.lang.String dft)

formatDateTime

public java.lang.String formatDateTime(long timestamp)

formatDateTime

public java.lang.String formatDateTime(long timestamp,
                                       java.lang.String dft)

formatDateTime

public java.lang.String formatDateTime(long timestamp,
                                       java.util.TimeZone tmz)

formatDateTime

public java.lang.String formatDateTime(long timestamp,
                                       java.util.TimeZone tmz,
                                       java.lang.String dft)

formatDateTime

public java.lang.String formatDateTime(DateTime dt,
                                       java.util.TimeZone tmz)

formatDateTime

public java.lang.String formatDateTime(DateTime dt,
                                       java.util.TimeZone tmz,
                                       java.lang.String dft)

formatDayNumber

public java.lang.String formatDayNumber(long dayNumber)

formatDayNumber

public java.lang.String formatDayNumber(long dayNumber,
                                        java.lang.String dft)

formatDayNumber

public java.lang.String formatDayNumber(DayNumber dn)

formatDayNumber

public java.lang.String formatDayNumber(DayNumber dn,
                                        java.lang.String dft)

getSpeedUnits

public Account.SpeedUnits getSpeedUnits()

getDistanceUnits

public Account.DistanceUnits getDistanceUnits()

getTemperatureUnits

public Account.TemperatureUnits getTemperatureUnits()

getDeviceTitles

public java.lang.String[] getDeviceTitles()

getDeviceGroupTitles

public java.lang.String[] getDeviceGroupTitles()

getEntityTitles

public java.lang.String[] getEntityTitles()

getAddressTitles

public java.lang.String[] getAddressTitles()

setShowPassword

public void setShowPassword(boolean showPass)

getShowPassword

public boolean getShowPassword()

setEnableDemo

public void setEnableDemo(boolean enableDemo)

getEnableDemo

public boolean getEnableDemo()

getDemoAccountID

public java.lang.String getDemoAccountID()

isDemoAccount

public boolean isDemoAccount()

getDemoDateRange

public java.lang.String[] getDemoDateRange()

getKeyValue

public java.lang.String getKeyValue(java.lang.String key,
                                    java.lang.String arg,
                                    java.lang.String dft)
Specified by:
getKeyValue in interface StringTools.KeyValueMap

GetLoginCount

public int GetLoginCount()
Returns the number of active login session matching the current AccountID/UserID

Returns:
The current number of login sessions for the current Account/User

GetLoginCount

public static int GetLoginCount(javax.servlet.ServletContext sc,
                                java.lang.String accountID,
                                java.lang.String userID)
Returns the current number of login session matching the specified AccountID/UserID

Parameters:
sc - The ServletContext
accountID - The AccountID
userID - The UserID, or null for all users
Returns:
The current number of login sessions for the specified Account/User