net.sourceforge.openutils.mgnlmedia.media.pages
Class MediaFolderViewPage

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by info.magnolia.module.admininterface.TemplatedMVCHandler
                  extended by net.sourceforge.openutils.mgnlmedia.media.pages.MessagesTemplatedMVCHandler
                      extended by net.sourceforge.openutils.mgnlmedia.media.pages.MediaFolderViewPage
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler

public class MediaFolderViewPage
extends MessagesTemplatedMVCHandler

Page that renders the folder view

Version:
$Id: MediaFolderViewPage.java 2376 2010-05-09 17:29:08Z fgiust $
Author:
molaschi

Field Summary
static String SORT_BY_FILENAME
           
static String SORT_BY_MODIFICATIONDATE
           
static String SORT_BY_USAGE
           
 
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW
 
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
exception, request, response, VIEW_ERROR, VIEW_SUCCESS
 
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler
VIEW_NOTHING
 
Constructor Summary
MediaFolderViewPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String activate()
          Activates single media node
 String copy()
          copy a node
 info.magnolia.cms.core.Content copyMoveNode(String source, String destination, boolean move)
          Copy or move a node (from AdminTreeMVCHandler)
 String deactivate()
          Deactivates single media node
 String delete()
          delete a node
 String download()
          Download media
 String getActMediaHandle()
          Returns the actMediaHandle.
 String getBgSelector()
           
 String getDest()
          Returns the dest.
 Collection<MediaBean> getMedias()
          Returns the medias.
 String getMediaType()
          Returns the mediaType.
 String getMessage(String key, String param)
           
 String getNode()
          Returns the node.
 Map<String,Integer> getNumberOfMedia()
          Returns the numberOfMedia.
 String getPath()
          Returns the path.
 String getSearch()
          Returns the search.
 String getType()
          Returns the type.
 Collection<MediaTypeConfiguration> getTypes()
          Returns the types.
 void init()
          
 boolean isCanPublish()
          Returns the canPublish.
 boolean isDevelop()
          Returns the develop.
 boolean isSelectMedia()
          Returns the selectMedia.
 boolean isSingleInstance()
           
 boolean isWritable()
          Returns the writable.
 String move()
          moves a node
 void setActMediaHandle(String actMediaHandle)
          Sets the actMediaHandle.
 void setCanPublish(boolean canPublish)
          Sets the canPublish.
 void setDest(String dest)
          Sets the dest.
 void setDevelop(boolean develop)
          Sets the develop.
 void setMedias(Collection<MediaBean> medias)
          Sets the medias.
 void setMediaType(String mediaType)
          Sets the mediaType.
 void setNode(String node)
          Sets the node.
 void setNumberOfMedia(Map<String,Integer> numberOfMedia)
          Sets the numberOfMedia.
 void setPath(String path)
          Sets the path.
 void setSearch(String search)
          Sets the search.
 void setSelectMedia(boolean selectMedia)
          Sets the selectMedia.
 void setType(String type)
          Sets the type.
 void setTypes(Collection<MediaTypeConfiguration> types)
          Sets the types.
 void setWritable(boolean writable)
          Sets the writable.
 String show()
          
 
Methods inherited from class net.sourceforge.openutils.mgnlmedia.media.pages.MessagesTemplatedMVCHandler
getMsgs
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
getTemplateName, renderHtml
 
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler
getForm, getI18nBasename, getParams, setForm, setI18nBasename, setMsgs, setParams
 
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler
execute, findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName
 
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_BY_FILENAME

public static final String SORT_BY_FILENAME
See Also:
Constant Field Values

SORT_BY_MODIFICATIONDATE

public static final String SORT_BY_MODIFICATIONDATE
See Also:
Constant Field Values

SORT_BY_USAGE

public static final String SORT_BY_USAGE
See Also:
Constant Field Values
Constructor Detail

MediaFolderViewPage

