|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.view.LoadProblemRecorder
public class LoadProblemRecorder
Records import problems and shows warning messages.
Field Summary | |
---|---|
private static int |
FORMAT_LIST
Dialog format for warnings. |
private static int |
FORMAT_TABLE
Dialog format for warnings. |
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
private static String |
PROBLEM_KEY_PREFIX
Prefix for all problem keys. |
private org.jdesktop.application.ResourceMap |
resourceMap
The translations for problem types handled by this reporter. |
private List<String> |
warnings
A list of warnings recorded. |
Constructor Summary | |
---|---|
LoadProblemRecorder(org.jdesktop.application.ApplicationContext context)
Creates a new problem reporter for import problems. |
Method Summary | |
---|---|
private String |
getKey(org.openpermis.policy.io.ProblemType type)
Returns the translation key for a problem type. |
private String |
getWarningDetails(File file,
int format)
Returns an HTML version of the collected warnings. |
boolean |
hasWarnings()
Tests if there have been any warnings during the import. |
void |
reportProblem(org.openpermis.policy.io.ProblemType type,
Object... parameters)
|
void |
showDialog(Component owner,
File file)
Shows a warning dialog with detail messages for the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String PROBLEM_KEY_PREFIX
"problem."
private static final org.slf4j.Logger LOGGER
private static final int FORMAT_LIST
1
private static final int FORMAT_TABLE
2
private final org.jdesktop.application.ResourceMap resourceMap
private final List<String> warnings
Constructor Detail |
---|
public LoadProblemRecorder(org.jdesktop.application.ApplicationContext context)
context
- the context used to retrieve translations.Method Detail |
---|
public boolean hasWarnings()
true
if a warning was recorded, false
otherwise.private String getWarningDetails(File file, int format)
file
- the file for which to issue the warning message.format
- {FORMAT_LIST, FORMAT_TABLE}
public void showDialog(Component owner, File file)
owner
- the owner of the dialog to display.file
- the file for which to show the warnings.private String getKey(org.openpermis.policy.io.ProblemType type)
type
- the problem type for which to retrieve the key.
public void reportProblem(org.openpermis.policy.io.ProblemType type, Object... parameters)
reportProblem
in interface org.openpermis.policy.io.ProblemReporter
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG