freeipa/install/ui
Petr Vobornik 18a6ab356a Inter-facet expiration
Problem:

When some facet perform action which modifies data, some other facet may become expired.

Example: User modifies group's description. Now group search facet contains old data and has to be refreshed.

Solution:

New event was added to facet: on_update. It should be executed when facet performs action which modifies data ie: details facet update or add entry to dnsrecord.

Then entity policies were introduced. Entity policies are a objects which are stored in entity.policies. They have similar function as facet_policies - performing communications and other functionality between facets. This way facets don't have to contain such logic and thus they aren't dependant on each other.

This patch adds IPA.facet_update_policy, IPA.adder_facet_update_policy, IPA.search_facet_update_policy, IPA.details_facet_update_policy.

IPA.facet_update_policy: On facets_created it bind itself to [current entity].[source facet].[event]. Default event is on_update. When the event is executed it sets expiration flag to [dest entity].[dest facet].

IPA.search_facet_update_policy: IPA.facet_update_policy where source facet = search, dest facet = details, dest entity = current entity. Its a default policy for updatein changes from search facet to details facet. Right now it isn't needed but it will be needed when action lists come to play.

IPA.details_facet_update_policy: same as IPA.search_facet_update_policy just reversed. Very important.

IPA.adder_facet_update_policy: similar functionality, just source of the event is dialog. Default event is added (new event in entity_adder_dialog).

Entity policies should be specified in entity's spec object. If none are specified a default ones are used. Default policies are: IPA.search_facet_update_policy and IPA.details_facet_update_policy.

https://fedorahosted.org/freeipa/ticket/2075
2012-03-29 13:39:53 +02:00
..
ext Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
images Added facet tabs coloring 2011-12-14 15:44:36 +00:00
test Typos in FreeIPA messages 2012-03-23 16:59:12 +01:00
aci.js Removed CSV creation from UI 2012-03-02 11:45:21 -06:00
add.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
association.js Facet expiration flag 2012-03-29 13:39:37 +02:00
automember.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
automount.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
browser.js Added cross browser support of Array.indexOf method 2011-12-02 18:35:59 +00:00
certificate.js Display serial number as HEX (DECIMAL) when showing certificates. 2012-03-14 04:40:35 -04:00
details.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
develop.js Removed develop.js. 2011-11-14 16:47:10 -05:00
dialog.js Better hbactest validation message 2012-03-15 16:08:16 +01:00
dns.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
entitle.js Refactored facet.load(). 2011-12-06 22:08:07 +00:00
entity.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
facet.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
favicon.ico favicon 2011-02-03 15:04:23 -05:00
field.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00
group.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00
hbac.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
hbactest.js Show_content on refresh success 2012-03-19 18:37:39 +01:00
host.js Added mac address to host page 2012-03-20 17:32:23 +01:00
hostgroup.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
index.html Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
ipa.css Content is no more overwritten by error message 2012-03-19 18:37:19 +01:00
ipa.js Facet expiration flag 2012-03-29 13:39:37 +02:00
jquery-ui.css Fixed inconsistent image names. 2011-10-27 14:05:12 +00:00
jquery-ui.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.ba-bbq.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.js Upgrade to jquery 1.5.2 https://fedorahosted.org/freeipa/ticket/768 2011-04-23 03:25:45 +00:00
jquery.ordered-map.js Enabled paging on automount keys. 2012-01-23 15:38:25 +01:00
jsl.conf Better hbactest validation message 2012-03-15 16:08:16 +01:00
json2.js rename static to ui 2011-01-20 14:12:47 +00:00
login.html Forms based authentication UI 2012-03-02 11:04:33 +01:00
login.js Forms based authentication UI 2012-03-02 11:04:33 +01:00
logout.html Added logout button 2012-02-28 23:58:51 -05:00
Makefile.am Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
navigation.js Content is no more overwritten by error message 2012-03-19 18:37:19 +01:00
net.js Added IP address validator to Host and DNS record adder dialog 2012-01-11 00:48:44 -06:00
netgroup.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
overpass_bold-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
policy.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
rule.js Removed CSV creation from UI 2012-03-02 11:45:21 -06:00
search.js Facet expiration flag 2012-03-29 13:39:37 +02:00
selinux.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
serverconfig.js Added missing configuration options 2012-02-20 15:47:39 -06:00
service.js Multiple fields for one attribute 2012-02-29 13:01:16 +01:00
sudo.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
user.js Show_content on refresh success 2012-03-19 18:37:39 +01:00
webui.js Added logout button 2012-02-28 23:58:51 -05:00
widget.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00