Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface DeviceAddress

All Superinterfaces:
ModelObject, XMLObject

public interface DeviceAddress
extends ModelObject

A DeviceAddress is the device specific address like a phone or e-mail address.


Field Summary
static int TYPEID
          The type id of this class.
static java.lang.String TYPENAME
          The constant class type identifier.

 

Method Summary
 boolean decrementAlertSent()
          Decrements the daily counter for number of alerts sent
 java.lang.String getAddress()
          Gets the address property value
 int getAlertSent()
           
 AuthLevel getAuthLevel()
          Gets the Auth Level, for the authentication level (High, Medium, Low) used to automatically set up the user's session.
 java.lang.String getCarrier()
          Gets the carrier property value
 java.lang.String getControlNumber()
          Gets the control number
 DeliveryType getDeliveryType()
          Gets the deliveryType property value
 java.lang.String getDeviceId()
          Gets the Device Id
 java.sql.Timestamp getLastAuthentication()
          Gets the timestamp of the last authentication property value
 int getMaxAlerts()
           
 java.lang.String getModel()
          Gets the model property value
 java.lang.String getName()
          Gets the name property value
 java.lang.String getNormalizedAddress()
          Gets the normailized address
 User getUser()
          Gets the user property value
 UserDevice getUserDevice()
          Get the user device that owns the device address.
 boolean hasDeviceAuthenticationExpired()
          Query if the authentication status has expired.
 boolean incrementAlertSent()
          Increments the daily counter for number of alerts sent
 boolean isValid()
          Is the device address valid?
 boolean needToAuthenticate()
          Gets the need to authenticate property value
 void setAddress(DeliveryType deliveryType, java.lang.String address)
          Sets the address property value
 void setAuthLevel(AuthLevel authLevel)
          Sets the Auth level for the device.
 void setCarrier(java.lang.String carrier)
          Sets the carrier property value
 void setDeviceId(java.lang.String deviceId)
          Sets the Device Id property value
 void setLastAuthentication(java.sql.Timestamp lastAuthentication)
          Sets the timestamp of the last authentication property value
 void setMaxAlerts(int maxAlerts)
          Sets the maxAlerts property value
 void setModel(java.lang.String model)
          Sets the model property value
 void setName(java.lang.String name)
          Sets the name property value
 void setNeedToAuthenticate(boolean val)
          Sets the need to authenticate property value
 void setUser(User user)
          Sets the user propery value
 void setUserDevice(UserDevice device)
          Sets the user device that owns the device address.
 void touchLastAuthentication()
          Updates the timestamp of the last authentication property value
 boolean validate(java.lang.String controlNumber)
          Validate the device address

 

Methods inherited from interface oracle.panama.model.ModelObject
delete, getCreatedDate, getId, getLastModifiedDate, getTypeId, getTypeName, isSystem, setSystem, undoAll

 

Methods inherited from interface oracle.panama.model.XMLObject
setXML, toXML

 

Field Detail

TYPEID

public static final int TYPEID
The type id of this class.
See Also:
Constant Field Values

TYPENAME

public static final java.lang.String TYPENAME
The constant class type identifier.
See Also:
Constant Field Values

Method Detail

decrementAlertSent

public boolean decrementAlertSent()
Decrements the daily counter for number of alerts sent
Returns:
true if the operation is succesful, will return false if alert sent is already 0

getAddress

public java.lang.String getAddress()
Gets the address property value
Returns:
the address

getAlertSent

public int getAlertSent()
Returns:
number of alerts sent on this device today

getAuthLevel

public AuthLevel getAuthLevel()
Gets the Auth Level, for the authentication level (High, Medium, Low) used to automatically set up the user's session.
Returns:
the authentication Level of the device

getCarrier

public java.lang.String getCarrier()
Gets the carrier property value

getControlNumber

public java.lang.String getControlNumber()
Gets the control number
Returns:
the control number

getDeliveryType

public DeliveryType getDeliveryType()
Gets the deliveryType property value
Returns:
the delivery type property value

getDeviceId

public java.lang.String getDeviceId()
Gets the Device Id
Returns:
the Device Id

getLastAuthentication

public java.sql.Timestamp getLastAuthentication()
Gets the timestamp of the last authentication property value
Returns:
timestamp of the last authentication of the device address

getMaxAlerts

public int getMaxAlerts()
Returns:
the maximum number of alert message the device address can receive

getModel

public java.lang.String getModel()
Gets the model property value
Returns:
the device model

getName

public java.lang.String getName()
Gets the name property value
Specified by:
getName in interface ModelObject
Returns:
name of the device address

getNormalizedAddress

public java.lang.String getNormalizedAddress()
Gets the normailized address
Returns:
the normalized Address

getUser

public User getUser()
Gets the user property value
Returns:
the User

getUserDevice

public UserDevice getUserDevice()
Get the user device that owns the device address.
Returns:
the owner user device

hasDeviceAuthenticationExpired

public boolean hasDeviceAuthenticationExpired()
Query if the authentication status has expired.

incrementAlertSent

public boolean incrementAlertSent()
Increments the daily counter for number of alerts sent
Returns:
true if the operation is succesful, will return false if alert sent >= max alerts

isValid

public boolean isValid()
Is the device address valid?
Returns:
true if the device address is already validated

needToAuthenticate

public boolean needToAuthenticate()
Gets the need to authenticate property value
Returns:
need to authenticate status of the device address

setAddress

public void setAddress(DeliveryType deliveryType,
                       java.lang.String address)
Sets the address property value
Parameters:
address - the address
deliveryType - the new property value

setAuthLevel

public void setAuthLevel(AuthLevel authLevel)
Sets the Auth level for the device.

setCarrier

public void setCarrier(java.lang.String carrier)
Sets the carrier property value
Parameters:
carrier - the new property value

setDeviceId

public void setDeviceId(java.lang.String deviceId)
Sets the Device Id property value

setLastAuthentication

public void setLastAuthentication(java.sql.Timestamp lastAuthentication)
Sets the timestamp of the last authentication property value

setMaxAlerts

public void setMaxAlerts(int maxAlerts)
Sets the maxAlerts property value
Parameters:
maxAlerts - the new property value

setModel

public void setModel(java.lang.String model)
Sets the model property value
Parameters:
model - the model of the device

setName

public void setName(java.lang.String name)
Sets the name property value
Specified by:
setName in interface ModelObject
Parameters:
name - the new (name) property value

setNeedToAuthenticate

public void setNeedToAuthenticate(boolean val)
Sets the need to authenticate property value

setUser

public void setUser(User user)
Sets the user propery value
Parameters:
user - the new (user) property value

setUserDevice

public void setUserDevice(UserDevice device)
Sets the user device that owns the device address.

touchLastAuthentication

public void touchLastAuthentication()
Updates the timestamp of the last authentication property value

validate

public boolean validate(java.lang.String controlNumber)
Validate the device address
Parameters:
controlNumber - the control number
Returns:
true if the validation was successful

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.