1
|
package eu.etaxonomy.cdm.model.media;
|
2
|
|
3
|
import java.util.List;
|
4
|
import java.util.Set;
|
5
|
|
6
|
/**
|
7
|
* If a class is implementing this interface a set of <code>media</code> may be added
|
8
|
* to an instance of this class. The class should also implement the protected method:
|
9
|
* <code>protected void setMedia(Set<Media> media)</code> that maybe used by the persistence
|
10
|
* framework (e.g. hibernate)
|
11
|
*
|
12
|
* @author a.mueller
|
13
|
* @created 07.07.2008
|
14
|
* @version 1.0
|
15
|
*/
|
16
|
public interface IMediaEntity extends IMediaDocumented{
|
17
|
|
18
|
/**
|
19
|
* Gets all media belonging to this object
|
20
|
* @return
|
21
|
*/
|
22
|
|
23
|
public abstract Set<Media> getMedia();
|
24
|
|
25
|
/**
|
26
|
* Adds a media to this object
|
27
|
* @param media
|
28
|
*/
|
29
|
public abstract void addMedia(Media media);
|
30
|
|
31
|
/**
|
32
|
* Removes a media from this object
|
33
|
* @param media
|
34
|
*/
|
35
|
public abstract void removeMedia(Media media);
|
36
|
|
37
|
}
|