| java.lang.Object com.ibm.emb.meb.wrapper.MediaEntityWrapperBean
All known Subclasses: com.ibm.emb.meb.test.ejb.MediaEntityLocalTestDriverBean,
MediaEntityWrapperBean | public class MediaEntityWrapperBean implements javax.ejb.SessionBean(Code) | | Bean implementation class for Enterprise Bean: MediaEntityWrapper
|
Method Summary | |
public void | addMediaEntityListener(String pk, MediaListener listener) Invokes addListener(MediaListener) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on. | public void | addMediaEntityMetaData(String mebpk, String mdebpk) Invokes addMetaData(MetaDataEntityLocal) on the MediaEntityLocal The MEB
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on. | public void | convertMediaEntity(String pk, MediaConverterSpec[] specs) Invokes convert(MediaConverterSpec[]) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on. | public String | createMediaEntityBean() Invokes create() on MediaEntityLocalHome. | public String | createMetaDataEntityBean() Invokes create() on MetaDataEntityLocalHome. | public void | ejbActivate() | public void | ejbCreate() | public void | ejbPassivate() | public void | ejbRemove() | public URL[] | exportHomeMediaEntityBeans(String[] pks, URL targetDir) Invokes exportMedia(MediaEntityLocal[], URL) on MediaEntityLocalHome. | public URL | exportMediaEntity(String pk, URL loc) Invokes exportMedia(URL) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public String[] | findMEBByPartialDescription(String partialDesc) Invokes the findByPartialDescription(String) on MediaEntityLocalHome An
array of primary keys is built from the collection of located
MediaEntityBeans and returned. | public String[] | findMEBByPartialLocation(String partialLoc) Invokes the findByPartialLocation(String) on MediaEntityLocalHome An
array of primary keys is built from the collection of located
MediaEntityBeans and returned. | public String | findMEBByPrimaryKey(String pk) Invokes findByPrimaryKey(String) on MediaEntityLocalHome The primary key
passed in and the primary key returned should be the same (or the
operation has failed) however no validation checking is done by this
method. | public String[] | getMediaEntityChildren(String pk) Invokes getChildren() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public byte[] | getMediaEntityContent(String pk) Invokes getContent() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String | getMediaEntityDescription(String pk) Invokes getDescription() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public MediaFormat | getMediaEntityFormat(String pk) Invokes getFormat() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public MediaHeader | getMediaEntityHeader(String pk) Invokes getHeader() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public long | getMediaEntityLastModified(String pk) Invokes getLastModified() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public MediaListener[] | getMediaEntityListeners(String pk) Invokes getListeners() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public URL | getMediaEntityLocation(String pk) Invokes getLocation() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String[] | getMediaEntityMetaData(String pk) Invokes getMetaData() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String | getMediaEntityMimeType(String pk) Invokes getMimeType() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String | getMediaEntityName(String pk) Invokes getName() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String | getMediaEntityNextVersion(String pk) Invokes getNextVersion() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public String[] | getMediaEntityParents(String pk) Invokes getParents() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public String | getMediaEntityPreviousVersion(String pk) Invokes getPreviousVersion() on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public Media | getMediaEntityProxy(String pk) Invokes getProxy() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public long | getMediaEntitySize(String pk) Invokes getSize() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public javax.ejb.SessionContext | getSessionContext() | public String[] | importHomeMediaEntityBeans(URL[] urls, String[] names) Invokes importMedia(URL[],String[]) on MediaEntityLocalHome. | public void | importMediaEntityContent(String pk, URL loc, String name) Invokes importMedia(URL, String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public URL | publishMediaContent(Media mediaobj, byte protocol, ProtocolConstraints constraints) Invokes the publishContent(Media, String, ProtocalConstraints) on
MediaEntityLocalHome The URL of the published media is returned. | public Media | publishMediaEntityBeans(String[] pks, byte protocol, ProtocolConstraints constraints) Invokes the publishMedia(MediaEntityLocal[], String, ProtocalConstraints)
on MediaEntityLocalHome The URL of the published media is returned. | public int | readMediaEntityContent(String pk, long pos, byte[] buffer) Invokes readContent(long, byte[]) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public int | readMediaEntityContent(String pk, long pos, byte[] buffer, int offset, int length) Invokes readContent(long, byte[], int, int) on the MediaEntityLocal The
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on. | public void | removeMediaEntityListener(String pk, MediaListener listener) Invokes removeListener(MediaListener) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on. | public void | removeMediaEntityMetaData(String mebpk, String mdebpk) Invokes removeMetaData(MetaDataEntityLocal) on the MediaEntityLocal The
MEB primary key passed will first be resolved to a MediaEntityBean on
which the operation should be invoked on. | public void | setMediaEntityChildren(String pk, String[] childpks) Invokes setChildren() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public void | setMediaEntityContent(String pk, byte[] content) Invokes setContent(byte[]) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public void | setMediaEntityContent(String pk, File content) Invokes setContent(InputStream) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public void | setMediaEntityDescription(String pk, String desc) Invokes setDescription(String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public void | setMediaEntityLocation(String pk, URL loc) Invokes setLocation(URL) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. | public void | setMediaEntityMimeType(String pk, String mimeType) Invokes setMimeType(String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. | public void | setMediaEntityName(String pk, String name) Invokes setName() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. | public void | setMediaEntityPreviousVersion(String pk, String pvpk) Invokes setPreviousVersion(MediaEntityLocal) on the MediaEntityLocal The
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on. | public void | setMediaEntityProxy(String pk, String proxypk) Invokes setProxy(MediaEntityLocal) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on. | public void | setSessionContext(javax.ejb.SessionContext ctx) |
addMediaEntityListener | public void addMediaEntityListener(String pk, MediaListener listener) throws MediaException, NamingException, FinderException, NullPointerException(Code) | | Invokes addListener(MediaListener) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: listener - - MediaListener representing the listener to add to theMediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
addMediaEntityMetaData | public void addMediaEntityMetaData(String mebpk, String mdebpk) throws MediaException, NamingException, FinderException(Code) | | Invokes addMetaData(MetaDataEntityLocal) on the MediaEntityLocal The MEB
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on. If the MDEB primary key is not null,
it will be resolved to a MetaDataEntityBean before it is passed in to the
method. If the MDEB is null, null is passed in.
Parameters: mebpk - - String representing the primary key of the MediaEntityBeanto invoke the operation on Parameters: mdebpk - - String representing the primary key of theMetaDataEntityBean to pass into the operation exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome or the MetaDataEntityLocalHome exception: FinderException - thrown if either primary keys can not be foundin the datastore |
convertMediaEntity | public void convertMediaEntity(String pk, MediaConverterSpec[] specs) throws NamingException, FinderException, MediaException(Code) | | Invokes convert(MediaConverterSpec[]) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: specs - - MediaConverterSpec array of media converters defining thetransformations to be done to the content. exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
createMediaEntityBean | public String createMediaEntityBean() throws MediaException, CreateException, NamingException(Code) | | Invokes create() on MediaEntityLocalHome. Returns the Primary Key of the
created MediaEntityLocal Throws any exceptions originating from the call
to MediaEntityLocalHome
String - primary key coresponding to the created MediaEntityBean exception: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: CreateException - thrown if the exception was thrown by theMediaEntityLocalHome import operation |
createMetaDataEntityBean | public String createMetaDataEntityBean() throws MediaException, CreateException, NamingException(Code) | | Invokes create() on MetaDataEntityLocalHome. Returns the Primary Key of
the created MetaDataEntityLocal Throws any exceptions originating from
the call to MediaEntityLocalHome
String - primary key coresponding to the created MediaEntityBean exception: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: CreateException - thrown if the exception was thrown by theMediaEntityLocalHome import operation |
ejbActivate | public void ejbActivate()(Code) | | ejbActivate
|
ejbCreate | public void ejbCreate() throws javax.ejb.CreateException(Code) | | ejbCreate
|
ejbPassivate | public void ejbPassivate()(Code) | | ejbPassivate
|
ejbRemove | public void ejbRemove()(Code) | | ejbRemove
|
exportHomeMediaEntityBeans | public URL[] exportHomeMediaEntityBeans(String[] pks, URL targetDir) throws MediaException, NamingException, FinderException(Code) | | Invokes exportMedia(MediaEntityLocal[], URL) on MediaEntityLocalHome. An
array of MediaEntityLocals will be created from the array of primary keys
passed in. If one of the elements in the primary key array is null, a
coresponding null element will be placed in the created MediaEntityLocal
array.
Parameters: pks - - String array of primary keys representing theMediaEntityBeans to export Parameters: targetDir - - URL representing the targetDirectory to export themedia to URL[] - array of URLs representing the exported file location ofthe MediaEntityBeans exception: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if an element in the primary key arraycan not be found in the datastore |
exportMediaEntity | public URL exportMediaEntity(String pk, URL loc) throws NamingException, FinderException, MediaException(Code) | | Invokes exportMedia(URL) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: loc - - URL representing the targetlocation to export URL with the location of the exported Media exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
findMEBByPartialDescription | public String[] findMEBByPartialDescription(String partialDesc) throws NamingException, FinderException(Code) | | Invokes the findByPartialDescription(String) on MediaEntityLocalHome An
array of primary keys is built from the collection of located
MediaEntityBeans and returned.
Parameters: partialDesc - - String representing the partial description tosearch for String[] - array of primary keys of located MediaEntityBeansmatching the partial description throws: NamingException - thrown if there are problems looking up theMediaEntityLocalHome throws: FinderException - thrown if no MediaEntityBeans can be found by thepartial description |
findMEBByPartialLocation | public String[] findMEBByPartialLocation(String partialLoc) throws NamingException, FinderException(Code) | | Invokes the findByPartialLocation(String) on MediaEntityLocalHome An
array of primary keys is built from the collection of located
MediaEntityBeans and returned.
Parameters: partialLoc - - String representing the partial location to searchfor String[] - array of primary keys of located MediaEntityBeansmatching the partial location throws: NamingException - thrown if there are problems looking up theMediaEntityLocalHome throws: FinderException - thrown if no MediaEntityBeans can be found by thepartial location |
findMEBByPrimaryKey | public String findMEBByPrimaryKey(String pk) throws NamingException, FinderException(Code) | | Invokes findByPrimaryKey(String) on MediaEntityLocalHome The primary key
passed in and the primary key returned should be the same (or the
operation has failed) however no validation checking is done by this
method.
Parameters: pk - - String representing primary key to find in the datastore String - primary key of the located MediaEntityBean exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityChildren | public String[] getMediaEntityChildren(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getChildren() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. The array of MediaEntityBean children will first be converted
into an array of primary keys representing the children before being
returned.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String array of primary keys representing the children on theMediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityContent | public byte[] getMediaEntityContent(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getContent() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on byte array of the MediaEntityBean's content exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityDescription | public String getMediaEntityDescription(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getDescription() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String representing the description of the MediaEntityBean'scontent exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityFormat | public MediaFormat getMediaEntityFormat(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getFormat() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on MediaFormat representing the MediaEntityBean's format exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityHeader | public MediaHeader getMediaEntityHeader(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getHeader() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on MediaHeader representing the MediaEntityBean's header exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityLastModified | public long getMediaEntityLastModified(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getLastModified() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on long representing the timestamp of when MediaEntityBean was lastmodified exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityListeners | public MediaListener[] getMediaEntityListeners(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getListeners() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on MediaEntityListener array of the MediaEntityBean listeners exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityLocation | public URL getMediaEntityLocation(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getLocation() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on URL representing the location of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityMetaData | public String[] getMediaEntityMetaData(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getMetaData() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. The array of MetaDataEntityBean metadata will first be
converted into an array of primary keys representing the metadata before
being returned.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String array of primary keys representing the MetaDataEntityBeanmetadata on the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome or MetaDataEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityMimeType | public String getMediaEntityMimeType(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getMimeType() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String representing the mimetype of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityName | public String getMediaEntityName(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getName() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String representing the name of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityNextVersion | public String getMediaEntityNextVersion(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getNextVersion() on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on. The primary key of the MediaEntityBean's next version
MediaEntityBean will be returned or null if the next version is null.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String representing the primary key of the MediaEntityBean's nextversion or null exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityParents | public String[] getMediaEntityParents(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getParents() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. The array of MediaEntityBean parents will first be converted
into an array of primary keys representing the parents before being
returned.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String array of primary keys representing the parents on theMediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityPreviousVersion | public String getMediaEntityPreviousVersion(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getPreviousVersion() on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. The primary key of the MediaEntityBean's previous
version MediaEntityBean will be returned or null if the next version is
null.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String representing the primary key of the MediaEntityBean'sprevious version or null exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntityProxy | public Media getMediaEntityProxy(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getProxy() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Media object representing the proxy of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getMediaEntitySize | public long getMediaEntitySize(String pk) throws NamingException, FinderException, MediaException(Code) | | Invokes getSize() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on long size of the MediaEntityBean's content exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
getSessionContext | public javax.ejb.SessionContext getSessionContext()(Code) | | getSessionContext
|
importHomeMediaEntityBeans | public String[] importHomeMediaEntityBeans(URL[] urls, String[] names) throws MediaException, NamingException, CreateException(Code) | | Invokes importMedia(URL[],String[]) on MediaEntityLocalHome. Returns an
array of Primary Keys matching the order of the returned
MediaEntityLocals. If one of the MediaEntityLocal elements in the array
returned from MediaEntityLocalHome is null, then coresponding null
element in the Primary Key array will be returned. Throws any exceptions
originating from the call to MediaEntityLocalHome
Parameters: urls - - URL array of source URLs to import Parameters: names - - String array of names to use when importing the content String[] - array of primary keys coresponding to the createdMediaEntityLocals returned from the importMedia operation on thehome. exception: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: CreateException - thrown if the exception was thrown by theMediaEntityLocalHome import operation |
importMediaEntityContent | public void importMediaEntityContent(String pk, URL loc, String name) throws CreateException, NamingException, FinderException, MediaException(Code) | | Invokes importMedia(URL, String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: loc - - URL representing the location of the source file to importcontent from Parameters: name - - String representing the optional name to be set on theMediaEntityBean during the import exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
publishMediaContent | public URL publishMediaContent(Media mediaobj, byte protocol, ProtocolConstraints constraints) throws MediaException, NamingException(Code) | | Invokes the publishContent(Media, String, ProtocalConstraints) on
MediaEntityLocalHome The URL of the published media is returned.
Parameters: mediaobj - - Media representing the transient or persistent mediaobject to publish Parameters: protocol - - String representing the protocol to use when publishing Parameters: constraints - - ProtocalConstraints containing the constraints topublish with (if any) URL representing the location of the published media throws: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation throws: NamingException - thrown if there are problems looking up theMediaEntityLocalHome |
publishMediaEntityBeans | public Media publishMediaEntityBeans(String[] pks, byte protocol, ProtocolConstraints constraints) throws MediaException, NamingException, FinderException(Code) | | Invokes the publishMedia(MediaEntityLocal[], String, ProtocalConstraints)
on MediaEntityLocalHome The URL of the published media is returned. An
array of MediaEntityLocals will be created from the array of primary keys
passed in. If one of the elements in the primary key array is null, a
coresponding null element will be placed in the created MediaEntityLocal
array.
Parameters: pks - - String array of primary keys representing the playlist ofMediaEntityBeans to publish Parameters: protocol - - String representing the protocol to use when publishing Parameters: constraints - - ProtocalConstraints containing the constraints topublish with (if any) URL representing the location of the published media throws: MediaException - thrown if the exception was thrown by theMediaEntityLocalHome import operation throws: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if an element in the primary key arraycan not be found in the datastore |
readMediaEntityContent | public int readMediaEntityContent(String pk, long pos, byte[] buffer) throws NamingException, FinderException, MediaException(Code) | | Invokes readContent(long, byte[]) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: pos - - long represeting the position to begin reading the contentfrom Parameters: buffer - - byte array buffer to copy the media content intobeginning at offset 0 int representing the number of bytes read into the buffer exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
readMediaEntityContent | public int readMediaEntityContent(String pk, long pos, byte[] buffer, int offset, int length) throws NamingException, FinderException, MediaException(Code) | | Invokes readContent(long, byte[], int, int) on the MediaEntityLocal The
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: pos - - long represeting the position to begin reading the contentfrom Parameters: buffer - - byte array buffer to copy the media content intobeginning at specified offset Parameters: offset - - int representing the offset in the buffer to begincopying the media content from Parameters: length - - int representing the max int representing the number of bytes read into the buffer exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
removeMediaEntityListener | public void removeMediaEntityListener(String pk, MediaListener listener) throws MediaException, NamingException, FinderException(Code) | | Invokes removeListener(MediaListener) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: listener - - MediaListener representing the listener to remove fromthe MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
removeMediaEntityMetaData | public void removeMediaEntityMetaData(String mebpk, String mdebpk) throws MediaException, NamingException, FinderException(Code) | | Invokes removeMetaData(MetaDataEntityLocal) on the MediaEntityLocal The
MEB primary key passed will first be resolved to a MediaEntityBean on
which the operation should be invoked on. If the MDEB primary key is not
null, it will be resolved to a MetaDataEntityBean before it is passed in
to the method. If the MDEB primary key is null, null is passed into the
remove operation.
Parameters: mebpk - - String representing the primary key of the MediaEntityBeanto invoke the operation on Parameters: mdebpk - - String representing the primary key of theMetaDataEntityBean to remove exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome or the MetaDataEntityLocalHome exception: FinderException - thrown if either primary keys can not be foundin the datastore |
setMediaEntityChildren | public void setMediaEntityChildren(String pk, String[] childpks) throws NamingException, FinderException, MediaException(Code) | | Invokes setChildren() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on. The array of MediaEntityBean primary keys representing the
children to be set will first be found in the datastore and converted to
an array of MediaEntityLocals before being passed in. If an element of
the primary key array is null, a coresponding null entry in the
MediaEntityLocal array will be set.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on String array of primary keys representing the children to be seton the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if any of the primary keys can not befound in the datastore |
setMediaEntityContent | public void setMediaEntityContent(String pk, byte[] content) throws NamingException, FinderException, MediaException(Code) | | Invokes setContent(byte[]) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: content - - byte array of content to be set on the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityContent | public void setMediaEntityContent(String pk, File content) throws NamingException, FinderException, MediaException, FileNotFoundException(Code) | | Invokes setContent(InputStream) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on. Since an InputStream can not be passed over remote
boundaries, a File which represents the path to the content is passed and
is used to create a FileInputStream used to set the content.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: content - - File that contains the content to be set on theMediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore exception: FileNotFoundException - thrown if the File can not be located onthe filesystem |
setMediaEntityDescription | public void setMediaEntityDescription(String pk, String desc) throws NamingException, FinderException, MediaException(Code) | | Invokes setDescription(String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: desc - - String representing the description of theMediaEntityBean's content or null exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityLocation | public void setMediaEntityLocation(String pk, URL loc) throws NamingException, FinderException, MediaException(Code) | | Invokes setLocation(URL) on the MediaEntityLocal The primary key passed
will first be resolved to a MediaEntityBean on which the operation should
be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: loc - - URL representing the external location of theMediaEntityBean content or null exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityMimeType | public void setMediaEntityMimeType(String pk, String mimeType) throws NamingException, FinderException, MediaException(Code) | | Invokes setMimeType(String) on the MediaEntityLocal The primary key
passed will first be resolved to a MediaEntityBean on which the operation
should be invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: mimeType - - String representing the mimetype of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityName | public void setMediaEntityName(String pk, String name) throws NamingException, FinderException, MediaException(Code) | | Invokes setName() on the MediaEntityLocal The primary key passed will
first be resolved to a MediaEntityBean on which the operation should be
invoked on.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: name - - String representing the name of the MediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityPreviousVersion | public void setMediaEntityPreviousVersion(String pk, String pvpk) throws NamingException, FinderException, MediaException(Code) | | Invokes setPreviousVersion(MediaEntityLocal) on the MediaEntityLocal The
primary key passed will first be resolved to a MediaEntityBean on which
the operation should be invoked on. The primary key passed representing
the MediaEntityBean's previous version MediaEntityBean will be located in
the datastore and resolved to a MediaEntityLocal before it is passed into
the setter. If the primary key representing the previous version is null
then null will be passed in.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: pvpk - - String representing the primary key of theMediaEntityBean's previous version or null exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setMediaEntityProxy | public void setMediaEntityProxy(String pk, String proxypk) throws NamingException, FinderException, MediaException(Code) | | Invokes setProxy(MediaEntityLocal) on the MediaEntityLocal The primary
key passed will first be resolved to a MediaEntityBean on which the
operation should be invoked on. The primary key passed representing the
MediaEntityBean's proxy MediaEntityBean will be located in the datastore
and resolved to a MediaEntityLocal before it is passed into the setter.
If the primary key representing the proxy is null then null will be
passed in.
Parameters: pk - - String representing the primary key of the MediaEntityBean toinvoke the operation on Parameters: proxypk - - String representing the primary key of the proxyMediaEntityBean exception: NullPointerException - - thrown if the primary key passed in isnull exception: MediaException - thrown if the exception was thrown by theMediaEntityLocal operation exception: NamingException - thrown if there are problems looking up theMediaEntityLocalHome exception: FinderException - thrown if the primary key can not be found inthe datastore |
setSessionContext | public void setSessionContext(javax.ejb.SessionContext ctx)(Code) | | setSessionContext
|
|
|