net.sourceforge.openutils.mgnlmedia.media.lifecycle
Class MediaModule

java.lang.Object
  extended by net.sourceforge.openutils.mgnlmedia.media.lifecycle.MediaModule
All Implemented Interfaces:
info.magnolia.module.ModuleLifecycle

public class MediaModule
extends Object
implements info.magnolia.module.ModuleLifecycle

Media module lifecycle manager

Author:
molaschi

Field Summary
static String NAME
          Media module name.
static String REPO
          Media repository name.
 
Constructor Summary
MediaModule()
          Constructor
 
Method Summary
 void addFolderViewPageSizes(String sizeKey, Long value)
           
 void addPlaylistLink(PlaylistLink playlistLink)
           
 void addPlaylistTrackExtensionContributor(PlaylistTrackExtensionContributor contributor)
           
 int getFolderViewItemsPerPage()
          Returns the folderViewItemsPerPage.
 Map<String,Integer> getFolderViewPageSizes()
          Returns the folderViewPageSizes.
 String getPlayer()
           
 List getPlaylistLinks()
          Returns the playlistLinks.
 List getPlaylistTrackExtensionContributors()
          Returns the playlistTrackExtensionContributors.
 SearchMediaQueryConfiguration getSearch()
          Returns the searchConfiguration.
 String getVersion()
          Returns the version.
 ZipImporter getZipimporter()
          Returns the zipimporter.
 boolean isAutoactivate()
          Deprecated. use singleinstance
 boolean isSingleinstance()
          If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).
 void setAutoactivate(boolean autoactivate)
          Deprecated. use singleinstance
 void setFolderViewItemsPerPage(int folderViewItemsPerPage)
          Sets the folderViewItemsPerPage.
 void setPlayer(String player)
           
 void setPlaylistLinks(List playlistLinks)
          Sets the playlistLinks.
 void setPlaylistTrackExtensionContributors(List playlistTrackExtensionContributors)
          Sets the playlistTrackExtensionContributors.
 void setSearch(SearchMediaQueryConfiguration search)
          Sets the searchConfiguration.
 void setSingleinstance(boolean singleinstance)
          If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).
 void setZipimporter(ZipImporter zipimporter)
          Sets the zipimporter.
 void start(info.magnolia.module.ModuleLifecycleContext ctx)
          
 void stop(info.magnolia.module.ModuleLifecycleContext ctx)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Media module name.

See Also:
Constant Field Values

REPO

public static final String REPO
Media repository name.

See Also:
Constant Field Values
Constructor Detail

MediaModule

public MediaModule()
Constructor

Method Detail

start

public void start(info.magnolia.module.ModuleLifecycleContext ctx)

Specified by:
start in interface info.magnolia.module.ModuleLifecycle

stop

public void stop(info.magnolia.module.ModuleLifecycleContext ctx)

Specified by:
stop in interface info.magnolia.module.ModuleLifecycle

isAutoactivate

@Deprecated
public boolean isAutoactivate()
Deprecated. use singleinstance


setAutoactivate

@Deprecated
public void setAutoactivate(boolean autoactivate)
Deprecated. use singleinstance


isSingleinstance

public boolean isSingleinstance()
If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).

Returns:
the value of the singleinstance property

setSingleinstance

public void setSingleinstance(boolean singleinstance)
If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).

Parameters:
singleinstance - true if no activation should be performed

getPlayer

public String getPlayer()

setPlayer

public void setPlayer(String player)

getVersion

public String getVersion()
Returns the version.

Returns:
the version

getSearch

public SearchMediaQueryConfiguration getSearch()
Returns the searchConfiguration.

Returns:
the searchConfiguration

setSearch

public void setSearch(SearchMediaQueryConfiguration search)
Sets the searchConfiguration.

Parameters:
searchConfiguration - the searchConfiguration to set

getFolderViewItemsPerPage

public int getFolderViewItemsPerPage()
Returns the folderViewItemsPerPage.

Returns:
the folderViewItemsPerPage

setFolderViewItemsPerPage

public void setFolderViewItemsPerPage(int folderViewItemsPerPage)
Sets the folderViewItemsPerPage.

Parameters:
folderViewItemsPerPage - the folderViewItemsPerPage to set

getFolderViewPageSizes

public Map<String,Integer> getFolderViewPageSizes()
Returns the folderViewPageSizes.

Returns:
the folderViewPageSizes

addFolderViewPageSizes

public void addFolderViewPageSizes(String sizeKey,
                                   Long value)
Parameters:
sizeKey -
value -

getZipimporter

public ZipImporter getZipimporter()
Returns the zipimporter.

Returns:
the zipimporter

setZipimporter

public void setZipimporter(ZipImporter zipimporter)
Sets the zipimporter.

Parameters:
zipimporter - the zipimporter to set

getPlaylistTrackExtensionContributors

public List getPlaylistTrackExtensionContributors()
Returns the playlistTrackExtensionContributors.

Returns:
the playlistTrackExtensionContributors

setPlaylistTrackExtensionContributors

public void setPlaylistTrackExtensionContributors(List playlistTrackExtensionContributors)
Sets the playlistTrackExtensionContributors.

Parameters:
playlistTrackExtensionContributors - the playlistTrackExtensionContributors to set

addPlaylistTrackExtensionContributor

public void addPlaylistTrackExtensionContributor(PlaylistTrackExtensionContributor contributor)

getPlaylistLinks

public List getPlaylistLinks()
Returns the playlistLinks.

Returns:
the playlistLinks

setPlaylistLinks

public void setPlaylistLinks(List playlistLinks)
Sets the playlistLinks.

Parameters:
playlistLinks - the playlistLinks to set

addPlaylistLink

public void addPlaylistLink(PlaylistLink playlistLink)


Copyright © 2008-2011 Openmind. All Rights Reserved.