From Documentation

Jump to: navigation, search







An AU service (AuService) is a plugin used to intercept the AU requests (AuRequest) sent from the client.

By plugging in an AU service, you could

  • Ignore some AU requests (such as hostile requests)
  • Change the default way of handling an AU request
  • Handle application-specific AU requests

To plug an AU service to a desktop, you could invoke Desktop.addListener(Object). You could plug as many AU services as you want. Once plugged, all AU requests will go through the AU services (unless it was ignored by other AU service).

If you want to plug a particular component, you could invoke Component.setAuService(AuService). Unlike desktops, a component can have at most one AU service.

If you want to plug an AU service, you could implement DesktopInit and register it in zk.xml as described in the Init and Cleanup section.

public class MyDesktopInit implements DesktopInit {
    public void init(Desktop desktop, Object request) {
        desktop.addListener(new MyAuService()); //assume you have an AU service called MyAuService
    }
}

Version History

Last Update : 2010/12/2


Version Date Content
     



Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.



You got stuck here?
Let us know how we can improve this page
For specific questions please use the forum