◆ doFinally()
void org.turro.elephant.signin.ImpersonateControl.doFinally |
( |
| ) |
|
Reimplemented from org.turro.elephant.TemplateControl.
Definition at line 96 of file ImpersonateControl.java.
97 impersonate.setVisible(Authentication.canImpersonate());
98 backtoself.setVisible(Authentication.isBehaving());
99 impersonateform.setVisible(impersonate.isVisible() || backtoself.isVisible());
◆ onBackToSelf()
void org.turro.elephant.signin.ImpersonateControl.onBackToSelf |
( |
| ) |
|
Definition at line 90 of file ImpersonateControl.java.
91 Authentication.impersonateIContact(
null);
92 Application.getApplication().sendRedirect(
"/user");
◆ onImpersonate()
void org.turro.elephant.signin.ImpersonateControl.onImpersonate |
( |
Event |
event | ) |
throws IOException |
Definition at line 54 of file ImpersonateControl.java.
57 I_.get(
"Impersonate"),
59 new InputField(
"Contact", null, null, 0) {
61 protected HtmlBasedComponent createEditor() {
62 EntityCombobox ec = new EntityCombobox();
63 ec.setRoot(
"contact");
67 protected Object getEditorValue() {
68 return ((EntityCombobox) editor).getObjectValue();
73 public Object execute(Context context) {
74 InputField[] fields = (InputField[]) context.get(
"fields");
75 if(fields.length > 0) {
76 for(InputField f : fields) {
77 if(
"Contact".equals(f.getLabel())) {
78 Authentication.impersonateContact(f.getValue());
79 Application.getApplication().sendRedirect(
"/user");
The documentation for this class was generated from the following file: