Class CommentRecord

java.lang.Object
org.nustaq.reallive.records.RecordWrapper
org.nustaq.kontraktor.apputil.comments.CommentRecord
All Implemented Interfaces:
Serializable, AuthorMixin<CommentRecord>, CreationMixin<CommentRecord>, IdMixin<CommentRecord>, ImageUrlMixin<CommentRecord>, LastModifiedMixin<CommentRecord>, RoleMixin<CommentRecord>, TextMixin<CommentRecord>, org.nustaq.reallive.api.Record, org.nustaq.reallive.query.EvalContext

public class CommentRecord extends org.nustaq.reallive.records.RecordWrapper implements CreationMixin<CommentRecord>, LastModifiedMixin<CommentRecord>, IdMixin<CommentRecord>, AuthorMixin<CommentRecord>, ImageUrlMixin<CommentRecord>, TextMixin<CommentRecord>, RoleMixin<CommentRecord>
Created by ruedi on 28/06/16. A full tree of CommentRecords for a single article key: did#articleId
See Also:
  • Field Summary

    Fields inherited from class org.nustaq.reallive.records.RecordWrapper

    record

    Fields inherited from interface org.nustaq.reallive.api.Record

    _NULL_
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    CommentRecord(org.nustaq.reallive.api.Record record)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    children(List<org.nustaq.reallive.api.Record> children)
     
    delChildNode(String commentId)
     
    down(int down)
     
     
    findParent(String childId)
     
     
    List<org.nustaq.reallive.api.Record>
     
    int
     
    static int
    getNumCommenters(List<org.nustaq.reallive.api.Record> children)
     
    int
     
    up(int up)
     

    Methods inherited from class org.nustaq.reallive.records.RecordWrapper

    containsKey, equals, get, getFields, getKey, getLastModified, getRecord, getSequence, hashCode, internal_incSequence, internal_put, internal_setLastModified, internal_updateLastModified, key, put, shallowCopy, toString, transformCopy, Wrap

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.AuthorMixin

    author, getAuthor

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.CreationMixin

    creation, getCreation

    Methods inherited from interface org.nustaq.reallive.query.EvalContext

    get

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.IdMixin

    getId, id

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.ImageUrlMixin

    getImageURL, imageURL

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.LastModifiedMixin

    getLastModified, lastModified

    Methods inherited from interface org.nustaq.reallive.api.Record

    _afterLoad, asDouble, asList, asLoggingString, asLong, asMap, asSet, containsKey, deepCopy, deepMerge, defaultEquals, getArr, getAsList, getBool, getDouble, getFields, getFieldSet, getInt, getKey, getKeyVals, getLong, getRec, getRecord, getSafeString, getSequence, getString, getValue, haveRec, internal_incSequence, internal_put, internal_setLastModified, internal_updateLastModified, join, key, mget, mgetNum, mgetString, omit, omitRecursivelyInPlace, put, putTransforming, reduced, replaceValues, shallowCopy, stripOps, toJson, toPrettyString, transformCopy, validateForJsonability

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.RoleMixin

    getRole, role

    Methods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.TextMixin

    getText, text
  • Constructor Details

    • CommentRecord

      public CommentRecord(org.nustaq.reallive.api.Record record)
    • CommentRecord

      public CommentRecord(String key)
  • Method Details

    • getUp

      public int getUp()
    • getDown

      public int getDown()
    • up

      public CommentRecord up(int up)
    • down

      public CommentRecord down(int down)
    • children

      public CommentRecord children(List<org.nustaq.reallive.api.Record> children)
    • addChild

      public void addChild(CommentRecord cRecord)
    • getChildren

      public List<org.nustaq.reallive.api.Record> getChildren()
    • getChildCommentRecords

      public List<CommentRecord> getChildCommentRecords()
    • findChildNode

      public CommentRecord findChildNode(String nodeId)
    • delChildNode

      public CommentRecord delChildNode(String commentId)
    • findParent

      public CommentRecord findParent(String childId)
    • getNumCommenters

      public static int getNumCommenters(List<org.nustaq.reallive.api.Record> children)