-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tla-web-ButtonsTextSentencesFinal_CV_13Sept23
- Loading branch information
Showing
13 changed files
with
390 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package tla.web.model; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import tla.domain.dto.CommentDto; | ||
import tla.domain.model.Passport; | ||
import tla.domain.model.meta.BTSeClass; | ||
import tla.domain.model.meta.TLADTO; | ||
import tla.web.model.mappings.Util; | ||
import tla.web.model.meta.BTSObject; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@BTSeClass("BTSComment") | ||
@TLADTO(CommentDto.class) | ||
public class Comment extends BTSObject { | ||
|
||
@Getter(AccessLevel.NONE) | ||
private String body; | ||
|
||
/** | ||
* Escape markup before returning value. | ||
*/ | ||
@Override | ||
public String getName() { | ||
return Util.escapeMarkup(super.getName()); | ||
} | ||
|
||
public String getBody() { | ||
//return this.body; | ||
return Util.escapeMarkup(this.body); | ||
} | ||
|
||
} |
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.