BrightSide Workbench Full Report + Source Code
org.turro.contacts.profile.PublishGroup Class Reference
Inheritance diagram for org.turro.contacts.profile.PublishGroup:
Collaboration diagram for org.turro.contacts.profile.PublishGroup:

Public Member Functions

void setContact (Contact contact)
 
void setElement (String element)
 
void setRelation (ProfileRelation relation)
 
void afterCompose ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file PublishGroup.java.

Member Function Documentation

◆ afterCompose()

void org.turro.contacts.profile.PublishGroup.afterCompose ( )

Definition at line 51 of file PublishGroup.java.

51  {
52  createItems();
53  ProfilePolicies pp = new ProfilePolicies(contact);
54  select(pp.getPolicy(relation, element));
55  addEventListener(Events.ON_CHECK, (event) -> {
56  Radio radio = getSelectedItem();
57  ProfilePolicies policies = new ProfilePolicies(contact);
58  PublishPolicy policy = PublishPolicy.valueOf(radio.getValue());
59  policies.setPolicy(relation == null ? contact : relation.getRelation(), element, policy);
60  policies.save();
61  });
62  }
Here is the call graph for this function:

◆ setContact()

void org.turro.contacts.profile.PublishGroup.setContact ( Contact  contact)

Definition at line 38 of file PublishGroup.java.

38  {
39  this.contact = contact;
40  }

◆ setElement()

void org.turro.contacts.profile.PublishGroup.setElement ( String  element)

Definition at line 42 of file PublishGroup.java.

42  {
43  this.element = element;
44  }

◆ setRelation()

void org.turro.contacts.profile.PublishGroup.setRelation ( ProfileRelation  relation)

Definition at line 46 of file PublishGroup.java.

46  {
47  this.relation = relation;
48  }

The documentation for this class was generated from the following file: