- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 39 of file ProposalSet.java.
◆ deserialize()
Definition at line 84 of file ProposalSet.java.
85 ProposalSet result =
new ProposalSet();
86 if(app.isInRole(
"contact-proposal:list")) {
87 ProposalSet ps = (ProposalSet) Serializer.deserialize(
"/proposals/data.ser");
88 if(ps !=
null) result.addAll(ps);
89 File[] fs = Serializer.getFiles(
"/proposals/imported");
92 ps = (ProposalSet) Serializer.deserialize(f);
93 if(ps !=
null) result.addAll(ps);
97 ProposalSet.serialize(app, result);
98 }
else if(app.isInRole(
"contact-proposal:import")) {
99 ProposalSet ps = (ProposalSet) Serializer.deserialize(
"/proposals/imported/" + Authentication.getIContact().getId() +
".ser");
100 if(ps !=
null) result.addAll(ps);
◆ loadFromVCards()
void org.turro.contacts.proposal.ProposalSet.loadFromVCards |
( |
Application |
app, |
|
|
final Command |
command |
|
) |
| |
Definition at line 43 of file ProposalSet.java.
44 final IPlugin plugin = Plugins.loadImplementation(IPlugin.class,
"vcard");
46 plugin.setData(
"constructor", app.getConstructor());
48 FileWrapper fw =
new FileWrapper((File) plugin.getData(
"importFolder"));
49 fw.upload(
new Command() {
51 public Object execute(Context context) {
53 command.execute(context);
◆ serialize()
Definition at line 76 of file ProposalSet.java.
77 if(app.isInRole(
"contact-proposal:list")) {
78 Serializer.serialize(
"/proposals/data.ser", instance);
79 }
else if(app.isInRole(
"contact-proposal:import")) {
80 Serializer.serialize(
"/proposals/imported/" + Authentication.getIContact().getId() +
".ser", instance);
The documentation for this class was generated from the following file: