Professional Documents
Culture Documents
(Download PDF) Force Com Enterprise Architecture 2Nd Edition Andrew Fawcett Online Ebook All Chapter PDF
(Download PDF) Force Com Enterprise Architecture 2Nd Edition Andrew Fawcett Online Ebook All Chapter PDF
(Download PDF) Force Com Enterprise Architecture 2Nd Edition Andrew Fawcett Online Ebook All Chapter PDF
https://textbookfull.com/product/salesforce-lightning-platform-
enterprise-architecture-third-edition-andrew-fawcett/
https://textbookfull.com/product/salesforce-com-lightning-
process-builder-and-visual-workflow-a-practical-guide-to-model-
driven-development-on-the-force-com-platform-1st-edition-
jonathan-keel/
https://textbookfull.com/product/digital-transformation-of-
enterprise-architecture-1st-edition-vivek-kale/
https://textbookfull.com/product/enterprise-architecture-at-work-
modelling-communication-and-analysis-4th-edition-marc-lankhorst/
Data Management at Scale Best Practices for Enterprise
Architecture 1st Edition Piethein Strengholt
https://textbookfull.com/product/data-management-at-scale-best-
practices-for-enterprise-architecture-1st-edition-piethein-
strengholt/
https://textbookfull.com/product/hadoop-in-the-enterprise-
architecture-a-guide-to-successful-integration-1st-edition-jan-
kunigk/
https://textbookfull.com/product/international-relations-of-
middle-east-louise-fawcett/
https://textbookfull.com/product/anti-politics-depoliticization-
and-governance-paul-fawcett/
https://textbookfull.com/product/enterprise-risk-management-
models-2nd-edition-david-l-olson/
Force.com Enterprise
Architecture
Second Edition
Andrew Fawcett
BIRMINGHAM - MUMBAI
Force.com Enterprise Architecture
Second Edition
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78646-368-5
www.packtpub.com
Credits
Reviewers Proofreader
Zarna Chintan Naik Safis Editing
John M. Daniels
Peter Knolle Indexer
John Leen Mariammal Chettiyar
Aaron Slettehaugh
Avrom Roy-Faderman Graphics
Jason Monteiro
Commissioning Editor
Aaron Lazar Production Coordinator
Shraddha Falebhai
Acquisition Editor
Nitin Dasan Cover Work
Shraddha Falebhai
Technical Editors
Pavan Ramchandani
Kunal Chaudhari
Copy Editors
Sonia Mathur
Pranjali Chury
Foreword
As a Developer Evangelist for Salesforce.com, I've seen an ever-widening demand
for the exact kind of material that Andrew brings to the table with this book. While
I often get the joy of showing developers new features that are rolling out on Force.
com, I am often also asked questions about daily challenges when it comes to
leveraging those features and implementing solutions within the ecosystem required
by enterprise developer teams. This book will go a long way in providing new
reference material specifically for those concerns.
In 2014, the capabilities of the platform completely eclipse those days. With Standard
Controllers, Visualforce provides basic business logic out of the box, without
additional code required. For custom processing, a developer is not limited to just a
single option, but various routes ranging from extending Visualforce's components
library to exposing Apex methods directly to JavaScript—providing the flexibility
from the old AJAX toolkit without ever needing to access the scope of the platform
APIs. Apex can be scheduled, it can churn through records in the background, and
it can be used to create completely custom REST endpoints. Developers now have
access to powerful new APIs such as Streaming and Analytics as well as industrial
strength identity services.
The platform continues to evolve. At Dreamforce, each year, we announce new tools,
features, and functionality to the platform. Last year was Salesforce1 with a new
mobile application that would make deploying interfaces to smartphones a simple
and integrated process. This coming October, we will deliver new industry-changing
innovations.
This pace of technical evolution combined with an ever increasing adoption of
Force.com for enterprise applications poses a specific challenge for developers: to
continually think of the platform not as just a solution for various use cases, but as
a complete ecosystem that uses the platform efficiently. It is no longer sufficient to
consider that a given application simply works on the platform; developers need to
consider whether their applications are being designed in a way that leverages the
correct features and that will co-exist efficiently and well. It takes the ability to view
how the platform is being limited from a high level and with a clear direction.
I knew Andrew was the kind of architect with such an ability when we started
discussing a new set of articles he was writing based on Martin Fowler's Separation
of Concerns and how such design patterns could be used to develop Apex for
enterprise solutions. Seven years ago, thinking about Apex in such layers of
abstraction was certainly possible—it just wasn't really necessary. With all the
potential tools and features in the hands of a Force.com developer now, not
considering such concepts is begging for maintenance debt down the road.
Hence, I'm delighted to see Andrew writing this book, and that at its core, we can
see an expanded version of his previous design pattern articles. Actually, simply a
printed copy of those articles would not be a bad addition to an architect's library,
but here, we also see a more complete vision of what a developer should know
before building applications on the platform that levels off from higher order
considerations like interfacing Apex classes together down to the concrete tasks of
properly leveraging Source Control software for Force.com.
I'm excited to see this book on my shelf, and hopefully yours—it will help you map
out not only this generation of Force.com applications, but to move forward with
future ones as well.
Joshua Birk
He loves watching movies and Formula1 motor racing and building cloud-controlled
Lego robots! You can find him on Twitter at @andyinthecloud, and his Lego robot
Twitter handle and website is @brickinthecloud.
I'd like to acknowledge the Salesforce community for their excellent contributions,
feedback, and encouragement in respect to the many open source frameworks used
in this book. Thank you, one and all, and keep it up!
Zarna and her team also have expertise in multiple appexchange products, including
Conga Merge, Clicktools, Rollup Helper, and Drawloop.
John M. Daniel has been working in the technology sector for over 20+ years.
During that time, he has worked with a variety of technologies and project roles.
Currently, he works at Morgan & Morgan Law Firm as their Lead Salesforce
Platform Architect. He currently holds multiple certifications from Salesforce.com,
including the Platform Developer I & II certifications and most of the Technical
Architect Designer certifications. He is currently in the process of attaining the
Certified Technical Architect certification. His loves to spend time with his family,
swim at the beach, and work on various open source projects, such as ApexDocs and
ApexUML. He co-leads his local area Salesforce Developers User Group and can be
found on Twitter at @ImJohnMDaniel.
John has been a technical reviewer for:
Before joining Salesforce Aaron helped launch the global operations of an African
NGO, led the product team at a leading IaaS innovator, and started a cloud
computing company, leading it to acquisition by Citrix. He has an MBA from
Stanford University and a bachelor in engineering.
www.PacktPub.com
At www.PacktPub.com, you can also read a collection of free technical articles, sign
up for a range of free newsletters and receive exclusive discounts and offers on Packt
books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all
Packt books and video courses, as well as industry-leading tools to help you plan
your personal development and advance your career.
Why subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print, and bookmark content
• On demand and accessible via a web browser
If you'd like to join our team of regular reviewers, you can email us at
customerreviews@packtpub.com. We award our regular reviewers with free
eBooks and videos in exchange for their valuable feedback. Help us be relentless in
improving our products!
Table of Contents
Preface xi
chapter 1: Building, Publishing, and Supporting Your Application 1
Required organizations 2
Introducing the book's sample application 4
Package types and benefits 5
Features and benefits of managed packages 6
Creating your first managed package 7
Setting your package namespace 7
Creating the package and assigning it to the namespace 9
Adding components to the package 9
Extension packages 10
Package dependencies and uploading 11
Uploading the release and beta packages 12
Optional package dependencies 14
Dynamic bindings 14
Extension packages 14
Becoming a Salesforce partner and benefits 15
Security review and benefits 16
Getting the best out of the Partner Community 17
Creating test and developer orgs via Environment Hub 19
Introduction to AppExchange and listings 19
Installing and testing your package 21
Automating package installation 23
Licensing 24
The Licenses tab and managing customer licenses 27
The Subscribers tab 28
The Subscriber Overview page 29
How licensing is enforced in the subscriber org 30
Providing support 30
[i]
Table of Contents
Customer metrics 32
Trialforce and Test Drive 32
Distributing Salesforce Connected Apps 33
Summary 34
chapter 2: Leveraging Platform Features 35
Packaging and upgradable components 36
Custom field – picklist values 37
Global Picklists 38
Automating upgrades with the Salesforce Metadata API 38
Understanding the custom field features 39
Default field values 39
Encrypted fields 41
Special considerations for Platform Encryption 42
Lookup options, filters, and layouts 43
Rollup summaries and limits 47
Understanding the available security features 49
Functional security 50
Your code and security review considerations 53
Data security 54
Your code and security review considerations 56
Platform APIs 57
Considerations for working well with OK platforms APIs 59
Localization and translation 60
Localization 61
Translation 61
Building customizable user interfaces 62
Layouts 63
Visualforce 64
Lightning App Builder and Components 64
E-mail customization with e-mail templates 64
Process Builder, Workflow and Flow 65
Social features and mobile 66
Summary 71
chapter 3: Application Storage 73
Mapping out end user storage requirements 74
Understanding the different storage types 75
Data storage 76
Columns versus rows 76
Visualizing your object model 78
Considerations for configuration data 79
File storage 86
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Preface
1. Log in or register to our website using your e-mail address and password.
2. Hover the mouse pointer on the SUPPORT tab at the top.
3. Click on Code Downloads & Errata.
4. Enter the name of the book in the Search box.
5. Select the book for which you're looking to download the code files.
6. Choose from the drop-down menu where you purchased this book from.
7. Click on Code Download.
You can also download the code files by clicking on the Code Files button on the
book's webpage at the Packt Publishing website. This page can be accessed by
entering the book's name in the Search box. Please note that you need to be logged
into your Packt account.
Once the file is downloaded, please make sure that you unzip or extract the folder
using the latest version of:
The collective source code for the application built throughout the book is available
in the main branch. For each chapter, a branch has been provided containing the
code added during that chapter building from the previous one, for example, branch
chapter-02 will contain code from chapter-01.
[ xvi ]
Another random document with
no related content on Scribd:
grace, her form all of beauty to me who opposite sat and was
watching her dextrous fingers.
The manufacture of flax into linen material was ever felt to be of
vast importance, and was encouraged by legislation from earliest
colonial days, but it received a fresh impulse in New England
through the immigration of about one hundred Irish families from
Londonderry. They settled in New Hampshire on the Merrimac about
1719. They spun and wove by hand, but with far more skill than
prevailed among those English settlers who had already become
Americans. They established a manufactory according to Irish
methods, and attempts at a similar establishment were made in
Boston. There was much public excitement over spinning. Women,
rich as well as poor, appeared on Boston Common with their wheels,
thus making spinning a popular holiday recreation. A brick building
was erected as a spinning-school, and a tax was placed in 1737 to
support it. But this was not an industrial success, the excitement died
out, the public spinning-school lost its ephemeral popularity, and the
wheel became again simply a domestic duty and pride.
For many years after this, housewives had everywhere flax and
hemp to spin and weave in their homes, and the preparation of these
staples seems to us to-day a monumental labor. On almost every
farm might be seen a patch of the pretty flax, ripening for the hard
work of pulling, rippling, rotting, breaking, swingling, and combing,
which all had to be done before it came to the women’s hands for
spinning. The seed was sown broad-cast, and allowed to grow till the
bobs or bolls were ripe. The flax was then pulled and spread neatly
in rows to dry. This work could be done by boys. Then men whipped
or threshed or rippled out all the seed to use for meal; afterwards the
flax stalks were allowed to lie for some time in water until the shives
were thoroughly rotten, when they were cleaned and once more
thoroughly dried and tied in bundles. Then came work for strong
men, to break the flax on the ponderous flaxbreak, to get out the
hard “hexe” or “bun,” and to swingle it with a swingle knife, which
was somewhat like a wooden dagger. Active men could swingle forty
pounds a day on the swingling-board. It was then hetchelled or
combed or hackled by the housewife, and thus the rough tow was
gotten out, when it was straightened and made ready for the spruce
distaff, round which it was finally wrapped. The hatchelling was
tedious work and irritating to the lungs, for the air was filled with the
fluffy particles which penetrated everywhere. The thread was then
spun on a “little wheel.” It was thought that to spin two double skeins
of linen, or four double skeins of tow, or to weave six yards of linen,
was a good day’s work. For a week’s work a girl received fifty cents
and “her keep.” She thus got less than a cent and a half a yard for
weaving. The skeins of linen thread went through many tedious
processes of washing and bleaching before being ready for weaving;
and after the cloth was woven it was “bucked” in a strong lye, time
and time again, and washed out an equal number of times. Then it
was “belted” with a maple beetle on a smooth, flat stone; then
washed and spread out to bleach in the pure sunlight. Sometimes
the thread, after being spun and woven, had been washed and
belted a score of times ere it was deemed white and soft enough to
use. The little girls could spin the “swingling tow” into coarse twine,
and the older ones make “all tow” and “tow and linen” and “harden”
stuffs to sell.
To show the various duties attending the manufacture of these
domestic textiles by a Boston woman of intelligence and social
standing, as late as 1788, let me quote a few entries from the diary
of the wife of Col. John May:—
A large kettle of yarn to attend upon. Lucretia and self rinse
our through many waters, get out, dry, attend to, bring in, do
up and sort 110 score of yarn, this with baking and ironing.
Went to hackling flax.
Rose early to help Ruth warp and put a piece in the loom.
Baking and hackling yarn. A long web of tow to whiten and
weave.
The wringing out of this linen yarn was most exhausting, and the
rinsing in various waters was no simple matter in those days, for the
water did not conveniently run into the houses through pipes and
conduits, but had to be laboriously carried in pailfuls from a pump, or
more frequently raised in a bucket from a well.
I am always touched, when handling the homespun linens of olden
times, with a sense that the vitality and strength of those enduring
women, through the many tedious and exhausting processes which
they had bestowed, were woven into the warp and woof with the flax,
and gave to the old webs of linen their permanence and their
beautiful texture. How firm they are, and how lustrous! And how
exquisitely quaint and fine are their designs; sometimes even
Scriptural designs and lessons are woven into them. They are,
indeed, a beautiful expression of old-time home and farm life. With
their close-woven, honest threads runs this finer beauty, which may
be impalpable and imperceptible to a stranger, but which to me is
real and ever-present, and puts me truly in touch with the life of my
forbears. But, alas, it is through intuition we must learn of this old-
time home life, for it has vanished from our sight, and much that is
beautiful and good has vanished with it.
The associations of the kitchen fireside that linger in the hearts of
those who are now old can find no counterpart in our domestic
surroundings to-day. The welcome cheer of the open fire, which
graced and beautified even the humblest room, is lost forever with
the close gatherings of the family, the household occupations, the
homespun industries which formed and imprinted in the mind of
every child the picture of a home.
Transcriber’s Notes
Minor punctuation errors have been silently corrected.
Page 100: “take the the case” changed to “take the case”
Page 162: “promply sailed” changed to “promptly sailed”
Page 302: “was was set outside” changed to “was set outside”
Spelling and punctuation quoted from original sources has been left as-is.
*** END OF THE PROJECT GUTENBERG EBOOK COLONIAL
DAMES AND GOOD WIVES ***
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.