-
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.
chore(Edit Mode) fixes #30699 : Add the folder ID to the ``/api/v1/fo…
…lder/byPath` Endpoint
- Loading branch information
1 parent
3c2c587
commit 0fe3c51
Showing
3 changed files
with
175 additions
and
260 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
24 changes: 21 additions & 3 deletions
24
dotCMS/src/main/java/com/dotcms/rest/api/v1/folder/FolderSearchResultView.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 |
---|---|---|
@@ -1,29 +1,47 @@ | ||
package com.dotcms.rest.api.v1.folder; | ||
|
||
/** | ||
* View of the Folder for the move actionlet. | ||
* This class represents the REST View of a Folder. It's used by several Endpoints and related | ||
* classes, such as the {@link FolderResource}, the | ||
* {@link com.dotmarketing.portlets.workflows.actionlet.MoveContentActionlet}, and so on. | ||
* | ||
* @author Jonathan Sanchez | ||
* @since Jul 19th, 2021 | ||
*/ | ||
public class FolderSearchResultView { | ||
|
||
private final String id; | ||
private final String inode; | ||
private final String path; | ||
private final String hostName; | ||
|
||
private final boolean addChildrenAllowed; | ||
|
||
public FolderSearchResultView(final String path, final String hostname, final boolean addChildrenAllowed) { | ||
public FolderSearchResultView(final String id, final String inode, final String path, | ||
final String hostname, final boolean addChildrenAllowed) { | ||
this.id = id; | ||
this.inode = inode; | ||
this.path = path; | ||
this.hostName = hostname; | ||
this.addChildrenAllowed = addChildrenAllowed; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getInode() { | ||
return inode; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
|
||
public String getHostName() { | ||
return hostName; | ||
} | ||
|
||
public boolean isAddChildrenAllowed(){ return addChildrenAllowed; } | ||
|
||
} |
Oops, something went wrong.