Package org.apache.qpid.server.security.group

Examples of org.apache.qpid.server.security.group.GroupManager


        List<GroupManager> groupManagerList = new ArrayList<GroupManager>();
        Configuration securityConfig = configuration.getConfig().subset("security");

        for(GroupManagerFactory factory : _groupManagerServiceLoader.instancesOf(GroupManagerFactory.class))
        {
            GroupManager groupManager = factory.createInstance(securityConfig);
            if (groupManager != null)
            {
                groupManagerList.add(groupManager);
                for(GroupManagerChangeListener listener : _groupManagerChangeListeners)
                {
View Full Code Here


    private GroupProviderAdapter createGroupProvider(UUID id, Broker broker, Map<String, Object> attributes)
    {
        for (GroupManagerFactory factory : _factories.values())
        {
            GroupManager manager = factory.createInstance(attributes);
            if (manager != null)
            {
                verifyGroupManager(manager, broker);
                return new GroupProviderAdapter(id, broker, manager, attributes,factory.getAttributeNames());
            }
View Full Code Here

        Collection<GroupProvider> groupProviders = broker.getGroupProviders();
        for (GroupProvider groupProvider : groupProviders)
        {
            if (groupProvider instanceof GroupProviderAdapter)
            {
                GroupManager providerManager = ((GroupProviderAdapter) groupProvider).getGroupManager();
                if (manager.equals(providerManager))
                {
                    throw new IllegalConfigurationException("A group provider with the same settings already exists");
                }
            }
View Full Code Here

        when(_configurationEntry.getAttributes()).thenReturn(_attributes);
    }

    public void testCreate()
    {
        GroupManager groupManager = mock(GroupManager.class);
        String name = groupManager.getClass().getSimpleName();
        _attributes.put(GroupProvider.NAME, name);
        when(_factory.createInstance(_attributes)).thenReturn(groupManager);
        GroupProviderRecoverer groupProviderRecoverer = new GroupProviderRecoverer(_groupProviderFactory);
        GroupProvider groupProvider = groupProviderRecoverer.create(null, _configurationEntry, _broker);
        assertNotNull("Null group provider", groupProvider);
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.security.group.GroupManager

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.