public MediaFolderViewPage(String name,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
Parameters:
name -
request -
response -
Method Detail

init

public void init()

Specified by:
init in interface info.magnolia.cms.servlets.MVCServletHandler
Overrides:
init in class info.magnolia.module.admininterface.PageMVCHandler

show

public String show()

Overrides:
show in class info.magnolia.module.admininterface.PageMVCHandler

delete

public String delete()
delete a node

Returns:
view

move

public String move()
moves a node

Returns:
view

copy

public String copy()
copy a node

Returns:
view

copyMoveNode

public info.magnolia.cms.core.Content copyMoveNode(String source,
                                                   String destination,
                                                   boolean move)
                                            throws info.magnolia.cms.exchange.ExchangeException,
                                                   javax.jcr.RepositoryException
Copy or move a node (from AdminTreeMVCHandler)

Parameters:
source - source node
destination - destination folder
move - move or copy?
Returns:
new content
Throws:
info.magnolia.cms.exchange.ExchangeException - publication problem
javax.jcr.RepositoryException - repository exception

activate

public String activate()
Activates single media node

Returns:
view

deactivate

public String deactivate()
Deactivates single media node

Returns:
view

download

public String download()
Download media

Returns:
nothing, but attach downloadable file to response

getPath

public String getPath()
Returns the path.

Returns:
the path

getMedias

public Collection<MediaBean> getMedias()
Returns the medias.

Returns:
the medias

setMedias

public void setMedias(Collection<MediaBean> medias)
Sets the medias.

Parameters:
medias - the medias to set

setPath

public void setPath(String path)
Sets the path.

Parameters:
path - the path to set

getTypes

public Collection<MediaTypeConfiguration> getTypes()
Returns the types.

Returns:
the types

setTypes

public void setTypes(Collection<MediaTypeConfiguration> types)
Sets the types.

Parameters:
types - the types to set

getType

public String getType()
Returns the type.

Returns:
the type

setType

public void setType(String type)
Sets the type.

Parameters:
type - the type to set

isWritable

public boolean isWritable()
Returns the writable.

Returns:
the writable

setWritable

public void setWritable(boolean writable)
Sets the writable.

Parameters:
writable - the writable to set

isCanPublish

public boolean isCanPublish()
Returns the canPublish.

Returns:
the canPublish

setCanPublish

public void setCanPublish(boolean canPublish)
Sets the canPublish.

Parameters:
canPublish - the canPublish to set

getNode

public String getNode()
Returns the node.

Returns:
the node

setNode

public void setNode(String node)
Sets the node.

Parameters:
node - the node to set

getDest

public String getDest()
Returns the dest.

Returns:
the dest

setDest

public void setDest(String dest)
Sets the dest.

Parameters:
dest - the dest to set

isSelectMedia

public boolean isSelectMedia()
Returns the selectMedia.

Returns:
the selectMedia

setSelectMedia

public void setSelectMedia(boolean selectMedia)
Sets the selectMedia.

Parameters:
selectMedia - the selectMedia to set

getActMediaHandle

public String getActMediaHandle()
Returns the actMediaHandle.

Returns:
the actMediaHandle

setActMediaHandle

public void setActMediaHandle(String actMediaHandle)
Sets the actMediaHandle.

Parameters:
actMediaHandle - the actMediaHandle to set

getMediaType

public String getMediaType()
Returns the mediaType.

Returns:
the mediaType

setMediaType

public void setMediaType(String mediaType)
Sets the mediaType.

Parameters:
mediaType - the mediaType to set

getNumberOfMedia

public Map<String,Integer> getNumberOfMedia()
Returns the numberOfMedia.

Returns:
the numberOfMedia

setNumberOfMedia

public void setNumberOfMedia(Map<String,Integer> numberOfMedia)
Sets the numberOfMedia.

Parameters:
numberOfMedia - the numberOfMedia to set

isDevelop

public boolean isDevelop()
Returns the develop.

Returns:
the develop

setDevelop

public void setDevelop(boolean develop)
Sets the develop.

Parameters:
develop - the develop to set

getSearch

public String getSearch()
Returns the search.

Returns:
the search

setSearch

public void setSearch(String search)
Sets the search.

Parameters:
search - the search to set

isSingleInstance

public boolean isSingleInstance()

getBgSelector

public String getBgSelector()

getMessage

public String getMessage(String key,
                         String param)


Copyright © 2008-2010 Openmind. All Rights Reserved.