za.org.coefficient.interfaces
Interface Module


public interface Module

This interface defines methods that must be implemented by a module of the system. A module will have methods invoked with a single parameter, za.org.coefficient.core.CoefficientContext .


Method Summary
 java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
          This method is used to determine if a named method can be executed for a specified system role.
 CoefficientContext getCoefficientContext()
           
 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
 java.lang.String getModuleName()
          This method is used to find the system name of the module that is used to resolve the session bean
 boolean isProjectRequired()
          This method is used determine if we implement BaseProjectModule
 void setCoefficientContext(CoefficientContext ctx)
           
 CoefficientContext showHelp(CoefficientContext ctx)
          This method is used to show help on the your module.
 

Method Detail

setCoefficientContext

void setCoefficientContext(CoefficientContext ctx)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getCoefficientContext

CoefficientContext getCoefficientContext()
                                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getMainMethod

java.lang.String getMainMethod()
                               throws java.rmi.RemoteException
This method is used to determine which method should be invoked when the module is requested without an operation.

Returns:
name of the method that should be invoked
Throws:
java.rmi.RemoteException

getModuleDescription

java.lang.String getModuleDescription()
                                      throws java.rmi.RemoteException
This method is used to find the description of the module

Returns:
the description of the module
Throws:
java.rmi.RemoteException

getModuleDisplayName

java.lang.String getModuleDisplayName()
                                      throws java.rmi.RemoteException
This method is used to find the display name of the module

Returns:
the display name of the module
Throws:
java.rmi.RemoteException

getModuleName

java.lang.String getModuleName()
                               throws java.rmi.RemoteException
This method is used to find the system name of the module that is used to resolve the session bean

Returns:
the system name of the module
Throws:
java.rmi.RemoteException

canExecuteForRole

java.lang.String canExecuteForRole(CoefficientContext ctx,
                                   java.lang.String methodName,
                                   Role usersHighestRole)
                                   throws java.rmi.RemoteException
This method is used to determine if a named method can be executed for a specified system role.

Returns:
null if we can execute the method an error message if not
Throws:
java.rmi.RemoteException

showHelp

CoefficientContext showHelp(CoefficientContext ctx)
                            throws java.rmi.RemoteException
This method is used to show help on the your module. You can get the op name by calling CoefficientContext.getLastNonHelpOp()

Throws:
java.rmi.RemoteException

isProjectRequired

boolean isProjectRequired()
                          throws java.rmi.RemoteException
This method is used determine if we implement BaseProjectModule

Throws:
java.rmi.RemoteException


Copyright CSIR. All Rights Reserved.