Search in sources :

Example 1 with RealmsManagement

use of pl.edu.icm.unity.engine.api.RealmsManagement in project unity by unity-idm.

the class MockGroovyBindingProvider method getBinding.

public static Binding getBinding(PersistableEvent event) {
    MessageSource unityMessageSource = mock(MessageSource.class, withSettings().verboseLogging());
    UnityServerConfiguration config = mock(UnityServerConfiguration.class, withSettings().verboseLogging());
    BulkProcessingManagement bulkProcessingManagement = mock(BulkProcessingManagement.class, withSettings().verboseLogging());
    PreferencesManagement preferencesManagement = mock(PreferencesManagement.class, withSettings().verboseLogging());
    UserImportManagement userImportManagement = mock(UserImportManagement.class, withSettings().verboseLogging());
    AttributeTypeSupport attributeTypeSupport = mock(AttributeTypeSupport.class, withSettings().verboseLogging());
    IdentityTypeSupport identityTypeSupport = mock(IdentityTypeSupport.class, withSettings().verboseLogging());
    IdentityTypesManagement identityTypesManagement = mock(IdentityTypesManagement.class, withSettings().verboseLogging());
    AttributeClassManagement attributeClassManagement = mock(AttributeClassManagement.class, withSettings().verboseLogging());
    AttributesManagement attributesManagement = mock(AttributesManagement.class, withSettings().verboseLogging());
    AttributeTypeManagement attributeTypeManagement = mock(AttributeTypeManagement.class, withSettings().verboseLogging());
    AuthenticatorManagement authenticatorManagement = mock(AuthenticatorManagement.class, withSettings().verboseLogging());
    CredentialManagement credentialManagement = mock(CredentialManagement.class, withSettings().verboseLogging());
    CredentialRequirementManagement credentialRequirementManagement = mock(CredentialRequirementManagement.class, withSettings().verboseLogging());
    EndpointManagement endpointManagement = mock(EndpointManagement.class, withSettings().verboseLogging());
    EnquiryManagement enquiryManagement = mock(EnquiryManagement.class, withSettings().verboseLogging());
    EntityCredentialManagement entityCredentialManagement = mock(EntityCredentialManagement.class, withSettings().verboseLogging());
    EntityManagement entityManagement = mock(EntityManagement.class, withSettings().verboseLogging());
    GroupsManagement groupsManagement = mock(GroupsManagement.class, withSettings().verboseLogging());
    InvitationManagement invitationManagement = mock(InvitationManagement.class, withSettings().verboseLogging());
    MessageTemplateManagement messageTemplateManagement = mock(MessageTemplateManagement.class, withSettings().verboseLogging());
    NotificationsManagement notificationsManagement = mock(NotificationsManagement.class, withSettings().verboseLogging());
    RealmsManagement realmsManagement = mock(RealmsManagement.class, withSettings().verboseLogging());
    TokensManagement tokensManagement = mock(TokensManagement.class, withSettings().verboseLogging());
    RegistrationsManagement registrationsManagement = mock(RegistrationsManagement.class, withSettings().verboseLogging());
    TranslationProfileManagement translationProfileManagement = mock(TranslationProfileManagement.class, withSettings().verboseLogging());
    GroupDelegationConfigGenerator groupDelegationConfigGenerator = mock(GroupDelegationConfigGenerator.class, withSettings().verboseLogging());
    SessionManagement sessionManagement = mock(SessionManagement.class, withSettings().verboseLogging());
    RegistrationFormTranslationActionGenerator regTranslationActionGenerator = mock(RegistrationFormTranslationActionGenerator.class, withSettings().verboseLogging());
    ApplicationContext applicationContext = mock(ApplicationContext.class, withSettings().verboseLogging());
    Binding binding = new Binding();
    binding.setVariable("config", config);
    binding.setVariable("attributeClassManagement", attributeClassManagement);
    binding.setVariable("attributesManagement", attributesManagement);
    binding.setVariable("attributeTypeManagement", attributeTypeManagement);
    binding.setVariable("authenticatorManagement", authenticatorManagement);
    binding.setVariable("bulkProcessingManagement", bulkProcessingManagement);
    binding.setVariable("credentialManagement", credentialManagement);
    binding.setVariable("credentialRequirementManagement", credentialRequirementManagement);
    binding.setVariable("endpointManagement", endpointManagement);
    binding.setVariable("enquiryManagement", enquiryManagement);
    binding.setVariable("entityCredentialManagement", entityCredentialManagement);
    binding.setVariable("entityManagement", entityManagement);
    binding.setVariable("groupsManagement", groupsManagement);
    binding.setVariable("identityTypesManagement", identityTypesManagement);
    binding.setVariable("invitationManagement", invitationManagement);
    binding.setVariable("messageTemplateManagement", messageTemplateManagement);
    binding.setVariable("notificationsManagement", notificationsManagement);
    binding.setVariable("preferencesManagement", preferencesManagement);
    binding.setVariable("realmsManagement", realmsManagement);
    binding.setVariable("registrationsManagement", registrationsManagement);
    binding.setVariable("translationProfileManagement", translationProfileManagement);
    binding.setVariable("userImportManagement", userImportManagement);
    binding.setVariable("msgSrc", unityMessageSource);
    binding.setVariable("attributeTypeSupport", attributeTypeSupport);
    binding.setVariable("identityTypeSupport", identityTypeSupport);
    binding.setVariable("groupDelegationConfigGenerator", groupDelegationConfigGenerator);
    binding.setVariable("sessionManagement", sessionManagement);
    binding.setVariable("isColdStart", true);
    binding.setVariable("event", event.getTrigger());
    binding.setVariable("context", event.getContents());
    binding.setVariable("regTranslationActionGenerator", regTranslationActionGenerator);
    binding.setVariable("log", LOG);
    binding.setVariable("applicationContext", applicationContext);
    binding.setVariable("tokensManagement", tokensManagement);
    return binding;
}
Also used : RealmsManagement(pl.edu.icm.unity.engine.api.RealmsManagement) IdentityTypeSupport(pl.edu.icm.unity.engine.api.identity.IdentityTypeSupport) UserImportManagement(pl.edu.icm.unity.engine.api.UserImportManagement) CredentialRequirementManagement(pl.edu.icm.unity.engine.api.CredentialRequirementManagement) InvitationManagement(pl.edu.icm.unity.engine.api.InvitationManagement) EntityCredentialManagement(pl.edu.icm.unity.engine.api.EntityCredentialManagement) UnityServerConfiguration(pl.edu.icm.unity.engine.api.config.UnityServerConfiguration) EntityCredentialManagement(pl.edu.icm.unity.engine.api.EntityCredentialManagement) CredentialManagement(pl.edu.icm.unity.engine.api.CredentialManagement) ApplicationContext(org.springframework.context.ApplicationContext) EntityManagement(pl.edu.icm.unity.engine.api.EntityManagement) AuthenticatorManagement(pl.edu.icm.unity.engine.api.AuthenticatorManagement) MessageTemplateManagement(pl.edu.icm.unity.engine.api.MessageTemplateManagement) Binding(groovy.lang.Binding) EnquiryManagement(pl.edu.icm.unity.engine.api.EnquiryManagement) TokensManagement(pl.edu.icm.unity.engine.api.token.TokensManagement) GroupDelegationConfigGenerator(pl.edu.icm.unity.engine.api.utils.GroupDelegationConfigGenerator) GroupsManagement(pl.edu.icm.unity.engine.api.GroupsManagement) BulkProcessingManagement(pl.edu.icm.unity.engine.api.BulkProcessingManagement) IdentityTypesManagement(pl.edu.icm.unity.engine.api.IdentityTypesManagement) MessageSource(pl.edu.icm.unity.MessageSource) TranslationProfileManagement(pl.edu.icm.unity.engine.api.TranslationProfileManagement) AttributeClassManagement(pl.edu.icm.unity.engine.api.AttributeClassManagement) RegistrationFormTranslationActionGenerator(pl.edu.icm.unity.engine.api.translation.form.RegistrationFormTranslationActionGenerator) AttributesManagement(pl.edu.icm.unity.engine.api.AttributesManagement) PreferencesManagement(pl.edu.icm.unity.engine.api.PreferencesManagement) NotificationsManagement(pl.edu.icm.unity.engine.api.NotificationsManagement) RegistrationsManagement(pl.edu.icm.unity.engine.api.RegistrationsManagement) EndpointManagement(pl.edu.icm.unity.engine.api.EndpointManagement) AttributeTypeSupport(pl.edu.icm.unity.engine.api.attributes.AttributeTypeSupport) SessionManagement(pl.edu.icm.unity.engine.api.session.SessionManagement) AttributeTypeManagement(pl.edu.icm.unity.engine.api.AttributeTypeManagement)

Aggregations

Binding (groovy.lang.Binding)1 ApplicationContext (org.springframework.context.ApplicationContext)1 MessageSource (pl.edu.icm.unity.MessageSource)1 AttributeClassManagement (pl.edu.icm.unity.engine.api.AttributeClassManagement)1 AttributeTypeManagement (pl.edu.icm.unity.engine.api.AttributeTypeManagement)1 AttributesManagement (pl.edu.icm.unity.engine.api.AttributesManagement)1 AuthenticatorManagement (pl.edu.icm.unity.engine.api.AuthenticatorManagement)1 BulkProcessingManagement (pl.edu.icm.unity.engine.api.BulkProcessingManagement)1 CredentialManagement (pl.edu.icm.unity.engine.api.CredentialManagement)1 CredentialRequirementManagement (pl.edu.icm.unity.engine.api.CredentialRequirementManagement)1 EndpointManagement (pl.edu.icm.unity.engine.api.EndpointManagement)1 EnquiryManagement (pl.edu.icm.unity.engine.api.EnquiryManagement)1 EntityCredentialManagement (pl.edu.icm.unity.engine.api.EntityCredentialManagement)1 EntityManagement (pl.edu.icm.unity.engine.api.EntityManagement)1 GroupsManagement (pl.edu.icm.unity.engine.api.GroupsManagement)1 IdentityTypesManagement (pl.edu.icm.unity.engine.api.IdentityTypesManagement)1 InvitationManagement (pl.edu.icm.unity.engine.api.InvitationManagement)1 MessageTemplateManagement (pl.edu.icm.unity.engine.api.MessageTemplateManagement)1 NotificationsManagement (pl.edu.icm.unity.engine.api.NotificationsManagement)1 PreferencesManagement (pl.edu.icm.unity.engine.api.PreferencesManagement)1