Class DefaultCommentService

    • Constructor Detail

      • DefaultCommentService

        public DefaultCommentService()
    • Method Detail

      • getComments

        public java.util.List<CommentModel> getComments​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        java.util.Collection<CommentTypeModel> types,
                                                        int offset,
                                                        int count)
        Description copied from interface: CommentService
        Returns all comments in the specified domain components which are of the specified types and where user is a participant.
        Specified by:
        getComments in interface CommentService
        Parameters:
        user - comment participant
        components - domain components
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getComments

        public java.util.List<CommentModel> getComments​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        int offset,
                                                        int count)
        Description copied from interface: CommentService
        Returns all comments in the specified domain components where user is a participant.
        Specified by:
        getComments in interface CommentService
        Parameters:
        user - comment participant
        components - domain components
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getComments

        public java.util.List<CommentModel> getComments​(UserModel user,
                                                        DomainModel domain,
                                                        java.util.Collection<CommentTypeModel> types,
                                                        int offset,
                                                        int count)
        Description copied from interface: CommentService
        Returns all comments in the specified domain which are of the specified types and where user is a participant.
        Specified by:
        getComments in interface CommentService
        Parameters:
        user - comment participant
        domain - comment domain
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getComments

        public java.util.List<CommentModel> getComments​(UserModel user,
                                                        DomainModel domain,
                                                        int offset,
                                                        int count)
        Description copied from interface: CommentService
        Returns all comments in the specified domain where user is a participant.
        Specified by:
        getComments in interface CommentService
        Parameters:
        user - comment participant
        domain - comment domain
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getDirectReplies

        public java.util.List<ReplyModel> getDirectReplies​(CommentModel comment,
                                                           int offset,
                                                           int count)
        Description copied from interface: CommentService
        Returns all direct comment replies for the specified comment.
        Specified by:
        getDirectReplies in interface CommentService
        Parameters:
        comment - the comment
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getItemComments

        public java.util.List<CommentModel> getItemComments​(ItemModel item,
                                                            UserModel user,
                                                            java.util.Collection<ComponentModel> components,
                                                            java.util.Collection<CommentTypeModel> types,
                                                            int offset,
                                                            int count)
        Description copied from interface: CommentService
        Returns all item comments for the specified item, which are in the specified domain components, of the specified types and where user is a participant.
        Specified by:
        getItemComments in interface CommentService
        Parameters:
        item - related item
        user - comment participant
        components - domain components
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getItemComments

        public java.util.List<CommentModel> getItemComments​(ItemModel item,
                                                            UserModel user,
                                                            java.util.Collection<ComponentModel> components,
                                                            int offset,
                                                            int count)
        Description copied from interface: CommentService
        Returns all item comments for the specified item, which are in the specified domain components and where user is a participant.
        Specified by:
        getItemComments in interface CommentService
        Parameters:
        item - related item
        user - comment participant
        components - domain components
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getItemComments

        public java.util.List<CommentModel> getItemComments​(ItemModel item,
                                                            UserModel user,
                                                            DomainModel domain,
                                                            java.util.Collection<CommentTypeModel> types,
                                                            int offset,
                                                            int count)
        Description copied from interface: CommentService
        Returns all item comments for the specified item, which are in the specified domain, of the specified types and where user is a participant.
        Specified by:
        getItemComments in interface CommentService
        Parameters:
        item - related item
        user - comment participant
        domain - comment domain
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getItemComments

        public java.util.List<CommentModel> getItemComments​(ItemModel item,
                                                            UserModel user,
                                                            DomainModel domain,
                                                            int offset,
                                                            int count)
        Description copied from interface: CommentService
        Returns all item comments for the specified item, which are in the specified domain and where user is a participant.
        Specified by:
        getItemComments in interface CommentService
        Parameters:
        item - related item
        user - comment participant
        domain - comment domain
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • getComponentForCode

        public ComponentModel getComponentForCode​(DomainModel domain,
                                                  java.lang.String componentCode)
        Description copied from interface: CommentService
        Returns the domain component with the specified code.
        Specified by:
        getComponentForCode in interface CommentService
        Parameters:
        domain - domain
        componentCode - domain component code
        Returns:
        component in the specified domain with the specified code or null if component could not be found
      • getDomainForCode

        public DomainModel getDomainForCode​(java.lang.String domainCode)
        Description copied from interface: CommentService
        Returns the domain with specified code.
        Specified by:
        getDomainForCode in interface CommentService
        Parameters:
        domainCode - domain code
        Returns:
        domain with the specified code or null if no domain with the code could be found
      • getCommentTypeForCode

        public CommentTypeModel getCommentTypeForCode​(ComponentModel comp,
                                                      java.lang.String commentTypeCode)
        Description copied from interface: CommentService
        Returns the comment type with the specified code.
        Specified by:
        getCommentTypeForCode in interface CommentService
        Parameters:
        comp - domain component
        commentTypeCode - comment type code
        Returns:
        comment type in the specified domain component with the specified code or null if type could not be found
      • setCommentDao

        public void setCommentDao​(CommentDao commentDao)
      • getCommentDao

        @Deprecated
        public CommentDao getCommentDao()
        Deprecated.
        since ages
      • setFlexibleSearchService

        @Deprecated
        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)
        Deprecated.
        since ages
      • getFlexibleSearchService

        @Deprecated
        protected FlexibleSearchService getFlexibleSearchService()
        Deprecated.
        since ages