KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > entity > MediaEntityManager


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.entity;
8
9 /**
10  * Remote interface for MediaEntityManager.
11  */

12 public interface MediaEntityManager
13    extends javax.ejb.EJBObject JavaDoc
14 {
15    /**
16     * Creates a new MediaEntity.
17     * @return the primary key of the MediaEntity created.
18     */

19    public java.lang.String JavaDoc createMediaEntity( )
20       throws javax.emb.MediaException, javax.ejb.CreateException JavaDoc, javax.naming.NamingException JavaDoc, java.rmi.RemoteException JavaDoc;
21
22    /**
23     * Updates a MediaEntity given its primary key and a DTO. <p>If a property is not set in the DTO, it will be set to <code>null</code> in the MediaEntity.
24     * @param identity primary key.
25     * @param mediaEntityDTO Data Transfer Object with the properties to update.
26     * @return the primary key of the MediaEntity updated.
27     */

28    public java.lang.String JavaDoc updateMediaEntity( java.lang.String JavaDoc identity,org.jboss.media.entity.MediaEntityDTO mediaEntityDTO )
29       throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc, java.rmi.RemoteException JavaDoc;
30
31    /**
32     * Gets a MediaEntity property given its primary key and a property name. <p>Posible property names and their types are: <p>"content": <code>java.lang.String</code><br> "location": <code>java.net.URL</code><br> "description": <code>java.lang.String</code><br> "name": <code>java.lang.String</code><br> "mimeType": <code>java.lang.String</code>
33     * @param identity primary key.
34     * @param property property name.
35     * @param value property value.
36     * @param identity primary key.
37     * @param property property name.
38     * @return the property value.
39     */

40    public java.lang.Object JavaDoc getMediaEntityProperty( java.lang.String JavaDoc identity,java.lang.String JavaDoc property )
41       throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc, java.rmi.RemoteException JavaDoc;
42
43    /**
44     * Sets a property for a MediaEntity given its primary key, a property name and a value. <p>Posible property names and their types are: <p>"content": <code>java.lang.String</code><br> "location": <code>java.net.URL</code><br> "description": <code>java.lang.String</code><br> "name": <code>java.lang.String</code><br> "mimeType": <code>java.lang.String</code>
45     * @param identity primary key.
46     * @param property property name.
47     * @param value property value.
48     */

49    public void setMediaEntityProperty( java.lang.String JavaDoc identity,java.lang.String JavaDoc property,java.lang.Object JavaDoc value )
50       throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc, java.rmi.RemoteException JavaDoc;
51
52    public void setMediaEntityContent( java.lang.String JavaDoc identity,java.io.File JavaDoc contentFile )
53       throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc, java.io.FileNotFoundException JavaDoc, java.rmi.RemoteException JavaDoc;
54
55 }
56
Popular Tags