◆ ProfileCompletion()
org.turro.contacts.profile.ProfileCompletion.ProfileCompletion |
( |
Profile |
profile | ) |
|
◆ getCompanyType()
String org.turro.contacts.profile.ProfileCompletion.getCompanyType |
( |
| ) |
|
◆ getDocumentsLink()
String org.turro.contacts.profile.ProfileCompletion.getDocumentsLink |
( |
| ) |
|
Definition at line 140 of file ProfileCompletion.java.
141 KeyValueMap kvm =
new KeyValueMap();
143 return "/user/profile/pubs";
◆ getEditLink()
String org.turro.contacts.profile.ProfileCompletion.getEditLink |
( |
| ) |
|
Definition at line 128 of file ProfileCompletion.java.
129 KeyValueMap kvm =
new KeyValueMap();
131 return "/user/profile/edit?" + Actions.createRightNowAction(kvm);
◆ getPercent()
double org.turro.contacts.profile.ProfileCompletion.getPercent |
( |
| ) |
|
Definition at line 43 of file ProfileCompletion.java.
44 double should = 0, have = 0;
45 Configurator settings = Configurator.instance();
46 if(settings.asBoolean(
"Profile.Suggest.Image")) {
47 should++; have += !image ? 1 : 0;
49 if(settings.asBoolean(
"Profile.Suggest.Skills")) {
50 should++; have += !skills ? 1 : 0;
52 if(settings.asBoolean(
"Profile.Suggest.Relation")) {
53 should++; have += !relation ? 1 : 0;
55 if(settings.asBoolean(
"Profile.Suggest.Company")) {
56 should++; have += !company ? 1 : 0;
58 if(settings.asBoolean(
"Profile.Suggest.Professional.Documents") && profile.
isWorker()) {
59 should++; have += !documents ? 1 : 0;
60 }
else if(settings.asBoolean(
"Profile.Suggest.Student.Documents") && profile.
isStudent()) {
61 should++; have += !documents ? 1 : 0;
63 return should == 0 ? 100.0 : (have / should) * 100.0;
◆ getProfile()
Profile org.turro.contacts.profile.ProfileCompletion.getProfile |
( |
| ) |
|
◆ getSkillsLink()
String org.turro.contacts.profile.ProfileCompletion.getSkillsLink |
( |
| ) |
|
Definition at line 134 of file ProfileCompletion.java.
135 KeyValueMap kvm =
new KeyValueMap();
137 return "/user/profile/editsk?" + Actions.createRightNowAction(kvm);
◆ isCompany()
boolean org.turro.contacts.profile.ProfileCompletion.isCompany |
( |
| ) |
|
◆ isDocuments()
boolean org.turro.contacts.profile.ProfileCompletion.isDocuments |
( |
| ) |
|
◆ isImage()
boolean org.turro.contacts.profile.ProfileCompletion.isImage |
( |
| ) |
|
◆ isRelation()
boolean org.turro.contacts.profile.ProfileCompletion.isRelation |
( |
| ) |
|
◆ isSkills()
boolean org.turro.contacts.profile.ProfileCompletion.isSkills |
( |
| ) |
|
The documentation for this class was generated from the following file: