org.openpermis.editor.policy.view
Class LoadProblemRecorder

java.lang.Object
  extended by org.openpermis.editor.policy.view.LoadProblemRecorder
All Implemented Interfaces:
org.openpermis.policy.io.ProblemReporter

public class LoadProblemRecorder
extends Object
implements org.openpermis.policy.io.ProblemReporter

Records import problems and shows warning messages.

Since:
0.3.0

Constructor Summary
LoadProblemRecorder(org.jdesktop.application.ApplicationContext context)
          Creates a new problem reporter for import problems.
 
Method Summary
 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
 

Constructor Detail

LoadProblemRecorder

public LoadProblemRecorder(org.jdesktop.application.ApplicationContext context)
Creates a new problem reporter for import problems.

Parameters:
context - the context used to retrieve translations.
Since:
0.3.0
Method Detail

hasWarnings

public boolean hasWarnings()
Tests if there have been any warnings during the import.

Returns:
true if a warning was recorded, false otherwise.
Since:
0.3.0

showDialog

public void showDialog(Component owner,
                       File file)
Shows a warning dialog with detail messages for the specified file.

Parameters:
owner - the owner of the dialog to display.
file - the file for which to show the warnings.
Since:
0.3.0

reportProblem

public void reportProblem(org.openpermis.policy.io.ProblemType type,
                          Object... parameters)
Specified by:
reportProblem in interface org.openpermis.policy.io.ProblemReporter
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG