·¬ÇÑÉçÇø

Brightspot CMS Developer Guide

Code Playground


The Code Playground is a code editor for testing your Java code. Code is compiled automatically and results are displayed in your browser. There is a PLAYGROUND (non-edit) mode, and an edit mode for modifying and creating classes.

Warning
To avoid unintentionally changing existing code in your project, make sure that the editor is set to PLAYGROUND.


You can return a class and view its members in the Result pane. For example, returning the Record class shows the class fields and methods.

Dari Code Editor showing class fields and methods.png Dari Code Editor showing class fields and methods.png
Dari Code Editor showing class fields and methods


You can test your classes and call Dari APIs. For example, the following code creates multiple objects of the ToolUser class and calls the Dari Query API to return the JSON results.

Dari Code Editor returning query API results.png Dari Code Editor returning query API results.png
Dari Code Editor returning Query API results

You can edit existing classes or create new classes in a project. For a project running locally, saved changes are made to the source.

To modify an existing class, open the drop-down menu and select a class. Brightspot loads the class in the Code Playground.

Modifying an existing class.png Modifying an existing class.png
Modifying an existing class


To create a new class, open the drop-down menu and select New Class in the appropriate package.

Creating a new class.png Creating a new class.png
Creating a new class

Previous Topic
Build Information
Next Topic
Database Bootstrap
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

•
•
•
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

• Content types
• Modules
• Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

• Dashboards
• Publishing
• Workflows
• Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

• Field types
• Content modeling
• Rich-text elements
• Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

• Google Analytics
• Shopify
• Apple News