flex.messaging.security
Interface MessagingSecurity

All Known Implementing Classes:
ActionScriptAdapter, JMSAdapter, MessagingAdapter

public interface MessagingSecurity

This is an interface which can be implemented by the MessageAdapter or by the DataManagement Assembler instance. If it is implemented, this class is used to do security filtering of subscribe and send operations.


Method Summary
 boolean allowSend(Subtopic subtopic)
          This method is invoked before a client message is sent to a subtopic, so that custom application logic can determine whether the client should be allowed to send to the specified subtopic.
 boolean allowSubscribe(Subtopic subtopic)
          This method is invoked before a client subscribe request is processed, so that custom application logic can determine whether the client should be allowed to subscribe to the specified subtopic.
 

Method Detail

allowSubscribe

boolean allowSubscribe(Subtopic subtopic)
This method is invoked before a client subscribe request is processed, so that custom application logic can determine whether the client should be allowed to subscribe to the specified subtopic. You can access the current user via FlexContext.getUserPrincipal().

Parameters:
subtopic - The subtopic the client is attempting to subscribe to.
Returns:
true to allow the subscription, false to prevent it.

allowSend

boolean allowSend(Subtopic subtopic)
This method is invoked before a client message is sent to a subtopic, so that custom application logic can determine whether the client should be allowed to send to the specified subtopic. You can access the current user via FlexContext.getUserPrincipal().

Parameters:
subtopic - The subtopic the client is attempting to send a message to.
Returns:
true to allow the message to be sent, false to prevent it.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/security/MessagingSecurity.html