Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface DeliverableContent

All Superinterfaces:
ModelObject, XMLObject

public interface DeliverableContent
extends ModelObject

DeliverableContent, representing downlaodable/deliverable Mobile Contents, like J2ME Midlet and Ringtone.


Field Summary

 

Fields inherited from interface oracle.panama.model.ModelObject
TYPEID

 

Method Summary
 DeliverableContentItem addContentItem(User owner, java.lang.String mimeType, byte[] content)
          Add a new downloadable mobile content piece
 void addExcludedDevice(PhysicalDevice pDevice)
          Set Physical Device pDevice not capable for this DeliverableContent
 void addSupportedDevice(PhysicalDevice pDevice)
          add Physical Device pDevice in a list of capable devices for this DeliverableContent
 void clearUnsentDeliverableCtntEvents()
          Clear un-sent DeliverableCtntEvents associated with this DeliverableContent
 DeliverableContentItem[] getAllContentItems()
          Get a list of individual downloadable mobile content pieces
 DeliverableContentItem getContentItemByMimeType(java.lang.String mimeType)
          Get the DeliverableContentItem associated with MIME TYPE
 DeliverableContentStatus getDCtntStatus()
           
 DeliverableApplication getDeliverableApplication()
          Get the place holder of this DeliverableContent
 java.lang.String getDescription()
          Gets the readable decription of the DeliverableContent
 java.lang.Object getDeviceCapabilityProperty(java.lang.String name)
          Get the Device Capability Property Object associated with Property Name
 java.util.Iterator getDeviceCapabilityPropertyNames()
          A list of supported Device Capability Property Names
 java.lang.String getDisplayName()
          Gets the display name of the DeliverableContent
 java.lang.Long getDRMID()
           
 PhysicalDevice[] getExcludedDevices()
          Return a list of uncapable devices for this DeliverableContent
 java.lang.String getName()
          Gets the name of the DeliverableContent
 PhysicalDevice[] getSupportedDevices()
          Return a list of capable devices for this DeliverableContent
 User getUserOwner()
           
 java.util.Date getVerifyTime()
           
 java.lang.String getVersion()
          Gets the version of the DeliverableContent
 boolean isDeviceCapable(PhysicalDevice pDevice)
          DeliverableContent will decide whether a physical device is capable based on the following 3 step process: 1.
 boolean isValid()
           
 void removeDeviceCapabilityProperty(java.lang.String name)
          Remove Device Capability Property Object associated with property name
 void removeExcludedDevice(PhysicalDevice pDevice)
          remove the Physical Device pDevice from the list of uncapable devices
 void removeSupportedDevice(PhysicalDevice pDevice)
          remove Physical Device pDevice from a list of capable devices for this DeliverableContent
 void sendDeliverableCtntEvents()
          Send out DeliverableCtntEvents associated with this DeliverableContent
 void setDeliverableContentStatus(DeliverableContentStatus dCtntStatus)
          Set the Status of this DeliverableContent.
 void setDescription(java.lang.String desc)
          Sets the readable description of DeliverableContent
 void setDeviceCapabilityProperty(java.lang.String name, java.lang.Object value)
          Set Device Capability Property Object associated with property name
 void setDisplayName(java.lang.String name)
          Sets the display name of the DeliverableContent
 void setDRMID(java.lang.Long drmID)
          Set the DRM Policy for this DeliverableContent.
 void setName(java.lang.String name)
          Sets the name of the DeliverableContent
 void setUserOwner(User owner)
          Set the owner of this DeliverableContent.
 void setValid(boolean valid)
          Allow the administrator to set a DeliverableContent to valid or invalid.

 

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

 

Method Detail

addContentItem

public DeliverableContentItem addContentItem(User owner,
                                             java.lang.String mimeType,
                                             byte[] content)
                                      throws oracle.panama.model.VerifyContentException,
                                             oracle.panama.model.AuthenticateContentException
Add a new downloadable mobile content piece
Returns:
Throws:
oracle.panama.model.VerifyContentException
oracle.panama.model.AuthenticateContentException

addExcludedDevice

public void addExcludedDevice(PhysicalDevice pDevice)
Set Physical Device pDevice not capable for this DeliverableContent
Parameters:
pDevice -

addSupportedDevice

public void addSupportedDevice(PhysicalDevice pDevice)
add Physical Device pDevice in a list of capable devices for this DeliverableContent
Parameters:
pDevice -

clearUnsentDeliverableCtntEvents

public void clearUnsentDeliverableCtntEvents()
Clear un-sent DeliverableCtntEvents associated with this DeliverableContent

getAllContentItems

public DeliverableContentItem[] getAllContentItems()
Get a list of individual downloadable mobile content pieces
Returns:
DeliverableContentItem array

getContentItemByMimeType

public DeliverableContentItem getContentItemByMimeType(java.lang.String mimeType)
Get the DeliverableContentItem associated with MIME TYPE
Returns:
DeliverableContentItem

getDCtntStatus

public DeliverableContentStatus getDCtntStatus()
Returns:
the Status of this DeliverableContent

getDeliverableApplication

public DeliverableApplication getDeliverableApplication()
Get the place holder of this DeliverableContent
Returns:
DeliverableApplication

getDescription

public java.lang.String getDescription()
Gets the readable decription of the DeliverableContent
Returns:
description of the DeliverableContent

getDeviceCapabilityProperty

public java.lang.Object getDeviceCapabilityProperty(java.lang.String name)
Get the Device Capability Property Object associated with Property Name
Returns:
Device Capability Property Object

getDeviceCapabilityPropertyNames

public java.util.Iterator getDeviceCapabilityPropertyNames()
A list of supported Device Capability Property Names
Returns:
an Iterator of Device Capability Property Names

getDisplayName

public java.lang.String getDisplayName()
Gets the display name of the DeliverableContent
Returns:
display name of the DeliverableContent

getDRMID

public java.lang.Long getDRMID()
Returns:
the ID of DRM Policy associated with this DeliverableContent or null if none

getExcludedDevices

public PhysicalDevice[] getExcludedDevices()
Return a list of uncapable devices for this DeliverableContent
Returns:
PhysicalDevice array

getName

public java.lang.String getName()
Gets the name of the DeliverableContent
Specified by:
getName in interface ModelObject
Returns:
name of the DeliverableContent

getSupportedDevices

public PhysicalDevice[] getSupportedDevices()
Return a list of capable devices for this DeliverableContent
Returns:
PhysicalDevice array

getUserOwner

public User getUserOwner()
Returns:
the owner of this DeliverableContent or null if none

getVerifyTime

public java.util.Date getVerifyTime()
Returns:
the Middle Tier Time when Status of this DeliverableContent is setting to DeliverableContentStatus.VERIFIED

getVersion

public java.lang.String getVersion()
Gets the version of the DeliverableContent
Returns:
current version of the DeliverableContent

isDeviceCapable

public boolean isDeviceCapable(PhysicalDevice pDevice)
                        throws oracle.panama.model.ExcludedDeviceException
DeliverableContent will decide whether a physical device is capable based on the following 3 step process: 1. If this device is in the excluded device list, it will throw ExcludedDevice Exception. Otherwise, it will go to step 2 2. If this device is in the supported device list, it will return true. Otherwise, it will go to step 3 3. If the attributes of this device can match all the device capability properties, it will return true, otherwise it will return false
Throws:
oracle.panama.model.ExcludedDeviceException

isValid

public boolean isValid()
Returns:
true If this DeliverableContent is valid.

removeDeviceCapabilityProperty

public void removeDeviceCapabilityProperty(java.lang.String name)
Remove Device Capability Property Object associated with property name

removeExcludedDevice

public void removeExcludedDevice(PhysicalDevice pDevice)
remove the Physical Device pDevice from the list of uncapable devices
Parameters:
pDevice -

removeSupportedDevice

public void removeSupportedDevice(PhysicalDevice pDevice)
remove Physical Device pDevice from a list of capable devices for this DeliverableContent
Parameters:
pDevice -

sendDeliverableCtntEvents

public void sendDeliverableCtntEvents()
Send out DeliverableCtntEvents associated with this DeliverableContent

setDeliverableContentStatus

public void setDeliverableContentStatus(DeliverableContentStatus dCtntStatus)
Set the Status of this DeliverableContent.
Parameters:
dCtntStatus - the status.

setDescription

public void setDescription(java.lang.String desc)
Sets the readable description of DeliverableContent
Parameters:
desc - the new content description

setDeviceCapabilityProperty

public void setDeviceCapabilityProperty(java.lang.String name,
                                        java.lang.Object value)
Set Device Capability Property Object associated with property name
Parameters:
name - Device Capability Property Name
value - Device Capability Property Object

setDisplayName

public void setDisplayName(java.lang.String name)
Sets the display name of the DeliverableContent
Parameters:
name - the new display name of the DeliverableContent

setDRMID

public void setDRMID(java.lang.Long drmID)
Set the DRM Policy for this DeliverableContent.
Parameters:
drmID - the internal ID associated with DRM Policy.

setName

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

setUserOwner

public void setUserOwner(User owner)
Set the owner of this DeliverableContent.
Parameters:
owner - user who owns this DeliverableContent.

setValid

public void setValid(boolean valid)
Allow the administrator to set a DeliverableContent to valid or invalid.
Parameters:
valid - true if valid or false if not.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.