org.jboss.media.entity
Class MediaEntity
java.lang.Object
org.jboss.media.entity.MediaEntity
- Direct Known Subclasses:
- MediaEntityBean (src)
- public abstract class MediaEntity
- extends java.lang.Object
Abstract class to make the implementation of the Media Entity Bean cleaner.
It implements most of the javax.emb.Media
,
javax.emb.MediaEntityLocal
and
javax.emb.MediaEntityLocalHome
required methods, and leaves
the persistance methods to the MediaEntityBean
subclass.
Method Summary |
void |
addListener(MediaListener (src) listener)
|
void |
addMetaData(MetaDataEntityLocal (src) metaData)
|
void |
convert(MediaConverterSpec (src) [] specifications)
|
java.net.URL[] |
ejbHomeExportMedia(MediaEntityLocal (src) [] sourceMedia,
java.net.URL targetDirectoryLocation)
|
MediaEntityLocal (src) [] |
ejbHomeImportMedia(java.net.URL[] sourceLocations,
java.lang.String[] names)
|
java.net.URL |
ejbHomePublishContent(Media (src) mediaObject,
byte protocol,
ProtocolConstraints (src) constraints)
|
Media (src) |
ejbHomePublishMedia(MediaEntityLocal (src) [] playlist,
byte transferType,
ProtocolConstraints (src) constraints)
|
java.net.URL |
exportMedia(java.net.URL targetDirectoryLocation)
|
MediaEntityLocal (src) [] |
getChildren()
|
byte[] |
getContent()
|
java.lang.String |
getDescription()
|
MediaFormat (src) |
getFormat()
|
MediaHeader (src) |
getHeader()
|
long |
getLastModified()
|
MediaListener (src) [] |
getListeners()
|
java.net.URL |
getLocation()
|
abstract java.util.Collection |
getManagedChildren()
|
abstract byte[] |
getManagedContent()
|
abstract java.lang.String |
getManagedDescription()
|
abstract java.lang.String |
getManagedIdentity()
|
abstract long |
getManagedLastModified()
|
abstract java.util.Vector |
getManagedListeners()
|
abstract java.lang.String |
getManagedLocation()
|
abstract java.util.Collection |
getManagedMetaDatas()
|
abstract java.lang.String |
getManagedMimeType()
|
abstract java.lang.String |
getManagedName()
|
abstract MediaEntityLocal (src) |
getManagedNextVersion()
|
abstract java.util.Collection |
getManagedParents()
|
abstract MediaEntityLocal (src) |
getManagedPreviousVersion()
|
abstract MediaEntityLocal (src) |
getManagedProxy()
|
MetaDataEntityLocal (src) [] |
getMetaData()
|
java.lang.String |
getMimeType()
|
java.lang.String |
getName()
|
MediaEntityLocal (src) |
getNextVersion()
|
MediaEntityLocal (src) [] |
getParents()
|
MediaEntityLocal (src) |
getPreviousVersion()
|
Media (src) |
getProxy()
|
long |
getSize()
|
void |
importMedia(java.net.URL sourceLocation,
java.lang.String name)
|
int |
readContent(long position,
byte[] buffer)
|
int |
readContent(long position,
byte[] buffer,
int offset,
int length)
|
void |
removeListener(MediaListener (src) listener)
|
void |
removeMetaData(MetaDataEntityLocal (src) metaData)
|
void |
setChildren(MediaEntityLocal (src) [] children)
|
void |
setContent(byte[] content)
|
void |
setContent(java.io.InputStream content)
|
void |
setDescription(java.lang.String description)
|
void |
setLocation(java.net.URL location)
|
abstract void |
setManagedChildren(java.util.Collection children)
|
abstract void |
setManagedContent(byte[] content)
|
abstract void |
setManagedDescription(java.lang.String description)
|
abstract void |
setManagedIdentity(java.lang.String identity)
|
abstract void |
setManagedLastModified(long lastModified)
|
abstract void |
setManagedListeners(java.util.Vector listeners)
|
abstract void |
setManagedLocation(java.lang.String location)
|
abstract void |
setManagedMetaDatas(java.util.Collection metadatas)
|
abstract void |
setManagedMimeType(java.lang.String mimeType)
|
abstract void |
setManagedName(java.lang.String name)
|
abstract void |
setManagedNextVersion(MediaEntityLocal (src) nextVersion)
|
abstract void |
setManagedParents(java.util.Collection parents)
|
abstract void |
setManagedPreviousVersion(MediaEntityLocal (src) previousVersion)
|
abstract void |
setManagedProxy(MediaEntityLocal (src) proxy)
|
void |
setMimeType(java.lang.String mimeType)
|
void |
setName(java.lang.String name)
|
void |
setPreviousVersion(MediaEntityLocal (src) mediaEntity)
|
void |
setProxy(MediaEntityLocal (src) mediaEntity)
|
protected void |
updateLastModified()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaEntity
public MediaEntity()
getManagedIdentity
public abstract java.lang.String getManagedIdentity()
setManagedIdentity
public abstract void setManagedIdentity(java.lang.String identity)
getManagedContent
public abstract byte[] getManagedContent()
setManagedContent
public abstract void setManagedContent(byte[] content)
getManagedLocation
public abstract java.lang.String getManagedLocation()
setManagedLocation
public abstract void setManagedLocation(java.lang.String location)
getManagedDescription
public abstract java.lang.String getManagedDescription()
setManagedDescription
public abstract void setManagedDescription(java.lang.String description)
getManagedName
public abstract java.lang.String getManagedName()
setManagedName
public abstract void setManagedName(java.lang.String name)
getManagedMimeType
public abstract java.lang.String getManagedMimeType()
setManagedMimeType
public abstract void setManagedMimeType(java.lang.String mimeType)
getManagedLastModified
public abstract long getManagedLastModified()
setManagedLastModified
public abstract void setManagedLastModified(long lastModified)
getManagedListeners
public abstract java.util.Vector getManagedListeners()
setManagedListeners
public abstract void setManagedListeners(java.util.Vector listeners)
getManagedProxy
public abstract MediaEntityLocal (src) getManagedProxy()
setManagedProxy
public abstract void setManagedProxy(MediaEntityLocal (src) proxy)
getManagedPreviousVersion
public abstract MediaEntityLocal (src) getManagedPreviousVersion()
setManagedPreviousVersion
public abstract void setManagedPreviousVersion(MediaEntityLocal (src) previousVersion)
getManagedNextVersion
public abstract MediaEntityLocal (src) getManagedNextVersion()
setManagedNextVersion
public abstract void setManagedNextVersion(MediaEntityLocal (src) nextVersion)
getManagedParents
public abstract java.util.Collection getManagedParents()
setManagedParents
public abstract void setManagedParents(java.util.Collection parents)
getManagedChildren
public abstract java.util.Collection getManagedChildren()
setManagedChildren
public abstract void setManagedChildren(java.util.Collection children)
getManagedMetaDatas
public abstract java.util.Collection getManagedMetaDatas()
setManagedMetaDatas
public abstract void setManagedMetaDatas(java.util.Collection metadatas)
addListener
public void addListener(MediaListener (src) listener)
- See Also:
MediaEntityLocal.addListener(javax.emb.MediaListener)
addMetaData
public void addMetaData(MetaDataEntityLocal (src) metaData)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.addMetaData(javax.emb.MetaDataEntityLocal)
convert
public void convert(MediaConverterSpec (src) [] specifications)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.convert(javax.emb.MediaConverterSpec[])
exportMedia
public java.net.URL exportMedia(java.net.URL targetDirectoryLocation)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.exportMedia(java.net.URL)
getChildren
public MediaEntityLocal (src) [] getChildren()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getChildren()
getContent
public byte[] getContent()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getContent()
getDescription
public java.lang.String getDescription()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getDescription()
getFormat
public MediaFormat (src) getFormat()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getFormat()
getHeader
public MediaHeader (src) getHeader()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getHeader()
getLastModified
public long getLastModified()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getLastModified()
getListeners
public MediaListener (src) [] getListeners()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getListeners()
getLocation
public java.net.URL getLocation()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getLocation()
getMetaData
public MetaDataEntityLocal (src) [] getMetaData()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getMetaData()
getMimeType
public java.lang.String getMimeType()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getMimeType()
getName
public java.lang.String getName()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getName()
getNextVersion
public MediaEntityLocal (src) getNextVersion()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getNextVersion()
getParents
public MediaEntityLocal (src) [] getParents()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getParents()
getPreviousVersion
public MediaEntityLocal (src) getPreviousVersion()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.getPreviousVersion()
getProxy
public Media (src) getProxy()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getProxy()
getSize
public long getSize()
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.getSize()
importMedia
public void importMedia(java.net.URL sourceLocation,
java.lang.String name)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.importMedia(java.net.URL, java.lang.String)
readContent
public int readContent(long position,
byte[] buffer)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.readContent(long, byte[])
readContent
public int readContent(long position,
byte[] buffer,
int offset,
int length)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
Media.readContent(long, byte[], int, int)
removeListener
public void removeListener(MediaListener (src) listener)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.removeListener(javax.emb.MediaListener)
removeMetaData
public void removeMetaData(MetaDataEntityLocal (src) metaData)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.removeMetaData(javax.emb.MetaDataEntityLocal)
setChildren
public void setChildren(MediaEntityLocal (src) [] children)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setChildren(javax.emb.MediaEntityLocal[])
setContent
public void setContent(byte[] content)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setContent(byte[])
setContent
public void setContent(java.io.InputStream content)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setContent(java.io.InputStream)
setDescription
public void setDescription(java.lang.String description)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setDescription(java.lang.String)
setLocation
public void setLocation(java.net.URL location)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setLocation(java.net.URL)
setMimeType
public void setMimeType(java.lang.String mimeType)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setMimeType(java.lang.String)
setName
public void setName(java.lang.String name)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setName(java.lang.String)
setPreviousVersion
public void setPreviousVersion(MediaEntityLocal (src) mediaEntity)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setPreviousVersion(javax.emb.MediaEntityLocal)
setProxy
public void setProxy(MediaEntityLocal (src) mediaEntity)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocal.setProxy(javax.emb.MediaEntityLocal)
ejbHomeExportMedia
public java.net.URL[] ejbHomeExportMedia(MediaEntityLocal (src) [] sourceMedia,
java.net.URL targetDirectoryLocation)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocalHome.exportMedia(javax.emb.MediaEntityLocal[], java.net.URL)
ejbHomeImportMedia
public MediaEntityLocal (src) [] ejbHomeImportMedia(java.net.URL[] sourceLocations,
java.lang.String[] names)
throws CreateException (src) ,
MediaException (src)
- Throws:
CreateException (src)
MediaException (src)
- See Also:
MediaEntityLocalHome.importMedia(java.net.URL[], java.lang.String[])
ejbHomePublishContent
public java.net.URL ejbHomePublishContent(Media (src) mediaObject,
byte protocol,
ProtocolConstraints (src) constraints)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocalHome.publishContent(javax.emb.Media, byte, javax.emb.ProtocolConstraints)
ejbHomePublishMedia
public Media (src) ejbHomePublishMedia(MediaEntityLocal (src) [] playlist,
byte transferType,
ProtocolConstraints (src) constraints)
throws MediaException (src)
- Throws:
MediaException (src)
- See Also:
MediaEntityLocalHome.publishMedia(javax.emb.MediaEntityLocal[], byte, javax.emb.ProtocolConstraints)
updateLastModified
protected void updateLastModified()