|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Presence interface represents a presence profile (contact rule) for a user. A presence profile describes how a user wishes to be contacted by different communication types.
Field Summary | |
static int |
ACTION_DO_NOT_SEND_MSG Notification action. |
static int |
ACTION_SEND_MSG_LATER Notification action. |
static int |
ACTION_SEND_MSG_NOW Notification action. |
static int |
DELAY_MSG_DURING_BLACKOUT Delivery action during blackout. |
static int |
DISCARD_MSG_DURING_BLACKOUT Delivery action during blackout. |
static int |
EMAIL_CHANNEL Channel type. |
static int |
FAX_CHANNEL Channel type. |
static int |
IM_CHANNEL Channel type. |
static int |
MESSAGING_CHANNEL Channel type. |
static int |
MMS_CHANNEL Channel type. |
static int |
SMS_CHANNEL Channel type. |
static int |
TYPEID The type id of this class. |
static java.lang.String |
TYPENAME The constant class type identifier. |
static int |
UNASSIGNED_ID When particular communication type is not available/used, its corresponding device address ID is set to this constant. |
static int |
VOICE_CHANNEL Channel type. |
Method Summary | |
int |
canSend() Before sending any alert/notification, sender needs to call this method to determine whether it is fine to send an alert/notification. |
int |
getDeliveryAction() Return the delivery action for notifications generated outside the delivery period. |
DeliveryPeriod |
getDeliveryPeriod() Return the delivery period for notifications. |
DeviceAddress |
getEmailDeviceAddress() Return the device address for email communication. |
long |
getEmailDeviceAddressID() Return the ID of the device address for email communication. |
DeviceAddress |
getFaxDeviceAddress() Return the device address for fax communication. |
long |
getFaxDeviceAddressID() Return the ID of the device address for fax communication. |
long |
getID() Return the presence's ID. |
DeviceAddress |
getMessagingDeviceAddress() Return the device address for messaging (including SMS, IM). |
long |
getMessagingDeviceAddressID() Return the ID of the device address for messaging (including SMS, IM). |
java.lang.String |
getName() Return the presence's name. |
DeviceAddress |
getPrimaryNotificationDeviceAddress() Return the primary device address for notification. |
int |
getPrimaryNotificationType() Return the primary notification type. |
DeviceAddress |
getSMSDeviceAddress() Return the device address for SMS. |
long |
getSMSDeviceAddressID() Return the ID of the device address for SMS. |
long |
getUserID() Return the ID of the user who owns this presence profile. |
DeviceAddress |
getVoiceDeviceAddress() Return the device address for voice communication. |
long |
getVoiceDeviceAddressID() Return the ID of the device address for voice communication. |
void |
setDeliveryAction(int action) Set the delivery action for notifications generated outside the delivery period. |
void |
setDeliveryPeriod(DeliveryPeriod dp) Set the delivery period for notifications. |
void |
setEmailDeviceAddress(DeviceAddress emailDevAddr) Set the device address for email communication. |
void |
setEmailDeviceAddress(long emailDevAddrID) Set the device address for email communication. |
void |
setFaxDeviceAddress(DeviceAddress faxDevAddr) Set the device address for fax communication. |
void |
setFaxDeviceAddress(long faxDevAddrID) Set the device address for fax communication. |
void |
setMessagingDeviceAddress(DeviceAddress msgDevAddr) Set the device address for messaging. |
void |
setMessagingDeviceAddress(long msgDevAddrID) Set the device address for SMS. |
void |
setName(java.lang.String name) Set the presence's name. |
void |
setPrimaryNotificationType(int type) Set the primary notification type. |
void |
setSMSDeviceAddress(DeviceAddress msgDevAddr) Set the device address for SMS. |
void |
setSMSDeviceAddress(long msgDevAddrID) Set the device address for SMS. |
void |
setUserID(long userID) Set the user's ID of this presence. |
void |
setVoiceDeviceAddress(DeviceAddress voiceDevAddr) Set the device address for voice communication. |
void |
setVoiceDeviceAddress(long voiceDevAddrID) Set the device address for voice communication. |
Field Detail |
public static final java.lang.String TYPENAME
public static final int TYPEID
public static final int UNASSIGNED_ID
public static final int VOICE_CHANNEL
public static final int FAX_CHANNEL
public static final int EMAIL_CHANNEL
public static final int SMS_CHANNEL
public static final int IM_CHANNEL
public static final int MMS_CHANNEL
public static final int MESSAGING_CHANNEL
public static final int DISCARD_MSG_DURING_BLACKOUT
public static final int DELAY_MSG_DURING_BLACKOUT
public static final int ACTION_SEND_MSG_NOW
public static final int ACTION_SEND_MSG_LATER
public static final int ACTION_DO_NOT_SEND_MSG
Method Detail |
public long getID()
public java.lang.String getName()
public long getUserID()
public DeviceAddress getVoiceDeviceAddress()
public long getVoiceDeviceAddressID()
public DeviceAddress getFaxDeviceAddress()
public long getFaxDeviceAddressID()
public DeviceAddress getEmailDeviceAddress()
public long getEmailDeviceAddressID()
public DeviceAddress getSMSDeviceAddress()
getMessagingDeviceAddress()
public DeviceAddress getMessagingDeviceAddress()
public long getSMSDeviceAddressID()
getMessagingDeviceAddressID()
public long getMessagingDeviceAddressID()
public DeviceAddress getPrimaryNotificationDeviceAddress()
setPrimaryNotificationType.
public int getPrimaryNotificationType()
setPrimaryNotificationType.
public void setName(java.lang.String name)
name
- the presence's name.public void setUserID(long userID)
public void setVoiceDeviceAddress(DeviceAddress voiceDevAddr)
voiceDevAddr
- the voice device address.public void setVoiceDeviceAddress(long voiceDevAddrID)
voiceDevAddrID
- the ID of the voice device address.public void setFaxDeviceAddress(DeviceAddress faxDevAddr)
faxDevAddr
- the fax device address.public void setFaxDeviceAddress(long faxDevAddrID)
faxDevAddrID
- the ID of the fax device address.public void setEmailDeviceAddress(DeviceAddress emailDevAddr)
emailDevAddr
- the email device address.public void setEmailDeviceAddress(long emailDevAddrID)
emailDevAddrID
- the ID of the email device address.public void setSMSDeviceAddress(DeviceAddress msgDevAddr)
msgDevAddr
- the SMS device address.setMessagingDeviceAddress(DeviceAddress)
public void setSMSDeviceAddress(long msgDevAddrID)
msgDevAddrID
- the ID of the SMS device address.setMessagingDeviceAddress(long)
public void setMessagingDeviceAddress(DeviceAddress msgDevAddr)
msgDevAddr
- the messaging device address.public void setMessagingDeviceAddress(long msgDevAddrID)
msgDevAddrID
- the ID of the messaging device address.public void setPrimaryNotificationType(int type)
type
- the type as either VOICE_CHANNEL, FAX_CHANNEL, EMAIL_CHANNEL, or MESSAGING_CHANNEL.public DeliveryPeriod getDeliveryPeriod()
public void setDeliveryPeriod(DeliveryPeriod dp)
public int getDeliveryAction()
public void setDeliveryAction(int action)
action
- either DISCARD_MSG_DURING_BLACKOUT or DELAY_MSG_DURING_BLACKOUT.public int canSend()
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |