Control Opening Workscreens

The ProjX application is a standard implementation of JVx' RemoteWorkScreenApplication. It's the default application frame for applications with workscreens. It controls the access to workscreens and configures the application frame for it's different states (logged on, logged out, anonymous user). It's not allowed to open workscreens if no user is logged on or if anonymous usage wasn't configured.

A workscreen will be opened if it's allowed to open the screen. The security will be controlled by the server side as well, but the application has some UI-relevant checks.

If you want to change the default checks, or if you need to execute custom tasks before a workscreen would be opened, simply extend ProjX and change one of the following methods:

public synchronized IWorkScreen openWorkScreen(String pClassName, 
                                               Modality pModality, 
                                               AbstractConnection pConnection, 
                                               Map<String, Object> pParameter, 
                                               boolean pSingleInstance) throws Throwable

This methods performs security checks and fires before/after events like before open workscreen.

The workscreen instance will be loaded with

public IWorkScreen loadWorkScreen(IApplication pApplication, String pClassName, 
                                  AbstractConnection pConnection, 
                                  Map<String, Object> pParameter)

This is the right method if you want to use custom classloaders for loading your workscreens.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information