◆ doFinally()
void org.turro.contacts.profile.EditProfileControl.doFinally |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.elephant.TemplateControl.
Definition at line 162 of file EditProfileControl.java.
164 KeyValueMap kvm = Actions.getRightNowAction(Application.getApplication().getConstructor());
165 if(kvm !=
null && kvm.containsKey(
"contact")) {
166 contact = Contacts.getContactById(kvm.get(
"contact"));
168 contact = Authentication.getIContact();
◆ getPath()
String org.turro.contacts.profile.EditProfileControl.getPath |
( |
| ) |
|
◆ onCancel()
void org.turro.contacts.profile.EditProfileControl.onCancel |
( |
| ) |
|
◆ onEvent()
void org.turro.contacts.profile.EditProfileControl.onEvent |
( |
UploadEvent |
t | ) |
throws Exception |
Definition at line 101 of file EditProfileControl.java.
102 FileAttach fileAttach =
new FileAttach(ContactsPU.getObjectPath(contact.
getContact()));
103 File newFile =
new File(ElephantContext.getRealPath(fileAttach.getPublishable() +
"/profile/face.png"));
104 if(!newFile.getParentFile().exists()) {
105 newFile.getParentFile().mkdirs();
107 Media media = t.getMedia();
109 Medias.toFile(media, newFile, Medias.scaling(600));
111 if(newFile.exists()) {
113 face.setContent(
new AImage(newFile.getAbsolutePath()));
114 }
catch (IOException ex) {
115 Logger.getLogger(EditProfileControl.class.getName()).log(Level.SEVERE,
null, ex);
◆ onName()
void org.turro.contacts.profile.EditProfileControl.onName |
( |
| ) |
|
◆ onNetwork()
void org.turro.contacts.profile.EditProfileControl.onNetwork |
( |
| ) |
|
◆ onPhone()
void org.turro.contacts.profile.EditProfileControl.onPhone |
( |
| ) |
|
◆ onSave()
void org.turro.contacts.profile.EditProfileControl.onSave |
( |
| ) |
|
Definition at line 123 of file EditProfileControl.java.
126 if(available.isChecked()) {
127 JobBoard board = c.getJobBoard();
129 board =
new JobBoard();
131 c.setJobBoard(board);
133 board.setAvailable(
true);
134 board.setOnline(online.isChecked());
135 board.setZipCode(zipCode.getValue());
136 Listitem li = commute.getSelectedItem();
137 if(li !=
null) board.setCommuting(Integer.valueOf(li.getValue()));
138 board.setUpdateDate(
new Date());
142 new ContactWrapper(c).save();
143 Application.getApplication().sendRedirect(path);
144 sendNotification((Contact) contact.
getContact());
◆ onWeb()
void org.turro.contacts.profile.EditProfileControl.onWeb |
( |
| ) |
|
◆ setPath()
void org.turro.contacts.profile.EditProfileControl.setPath |
( |
String |
path | ) |
|
The documentation for this class was generated from the following file: