<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Komentarze do: PermissionStore w JBoss Seam 2.1 &#8211; ograniczanie odwołań do bazy przy sprawdzaniu uprawnień</title>
	<atom:link href="http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/feed/" rel="self" type="application/rss+xml" />
	<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/</link>
	<description>Thoughts about Java, Ruby, Cloud, Girls...</description>
	<lastBuildDate>Sat, 01 Jan 2011 12:42:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Autor: Syed</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-141</link>
		<dc:creator><![CDATA[Syed]]></dc:creator>
		<pubDate>Sat, 01 Jan 2011 12:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-141</guid>
		<description><![CDATA[Hey Marek,

I am trying  your example, I have some issues: I debugged the code and it seems that it actually checks the permissions everytime I try to load the page with hasPermission, from somewhere it hist the permission model table. BUT in  only the case when it doesnot have any permission does it come into this permissionresovler and run the hasPermission method. 

Like user 1 has permissions to update,list and add but does not have the permission to delete, now My page has permission on delete button only, so each time I try to load the page with delete button first it checks if the user has permission to delete (from somewhere) and if yes it doesn&#039;t come into my hasPermission method, if it does not have permission then it comes into my hasPermission method to recheck. 

So what I am trying to say is that it actually does check with DB and hits the permission table to retrieve the permission for the user at every point even after having this resolver. Which component is doing that is beyond my understanding. 

Did you see this. Why is my resolver&#039;s hasPermission method not the first one to kick in and some other class hits the db and only in one case does it come into my class. What could be wrong. I will really appreciate your help.

Syed...]]></description>
		<content:encoded><![CDATA[<p>Hey Marek,</p>
<p>I am trying  your example, I have some issues: I debugged the code and it seems that it actually checks the permissions everytime I try to load the page with hasPermission, from somewhere it hist the permission model table. BUT in  only the case when it doesnot have any permission does it come into this permissionresovler and run the hasPermission method. </p>
<p>Like user 1 has permissions to update,list and add but does not have the permission to delete, now My page has permission on delete button only, so each time I try to load the page with delete button first it checks if the user has permission to delete (from somewhere) and if yes it doesn&#8217;t come into my hasPermission method, if it does not have permission then it comes into my hasPermission method to recheck. </p>
<p>So what I am trying to say is that it actually does check with DB and hits the permission table to retrieve the permission for the user at every point even after having this resolver. Which component is doing that is beyond my understanding. </p>
<p>Did you see this. Why is my resolver&#8217;s hasPermission method not the first one to kick in and some other class hits the db and only in one case does it come into my class. What could be wrong. I will really appreciate your help.</p>
<p>Syed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Marek Goldmann</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-34</link>
		<dc:creator><![CDATA[Marek Goldmann]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 09:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-34</guid>
		<description><![CDATA[@Mirek

Nie ma to jak sprawne oko! Dzięki za znalezienie tego błędu, bo faktycznie mógł on powodować poważne skutki, kod został poprawiony.]]></description>
		<content:encoded><![CDATA[<p>@Mirek</p>
<p>Nie ma to jak sprawne oko! Dzięki za znalezienie tego błędu, bo faktycznie mógł on powodować poważne skutki, kod został poprawiony.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Mirek Piotrowski</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-33</link>
		<dc:creator><![CDATA[Mirek Piotrowski]]></dc:creator>
		<pubDate>Sun, 22 Feb 2009 22:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-33</guid>
		<description><![CDATA[Przydatny materiał.
Jednak do metody hasPermission należy dodać kontrolę parametru &quot;action&quot; ponieważ w obecnej postaci metoda zawsze zwróci true w przypadku tego samego &quot;target&quot; z innymi &quot;action&quot;.]]></description>
		<content:encoded><![CDATA[<p>Przydatny materiał.<br />
Jednak do metody hasPermission należy dodać kontrolę parametru &#8220;action&#8221; ponieważ w obecnej postaci metoda zawsze zwróci true w przypadku tego samego &#8220;target&#8221; z innymi &#8220;action&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Model zdarzeniowy, zdarzenia w JBoss Seam &#171; Java vs. Me</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-14</link>
		<dc:creator><![CDATA[Model zdarzeniowy, zdarzenia w JBoss Seam &#171; Java vs. Me]]></dc:creator>
		<pubDate>Thu, 11 Dec 2008 16:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-14</guid>
		<description><![CDATA[[...]    Na prośbę Jacka postanowiłem napisać kilka słów na temat obsługi zdarzeń w JBoss Seam. Aby jednak [...]]]></description>
		<content:encoded><![CDATA[<p>[...]    Na prośbę Jacka postanowiłem napisać kilka słów na temat obsługi zdarzeń w JBoss Seam. Aby jednak [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Marek Goldmann</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-12</link>
		<dc:creator><![CDATA[Marek Goldmann]]></dc:creator>
		<pubDate>Tue, 09 Dec 2008 13:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-12</guid>
		<description><![CDATA[@Jacek

Nie ma sprawy - napiszę post o wywoływaniu i obsłudze zdarzeń w JBoss Seam, który będzie zawierał przykład użycia powyższych zdarzeń.]]></description>
		<content:encoded><![CDATA[<p>@Jacek</p>
<p>Nie ma sprawy &#8211; napiszę post o wywoływaniu i obsłudze zdarzeń w JBoss Seam, który będzie zawierał przykład użycia powyższych zdarzeń.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Jacek Laskowski</title>
		<link>http://ordinarythoughts.org/2008/11/16/permissionstore-w-jboss-seam-21-ograniczanie-odwolan-do-bazy-przy-sprawdzaniu-uprawnien/#comment-10</link>
		<dc:creator><![CDATA[Jacek Laskowski]]></dc:creator>
		<pubDate>Tue, 09 Dec 2008 11:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://javavsme.wordpress.com/?p=48#comment-10</guid>
		<description><![CDATA[Wartościowy wpis! Można kolejny na temat &quot;wywołać odpowiednio zdarzenia System.Permission.Removed lub System.Permission.Removed&quot;? Poczekam cierpliwie.]]></description>
		<content:encoded><![CDATA[<p>Wartościowy wpis! Można kolejny na temat &#8220;wywołać odpowiednio zdarzenia System.Permission.Removed lub System.Permission.Removed&#8221;? Poczekam cierpliwie.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

