|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStageInstance
This interface represents a Stage entity on the DEM.
A Stage is related to a Service.
Method Summary | |
---|---|
ViewObject |
_CG_execute(IDIFContext context)
The business logic executing method. |
boolean |
_CG_finalize(IDIFContext context)
The finalization method. |
boolean |
_CG_init(IDIFContext context)
The initialization method. |
Object |
callEventMethod(IDIFContext context,
EventType type,
String eventName)
The method that will be enhanced with the call to the correct event method. |
ViewObject |
callExecuteMethod(IDIFContext context)
The method that will be enhanced with the call to the method annotated with @Execute . |
ViewObject |
callExecuteOnEventMethod(IDIFContext context,
EventType type,
String eventName)
The method that will be enhanced with the call to the method annotated with @Execute . |
void |
declareFeatureActive(String featureID)
Declares for the current stage instance that a given feature is enabled |
ControllerException |
getAuthenticationError()
Gets the authentication error after an initialization has occurred |
IDIFContext |
getContext()
Returns the execution context. |
ParameterErrors |
getParameterErrors()
Gets the parameter errors after a initialization has occurred |
boolean |
isFeatureEnabled(String featureID)
Validates if a given feature is active/present |
boolean |
isInitialized()
|
void |
setAuthenticationError(ControllerException exception)
Sets the authentication error |
void |
setContext(IDIFContext context)
Sets the execution context on the Stage. |
void |
setParameterErrors(ParameterErrors errors)
Sets the parameter errors |
void |
setProxy(IStage proxy)
Sets the associated proxy to call info upon |
Methods inherited from interface pt.digitalis.dif.dem.interfaces.IStage |
---|
getDefaultErrorStage, getDefaultErrorView, getDefaultView, getEventHandlers, getInjectedErrorStages, getInjectedErrorViews, getInjectedStages, getInjectedViews, getInstance, getMessageForLanguage, getMessagesForLanguage, getOverridesStageID, getParameters, getService, getStageInstanceClassName, hasAuthentication, hasAuthenticationErrorInjection, hasAuthorization, hasInjectedContributions, hasParameterErrorInjection, hasValidationLogicForForm |
Methods inherited from interface pt.digitalis.dif.dem.interfaces.IEntity |
---|
getID, getName, getOriginalClassName, getUID |
Methods inherited from interface pt.digitalis.dif.dem.interfaces.ICallback |
---|
getCallbackType, hasCallbackEnabled |
Methods inherited from interface pt.digitalis.dif.dem.interfaces.IRegistrable |
---|
getLicenseEdition, isRegistered, isRegistrable, register, unregister |
Methods inherited from interface pt.digitalis.dif.dem.interfaces.IMessage |
---|
getMessage, getMessages |
Method Detail |
---|
ViewObject _CG_execute(IDIFContext context) throws BusinessFlowException
This method should define the Stage business logic.
context
- the execution context
BusinessFlowException
- when an exception is thrown by the stage's init/execute stepsboolean _CG_finalize(IDIFContext context) throws BusinessFlowException
This method should perform any tasks related to the Stage initialization.
Not to be confused with Java's own protected void finalize() throws Throwable
.
context
- the execution context
BusinessFlowException
- when an exception is thrown by the stage's init/execute stepsboolean _CG_init(IDIFContext context) throws BusinessFlowException
This method should perform any tasks related to the Stage initialization.
context
- the execution context
BusinessFlowException
- when an exception is thrown by the stage's init/execute stepsObject callEventMethod(IDIFContext context, EventType type, String eventName)
context
- the execution contexttype
- the type of the fired eventeventName
- the name of the event
ViewObject callExecuteMethod(IDIFContext context)
@Execute
.
context
- the execution context
ViewObject callExecuteOnEventMethod(IDIFContext context, EventType type, String eventName)
@Execute
.
context
- the execution contexttype
- the type of the fired eventeventName
- the name of the event
void declareFeatureActive(String featureID)
featureID
- the feature Id to declare activeControllerException getAuthenticationError()
IDIFContext getContext()
ParameterErrors getParameterErrors()
boolean isFeatureEnabled(String featureID)
featureID
- the Id of the feature do validate is is present/active
boolean isInitialized()
void setAuthenticationError(ControllerException exception)
exception
- the authentication exceptionvoid setContext(IDIFContext context)
context
- the execution contextvoid setParameterErrors(ParameterErrors errors)
errors
- the errors object to setvoid setProxy(IStage proxy)
proxy
- the proxy to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |