info.magnolia.module.admininterface.pages
Class DevelopmentUtilsPage

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 info.magnolia.module.admininterface.pages.DevelopmentUtilsPage
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler

public class DevelopmentUtilsPage
extends TemplatedMVCHandler

Utilities that can be used during development.

Version:
$Revision: 54178 $ ($Author: ehechinger $)
Author:
Fabrizio Giustina

Field Summary
static org.slf4j.Logger log
          Logger.
 
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
DevelopmentUtilsPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String backup()
           
 String backupChildren()
           
 String extractModuleFiles()
           
 String getModule()
          Getter for module.
 Set getModules()
           
 String getParentpath()
          Getter for parentpath.
 Iterator getRepositories()
           
 String getRepository()
          Getter for repository.
 String getRootdir()
          Getter for rootdir.
 boolean isDialogs()
          Getter for dialogs.
 boolean isGroups()
          Getter for groups.
 boolean isPages()
          Getter for pages.
 boolean isParagraphs()
          Getter for paragraphs.
 boolean isRoles()
          Getter for roles.
 boolean isTemplates()
          Getter for templates.
 boolean isUsers()
          Getter for users.
 boolean isVirtualURIs()
          Getter for virtualURIs.
 boolean isWebsite()
          Getter for website.
 String reloadI18nMessages()
           
 void setChieldFilter(info.magnolia.cms.core.Content.ContentFilter chieldFilter)
          Setter for chieldFilter.
 void setDialogs(boolean dialogs)
          Setter for dialogs.
 void setGroups(boolean groups)
          Setter for groups.
 void setModule(String module)
          Setter for module.
 void setPages(boolean pages)
          Setter for pages.
 void setParagraphs(boolean paragraphs)
          Setter for paragraphs.
 void setParentpath(String parentpath)
          Setter for parentpath.
 void setRepository(String repository)
          Setter for repository.
 void setRoles(boolean roles)
          Setter for roles.
 void setRootdir(String rootdir)
          Setter for rootdir.
 void setTemplates(boolean templates)
          Setter for templates.
 void setUsers(boolean users)
          Setter for users.
 void setVirtualURIs(boolean virtualURIs)
          Setter for virtualURIs.
 void setWebsite(boolean website)
          Setter for website.
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
getTemplateName, renderHtml
 
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show
 
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

log

public static org.slf4j.Logger log
Logger.

Constructor Detail

DevelopmentUtilsPage

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

isTemplates

public boolean isTemplates()
Getter for templates.

Returns:
Returns the templates.

isParagraphs

public boolean isParagraphs()
Getter for paragraphs.

Returns:
Returns the paragraphs.

isDialogs

public boolean isDialogs()
Getter for dialogs.

Returns:
Returns the dialogs.

isPages

public boolean isPages()
Getter for pages.

Returns:
Returns the pages.

setChieldFilter

public void setChieldFilter(info.magnolia.cms.core.Content.ContentFilter chieldFilter)
Setter for chieldFilter. This filter is used in the backupChildren method. Get all children of the current node that pass the current filter. If no filter is set, ALL_NODES_EXCEPT_JCR_CONTENT_FILTER is then used.


setPages

public void setPages(boolean pages)
Setter for pages.

Parameters:
pages - The pages to set.

isWebsite

public boolean isWebsite()
Getter for website.

Returns:
Returns the website.

isUsers

public boolean isUsers()
Getter for users.

Returns:
Returns the users.

isGroups

public boolean isGroups()
Getter for groups.

Returns:
Returns the groups.

isRoles

public boolean isRoles()
Getter for roles.

Returns:
Returns the roles.

getRootdir

public String getRootdir()
Getter for rootdir.

Returns:
Returns the rootdir.

getParentpath

public String getParentpath()
Getter for parentpath.

Returns:
Returns the parentpath.

getRepository

public String getRepository()
Getter for repository.

Returns:
Returns the repository.

setDialogs

public void setDialogs(boolean dialogs)
Setter for dialogs.

Parameters:
dialogs - The dialogs to set.

setParagraphs

public void setParagraphs(boolean paragraphs)
Setter for paragraphs.

Parameters:
paragraphs - The paragraphs to set.

setTemplates

public void setTemplates(boolean templates)
Setter for templates.

Parameters:
templates - The templates to set.

setRootdir

public void setRootdir(String rootdir)
Setter for rootdir.

Parameters:
rootdir - The rootdir to set.

setWebsite

public void setWebsite(boolean website)
Setter for website.

Parameters:
website - The website to set.

setParentpath

public void setParentpath(String parentpath)
Setter for parentpath.

Parameters:
parentpath - The parentpath to set.

setGroups

public void setGroups(boolean groups)
Setter for groups.

Parameters:
groups - The groups to set.

setRoles

public void setRoles(boolean roles)
Setter for roles.

Parameters:
roles - The roles to set.

setUsers

public void setUsers(boolean users)
Setter for users.

Parameters:
users - The users to set.

getModule

public String getModule()
Getter for module.

Returns:
Returns the module.

setModule

public void setModule(String module)
Setter for module.

Parameters:
module - The module to set.

setRepository

public void setRepository(String repository)
Setter for repository.

Parameters:
repository - The repository to set.

isVirtualURIs

public boolean isVirtualURIs()
Getter for virtualURIs.

Returns:
Returns the virtualURIs.

setVirtualURIs

public void setVirtualURIs(boolean virtualURIs)
Setter for virtualURIs.

Parameters:
virtualURIs - The virtualURIs to set.

getRepositories

public Iterator getRepositories()

getModules

public Set getModules()

extractModuleFiles

public String extractModuleFiles()

reloadI18nMessages

public String reloadI18nMessages()

backup

public String backup()

backupChildren

public String backupChildren()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.