@Dependent public class RoleEditorDriver extends Object implements Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
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 |
---|
RoleEditorDriver(ClientUserSystemManager userSystemManager) |
Modifier and Type | Method and Description |
---|---|
void |
edit(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Edit the instance using the given editor.
|
boolean |
flush()
Flush the editors hierarchy states and perform the validations.
|
PerspectiveActivity |
getHomePerspective() |
PermissionCollection |
getPermissions() |
int |
getRolePriority() |
org.jboss.errai.security.shared.api.Role |
getValue()
The instance after being flush with against the editors hierarchy.
|
void |
show(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Show the instance using the given editor.
|
@Inject public RoleEditorDriver(ClientUserSystemManager userSystemManager)
public void show(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)
Driver
show
in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
role
- The instance to show.roleEditor
- The viewer for the instance.public void edit(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)
Driver
edit
in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
role
- The instance to show.roleEditor
- The editor for the instance.public boolean flush()
Driver
flush
in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
public org.jboss.errai.security.shared.api.Role getValue()
Driver
getValue
in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
public PerspectiveActivity getHomePerspective()
public int getRolePriority()
public PermissionCollection getPermissions()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.