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

Issue 12999 delete content types #13214

Merged
merged 10 commits into from
Dec 19, 2017
Merged

Conversation

acurionedotcms
Copy link
Contributor

No description provided.

Copy link
Contributor

@jdotcms jdotcms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@acurionedotcms acurionedotcms merged commit e4514c9 into master Dec 19, 2017
@acurionedotcms acurionedotcms deleted the issue-12999-Delete-Content-Types branch December 19, 2017 15:42
* @param container Container with the new changes to be persisted
*/
private void saveContainerStructures (ActionRequest req, Container currentContainer, Container container)
throws DotDataException, DotSecurityException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic on this code can be optimized keeping a map for oldContainerStructures, then filter to exclude newContainerStructures (https://www.mkyong.com/java8/java-8-filter-a-map-examples/). With the resulting map you can delete in batch. I think it's a faster and less verbose implementation

}

@NotNull
private static MultiTree getMultiTreeFields(Map<String, String> map) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants