Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface Alert

All Superinterfaces:
AsyncService, DeliveryServiceLink, Link, ModelObject, Service, XMLObject

public interface Alert
extends Link

Alert is a service to be automatically executed (time interval specification).


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

 

Fields inherited from interface oracle.panama.model.Service
CATEGORY_MASTER, CATEGORY_SERVICE, CATEGORY_USER_HOME

 

Method Summary
 void addAddress(AlertAddress address)
          Deprecated. Adds a new address to the list of addresses to send the result to.
 AlertAddress[] getAddresses()
          Deprecated. Returns the list of addresses to send the result to.
 java.lang.String getInterval()
          Deprecated. Gets the interval.
 java.util.Date getNext()
          Deprecated. Gets the next time to run.
 boolean isScheduled()
          Deprecated. Check if this job really is scheduled.
 void removeAddress(AlertAddress address)
          Deprecated. Removes an address from the list of addresses to send the result to.
 void setAddresses(AlertAddress[] addresses)
          Deprecated. Sets the list of addresses to send the result to.
 void setInterval(java.lang.String interval)
          Deprecated. Sets the interval property (String) value.
 void setNext(java.util.Date next)
          Deprecated. Set the next execution time and date.

 

Methods inherited from interface oracle.panama.model.Link
getInputArguments, getLanguage, getLastService, getMergedInputArguments, getMergedOutputArguments, getNextService, getOutputArguments, setInputArguments, setOutputArguments

 

Methods inherited from interface oracle.panama.model.AsyncService
addAsyncAddress, addAsyncName, getAsyncAddress, getAsyncAddresses, getAsyncArguments, getAsyncName, getAsyncNames, getParameterDelimiter, getServiceHelpText, isAsyncEnabled, isSilent, isSupportsVariableAsyncArgs, removeAsyncAddress, removeAsyncName, setAsyncAddress, setAsyncAddresses, setAsyncArguments, setAsyncName, setAsyncNames, setParameterDelimiter, setServiceHelpText

 

Methods inherited from interface oracle.panama.model.Service
addDeviceGroup, addDeviceGroup, addDeviceGroup, createPresets, createPresets, deletePresets, deletePresets, getAdminURL, getAllPresets, getAreaId, getCategory, getCost, getCustomizationPageURL, getDescription, getDeviceGroupAssociations, getGroups, getParent, getPresets, getPresets, getPrimaryAudio, getPrimaryImage, getSecondaryAudio, getSecondaryImage, getSequenceNo, getServiceAccessPoints, getShortName, getTransformer, getURL, getURLPathParameter, getURLPathParameter, getUserOwner, getVirtualURL, invoke, isRedirectHelp, isSessionless, isValid, isViewCustomizable, isVisible, removeAllDeviceGroups, removeAllGroups, setAdminURL, setAreaId, setCategory, setCost, setCustomizationPageURL, setDescription, setGroups, setParent, setPrimaryAudio, setPrimaryImage, setRedirectHelp, setSecondaryAudio, setSecondaryImage, setSequenceNo, setShortName, setUserOwner, setValid, setViewCustomizable, setVirtualURL, setVisible

 

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

 

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

 

Methods inherited from interface oracle.panama.model.DeliveryServiceLink
getDRMPolicy, setDRMPolicy

 

Field Detail

TYPEID

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

TYPENAME

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

Method Detail

addAddress

public void addAddress(AlertAddress address)
Deprecated.
Adds a new address to the list of addresses to send the result to.
Parameters:
address - the new address
See Also:
removeAddress(oracle.panama.model.AlertAddress)

getAddresses

public AlertAddress[] getAddresses()
Deprecated.
Returns the list of addresses to send the result to.
Returns:
AlertAddress[]
See Also:
setAddresses(AlertAddress[])

getInterval

public java.lang.String getInterval()
Deprecated.
Gets the interval.
Returns:
the interval specificartion.
See Also:
setInterval(java.lang.String)

getNext

public java.util.Date getNext()
Deprecated.
Gets the next time to run.
Returns:
the next time this job will be executed.

isScheduled

public boolean isScheduled()
Deprecated.
Check if this job really is scheduled.
Returns:
true if the job is scheduled otherwise false.

removeAddress

public void removeAddress(AlertAddress address)
Deprecated.
Removes an address from the list of addresses to send the result to.
Parameters:
address - to be removed
See Also:
removeAddress(oracle.panama.model.AlertAddress)

setAddresses

public void setAddresses(AlertAddress[] addresses)
Deprecated.
Sets the list of addresses to send the result to.
Parameters:
addresses - to send the result to.
See Also:
getAddresses()

setInterval

public void setInterval(java.lang.String interval)
Deprecated.
Sets the interval property (String) value. The interval can specified by usage of the format "[#]<keyword>", where the keywords are:

Example:

Execute the job each weekday: "WE".

Execute the job each monday: Set the next date to a monday and specify the interval to "7D".

Parameters:
interval - the new value for the property.
Throws:
PanamaRuntimeException - if the format is invalid.
See Also:
getInterval(), setNext(java.util.Date)

setNext

public void setNext(java.util.Date next)
Deprecated.
Set the next execution time and date.

This date is when the Job will be invoked again. Note: The interval specification is used to calculate the next value each time the job is executed. But this calculated value can always be overriden by an explicit call to this method.

The time portion (hour, minute, second) of the date is valid when the system decides the exact time of day to execute this job.

If a job fails then it will be stopped, and it has to be triggered to start running again by a new call of this method again.

Parameters:
next - the new next date.
See Also:
getNext(), setInterval(java.lang.String)

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.