package org.zanata.rest.editor.dto;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.zanata.common.LocaleId;
import org.zanata.rest.dto.resource.TextFlow;

import java.util.Date;

/**
 * TextFlow with added fields needed by the editor.
 *
 * This class holds extra TextFlow metadata for serialization so that it is
 * available in the editor without extra network traffic.
 *
 * @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
 */
@JsonPropertyOrder({ "id", "lang", "content", "contents", "plural",
    "extensions", "wordCount", "msgctxt", "sourceReferences", "sourceFlags",
    "sourceComment" })
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class EditorTextFlow extends TextFlow {

    private int wordCount;
    private String msgctxt;
    private String sourceReferences;
    private String sourceFlags;
    private String sourceComment;

    public EditorTextFlow() {
        super(null, null, (String) null);
    }

    public EditorTextFlow(String id, LocaleId lang) {
        super(id, lang);
    }

    public int getWordCount() {
        return wordCount;
    }

    public void setWordCount(int wordCount) {
        this.wordCount = wordCount;
    }

    public String getMsgctxt() {
        return msgctxt;
    }

    public void setMsgctxt(String msgctxt) {
        this.msgctxt = msgctxt;
    }

    public String getSourceReferences() {
        return sourceReferences;
    }

    public void setSourceReferences(String sourceReferences) {
        this.sourceReferences = sourceReferences;
    }

    public String getsourceFlags() {
        return sourceFlags;
    }

    public void setsourceFlags(String sourceFlags) {
        this.sourceFlags = sourceFlags;
    }

    public String getSourceComment() {
        return sourceComment;
    }

    public void setSourceComment(String sourceComment) {
        this.sourceComment = sourceComment;
    }

//    public String getLastModifiedBy() {
//        return lastModifiedBy;
//    }
//
//    public void setLastModifiedBy(String lastModifiedBy) {
//        this.lastModifiedBy = lastModifiedBy;
//    }
//
//    public Date getLastModifiedTime() {
//        return lastModifiedTime;
//    }
//
//    public void setLastModifiedTime(Date lastModifiedTime) {
//        this.lastModifiedTime = lastModifiedTime;
//    }

}

@@ -2086,425 +2086,6 @@
   %7D%0A
-%0A//    public String getLastModifiedBy() %7B%0A//        return lastModifiedBy;%0A//    %7D%0A//%0A//    public void setLastModifiedBy(String lastModifiedBy) %7B%0A//        this.lastModifiedBy = lastModifiedBy;%0A//    %7D%0A//%0A//    public Date getLastModifiedTime() %7B%0A//        return lastModifiedTime;%0A//    %7D%0A//%0A//    public void setLastModifiedTime(Date lastModifiedTime) %7B%0A//        this.lastModifiedTime = lastModifiedTime;%0A//    %7D%0A%0A
 %7D%0A

remove unused code