@Dependent public class UserEditorDriver extends Object implements Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
It links the user editors hierarchy with the instance edited by flushing the editor's values into the User model.
It contains all logic for editing a User instance by using Editors hierarchy instances, so the editors's concrete widget/component implementation is isolated from the edition logic.
Constructor and Description |
---|
UserEditorDriver(ClientUserSystemManager userSystemManager) |
Modifier and Type | Method and Description |
---|---|
org.jboss.errai.security.shared.api.identity.User |
createNewUser(String identifier) |
void |
edit(org.jboss.errai.security.shared.api.identity.User user,
UserEditor userEditor)
Edit the instance using the given editor.
|
boolean |
flush()
Flush the editors hierarchy states and perform the validations.
|
org.jboss.errai.security.shared.api.identity.User |
getValue()
The instance after being flush with against the editors hierarchy.
|
void |
show(org.jboss.errai.security.shared.api.identity.User user,
UserEditor userEditor)
Show the instance using the given editor.
|
@Inject public UserEditorDriver(ClientUserSystemManager userSystemManager)
public org.jboss.errai.security.shared.api.identity.User createNewUser(String identifier)
public void show(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)
Driver
show
in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
user
- The instance to show.userEditor
- The viewer for the instance.public void edit(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)
Driver
edit
in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
user
- The instance to show.userEditor
- The editor for the instance.public boolean flush()
Driver
flush
in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
public org.jboss.errai.security.shared.api.identity.User getValue()
Driver
getValue
in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.