Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content mapper implementation #36

Merged
merged 11 commits into from
Nov 13, 2019

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Nov 6, 2019

When the content is saved the following things happens

0. Controller

  • Specify which dimension attributes are for this request

1. DimensionFactory

  • Load exist Dimensions by specified attributes (DimensionRepository)
  • Create unlocalized Dimension when not exist
  • Create localized Dimension when not exist and locale is given
  • return a DimensionCollection object

2. ContentDimensionFactory

  • Load exist ContentDimension by dimensionIds
  • Create unlocalized ContentDimension when not exist
  • Create localized ContentDimension when not exist
  • Map given data to the localized and unlocalized ContentDimension
  • return a ContentDimensionCollection object

3. ViewFactory

  • Create a ContentView object by the specified ContentDimension
  • Loop over all ContentDimension and call the mergers to merge there data on it
  • return the ContentView object

4. ViewResolver

  • Serialize the ViewResolver by a specified configuration
  • Call the Resolvers to add there data
  • return the Serialized Array object.

@alexander-schranz alexander-schranz force-pushed the feature/mapper branch 2 times, most recently from 99a6d16 to 77a4322 Compare November 8, 2019 15:15
@alexander-schranz alexander-schranz changed the title WIP: Add content mapper implementation Add content mapper implementation Nov 8, 2019
@alexander-schranz alexander-schranz force-pushed the feature/mapper branch 15 times, most recently from c09e396 to ed5f627 Compare November 11, 2019 23:00
@alexander-schranz alexander-schranz added the Technical Debt Impacts only code quality, no or just small impact on end developers and users label Nov 11, 2019
@alexander-schranz alexander-schranz force-pushed the feature/mapper branch 2 times, most recently from 102cec2 to 7519365 Compare November 12, 2019 14:49
@alexander-schranz alexander-schranz force-pushed the feature/mapper branch 2 times, most recently from 779cd93 to 855738f Compare November 12, 2019 15:21
@niklasnatter niklasnatter merged commit 3ef2765 into sulu:master Nov 13, 2019
@alexander-schranz alexander-schranz deleted the feature/mapper branch November 13, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Technical Debt Impacts only code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants