- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file ProfileVM.java.
◆ getCompanyLink()
String org.turro.contacts.profile.ProfileVM.getCompanyLink |
( |
ProfileRelation |
relation | ) |
|
Definition at line 101 of file ProfileVM.java.
102 KeyValueMap kvm =
new KeyValueMap();
103 kvm.put(
"contact", relation.getRelation().getBusiness().getId());
104 return "/user/profile/editc?" + Actions.createRightNowAction(kvm);
◆ getContact()
Contact org.turro.contacts.profile.ProfileVM.getContact |
( |
| ) |
|
Definition at line 58 of file ProfileVM.java.
60 contact = (Contact) Authentication.reloadIContact().getContact();
◆ getEditLink() [1/2]
String org.turro.contacts.profile.ProfileVM.getEditLink |
( |
| ) |
|
Definition at line 107 of file ProfileVM.java.
108 KeyValueMap kvm =
new KeyValueMap();
109 kvm.put(
"contact", contact.
getId());
110 return "/user/profile/edit?" + Actions.createRightNowAction(kvm);
◆ getEditLink() [2/2]
String org.turro.contacts.profile.ProfileVM.getEditLink |
( |
ProfileRelation |
relation | ) |
|
Definition at line 88 of file ProfileVM.java.
89 KeyValueMap kvm =
new KeyValueMap();
90 kvm.put(
"contact", contact.
getId());
91 kvm.put(
"relation", relation.getRelation().getId());
92 switch(relation.getRelation().getBusiness().getType()) {
94 return "/user/profile/editrb?" + Actions.createRightNowAction(kvm);
95 case CONTACT_LEARNINGCENTER:
96 return "/user/profile/editrc?" + Actions.createRightNowAction(kvm);
◆ getMaxDocuments()
long org.turro.contacts.profile.ProfileVM.getMaxDocuments |
( |
| ) |
|
Definition at line 69 of file ProfileVM.java.
70 return Configurator.instance().asLong(
"Profile.Documents.Maximum");
◆ getNewLink()
String org.turro.contacts.profile.ProfileVM.getNewLink |
( |
String |
element | ) |
|
Definition at line 75 of file ProfileVM.java.
76 KeyValueMap kvm =
new KeyValueMap();
77 kvm.put(
"contact", contact.
getId());
78 kvm.put(
"element", element);
81 return "/user/profile/editrb?" + Actions.createRightNowAction(kvm);
83 return "/user/profile/editrc?" + Actions.createRightNowAction(kvm);
◆ getPolicy()
String org.turro.contacts.profile.ProfileVM.getPolicy |
( |
String |
element, |
|
|
ProfileRelation |
relation |
|
) |
| |
Definition at line 40 of file ProfileVM.java.
41 ProfilePolicies pp =
new ProfilePolicies(
getContact());
42 return pp.getPolicy(relation, element).toString();
◆ getProfile()
Profile org.turro.contacts.profile.ProfileVM.getProfile |
( |
| ) |
|
◆ getSkillsLink()
String org.turro.contacts.profile.ProfileVM.getSkillsLink |
( |
| ) |
|
Definition at line 113 of file ProfileVM.java.
114 KeyValueMap kvm =
new KeyValueMap();
115 kvm.put(
"entityPath", ContactsPU.getObjectPath(contact));
116 return "/user/profile/editsk?" + Actions.createRightNowAction(kvm);
◆ setPolicy()
void org.turro.contacts.profile.ProfileVM.setPolicy |
( |
@BindingParam("type") String |
type, |
|
|
@BindingParam("element") String |
element, |
|
|
@BindingParam("relation") ProfileRelation |
relation |
|
) |
| |
Definition at line 46 of file ProfileVM.java.
48 ProfilePolicies pp =
new ProfilePolicies(
getContact());
49 PublishPolicy policy = PublishPolicy.valueOf(type);
50 pp.setPolicy(relation ==
null ?
getContact() : relation.getRelation(), element, policy);
The documentation for this class was generated from the following file: