|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.org.coefficient.modules.BaseModule
za.org.coefficient.modules.category.CategoryBrowse
public class CategoryBrowse
Field Summary | |
---|---|
java.lang.String |
ACTION
|
java.lang.String |
ALL
|
java.lang.String |
BROWSE
|
java.lang.String |
BROWSEPAGE
|
java.lang.String |
CATDISP
|
java.lang.String |
CATEGORY
|
java.lang.String |
CATEGORY_BROWSE_PAGER
|
java.lang.String |
CATEGORY_ID
|
java.lang.String |
CHILDID
|
java.lang.String |
CLOSE
|
java.lang.String |
DESCRIPTION
|
java.lang.String |
ERROR
|
java.lang.String |
ID
|
java.lang.String |
LIST
|
java.lang.String |
MODULE
|
java.lang.String |
MSG
|
java.lang.String |
NAME
|
java.lang.String |
NEXT
|
java.lang.String |
OP
|
java.lang.String |
OPEN
|
java.lang.String |
PAGE
|
java.lang.String |
PAGER
|
java.lang.String |
PARENT
|
java.lang.String |
PATH
|
java.lang.String |
PREVIOUS
|
java.lang.String |
PROJECTS
|
java.lang.String |
ROOT
|
java.lang.String |
SESSION_ID
|
Constructor Summary | |
---|---|
CategoryBrowse()
|
Method Summary | |
---|---|
private int |
anyProjectsCount(Category cat)
return the count of projects with this category |
java.lang.String |
canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
This is a base implementation that will allow all methods to be invoked without regard to roles |
private void |
closeCategory(CoefficientContext ctx)
|
private Category |
getCategory(java.lang.String id)
|
java.lang.String |
getMainMethod()
This method is used to determine which method should be invoked when the module is requested without an operation. |
java.lang.String |
getModuleDescription()
This method is used to find the description of the module |
java.lang.String |
getModuleDisplayName()
This method is used to find the display name of the module |
private Category |
getRoot()
see if the root category is there and if it isn't create it |
private java.util.List |
getSubCategories(java.lang.String id)
|
private java.util.List |
getSubCategoriesForDisplay(java.lang.String id,
java.util.List openList)
|
void |
interpretOp(CoefficientContext ctx)
|
private void |
listProjects(CoefficientContext ctx)
|
private void |
openCategory(CoefficientContext ctx,
java.lang.String msg)
|
private CoefficientContext |
viewCategoryTree(CoefficientContext ctx,
java.lang.String msg)
|
Methods inherited from class za.org.coefficient.modules.BaseModule |
---|
createRSSItem, displayUsersData, getCoefficientContext, getModuleName, isProjectRequired, publishEvent, setCoefficientContext, showHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String ACTION
public final java.lang.String ALL
public final java.lang.String BROWSE
public final java.lang.String BROWSEPAGE
public final java.lang.String CATDISP
public final java.lang.String CATEGORY
public final java.lang.String CATEGORY_BROWSE_PAGER
public final java.lang.String CATEGORY_ID
public final java.lang.String CHILDID
public final java.lang.String CLOSE
public final java.lang.String DESCRIPTION
public final java.lang.String ERROR
public final java.lang.String ID
public final java.lang.String LIST
public final java.lang.String MODULE
public final java.lang.String MSG
public final java.lang.String NAME
public final java.lang.String NEXT
public final java.lang.String OP
public final java.lang.String OPEN
public final java.lang.String PAGE
public final java.lang.String PAGER
public final java.lang.String PARENT
public final java.lang.String PATH
public final java.lang.String PREVIOUS
public final java.lang.String PROJECTS
public final java.lang.String ROOT
public final java.lang.String SESSION_ID
Constructor Detail |
---|
public CategoryBrowse()
Method Detail |
---|
public java.lang.String getMainMethod()
ModuleLocal
getMainMethod
in interface ModuleLocal
getMainMethod
in class BaseModule
public java.lang.String getModuleDescription()
ModuleLocal
getModuleDescription
in interface ModuleLocal
getModuleDescription
in class BaseModule
public java.lang.String getModuleDisplayName()
ModuleLocal
getModuleDisplayName
in interface ModuleLocal
getModuleDisplayName
in class BaseModule
public java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
BaseModule
canExecuteForRole
in interface ModuleLocal
canExecuteForRole
in class BaseModule
private void closeCategory(CoefficientContext ctx)
public void interpretOp(CoefficientContext ctx)
private void listProjects(CoefficientContext ctx)
private void openCategory(CoefficientContext ctx, java.lang.String msg)
private CoefficientContext viewCategoryTree(CoefficientContext ctx, java.lang.String msg)
private Category getCategory(java.lang.String id)
private Category getRoot()
private java.util.List getSubCategories(java.lang.String id)
private java.util.List getSubCategoriesForDisplay(java.lang.String id, java.util.List openList)
private int anyProjectsCount(Category cat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |