za.org.coefficient.modules.news
Class NewsAdmin

java.lang.Object
  extended by za.org.coefficient.modules.BaseModule
      extended by za.org.coefficient.modules.BaseNavProjectModule
          extended by za.org.coefficient.modules.news.NewsBase
              extended by za.org.coefficient.modules.news.NewsAdmin
All Implemented Interfaces:
CoefficientEventPublisher, ModuleLocal

public class NewsAdmin
extends NewsBase


Field Summary
private static java.lang.String EDIT_NEWS_DATA
           
private static java.lang.String PROJECT_NEWS_PAGER
           
private static java.lang.String SITE_NEWS_PAGER
           
 
Constructor Summary
NewsAdmin()
           
 
Method Summary
 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
 CoefficientContext delete(CoefficientContext ctx)
           
 CoefficientContext deleteConfimation(CoefficientContext ctx)
           
 CoefficientContext edit(CoefficientContext ctx)
           
 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
 CoefficientContext infoPrompt(CoefficientContext ctx)
           
 CoefficientContext save(CoefficientContext ctx)
           
 CoefficientContext saveConfimation(CoefficientContext ctx)
           
 CoefficientContext viewOld(CoefficientContext ctx)
           
 
Methods inherited from class za.org.coefficient.modules.news.NewsBase
deleteAllForProject, getNewsPager
 
Methods inherited from class za.org.coefficient.modules.BaseNavProjectModule
getSummaryForProject, showSummaryForProject
 
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

SITE_NEWS_PAGER

private static final java.lang.String SITE_NEWS_PAGER
See Also:
Constant Field Values

PROJECT_NEWS_PAGER

private static final java.lang.String PROJECT_NEWS_PAGER
See Also:
Constant Field Values

EDIT_NEWS_DATA

private static final java.lang.String EDIT_NEWS_DATA
See Also:
Constant Field Values
Constructor Detail

NewsAdmin

public NewsAdmin()
Method Detail

getMainMethod

public java.lang.String getMainMethod()
Description copied from interface: ModuleLocal
This method is used to determine which method should be invoked when the module is requested without an operation.

Specified by:
getMainMethod in interface ModuleLocal
Specified by:
getMainMethod in class BaseModule
Returns:
name of the method that should be invoked

getModuleDescription

public java.lang.String getModuleDescription()
Description copied from interface: ModuleLocal
This method is used to find the description of the module

Specified by:
getModuleDescription in interface ModuleLocal
Specified by:
getModuleDescription in class BaseModule
Returns:
the description of the module

getModuleDisplayName

public java.lang.String getModuleDisplayName()
Description copied from interface: ModuleLocal
This method is used to find the display name of the module

Specified by:
getModuleDisplayName in interface ModuleLocal
Specified by:
getModuleDisplayName in class BaseModule
Returns:
the display name of the module

canExecuteForRole

public java.lang.String canExecuteForRole(CoefficientContext ctx,
                                          java.lang.String methodName,
                                          Role usersHighestRole)
Description copied from class: BaseModule
This is a base implementation that will allow all methods to be invoked without regard to roles

Specified by:
canExecuteForRole in interface ModuleLocal
Overrides:
canExecuteForRole in class BaseModule
Returns:
null if we can execute the method an error message if not

delete

public CoefficientContext delete(CoefficientContext ctx)
                          throws java.lang.Exception
Throws:
java.lang.Exception

deleteConfimation

public CoefficientContext deleteConfimation(CoefficientContext ctx)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

edit

public CoefficientContext edit(CoefficientContext ctx)
                        throws java.lang.Exception
Throws:
java.lang.Exception

infoPrompt

public CoefficientContext infoPrompt(CoefficientContext ctx)
                              throws java.lang.Exception
Throws:
java.lang.Exception

save

public CoefficientContext save(CoefficientContext ctx)
                        throws java.lang.Exception
Throws:
java.lang.Exception

saveConfimation

public CoefficientContext saveConfimation(CoefficientContext ctx)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

viewOld

public CoefficientContext viewOld(CoefficientContext ctx)
                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright CSIR. All Rights Reserved.