org.activiti.app.model.runtime.CommentRepresentation Maven / Gradle / Ivy
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.app.model.runtime;
import java.util.Date;
import org.activiti.app.domain.runtime.Comment;
import org.activiti.app.model.common.AbstractRepresentation;
public class CommentRepresentation extends AbstractRepresentation {
private Long id;
private String message;
private Date created;
private String createdBy;
public CommentRepresentation(Comment comment) {
this.id = comment.getId();
this.message = comment.getMessage();
this.created = comment.getCreated();
this.createdBy = comment.getCreatedBy();
}
public CommentRepresentation() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}