git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6244 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2005-03-30 13:27:16 +00:00
parent 8bf0ecf917
commit fe13192cb8
2 changed files with 4 additions and 4 deletions

View File

@ -211,7 +211,7 @@ cfg.getSessionEventListenerConfig().setLoadEventListener( new MyLoadListener() )
<para> <para>
First, you must configure the appropriate event listeners, to enable the use of JAAS First, you must configure the appropriate event listeners, to enable the use of JAAS
authentication. authorization.
</para> </para>
<programlisting><![CDATA[<listener type="pre-delete" class="org.hibernate.secure.JACCPreDeleteEventListener"/> <programlisting><![CDATA[<listener type="pre-delete" class="org.hibernate.secure.JACCPreDeleteEventListener"/>
@ -220,14 +220,14 @@ cfg.getSessionEventListenerConfig().setLoadEventListener( new MyLoadListener() )
<listener type="pre-load" class="org.hibernate.secure.JACCPreLoadEventListener"/>]]></programlisting> <listener type="pre-load" class="org.hibernate.secure.JACCPreLoadEventListener"/>]]></programlisting>
<para> <para>
Next, still in <literal>hibernate.cfg.xml</literal>, define the permissions: Next, still in <literal>hibernate.cfg.xml</literal>, bind the permissions to roles:
</para> </para>
<programlisting><![CDATA[<grant role="admin" entity-name="User" actions="insert,update,read"/> <programlisting><![CDATA[<grant role="admin" entity-name="User" actions="insert,update,read"/>
<grant role="su" entity-name="User" actions="*"/>]]></programlisting> <grant role="su" entity-name="User" actions="*"/>]]></programlisting>
<para> <para>
Where the role names are the roles understood by your JACC provider. The role names are the roles understood by your JACC provider.
</para> </para>
</sect1> </sect1>

View File

@ -310,7 +310,7 @@ public class DomesticCat extends Cat {
</sect1> </sect1>
<sect1 id="persistent-classes-dynamicmodels"> <sect1 id="persistent-classes-dynamicmodels">
<title>Dynamic modelss</title> <title>Dynamic models</title>
<para> <para>
<emphasis>Note that the following features are currently considered <emphasis>Note that the following features are currently considered