更新时间:2021-04-01 14:19:49
Coverpage
Copyright Information
Credits
About the author
Acknowledgement
About the reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Grails
Why Grails?
Installing Grails
Build a team communication portal
Summary
Chapter 2. Managing Users with Scaffolding
What is scaffolding?
Create the domain classes
Creating controllers to enable scaffolding
Control through constraints
Meeting the relations
Bootstrapping demo data
Chapter 3. Posting Messages
Message domain class
Rendering a form
Handling user input
Create a home page
Styles and navigation
Tidying up
Chapter 4. Introduction to Groovy
What is Groovy?
Why Groovy?
Running Groovy
Groovy features
Chapter 5. Authentication with JSecurity Plug-in
Where to find plug-ins
Installing a plug-in
Configuring JSecurity plug-in
Add the missing pieces
JSecurity tags
Who posted that?
Chapter 6. Testing
Writing unit tests
JUnit refresher
Unit tests in Grails
Integration testing
Integration tests in Grails
Functional testing
Functional testing In Grails
Testing guidance
Chapter 7. File Sharing
File domain object
FileController
File Upload GSP
Saving the file
Viewing files
Modeling for efficiency
Downloading files
Chapter 8. More GORM and Criteria
More GORM relationships
Querying with criteria
Updating FileController
Render file versions
Fix file download
Chapter 9. Services
Introducing services
Implementing FileService
Chapter 10. Managing Content through Tagging
Add basic tagging
Customize the home page
All Messages and Files
Chapter 11. AJAX and RIA Frameworks
Edit tags inline
Auto-complete tags
Introducing tag clouds
Chapter 12. Searching RSS and REST Services
Searching
RSS
REST services
Chapter 13. Build your own Plug-in
The tagger plug-in
Using plug-in events
Chapter 14. Deployment and the Real World
Set up the environment
Configure Grails