Package org.javlo.module.file
Class FileModuleContext
- java.lang.Object
-
- org.javlo.module.core.AbstractModuleContext
-
- org.javlo.module.file.FileModuleContext
-
public class FileModuleContext extends AbstractModuleContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringMODULE_NAMEstatic StringPAGE_META-
Fields inherited from class org.javlo.module.core.AbstractModuleContext
globalContext, i18nAccess, module
-
-
Constructor Summary
Constructors Constructor Description FileModuleContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()LinkToRenderergetHomeLink()static FileModuleContextgetInstance(javax.servlet.http.HttpServletRequest request)List<LinkToRenderer>getNavigation()get the navigation of the moduleStringgetPath()StringgetRoot()intgetSort()StringgetTitle()voidinit()use getInstance on AbstractModuleContext or smart instance in action method for instantiate.voidloadNavigation()voidsetPath(String path)voidsetRoot(String root)voidsetSort(int sort)voidsetTitle(String title)-
Methods inherited from class org.javlo.module.core.AbstractModuleContext
getCurrentInstance, getCurrentLink, getFlatNavigation, getInstance, getRenderer, getWizardStep, setCurrentLink, setRenderer, setRendererFromNavigation, setWizardStep
-
-
-
-
Field Detail
-
MODULE_NAME
public static final String MODULE_NAME
- See Also:
- Constant Field Values
-
PAGE_META
public static final String PAGE_META
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
use getInstance on AbstractModuleContext or smart instance in action method for instantiate.- Specified by:
initin classAbstractModuleContext
-
getInstance
public static FileModuleContext getInstance(javax.servlet.http.HttpServletRequest request) throws FileNotFoundException, InstantiationException, IllegalAccessException, IOException, ModuleException
-
loadNavigation
public void loadNavigation()
-
clear
public void clear()
-
getRoot
public String getRoot()
-
setRoot
public void setRoot(String root)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getNavigation
public List<LinkToRenderer> getNavigation()
Description copied from class:AbstractModuleContextget the navigation of the module- Specified by:
getNavigationin classAbstractModuleContext- Returns:
-
getHomeLink
public LinkToRenderer getHomeLink()
- Specified by:
getHomeLinkin classAbstractModuleContext
-
getSort
public int getSort()
-
setSort
public void setSort(int sort)
-
-