|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.tools.RequestProperties
public class RequestProperties
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 |
---|
public static final java.lang.String HTML_LOGIN_FRAME
public static final java.lang.String _HTML_LOGIN_FRAME
public static final java.lang.String HTML_LOGIN
public static final java.lang.String _HTML_LOGIN
public static final PrivateLabel NullPrivateLabel
public static final int PAGE_FRAME_HEADER
public static final int PAGE_FRAME_NAVIGATION
public static final int PAGE_FRAME_FOOTER
public static final int PAGE_FRAME_LEFT
public static final int PAGE_FRAME_RIGHT
public static final int PAGE_FRAME_CONTENT
public static final int PAGE_FRAME_CONTENT_MENUBAR
public static final int PAGE_FRAME_ALL
public static final java.lang.String KEY_pageName
public static final java.lang.String KEY_navigation
public static final java.lang.String KEY_pageTitle
public static final java.lang.String KEY_copyright
public static final java.lang.String KEY_isLoggedIn
public static final java.lang.String KEY_loginURL
public static final java.lang.String KEY_loginCount
public static final java.lang.String KEY_i18n_Login
public static final java.lang.String KEY_accountID
public static final java.lang.String KEY_accountDesc
public static final java.lang.String KEY_accountJsp
public static final java.lang.String KEY_i18n_Account
public static final java.lang.String KEY_i18n_Accounts
public static final java.lang.String KEY_deviceID
public static final java.lang.String KEY_deviceDesc
public static final java.lang.String KEY_i18n_Device
public static final java.lang.String KEY_i18n_Devices
public static final java.lang.String KEY_groupID
public static final java.lang.String KEY_groupDesc
public static final java.lang.String KEY_i18n_Group
public static final java.lang.String KEY_i18n_Groups
public static final java.lang.String KEY_userID
public static final java.lang.String KEY_userDesc
public static final java.lang.String KEY_i18n_User
public static final java.lang.String KEY_i18n_Users
public static final java.lang.String KEY_speedUnits
public static final java.lang.String KEY_altitudeUnits
public static final java.lang.String KEY_accuracyUnits
public static final java.lang.String KEY_distanceUnits
public static final java.lang.String KEY_economyUnits
public static final java.lang.String KEY_pressureUnits
public static final java.lang.String KEY_volumeUnits
public static final java.lang.String KEY_currency
public static final java.lang.String KEY_currencySymbol
public static final java.lang.String KEY_statusCodeDesc
public static final java.lang.String KEY_version
public static final java.lang.String KEY_hostname
public static final java.lang.String KEY_locale
public static final java.lang.String KEY_isLocaleRTL
public static final java.lang.String KEY_ipAddress
public static final java.lang.String KEY_privateLabelName
Constructor Detail |
---|
public RequestProperties()
Method Detail |
---|
public static java.lang.String TRACK_BASE_URI()
public boolean getEncodeEMailHTML()
public void setEncodeEMailHTML(boolean state)
public void setBaseURI(java.lang.String baseUri)
public java.lang.String getBaseURI()
public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public URIArg getHttpServletRequestURIArg(boolean inclUserPass)
public boolean isSecure()
public void setSoapRequest(boolean soap)
public boolean isSoapRequest()
public void setCookiesRequired(boolean cookiesReq)
public boolean getCookiesRequired()
public void setIPAddress(java.lang.String ipAddr)
public java.lang.String getIPAddress()
public void setPageName(java.lang.String page)
public java.lang.String getPageName()
public WebPage getWebPage()
public java.lang.String getJspName()
public java.lang.String getJspURI()
public void setWebPageURI(java.lang.String uri)
public java.lang.String getWebPageURI()
public void setReport(boolean report)
public boolean isReport()
public void setFleet(boolean fleet)
public boolean isFleet()
public long getFleetDeviceEventCount()
public void setDeviceNotifyEventsOnly(boolean notifyEvents)
public boolean getDeviceNotifyEventsOnly()
public void setPageNavigationHTML(java.lang.String pageNav)
public java.lang.String getPageNavigationHTML()
public void setPageFrameSections(int pfs)
public int getPageFrameSections()
public void setPageFrameContentOnly(boolean contentOnly)
public boolean getPageFrameContentOnly()
public boolean writePageFrameSection(int pfs)
public void setCommandName(java.lang.String cmd)
public java.lang.String getCommandName()
public void setCommandArg(java.lang.String arg)
public java.lang.String getCommandArg()
public void setPrivateLabel(PrivateLabel _privLabel)
public PrivateLabel getPrivateLabel()
public void setLocaleString(java.lang.String localeStr)
localeStr
- The locale String associated with this Sessionpublic java.util.Locale getLocale()
public void setMapProvider(MapProvider mapProv)
public MapProvider getMapProvider()
public OrderedSet<java.lang.String> getMapProviderIconKeys()
public java.util.List<java.lang.String> getMapProviderPushpinIDs()
public PushpinIcon getPushpinIcon(java.lang.String ppName)
public PushpinIcon getPushpinIcon(int ppNdx)
public void _setLoginErrorAlert()
public boolean _isLoginErrorAlert()
public boolean isLoggedInFromSysAdmin()
public static boolean isLoggedInFromSysAdmin(javax.servlet.http.HttpServletRequest request, PrivateLabel _privLabel)
public boolean isReturnToSysAdminEnabled()
public static boolean isReturnToSysAdminEnabled(javax.servlet.http.HttpServletRequest request, PrivateLabel _privLabel)
public void setCurrentAccount(Account account)
public Account getCurrentAccount()
public java.lang.String getCurrentAccountID()
public boolean isLoggedIn()
public void setCurrentUser(User user)
public User getCurrentUser()
public java.lang.String getCurrentUserEncodedPassword()
public java.lang.String getCurrentUserID()
public void setUserList(java.lang.String[] userList)
public java.lang.String[] getUserList()
public void setSelectedDeviceGroupID(java.lang.String groupID)
public void setSelectedDeviceGroupID(java.lang.String groupID, boolean isActualSpecifiedGroup)
public java.lang.String getSelectedDeviceGroupID()
public boolean isActualSpecifiedGroup()
public DeviceGroup getSelectedDeviceGroup()
public void clearDeviceGroupList()
public OrderedSet<java.lang.String> getDeviceGroupIDList(boolean inclAll)
public java.lang.String getDeviceGroupDescription(java.lang.String grpID, boolean rtnDispName)
public void setSelectedDeviceID(java.lang.String devID)
public void setSelectedDeviceID(java.lang.String devID, boolean isActualSpecifiedDevice)
public java.lang.String getSelectedDeviceID()
public boolean isActualSpecifiedDevice()
public Device getSelectedDevice()
public void clearDeviceList()
public OrderedSet<java.lang.String> getDeviceIDList(boolean inclInactv)
protected OrderedSet<java.lang.String> _getDeviceIDsForSelectedGroup(boolean isFleet, boolean inclInactv) throws DBException
DBException
public java.lang.String getDeviceDescription(java.lang.String devID, boolean rtnDispName)
public java.util.List<IDDescription> createGroupIDDescriptionList(boolean inclAll, IDDescription.SortBy sortBy)
public OrderedMap<java.lang.String,java.lang.String> createGroupDescriptionMap(boolean inclID, boolean inclAll)
public java.util.List<IDDescription> createDeviceIDDescriptionList(boolean inclInactv, IDDescription.SortBy sortBy)
public OrderedMap<java.lang.String,java.lang.String> createDeviceDescriptionMap(boolean inclID)
public java.util.Map<java.lang.String,MapShape> getZoomRegionShapes()
public boolean hasStatusCodes()
public int[] getStatusCodes()
public void setStatusCodes(int[] sc)
public boolean hasStatusMarkers()
public int[] getStatusMarkers()
public void setStatusMarkers(int[] sm)
public EventData[] getMapEvents() throws DBException
DBException
public EventData[] getMapEvents(long perDevLimit) throws DBException
DBException
public java.util.Collection<Device> getMapEventsByDevice(long perDevLimit) throws DBException
DBException
public boolean getShowAddress()
public void setEventDateFrom(DateTime fr)
public DateTime getEventDateFrom()
public long getEventDateFromSec()
public void setEventDateTo(DateTime to)
public DateTime getEventDateTo()
public long getEventDateToSec()
public java.lang.String getDateFormat()
public void setTimeZone(java.util.TimeZone tz, java.lang.String tzStr)
public java.lang.String getTimeZoneString(DateTime dt)
public void setTimeZone(java.util.TimeZone tz)
public java.util.TimeZone getTimeZone()
public java.util.List getTimeZonesList()
public void setEventLimit(long limitCnt)
public long getEventLimit()
public void setEventLimitType(EventData.LimitType limitType)
public void setEventLimitType(java.lang.String limitType)
public EventData.LimitType getEventLimitType()
public void setLastEventTime(DateTime lastTime)
public boolean hasLastEvent()
public DateTime getLastEventTime()
public java.lang.String formatDateTime(DateTime dt)
public java.lang.String formatDateTime(DateTime dt, java.lang.String dft)
public java.lang.String formatDateTime(long timestamp)
public java.lang.String formatDateTime(long timestamp, java.lang.String dft)
public java.lang.String formatDateTime(long timestamp, java.util.TimeZone tmz)
public java.lang.String formatDateTime(long timestamp, java.util.TimeZone tmz, java.lang.String dft)
public java.lang.String formatDateTime(DateTime dt, java.util.TimeZone tmz)
public java.lang.String formatDateTime(DateTime dt, java.util.TimeZone tmz, java.lang.String dft)
public java.lang.String formatDayNumber(long dayNumber)
public java.lang.String formatDayNumber(long dayNumber, java.lang.String dft)
public java.lang.String formatDayNumber(DayNumber dn)
public java.lang.String formatDayNumber(DayNumber dn, java.lang.String dft)
public Account.SpeedUnits getSpeedUnits()
public Account.DistanceUnits getDistanceUnits()
public Account.TemperatureUnits getTemperatureUnits()
public java.lang.String[] getDeviceTitles()
public java.lang.String[] getDeviceGroupTitles()
public java.lang.String[] getEntityTitles()
public java.lang.String[] getAddressTitles()
public void setShowPassword(boolean showPass)
public boolean getShowPassword()
public void setEnableDemo(boolean enableDemo)
public boolean getEnableDemo()
public java.lang.String getDemoAccountID()
public boolean isDemoAccount()
public java.lang.String[] getDemoDateRange()
public java.lang.String getKeyValue(java.lang.String key, java.lang.String arg, java.lang.String dft)
getKeyValue
in interface StringTools.KeyValueMap
public int GetLoginCount()
public static int GetLoginCount(javax.servlet.ServletContext sc, java.lang.String accountID, java.lang.String userID)
sc
- The ServletContextaccountID
- The AccountIDuserID
- The UserID, or null for all users
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |