◆ createRef() [1/2]
Definition at line 281 of file EditPracticalWorkControl.java.
283 Entities.getController(practicalWork).getEntityUrl() :
284 Entities.getController(practicalWork).getMemberUrl());
String createRef(IConstructor constructor, PracticalWork practicalWork, IContact contact)
◆ createRef() [2/2]
String org.turro.jobboard.EditPracticalWorkControl.createRef |
( |
IConstructor |
constructor, |
|
|
String |
redir |
|
) |
| throws Exception |
◆ doFinally()
void org.turro.jobboard.EditPracticalWorkControl.doFinally |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.elephant.TemplateControl.
Definition at line 267 of file EditPracticalWorkControl.java.
269 IAgreements agreements = Plugins.loadImplementation(IAgreements.class,
"agreements");
270 agreements.setContact(Authentication.getIContact());
271 if(!agreements.canAct(
"practicalwork-new")) {
272 Application.getApplication().sendRedirect(agreements.getPendingActURL(
"practicalwork-new"));
274 checkPracticalWork();
◆ getContextPath()
String org.turro.jobboard.EditPracticalWorkControl.getContextPath |
( |
| ) |
|
◆ getPracticalWork()
PracticalWork org.turro.jobboard.EditPracticalWorkControl.getPracticalWork |
( |
| ) |
|
◆ onBusiness()
void org.turro.jobboard.EditPracticalWorkControl.onBusiness |
( |
| ) |
|
Definition at line 88 of file EditPracticalWorkControl.java.
93 role.setObjectValue(practicalWork.
getRole());
94 immediate.setDisabled(PracticalWorkRole.PRACTICALWORK_DEMAND.equals(practicalWork.
getRole()));
95 if(immediate.isDisabled()) immediate.setChecked(
false);
void setIContact(IContact contact)
PracticalWorkRole getRole()
◆ onCancel()
void org.turro.jobboard.EditPracticalWorkControl.onCancel |
( |
| ) |
|
Definition at line 199 of file EditPracticalWorkControl.java.
200 if(practicalWork.
getId() !=
null) {
201 Application.getApplication().sendRedirect(contextPath +
"?" +
202 MarkerHelper.setObfuscatedRightNowPars(
"item=" + practicalWork.
getId()));
204 Application.getApplication().sendRedirect(contextPath);
◆ onDelete()
void org.turro.jobboard.EditPracticalWorkControl.onDelete |
( |
| ) |
|
Definition at line 239 of file EditPracticalWorkControl.java.
240 if(practicalWork.
getId() !=
null) {
241 Messages.confirmDeletion().add(practicalWork.
getTitle()).show(() -> {
242 PracticalWorkWrapper wrapper =
new PracticalWorkWrapper(practicalWork);
244 Application.getApplication().sendRedirect(contextPath);
◆ onEnd()
void org.turro.jobboard.EditPracticalWorkControl.onEnd |
( |
| ) |
|
◆ onImmediate()
void org.turro.jobboard.EditPracticalWorkControl.onImmediate |
( |
| ) |
|
◆ onPrice()
void org.turro.jobboard.EditPracticalWorkControl.onPrice |
( |
| ) |
|
◆ onPublish()
void org.turro.jobboard.EditPracticalWorkControl.onPublish |
( |
| ) |
|
Definition at line 209 of file EditPracticalWorkControl.java.
214 HashMap args =
new HashMap();
215 args.put(
"practicalWork", practicalWork);
216 args.put(
"wrapper",
new PracticalWorkWrapper(practicalWork));
217 args.put(
"notifier",
this);
218 if(practicalWork.
getId() > 0) {
219 args.put(
"link", Entities.getController(practicalWork).getEntityUrl());
222 MailSenders.getPool()
224 .addByEntity(practicalWork,
null)
225 .setRoot(
"/practicalworks")
227 .sendTemplate(
"practicalwork-published", composeSubject(practicalWork));
228 }
catch (EmailException ex) {
229 Logger.getLogger(EditPracticalWorkControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
231 Application.getApplication().sendRedirect(contextPath +
"?" +
232 MarkerHelper.setObfuscatedRightNowPars(
"item=" + practicalWork.
getId()));
233 new PublishPracticalWorkNotification(practicalWork).sendNotification();
void setPublished(boolean published)
◆ onRelatedUrl()
void org.turro.jobboard.EditPracticalWorkControl.onRelatedUrl |
( |
| ) |
|
Definition at line 114 of file EditPracticalWorkControl.java.
115 String relUrl = relatedUrl.getValue();
116 if(!Strings.isBlank(relUrl)) {
117 if(relUrl.contains(
"@")) {
118 practicalWork.
setRelatedURL(UrlCompose.fillMailGaps(relUrl));
void setRelatedURL(String relatedURL)
◆ onResponsible()
void org.turro.jobboard.EditPracticalWorkControl.onResponsible |
( |
| ) |
|
◆ onSave()
void org.turro.jobboard.EditPracticalWorkControl.onSave |
( |
| ) |
|
Definition at line 187 of file EditPracticalWorkControl.java.
189 PracticalWorkWrapper wrapper =
new PracticalWorkWrapper(practicalWork);
190 practicalWork = wrapper.save();
191 Application.getApplication().sendRedirect(contextPath +
"?" +
192 MarkerHelper.setObfuscatedRightNowPars(
"item=" + practicalWork.
getId()));
194 Clients.showNotification(I_.get(
"Fill required fields"));
◆ onSendTest()
void org.turro.jobboard.EditPracticalWorkControl.onSendTest |
( |
| ) |
|
Definition at line 161 of file EditPracticalWorkControl.java.
163 HashMap args =
new HashMap();
164 args.put(
"practicalWork", practicalWork);
165 args.put(
"wrapper",
new PracticalWorkWrapper(practicalWork));
166 args.put(
"notifier",
this);
167 if(practicalWork.
getId() !=
null) {
168 args.put(
"link", Entities.getController(practicalWork).getEntityUrl());
171 MailSenders.getPool()
173 .addByEntity(practicalWork,
null)
174 .setRoot(
"/practicalworks")
176 .sendTemplate(
"practicalwork-test", composeSubject(practicalWork));
177 Clients.showNotification(I_.get(
"Test sent"));
178 }
catch (EmailException ex) {
179 Logger.getLogger(EditPracticalWorkControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
182 Clients.showNotification(I_.get(
"Fill required fields"));
◆ onStart()
void org.turro.jobboard.EditPracticalWorkControl.onStart |
( |
| ) |
|
◆ onTax()
void org.turro.jobboard.EditPracticalWorkControl.onTax |
( |
| ) |
|
◆ onText()
void org.turro.jobboard.EditPracticalWorkControl.onText |
( |
| ) |
|
◆ onTitle()
void org.turro.jobboard.EditPracticalWorkControl.onTitle |
( |
| ) |
|
◆ onType()
void org.turro.jobboard.EditPracticalWorkControl.onType |
( |
| ) |
|
◆ onZipCode()
void org.turro.jobboard.EditPracticalWorkControl.onZipCode |
( |
| ) |
|
◆ setContextPath()
void org.turro.jobboard.EditPracticalWorkControl.setContextPath |
( |
String |
contextPath | ) |
|
◆ setResponse()
void org.turro.jobboard.EditPracticalWorkControl.setResponse |
( |
PracticalWork |
practicalWork | ) |
|
The documentation for this class was generated from the following file: