AU Services

From Documentation
Revision as of 04:55, 11 January 2022 by Hawk (talk | contribs) ((via JWB))

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 : 2022/01/11


Version Date Content
     



Last Update : 2022/01/11

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