Overview

Summary

ContactDonateImprint


7. POST MODULE (UI prompt)



Module Entities (7)

EntityAliasModuleGlobal Schema
(1) CommentCommentUserAccountModuleLinkedIn
(2) CompanyCompanyCompanyModuleLinkedIn
(3) PostPostPostModuleLinkedIn
(4) PostTopicAssignmentPostTopicAssignmentPostTopicModuleLinkedIn
(5) ReactionReactionPostModuleLinkedIn
(6) ReactionTypeReactionTypePostModuleLinkedIn
(7) UserAccountUserAccountUserAccountModuleLinkedIn

Module Interfaces (21)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /post/{id}findPostById(id)PostModuleGETPost
(2) /reactioninsertReaction(reaction)PostModulePOSTReaction
(3) /post/company/{id}findAllPostOfCompany(id)PostModuleGETCompany Post
(4) /reactionfindAllReaction()PostModuleGETReaction
(5) /reactiontype/{id}deleteReactionTypeById(id)PostModuleDELETEReactionType
(6) /reaction/{id}updateReactionById(reaction)PostModulePUTReaction
(7) /post/{id}deletePostById(id)PostModuleDELETEPost
(8) /post/authoruser/{id}findAllPostOfAuthorUser(id)PostModuleGETUserAccount Post
(9) /postinsertPost(post)PostModulePOSTPost
(10) /reaction/{id}findReactionById(id)PostModuleGETReaction
(11) /postfindAllPost()PostModuleGETPost
(12) /reactiontypefindAllReactionType()PostModuleGETReactionType
(13) /reaction/reactiontype/{id}findAllReactionOfReactionType(id)PostModuleGETReactionType Reaction
(14) /reaction/{id}deleteReactionById(id)PostModuleDELETEReaction
(15) /reaction/user/{id}findAllReactionOfUser(id)PostModuleGETUserAccount Reaction
(16) /reactiontype/{id}updateReactionTypeById(reactiontype)PostModulePUTReactionType
(17) /post/{id}updatePostById(post)PostModulePUTPost
(18) /reaction/post/{id}findAllReactionOfPost(id)PostModuleGETPost Reaction
(19) /reactiontypeinsertReactionType(reactiontype)PostModulePOSTReactionType
(20) /reactiontype/{id}findReactionTypeById(id)PostModuleGETReactionType
(21) /reaction/comment/{id}findAllReactionOfComment(id)PostModuleGETComment Reaction






7.1 POST


PostPostModuleLinkedIn

Properties (9)

PropertyTypeEntityReferenceModule
(1) AuthorUserLONGPostUserAccountUserAccountModule
(2) BodySTRINGPost
(3) CompanyLONGPostCompanyCompanyModule
(4) CreatedAtDATEPost
(5) IsReshareBOOLPost
(6) MediaUrlSTRINGPost
(7) OriginalPostLONGPost
(8) UpdatedAtDATEPost
(9) VisibilitySTRINGPost





Example:

final Post post = (Post) invokeModule(POST_MODULE + "/post/" + id, Post.class);
if (post != null) {
    final UserAccount authoruser1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + post.getAuthorUser().getId(), UserAccount.class);
    if (authoruser1 != null) {
    }
    final Company company2 = (Company) invokeModule(COMPANY_MODULE + "/company/" + post.getCompany().getId(), Company.class);
    if (company2 != null) {
    }
}
return post;


7.2 REACTION


ReactionPostModuleLinkedIn

Properties (5)

PropertyTypeEntityReferenceModule
(1) CommentLONGReactionCommentUserAccountModule
(2) CreatedAtDATEReaction
(3) PostLONGReactionPostPostModule
(4) ReactionTypeLONGReactionReactionTypePostModule
(5) UserLONGReactionUserAccountUserAccountModule





Example:

final Reaction reaction = (Reaction) invokeModule(POST_MODULE + "/reaction/" + id, Reaction.class);
if (reaction != null) {
    final Comment comment1 = (Comment) invokeModule(USER_ACCOUNT_MODULE + "/comment/" + reaction.getComment().getId(), Comment.class);
    if (comment1 != null) {
        final Post post2 = (Post) invokeModule(POST_MODULE + "/post/" + comment1.getPost().getId(), Post.class);
        if (post2 != null) {
            final UserAccount authoruser3 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + post2.getAuthorUser().getId(), UserAccount.class);
            if (authoruser3 != null) {
            }
            final Company company4 = (Company) invokeModule(COMPANY_MODULE + "/company/" + post2.getCompany().getId(), Company.class);
            if (company4 != null) {
            }
        }
        final UserAccount authoruser5 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + comment1.getAuthorUser().getId(), UserAccount.class);
        if (authoruser5 != null) {
        }
    }
    final UserAccount user6 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + reaction.getUser().getId(), UserAccount.class);
    if (user6 != null) {
    }
    final ReactionType reactiontype7 = (ReactionType) invokeModule(POST_MODULE + "/reactiontype/" + reaction.getReactionType().getId(), ReactionType.class);
    if (reactiontype7 != null) {
    }
    final Post post8 = (Post) invokeModule(POST_MODULE + "/post/" + reaction.getPost().getId(), Post.class);
    if (post8 != null) {
        final UserAccount authoruser9 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + post8.getAuthorUser().getId(), UserAccount.class);
        if (authoruser9 != null) {
        }
        final Company company10 = (Company) invokeModule(COMPANY_MODULE + "/company/" + post8.getCompany().getId(), Company.class);
        if (company10 != null) {
        }
    }
}
return reaction;


7.3 REACTION TYPE


ReactionTypePostModuleLinkedIn

Properties (2)

PropertyTypeEntityReferenceModule
(1) DescriptionSTRINGReactionType
(2) NameSTRINGReactionType





Example:

final ReactionType reactiontype = (ReactionType) invokeModule(POST_MODULE + "/reactiontype/" + id, ReactionType.class);
if (reactiontype != null) {
}
return reactiontype;


Overview

Summary

ContactDonateImprint