|
void | init (@ExecutionArgParam("dossier") Dossier dossier) |
|
void | validate (@BindingParam("request") RequestAdapter request) |
|
void | delete (@BindingParam("request") RequestAdapter request) |
|
void | save (@BindingParam("request") RequestAdapter request) |
|
List< RequestAdapter > | getModel () |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 39 of file RequestsVM.java.
◆ delete()
void org.turro.alliance.client.model.RequestsVM.delete |
( |
@BindingParam("request") RequestAdapter |
request | ) |
|
Definition at line 61 of file RequestsVM.java.
62 Servers.getData(request.getServer(), AxConstants.AXPENDING_DELETE,
63 Jsons.object().add(
"item", request.getAxPending().asJsonValue()));
◆ getModel()
List<RequestAdapter> org.turro.alliance.client.model.RequestsVM.getModel |
( |
| ) |
|
Definition at line 79 of file RequestsVM.java.
81 model =
new ArrayList<>();
82 Servers.getServers(AxServer.SERVER_SERVICE).forEach(server -> {
83 Jsons request = Jsons.object();
85 request.add(
"id", String.valueOf(dossier.
getId()));
87 Jsons requests = Servers.getData(server, AxConstants.AXPENDING_REQUESTS, request);
88 if(!Jsons.isEmpty(requests)) requests.getStructure().asArray().forEach(axr -> {
89 model.add(new RequestAdapter(server, Jsons.read(axr.toString())));
◆ init()
void org.turro.alliance.client.model.RequestsVM.init |
( |
@ExecutionArgParam("dossier") Dossier |
dossier | ) |
|
Definition at line 44 of file RequestsVM.java.
45 if(dossier !=
null) this.dossier = dossier;
46 if(this.dossier ==
null) {
47 this.dossier = (Dossier) Executions.getCurrent().getAttribute(
"dossier");
◆ save()
void org.turro.alliance.client.model.RequestsVM.save |
( |
@BindingParam("request") RequestAdapter |
request | ) |
|
Definition at line 69 of file RequestsVM.java.
70 Servers.getData(request.getServer(), AxConstants.AXPARTICIPATION_SAVE,
71 Jsons.object().add(
"item", request.getAxPending().asJsonValue()));
◆ validate()
void org.turro.alliance.client.model.RequestsVM.validate |
( |
@BindingParam("request") RequestAdapter |
request | ) |
|
Definition at line 53 of file RequestsVM.java.
54 Servers.getData(request.getServer(), AxConstants.AXPENDING_VALIDATE,
55 Jsons.object().add(
"item", request.getAxPending().asJsonValue()));
The documentation for this class was generated from the following file: