-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Proposed Changes * Create a new End point to calculate Hierarchy https://github.com/dotCMS/core/pull/29142/files#diff-1677f12a3b6c8909f3436afc7817819af2f46ac5ae6a37bdfab43690ffa24780R289 - Crate Factory and AOI methods too https://github.com/dotCMS/core/pull/29142/files#diff-cc8d6686856cf74ed3cfdbbf782839a205ade11ffa80218a0a1365fe47ac7c17R535 https://github.com/dotCMS/core/pull/29142/files#diff-88379e3d0d9b5a5c54cb2207518bb686c3a9243cf6419ff11377616a7cd88dd2R324 --------- Co-authored-by: Daniel Silva <[email protected]>
- Loading branch information
1 parent
c98dafc
commit 7bbef89
Showing
11 changed files
with
1,292 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
dotCMS/src/main/java/com/dotcms/rest/api/v1/categories/CategoryInodesForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.dotcms.rest.api.v1.categories; | ||
|
||
import com.dotcms.repackage.javax.validation.constraints.NotNull; | ||
import com.dotcms.rest.api.Validated; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Category Input Form | ||
*/ | ||
@JsonDeserialize(builder = CategoryInodesForm.Builder.class) | ||
public class CategoryInodesForm extends Validated { | ||
|
||
private List<String> inodes; | ||
|
||
private CategoryInodesForm(final Builder builder) { | ||
|
||
this.inodes = builder.inodes; | ||
} | ||
|
||
public List<String> getInodes() { | ||
return inodes; | ||
} | ||
|
||
public static final class Builder { | ||
|
||
@JsonProperty | ||
private List<String> inodes; | ||
|
||
public void setInodes(List<String> inodes) { | ||
this.inodes = inodes; | ||
} | ||
|
||
public CategoryInodesForm build() { | ||
|
||
return new CategoryInodesForm(this); | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...src/main/java/com/dotcms/rest/api/v1/categories/HierarchyShortCategoriesResponseView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.dotcms.rest.api.v1.categories; | ||
|
||
import com.dotcms.experiments.model.Experiment; | ||
import com.dotcms.rest.ResponseEntityView; | ||
import com.dotmarketing.portlets.categories.model.HierarchyShortCategory; | ||
|
||
import java.util.List; | ||
|
||
public class HierarchyShortCategoriesResponseView extends ResponseEntityView<List<HierarchyShortCategory>> { | ||
public HierarchyShortCategoriesResponseView(final List<HierarchyShortCategory> categories) { | ||
super(categories); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.