| emb.sample.session.MediaSampleSessionLocal
MediaSampleSessionLocal | public interface MediaSampleSessionLocal extends EJBLocalObject(Code) | | Local interface for the bean MediaSampleSessionLocal
|
DONT_SHOW | byte DONT_SHOW(Code) | | Set if the media is not showed is media list
|
SHOW_IN_LIST | byte SHOW_IN_LIST(Code) | | Set if the media has to be show in media list
|
USER_ADDED | byte USER_ADDED(Code) | | Set if the media has to be show in media list and if the media has been
upload
|
copyMediaEntity | MediaEntityLocal copyMediaEntity(Media media) throws MediaSampleException(Code) | | Create a new MediaEntity from a Media
Parameters: media - to copy MediaEntity throws: MediaSampleException - if the mediaEntity cannot be create |
getMediaFromPrimaryKey | MediaEntityLocal getMediaFromPrimaryKey(String primaryKey) throws MediaSampleException(Code) | | Get media from its premary key
Parameters: primaryKey - the primary key of the wanted media MediaEntity throws: MediaSampleException - if the mediaEntity cannot be retrive |
getMediaFromRegistredName | MediaEntityLocal getMediaFromRegistredName(String registeredName) throws MediaSampleException(Code) | | Get media from registered name
Parameters: registeredName - the registeredName of the wanted media MediaEntity throws: MediaSampleException - if the mediaEntity cannot be retrive |
removeDefaultMedia | void removeDefaultMedia()(Code) | | Remove default media to reinit the database, except uploaded media
|
|
|