Package org.openmetadata.service.jdbi3
Class FeedRepository
java.lang.Object
org.openmetadata.service.jdbi3.FeedRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic enumstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPostToThread(UUID id, Post post, String userName) voidcheckPermissionsForResolveTask(Authorizer authorizer, Thread thread, boolean closeTask, javax.ws.rs.core.SecurityContext securityContext) voidstatic StringcloseTaskMessage(String closingComment) voidcreate(Thread thread, ChangeEvent event) voiddeleteByAbout(UUID entityId) deletePost(Thread thread, Post post, String userName) deleteThread(Thread thread, String deletedByUser) voidintgetPostById(Thread thread, UUID postId) getTask(MessageParser.EntityLink about, TaskType taskType) getThreadsCount(String link) list(FeedFilter filter, String link, int limitPosts, UUID userId, int limit) List threads based on the filters and limits in the order of the updated timestamp.final RestUtil.PatchResponse<Post>final RestUtil.PatchResponse<Thread>patchThread(javax.ws.rs.core.UriInfo uriInfo, UUID id, String user, javax.json.JsonPatch patch) static Stringstatic StringresolveTask(javax.ws.rs.core.UriInfo uriInfo, Thread thread, String user, ResolveTask resolveTask) protected voidresolveTask(FeedRepository.ThreadContext threadContext, String user, ResolveTask resolveTask) voidstore(FeedRepository.ThreadContext threadContext) voidstoreRelationships(FeedRepository.ThreadContext threadContext)
-
Field Details
-
DELETED_USER_NAME
- See Also:
-
DELETED_USER_DISPLAY
- See Also:
-
DELETED_TEAM_NAME
- See Also:
-
DELETED_TEAM_DISPLAY
- See Also:
-
-
Constructor Details
-
FeedRepository
public FeedRepository()
-
-
Method Details
-
getNextTaskId
public int getNextTaskId() -
create
-
create
-
store
-
storeRelationships
-
getTask
-
get
-
getTask
-
closeTask
public RestUtil.PatchResponse<Thread> closeTask(javax.ws.rs.core.UriInfo uriInfo, Thread thread, String user, CloseTask closeTask) -
resolveTask
public RestUtil.PatchResponse<Thread> resolveTask(javax.ws.rs.core.UriInfo uriInfo, Thread thread, String user, ResolveTask resolveTask) -
resolveTask
protected void resolveTask(FeedRepository.ThreadContext threadContext, String user, ResolveTask resolveTask) -
closeTask
-
addPostToThread
-
getPostById
-
deletePost
-
deleteThread
-
deleteThreadInternal
-
deleteByAbout
-
getThreadsCount
-
listPosts
-
list
public ResultList<Thread> list(FeedFilter filter, String link, int limitPosts, UUID userId, int limit) List threads based on the filters and limits in the order of the updated timestamp. -
patchPost
public final RestUtil.PatchResponse<Post> patchPost(Thread thread, Post post, String user, javax.json.JsonPatch patch) -
patchThread
public final RestUtil.PatchResponse<Thread> patchThread(javax.ws.rs.core.UriInfo uriInfo, UUID id, String user, javax.json.JsonPatch patch) -
checkPermissionsForResolveTask
public void checkPermissionsForResolveTask(Authorizer authorizer, Thread thread, boolean closeTask, javax.ws.rs.core.SecurityContext securityContext) -
resolveDescriptionTaskMessage
-
resolveTagTaskMessage
-
closeTaskMessage
-