|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDIFContext
This interface hides some DIFContext details from the Stage. There are public setters on the DIFContext class that would be accessible to the Stage.
Method Summary | |
---|---|
void |
addResultMessage(String type,
String title,
String description)
Adds a result message to the stage result |
void |
addResultMessage(String type,
String title,
String description,
boolean popupMode)
Adds a result message to the stage result |
void |
addResultMessage(String type,
String title,
String description,
String mode)
Adds a result message to the stage result. |
void |
addStageResult(String resultName,
Object resultValue)
Add a new result to the stage results. |
String |
getLanguage()
|
IDIFRequest |
getRequest()
Inspector for the DIFRequest object |
ResultMessage |
getResultMessage()
Inspector for the 'resultMessage' attribute. |
IDIFSession |
getSession()
Inspector for the session object. |
String |
getStage()
Inspector for the current stage |
Map<String,Object> |
getStageResults()
Inspector for the stage results. |
Map<String,Object> |
getTemporaryAttributes()
Inspector for the 'temporaryAttributes' attribute. |
ViewObject |
getView()
Inspector for the view. |
void |
handleRedirection()
Handles the redirection. |
boolean |
hasRedirection()
Inspector for the redirection flag. |
void |
redirectTo(String newStage)
Sets the redirection stage. |
void |
redirectTo(String newStage,
boolean allowRedirectToSameStage)
Sets the redirection stage. |
void |
redirectTo(String newStage,
Map<String,Object> redirectionParameters)
Sets the redirection stage. |
void |
redirectTo(String newStage,
Map<String,Object> redirectionParameters,
boolean allowRedirectToSameStage)
Sets the redirection stage. |
void |
redirectTo(String newStage,
String redirectionParameters)
Sets the redirection stage. |
void |
redirectTo(String newStage,
String redirectionParameters,
boolean allowRedirectToSameStage)
Sets the redirection stage. |
void |
reportIssue(String uID,
IssueType type,
String issueDescription)
Report an issue to the IUsageIssuesManager |
void |
reportIssue(String uID,
IssueType type,
String issueDescription,
Exception exception)
Report an issue to the IUsageIssuesManager |
void |
reportIssue(String uID,
IssueType type,
String issueDescription,
Exception exception,
boolean showStackTrace)
Report an issue to the IUsageIssuesManager |
void |
reportIssue(UsageIssue issue)
Report an issue to the IUsageIssuesManager |
void |
setRequest(IDIFRequest difRequest)
Modifier for the DIFRequest Object |
void |
setSession(IDIFSession session)
Modifier for the session object. |
void |
setStage(String stage)
Modifier for the current stage |
void |
setStageResults(Map<String,Object> results)
Modifier for the stage results. |
void |
setTemporaryAttributes(Map<String,Object> temporaryAttributes)
Modifier for the 'temporaryAttributes' attribute. |
void |
setView(ViewObject view)
Modifier for the view. |
Method Detail |
---|
void addResultMessage(String type, String title, String description)
type
- the message typetitle
- the title of the messagedescription
- the description of the messagevoid addResultMessage(String type, String title, String description, boolean popupMode)
type
- the message typetitle
- the title of the messagedescription
- the description of the messagepopupMode
- if the message should be showed in popup mode (in a dialog)void addResultMessage(String type, String title, String description, String mode)
type
- the message typetitle
- the title of the messagedescription
- the description of the messagemode
- the modevoid addStageResult(String resultName, Object resultValue)
resultName
- the name of the resultresultValue
- the result valueString getLanguage()
IDIFRequest getRequest()
ResultMessage getResultMessage()
IDIFSession getSession()
String getStage()
Map<String,Object> getStageResults()
Map<String,Object> getTemporaryAttributes()
ViewObject getView()
void handleRedirection()
boolean hasRedirection()
void redirectTo(String newStage)
newStage
- the stage to redirect tovoid redirectTo(String newStage, boolean allowRedirectToSameStage)
newStage
- the stage to redirect toallowRedirectToSameStage
- if T allows redirect to same stage to be setvoid redirectTo(String newStage, Map<String,Object> redirectionParameters)
newStage
- the stage to redirect toredirectionParameters
- the redirection parametersvoid redirectTo(String newStage, Map<String,Object> redirectionParameters, boolean allowRedirectToSameStage)
allowRedirectToSameStage
- if T allows redirect to same stage to be setnewStage
- the stage to redirect toredirectionParameters
- the redirection parametersvoid redirectTo(String newStage, String redirectionParameters)
newStage
- the stage to redirect toredirectionParameters
- the redirection parametersvoid redirectTo(String newStage, String redirectionParameters, boolean allowRedirectToSameStage)
allowRedirectToSameStage
- if T allows redirect to same stage to be setnewStage
- the stage to redirect toredirectionParameters
- the redirection parametersvoid reportIssue(String uID, IssueType type, String issueDescription)
IUsageIssuesManager
uID
- the unique identifier for this contribution. for recurring errors not to be added repeatedlytype
- the issue typeissueDescription
- void reportIssue(String uID, IssueType type, String issueDescription, Exception exception)
IUsageIssuesManager
uID
- the unique identifier for this contribution. for recurring errors not to be added repeatedlytype
- the issue typeissueDescription
- exception
- the raised exceptionvoid reportIssue(String uID, IssueType type, String issueDescription, Exception exception, boolean showStackTrace)
IUsageIssuesManager
uID
- the unique identifier for this contribution. for recurring errors not to be added repeatedlytype
- the issue typeissueDescription
- exception
- the raised exceptionshowStackTrace
- if the stack trace should be generated and attached to the issue descriptionvoid reportIssue(UsageIssue issue)
IUsageIssuesManager
issue
- the issue descriptorvoid setRequest(IDIFRequest difRequest)
difRequest
- the Original DifRequestvoid setSession(IDIFSession session)
session
- the session to setvoid setStage(String stage)
stage
- the stage to setvoid setStageResults(Map<String,Object> results)
results
- the results to setvoid setTemporaryAttributes(Map<String,Object> temporaryAttributes)
temporaryAttributes
- the new temporaryAttributes value to setvoid setView(ViewObject view)
view
- the ViewObject to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |