◆ ContactWrapper()
org.turro.contacts.form.ContactWrapper.ContactWrapper |
( |
Contact |
entity | ) |
|
◆ clearRelations()
static void org.turro.contacts.form.ContactWrapper.clearRelations |
( |
Dao |
dao, |
|
|
Contact |
contact |
|
) |
| |
|
static |
Definition at line 186 of file ContactWrapper.java.
187 WhereClause wc =
new WhereClause();
188 wc.addClause(
"delete from BusinessRelation as relation");
189 wc.addClause(
"where relation.contact = :contact or relation.business = :contact");
190 wc.addNamedValue(
"contact", contact);
191 dao.executeUpdate(wc);
◆ createDao()
Dao org.turro.contacts.form.ContactWrapper.createDao |
( |
| ) |
|
|
protected |
◆ delete()
boolean org.turro.contacts.form.ContactWrapper.delete |
( |
| ) |
|
◆ getAddress()
Map<String, Address> org.turro.contacts.form.ContactWrapper.getAddress |
( |
| ) |
|
Definition at line 110 of file ContactWrapper.java.
111 if(address ==
null) {
112 address =
new HashMap<>();
113 for(Address a :
entity.getAddresses()) {
114 address.put(a.getDescription(), a);
◆ getConnector()
Map<String, Connector> org.turro.contacts.form.ContactWrapper.getConnector |
( |
| ) |
|
Definition at line 120 of file ContactWrapper.java.
121 if(connector ==
null) {
122 connector =
new HashMap<>();
123 for(Connector c :
entity.getConnectors()) {
124 connector.put(c.getDescription(), c);
◆ getFace()
String org.turro.contacts.form.ContactWrapper.getFace |
( |
| ) |
|
◆ getField()
Map<String, FieldValue> org.turro.contacts.form.ContactWrapper.getField |
( |
| ) |
|
Definition at line 130 of file ContactWrapper.java.
132 field =
new HashMap<>();
133 for(FieldValue fv :
entity.getFieldValues()) {
134 field.put(fv.getFieldDef().getTabKey() +
"," + fv.getFieldDef().getLabelKey(), fv);
◆ getFiles()
List<String> org.turro.contacts.form.ContactWrapper.getFiles |
( |
String |
folder | ) |
|
Definition at line 160 of file ContactWrapper.java.
161 File root =
new File(ElephantContext.getRealPath(folder));
162 List<String> files =
new ArrayList<>();
164 for(File f : root.listFiles()) {
166 files.add(folder +
"/" + f.getName());
◆ getImageFiles()
List<PairedFile> org.turro.contacts.form.ContactWrapper.getImageFiles |
( |
String |
folder | ) |
|
Definition at line 173 of file ContactWrapper.java.
174 File root =
new File(ElephantContext.getRealPath(folder));
175 List<PairedFile> files =
new ArrayList<>();
177 for(File f : root.listFiles()) {
179 files.add(
new PairedFile(folder, f.getName(), folder +
"/thumbs",
".png"));
◆ getPrivate()
String org.turro.contacts.form.ContactWrapper.getPrivate |
( |
| ) |
|
◆ getPublishable()
String org.turro.contacts.form.ContactWrapper.getPublishable |
( |
| ) |
|
◆ getSelfLabel()
String org.turro.contacts.form.ContactWrapper.getSelfLabel |
( |
| ) |
|
◆ getTabLabel()
String org.turro.contacts.form.ContactWrapper.getTabLabel |
( |
| ) |
|
◆ getTooltiptext()
String org.turro.contacts.form.ContactWrapper.getTooltiptext |
( |
| ) |
|
◆ isInBusiness()
boolean org.turro.contacts.form.ContactWrapper.isInBusiness |
( |
| ) |
|
◆ isSelf()
boolean org.turro.contacts.form.ContactWrapper.isSelf |
( |
| ) |
|
◆ save()
Contact org.turro.contacts.form.ContactWrapper.save |
( |
| ) |
|
◆ saveAnyway()
static void org.turro.contacts.form.ContactWrapper.saveAnyway |
( |
Contact |
contact, |
|
|
Consumer< Contact > |
onSave |
|
) |
| |
|
static |
Definition at line 194 of file ContactWrapper.java.
195 DuplicatesModel dupmodel =
new DuplicatesModel(contact);
196 if(dupmodel.isEmpty()) {
197 onSave.accept(contact);
199 Windows.title(I_.get(
"Duplicates"))
202 .addComponent(
"/contact/duplicates/duplicates.zul",
203 Map.of(
"contact", contact,
"dupmodel", dupmodel,
"onSave", onSave))
◆ shouldLog()
boolean org.turro.contacts.form.ContactWrapper.shouldLog |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: