Author: mcaspers
Date: 2011-01-13 19:06:51 -0500 (Thu, 13 Jan 2011)
New Revision: 28215
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam28.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam29.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam30.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam31.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam32.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam34.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam34a.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam37.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam38.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam44.png
Log:
Updates for JBDS 4.0
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-01-13
23:36:10 UTC (rev 28214)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-01-14
00:06:51 UTC (rev 28215)
@@ -501,18 +501,22 @@
<title>Edit Login Authentication Logic</title>
<para>There is a class called
<property>Authenticator.java</property>. The login page will
execute the <property>Authenticator.authenticate()</property> method
by default, so we’ll
- start by adding some custom login logic.</para>
- <para>Open <property>Authenticator.java</property> in JBoss
Developer Studio and replace the
+ start by viewing the authentication logic.</para>
+ <para>Open <property>Authenticator.java</property> in JBoss
Developer Studio and you will see that it contains the
<property>authenticate()</property> method with this
code:</para>
<programlisting><![CDATA[public boolean authenticate()
-{
- if ("admin".equals(credentials.getUsername()))
- {
- identity.addRole("admin");
- return true;
- }
- return false;
-}]]></programlisting>
+ {
+ log.info("authenticating {0}", credentials.getUsername());
+ //write your authentication logic here,
+ //return true if the authentication was
+ //successful, false otherwise
+ if ("admin".equals(credentials.getUsername()))
+ {
+ identity.addRole("admin");
+ return true;
+ }
+ return false;
+ }]]></programlisting>
</section>
<section id="secure_seam_page">
<title>Secure Seam Page Component</title>
@@ -644,10 +648,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>On the next page use the <emphasis>
- <property>Include</property>
- </emphasis> button to include all the tables from the database and click
<emphasis>
- <property>Finish</property>.</emphasis></para>
+ <para>On the next page use the <guibutton>Refresh</guibutton>
button to display the database, then click the <guibutton>Include</guibutton>
button to include all the tables from the database, and finally click the
<guibutton>Finish</guibutton> button.</para>
<figure>
<title>Selecting Tables</title>
<mediaobject>
@@ -670,7 +671,7 @@
<para>There are also <emphasis>
<property>org.domain.workshop.entity</property>
</emphasis> package that contains the JPA classes. These are the entity
beans that are
- mapped to database tables.Note,that you can use Seam refactoring tools with Seam
components.
+ mapped to database tables. Note that you can use Seam refactoring tools with Seam
components.
Read more about it in <ulink
url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_...
Seam refactoring tools chapter</ulink> of Seam Dev Tools
Reference Guide.</para>
@@ -782,7 +783,7 @@
<para>Now, it’s time to view the data model for the workshop
database.</para>
<para>In the Hibernate Configurations view, select
"workshop" project and expand the
<property>Configuration</property> node. Select the
<property>Customers</property> entity,
- right click on it, choose <property>Open Mapping
Diagram</property>.</para>
+ right click on it, choose <property>Mapping
Diagram</property>.</para>
<figure>
<title>Mapping Diagram Opening</title>
<mediaobject>
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam28.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam29.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam30.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam31.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam32.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam34.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam34a.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam37.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam38.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/first_seam/first_seam44.png
===================================================================
(Binary files differ)