Working with CFAAS and Flex
Simon Free
@simonfree
Outline
What is CFaaS?
All about security
What classes are available?
How do you use them?
What is CFaaS?
ColdFusion as a Service
Acts as a proxy to ColdFusion functionality
Accessible via any technology
For flex a swc file is provided
Only available with CF9
Gives you the ability to:
All about Security
To use services a valid username and password must be provided
ip addresses must be given access
All settings are updated via the CF Administrator
Config Class
Used to set configuration settings such as server IP, username, password etc
If using multiple services in your application it is easier to the config class
Settings can be overwritten in each class
Only class you do not actually execute()
Mail Class
Allows you to send email (only)
Accepts the usual email information such as to email, from email, subject and content
Allows for attachments
Emails can be plain text or HTML
A mail server can be supplied or the default mail server in ColdFusion will be used
Image Class
Allows you to manipulate an image
An image is not returned, only a url to the image
Available actions range from adding a border to rotating, flipping and inverting
Documentation is not that great
PDF Class
Allows you to manipulate a pdf
It does not create a pdf!! (document class does though!!)
Offers functionality such as generating thumbnails, merging documents processing DDX Commands
Workflow for this can be a little clunky. I will explain..... (stop me if I donât)
Chart Class
Allows you to create jpg, png and flash charts
Pass in array of chart data and chart series (allowing for charts to be overlaid)
Flash format provides rollover tooltip support
Available chart types are:
Document Class
Allows you to create PDFâs or FlashPaper
Allows for content items and content sections, which means:
bookmarked sections
header and footer controls
access to variables such as current page and page count values
Pop Class
Allows you to interact with a POP account
Available options are getHeaderOnly, getAll and delete
Util Class
Provides a URL on the server to post files to
Any file post to that url will automatically be uploaded to the server, regardless of file type
Files are outside the web root so can not be run, only served up to the user
For each file upload a url to the file is returned as part of a wddx packet
Class provides a function to extract the url
Thatâs All!
Questions / Comments?
Simon@simonfree.com
Slides will be available at:
http://www.simonfree.com/presentations/
Follow me on Twitter:
http://www.twitter.com/simonfree
Resources:
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/index.html