@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)
Drivershow 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)
Driveredit 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()
Driverflush in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>public org.jboss.errai.security.shared.api.identity.User getValue()
DrivergetValue in interface Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.