mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
CommentManagementAPIImpl
This commit is contained in:
parent
c26903c446
commit
7d22c45636
@ -56,11 +56,12 @@ public class CommentsManagerImpl implements CommentsManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Comment addComment(Comment comment, String uuid, int tenantId) throws CommentManagementException {
|
public Comment addComment(Comment comment, String uuid) throws CommentManagementException {
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Request for comment is received for uuid" + uuid);
|
log.debug("Request for comment is received for uuid" + uuid);
|
||||||
}
|
}
|
||||||
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
|
||||||
comment.setCreatedAt(Timestamp.from(Instant.now()));
|
comment.setCreatedAt(Timestamp.from(Instant.now()));
|
||||||
try {
|
try {
|
||||||
ConnectionManagerUtil.beginDBTransaction();
|
ConnectionManagerUtil.beginDBTransaction();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user