Skip to main content

Posts

Showing posts from March, 2019

New Lightning Components - Winter19

lightning:empApi Embed the  lightning:empApi  component in your custom Lightning component to subscribe to a streaming event channel and receive event notifications. You can subscribe to any type of event channel on the Lightning Platform, including channels for platform events, PushTopic and generic events, and Change Data Capture (Developer Preview) events. The  lightning:empApi  component uses a shared CometD-based Streaming API connection, enabling you to run multiple streaming apps in the browser. lightning:map The  lightning:map  component securely displays a map of one or more locations using Google Maps. You can pass markers to the component to define the locations to map. A marker can be a coordinate pair of latitude and longitude, or a set of address elements: City, Country, PostalCode, State, and Street. Here’s the map component with one address. When you specify multiple locations, the map component creates clickable tiles for each location. You can specify

Apex Inherited Sharing - Winter19

You can now specify the  inherited sharing  keyword on an Apex class, which allows the class to run in the sharing mode of the class that called it. Using  inherited sharing  enables you to pass security review and ensure that your privileged Apex code is not used in unexpected or insecure ways. An Apex class with  inherited sharing  runs as with sharing when used as a Visualforce page controller, Apex REST service, or an entry point to an Apex transaction. Apex without a sharing declaration is insecure by default. Designing Apex classes that can run in either  with sharing  or  without sharing  mode at runtime is an advanced technique and can be difficult to distinguish from one where a specific sharing declaration is accidentally omitted. An explicit  inherited sharing  declaration makes the intent clear, avoiding ambiguity arising from an omitted declaration or false positives from security analysis tooling. There is a distinct difference between an Apex class that is marked wi