◆ ProfilePolicies()
org.turro.contacts.profile.ProfilePolicies.ProfilePolicies |
( |
Contact |
contact | ) |
|
◆ getPolicy()
PublishPolicy org.turro.contacts.profile.ProfilePolicies.getPolicy |
( |
Object |
obj, |
|
|
String |
element |
|
) |
| |
Definition at line 55 of file ProfilePolicies.java.
56 String entityPath = createPathFrom(obj, element);
57 return policies.stream().filter(pp -> pp.getProfilePath().equals(entityPath))
58 .map(pp -> pp.getPublish())
59 .findFirst().orElse(getDefaultFor(element));
◆ save()
void org.turro.contacts.profile.ProfilePolicies.save |
( |
| ) |
|
Definition at line 62 of file ProfilePolicies.java.
63 Dao dao =
new ContactsPU();
64 removeFromContact(dao);
65 dao.saveEntities(policies);
◆ setPolicy()
void org.turro.contacts.profile.ProfilePolicies.setPolicy |
( |
Object |
obj, |
|
|
String |
element, |
|
|
PublishPolicy |
publish |
|
) |
| |
Definition at line 47 of file ProfilePolicies.java.
48 ProfilePolicy pp =
new ProfilePolicy();
49 pp.setProfilePath(createPathFrom(obj, element));
50 pp.setPublish(publish);
51 if(policies.contains(pp)) policies.remove(pp);
The documentation for this class was generated from the following file: