19 package org.turro.contacts.profile;
21 import org.turro.action.Actions;
22 import org.turro.auth.Authentication;
23 import org.turro.collections.KeyValueMap;
24 import org.turro.config.Configurator;
25 import org.turro.contacts.Contact;
26 import static org.turro.contacts.ContactType.CONTACT_COMPANY;
27 import static org.turro.contacts.ContactType.CONTACT_LEARNINGCENTER;
28 import org.turro.contacts.db.ContactsPU;
29 import org.zkoss.bind.annotation.BindingParam;
30 import org.zkoss.bind.annotation.Command;
42 return pp.
getPolicy(relation, element).toString();
46 public
void setPolicy(@BindingParam("type") String type, @BindingParam("element") String element,
70 return Configurator.instance().asLong(
"Profile.Documents.Maximum");
76 KeyValueMap kvm =
new KeyValueMap();
77 kvm.put(
"contact", contact.
getId());
78 kvm.put(
"element", element);
89 KeyValueMap kvm =
new KeyValueMap();
90 kvm.put(
"contact", contact.
getId());
95 case CONTACT_LEARNINGCENTER:
102 KeyValueMap kvm =
new KeyValueMap();
108 KeyValueMap kvm =
new KeyValueMap();
109 kvm.put(
"contact", contact.
getId());
114 KeyValueMap kvm =
new KeyValueMap();
static String createRightNowAction(String values)
static IContact reloadIContact()