Skip to content

Commit 7204c77

Browse files
committed
UY-1085 missing change in API
1 parent 65c8262 commit 7204c77

1 file changed

Lines changed: 3 additions & 38 deletions

File tree

web-admin-common/src/main/java/io/imunity/webadmin/reg/formfill/AdminEnquiryFormLauncher.java

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212

1313
import pl.edu.icm.unity.MessageSource;
1414
import pl.edu.icm.unity.base.utils.Log;
15-
import pl.edu.icm.unity.engine.api.AttributeTypeManagement;
16-
import pl.edu.icm.unity.engine.api.CredentialManagement;
1715
import pl.edu.icm.unity.engine.api.EnquiryManagement;
18-
import pl.edu.icm.unity.engine.api.GroupsManagement;
1916
import pl.edu.icm.unity.engine.api.authn.IdPLoginController;
2017
import pl.edu.icm.unity.engine.api.authn.remote.RemotelyAuthenticatedContext;
2118
import pl.edu.icm.unity.engine.api.finalization.WorkflowFinalizationConfiguration;
22-
import pl.edu.icm.unity.engine.api.policyAgreement.PolicyAgreementManagement;
2319
import pl.edu.icm.unity.engine.api.registration.PostFillingHandler;
2420
import pl.edu.icm.unity.exceptions.EngineException;
2521
import pl.edu.icm.unity.exceptions.IdentityExistsException;
@@ -35,11 +31,6 @@
3531
import pl.edu.icm.unity.webui.WebSession;
3632
import pl.edu.icm.unity.webui.bus.EventsBus;
3733
import pl.edu.icm.unity.webui.common.NotificationPopup;
38-
import pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry;
39-
import pl.edu.icm.unity.webui.common.credentials.CredentialEditorRegistry;
40-
import pl.edu.icm.unity.webui.common.file.ImageAccessService;
41-
import pl.edu.icm.unity.webui.common.identities.IdentityEditorRegistry;
42-
import pl.edu.icm.unity.webui.common.policyAgreement.PolicyAgreementRepresentationBuilder;
4334
import pl.edu.icm.unity.webui.forms.enquiry.EnquiryResponseChangedEvent;
4435
import pl.edu.icm.unity.webui.forms.enquiry.EnquiryResponseEditor;
4536
import pl.edu.icm.unity.webui.forms.enquiry.EnquiryResponseEditorController;
@@ -59,44 +50,21 @@ public class AdminEnquiryFormLauncher
5950
private static final Logger log = Log.getLogger(Log.U_SERVER_WEB, AdminEnquiryFormLauncher.class);
6051
private MessageSource msg;
6152
private EnquiryManagement enquiryManagement;
62-
private IdentityEditorRegistry identityEditorRegistry;
63-
private CredentialEditorRegistry credentialEditorRegistry;
64-
private AttributeHandlerRegistry attributeHandlerRegistry;
65-
private AttributeTypeManagement attrsMan;
66-
private CredentialManagement authnMan;
67-
private GroupsManagement groupsMan;
6853
private EnquiryResponseEditorController responseController;
69-
private PolicyAgreementManagement policyAgrMan;
70-
private PolicyAgreementRepresentationBuilder policyAgreementsRepresentationBuilder;
7154

7255
private EventsBus bus;
7356
private IdPLoginController idpLoginController;
74-
private ImageAccessService imageAccessService;
7557

7658
@Autowired
7759
public AdminEnquiryFormLauncher(MessageSource msg,
7860
EnquiryManagement enquiryManagement,
79-
IdentityEditorRegistry identityEditorRegistry,
80-
CredentialEditorRegistry credentialEditorRegistry,
81-
AttributeHandlerRegistry attributeHandlerRegistry,
82-
AttributeTypeManagement attrsMan, CredentialManagement authnMan,
83-
GroupsManagement groupsMan, IdPLoginController idpLoginController,
84-
EnquiryResponseEditorController responseController, ImageAccessService imageAccessService,
85-
PolicyAgreementManagement policyAgrMan, PolicyAgreementRepresentationBuilder policyAgreementsRepresentationBuilder)
61+
IdPLoginController idpLoginController,
62+
EnquiryResponseEditorController responseController)
8663
{
8764
this.msg = msg;
8865
this.enquiryManagement = enquiryManagement;
89-
this.identityEditorRegistry = identityEditorRegistry;
90-
this.credentialEditorRegistry = credentialEditorRegistry;
91-
this.attributeHandlerRegistry = attributeHandlerRegistry;
92-
this.attrsMan = attrsMan;
93-
this.authnMan = authnMan;
94-
this.groupsMan = groupsMan;
9566
this.idpLoginController = idpLoginController;
9667
this.responseController = responseController;
97-
this.imageAccessService = imageAccessService;
98-
this.policyAgreementsRepresentationBuilder = policyAgreementsRepresentationBuilder;
99-
this.policyAgrMan = policyAgrMan;
10068

10169
this.bus = WebSession.getCurrent().getEventBus();
10270
}
@@ -180,10 +148,7 @@ public void showDialog(final EnquiryForm form,
180148
EnquiryResponseEditor editor;
181149
try
182150
{
183-
editor = new EnquiryResponseEditor(msg, form, remoteContext, identityEditorRegistry,
184-
credentialEditorRegistry, attributeHandlerRegistry, attrsMan, authnMan,
185-
groupsMan, imageAccessService, policyAgreementsRepresentationBuilder, policyAgrMan,
186-
responseController.getPrefilledForSticky(form));
151+
editor = responseController.getEditorInstanceForAuthenticatedUser(form, remoteContext);
187152
} catch (Exception e)
188153
{
189154
errorHandler.onError(e);

0 commit comments

Comments
 (0)