Package flex.messaging.services.messaging

Examples of flex.messaging.services.messaging.Subtopic


        // allow supervisor, employee to send messages to anything but *hr*
        } else if ((session.isUserInRole("employees") || session.isUserInRole("supervisors")) && subtopic.getValue().indexOf(separator + "hr") < 0 ) {
            return true;

        // allow guests to send messages to 'sandbox' only.
        } else if (session.isUserInRole("guests") && subtopic.matches(new Subtopic("sandbox", separator))) {
            return true;
        } else {
            return false;
        }
    }
View Full Code Here


    private void testProducerSubtopic(MessageDestination dest, String subtopicString)
    {
        if ((subtopicString != null) && (subtopicString.length() > 0))
        {
            Subtopic subtopic = new Subtopic(subtopicString, dest.getServerSettings().getSubtopicSeparator());
            if (subtopic.containsSubtopicWildcard())
            {
                ServiceException se = new ServiceException();
                se.setMessage(10556, new Object[] {subtopicString});
                throw se;
            }
View Full Code Here

               
                // If both define a subtopic, they must match.
                if (subtopic != null && csub != null)
                {
                    String subtopicSeparator = destination.getServerSettings().getSubtopicSeparator();
                    Subtopic consumerSubtopic = new Subtopic(csub, subtopicSeparator);
                    Subtopic messageSubtopic = new Subtopic(subtopic, subtopicSeparator);
                    if (!consumerSubtopic.matches(messageSubtopic))
                        continue; // Not a match.
                }               
               
                if (csel == null
View Full Code Here

    private void testProducerSubtopic(MessageDestination dest, String subtopicString)
    {
        if ((subtopicString != null) && (subtopicString.length() > 0))
        {
            Subtopic subtopic = new Subtopic(subtopicString, dest.getServerSettings().getSubtopicSeparator());
            if (subtopic.containsSubtopicWildcard())
            {
                ServiceException se = new ServiceException();
                se.setMessage(10556, new Object[] {subtopicString});
                throw se;
            }
View Full Code Here

TOP

Related Classes of flex.messaging.services.messaging.Subtopic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.