Custom Controller: A custom controller is an Apex class that
implements all of the logic for a page without leveraging a standard
controller. Use custom controllers when you want your Visualforce page to run
entirely in system mode, which does not enforce the permissions and field-level
security of the current user.
Controller extension: A controller extension is an Apex
class that extends the functionality of a standard or custom controller.
“Although custom controllers and controller extension
classes execute in system mode and thereby ignore user permissions and
field-level security, you can choose whether they respect a user’s
organization-wide defaults, role hierarchy, and sharing rules by using the with
sharing keywords in the class definition.”
No comments:
Post a Comment