Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.portal
Class LocationMarkController

java.lang.Object
  |
  +--oracle.panama.portal.LocationMarkController
All Implemented Interfaces:
java.io.Serializable

public class LocationMarkController
extends java.lang.Object
implements java.io.Serializable

LocationMarkController handles location mark related operations, such as retrieving/updating parameters of a location mark, creating/deleting a location mark.

See Also:
Serialized Form

Field Summary
static java.lang.String ADDRESSLASTLINE
          Key for retrieving location mark address last line value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String ADDRESSLINE1
          Key for retrieving location mark address line 1 value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String ADDRESSLINE2
          Key for retrieving location mark address line 2 value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String BLOCK
          Key for retrieving location mark block value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String CITY
          Key for retrieving location mark city value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String COMPANYNAME
          Key for retrieving location mark company name value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String COUNTRY
          Key for retrieving location mark country value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String COUNTY
          Key for retrieving location county name value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String DEFAULT
          request parameter name used in URLs.
static java.lang.String DESCRIPTION
          Key for retrieving location mark description value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String GEOCODE
          request parameter name used in URLs.
static java.lang.String LABEL
          Key for retrieving location mark label value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String NAME
          Key for retrieving location mark name value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String POSTALCODE
          Key for retrieving location mark postal code value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String POSTALCODEEXT
          Key for retrieving location mark postal code ext value from the parameter Hashtable passing to/from the portal pages.
static java.lang.String STATE
          Key for retrieving location mark state value from the parameter Hashtable passing to/from the portal pages.

 

Method Summary
 LocationMark createNewLocationMark(java.lang.String name, Request apiRequest)
          create a new location mark.
 void deleteLocationMark(long locationMarkId)
          delete a location mark.
static LocationMarkController getInstance()
          The singleton thread-safe getter.
 java.lang.String getLocationString(Location loc)
           
 java.util.Hashtable getParametersHash(long locationMarkId)
          get parameter name-value Hashtable of a location mark.
 boolean setParameters(long locationMarkId, java.util.Hashtable paramHash, boolean isNew, boolean toGeocode)
          set parameter values of a location mark.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

NAME

public static final java.lang.String NAME
Key for retrieving location mark name value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
Key for retrieving location mark description value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
Key for retrieving location mark label value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

COMPANYNAME

public static final java.lang.String COMPANYNAME
Key for retrieving location mark company name value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

ADDRESSLINE1

public static final java.lang.String ADDRESSLINE1
Key for retrieving location mark address line 1 value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

ADDRESSLINE2

public static final java.lang.String ADDRESSLINE2
Key for retrieving location mark address line 2 value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

ADDRESSLASTLINE

public static final java.lang.String ADDRESSLASTLINE
Key for retrieving location mark address last line value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

BLOCK

public static final java.lang.String BLOCK
Key for retrieving location mark block value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

CITY

public static final java.lang.String CITY
Key for retrieving location mark city value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

COUNTY

public static final java.lang.String COUNTY
Key for retrieving location county name value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

STATE

public static final java.lang.String STATE
Key for retrieving location mark state value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

POSTALCODE

public static final java.lang.String POSTALCODE
Key for retrieving location mark postal code value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

POSTALCODEEXT

public static final java.lang.String POSTALCODEEXT
Key for retrieving location mark postal code ext value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

COUNTRY

public static final java.lang.String COUNTRY
Key for retrieving location mark country value from the parameter Hashtable passing to/from the portal pages.
See Also:
Constant Field Values

DEFAULT

public static final java.lang.String DEFAULT
request parameter name used in URLs.
See Also:
Constant Field Values

GEOCODE

public static final java.lang.String GEOCODE
request parameter name used in URLs.
See Also:
Constant Field Values
Method Detail

getInstance

public static LocationMarkController getInstance()
The singleton thread-safe getter.
Returns:
the LocationMarkController singleton interface.

getParametersHash

public java.util.Hashtable getParametersHash(long locationMarkId)
                                      throws PortalException
get parameter name-value Hashtable of a location mark.
Parameters:
locationMarkId - queried location mark ID.
Returns:
parameter name-value Hashtable of a location mark.
PortalException

setParameters

public boolean setParameters(long locationMarkId,
                             java.util.Hashtable paramHash,
                             boolean isNew,
                             boolean toGeocode)
                      throws PortalException
set parameter values of a location mark.
Parameters:
locationMarkId - queried location mark ID.
paramHash - parameter name-value Hashtable to update
isNew - flag to show setting parameters for a newly created location mark or an old one
PortalException

createNewLocationMark

public LocationMark createNewLocationMark(java.lang.String name,
Request apiRequest)
                                   throws PortalException
create a new location mark.
Parameters:
name - new location mark name.
apiRequest - current validated Request.
Returns:
the new LocationMark.
PortalException

deleteLocationMark

public void deleteLocationMark(long locationMarkId)
                        throws PortalException
delete a location mark.
Parameters:
locationMarkId - location mark ID to be deleted.
PortalException

getLocationString

public java.lang.String getLocationString(Location loc)

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.