org.broadleafcommerce.openadmin.client
Class AbstractModule

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.AbstractModule
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint, Module
Direct Known Subclasses:
UserManagementModule

public abstract class AbstractModule
extends java.lang.Object
implements com.google.gwt.core.client.EntryPoint, Module

Author:
jfischer

Field Summary
protected  java.lang.String currentSandBox
           
protected  java.lang.String moduleKey
           
protected  java.lang.String moduleTitle
           
protected  java.util.LinkedHashMap<java.lang.String,java.lang.String[]> pages
           
 
Constructor Summary
AbstractModule()
           
 
Method Summary
 void addConstants(com.google.gwt.i18n.client.ConstantsWithLookup constants)
           
 java.lang.String getCurrentSandBox()
           
 java.lang.String getModuleKey()
           
 java.lang.String getModuleTitle()
           
 java.util.LinkedHashMap<java.lang.String,java.lang.String[]> getPages()
           
 void postDraw()
           
 void preDraw()
           
 void registerModule()
           
 void removeSection(java.lang.String sectionTitle)
           
 void setCurrentSandBox(java.lang.String currentSandBox)
           
 void setModuleKey(java.lang.String moduleKey)
           
 void setModuleTitle(java.lang.String moduleTitle)
           
 void setSection(java.lang.String sectionTitle, java.lang.String viewKey, java.lang.String sectionViewClass, java.util.List<java.lang.String> sectionRoles)
           
 void setSection(java.lang.String sectionTitle, java.lang.String sectionViewKey, java.lang.String sectionViewClass, java.lang.String sectionPresenterKey, java.lang.String sectionPresenterClass, java.util.List<java.lang.String> sectionRoles, java.util.List<java.lang.String> sectionPermissions)
           
 void setSecurity(java.lang.String sectionViewKey, java.util.List<java.lang.String> sectionRoles, java.util.List<java.lang.String> sectionPermissions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.core.client.EntryPoint
onModuleLoad
 

Field Detail

pages

protected java.util.LinkedHashMap<java.lang.String,java.lang.String[]> pages

moduleTitle

protected java.lang.String moduleTitle

moduleKey

protected java.lang.String moduleKey

currentSandBox

protected java.lang.String currentSandBox
Constructor Detail

AbstractModule

public AbstractModule()
Method Detail

registerModule

public void registerModule()

getModuleTitle

public java.lang.String getModuleTitle()
Specified by:
getModuleTitle in interface Module

setModuleTitle

public void setModuleTitle(java.lang.String moduleTitle)

getModuleKey

public java.lang.String getModuleKey()
Specified by:
getModuleKey in interface Module

setModuleKey

public void setModuleKey(java.lang.String moduleKey)

getCurrentSandBox

public java.lang.String getCurrentSandBox()
Specified by:
getCurrentSandBox in interface Module

setCurrentSandBox

public void setCurrentSandBox(java.lang.String currentSandBox)
Specified by:
setCurrentSandBox in interface Module

addConstants

public void addConstants(com.google.gwt.i18n.client.ConstantsWithLookup constants)

setSection

public void setSection(java.lang.String sectionTitle,
                       java.lang.String viewKey,
                       java.lang.String sectionViewClass,
                       java.util.List<java.lang.String> sectionRoles)

setSection

public void setSection(java.lang.String sectionTitle,
                       java.lang.String sectionViewKey,
                       java.lang.String sectionViewClass,
                       java.lang.String sectionPresenterKey,
                       java.lang.String sectionPresenterClass,
                       java.util.List<java.lang.String> sectionRoles,
                       java.util.List<java.lang.String> sectionPermissions)

setSecurity

public void setSecurity(java.lang.String sectionViewKey,
                        java.util.List<java.lang.String> sectionRoles,
                        java.util.List<java.lang.String> sectionPermissions)

removeSection

public void removeSection(java.lang.String sectionTitle)

getPages

public java.util.LinkedHashMap<java.lang.String,java.lang.String[]> getPages()
Specified by:
getPages in interface Module

postDraw

public void postDraw()
Specified by:
postDraw in interface Module

preDraw

public void preDraw()
Specified by:
preDraw in interface Module


Copyright © 2011. All Rights Reserved.