menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordZ: Internal Stuff for the 2sxc-Dev Team
  • south

folder_sharedIntegration with Other Platforms

  • homeChecklist Templates
  • south
  • fiber_manual_recordZ: Internal Stuff for the 2sxc-Dev Team
  • south

folder_sharedIntegration with Other Platforms

Folders and checklists

  • check_circle1.1 Basic Read-Integration
  • check_circle1.2 First Web APIs
  • check_circle1.3 First JS Integration
  • check_circle2.1 WebApis - Create Stateless and Stateful ControllerBase
  • check_circle2.2 Modify Insights Controller from 1.2 to use Stateless Base Controller
  • check_circle2.3 Implement EditController Load-Action
  • check_circle2.4 Implement EditController EntityPicker
  • check_circle2.5 Implement Link Resolve
  • check_circle3.0 ADAM integration WIP

Parts (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

2sxc has a lot of WebApis - grouped into two types

  1. Stateless - these don't need a Block-context, so they don't need to know what module the call was made from.
  2. Stateful - these have commands which may need the block, but sometimes also work without a block context.

To keep our code clean and optimized, we must create these two base controllers, which the other controllers will inherit. 

Create the Stateless ControllerBase

  1. Look at the OqtStatelesControllerBase, and create your similar implementation. Note that it's very trivial, the main feature is the Log-Name, which inheriting classes will have to provide.

Create the Stateful ControllerBase

  1. Look at the OqtStatefulControllerBase and create your similar implementation. Some notes
    1. As you'll end up adding more dependencies with time, I recommend creating a StatefulControllerDependencies object which makes it easier to inherit this class
    2. GetBlock should ensure that a block configuration is built/created if the headers are provided. In the initial implementation, please just return null to signal than blocks are not yet supported. 
    3. GetContext should return the context of the block, or otherwise a neutral site/user only context
    4. GetApp(appId) should return a simple app object, just like in the Oqtane implementation

Note that you won't be able to test these, until you've actually implemented an API, so continue with the next step. 

Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/l2_p6pNs
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (0)

Others referencing this

Uses these (0)

Documents linked from this document

How it Behaves

How this document is categorized changes how it behaves.

This is a main document, it is listed normally and appears in search result.

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing