1 /****************************************************************************** 2 * RestActor.java - Rest domain object 3 * $Id: RestActor.java,v 1.2 2015/04/06 05:09:37 dick Exp $ 4 * 5 * BuckoVidLib - The BuckoSoft Video Library 6 * Copyright(c) 2015 - Dick Balaska 7 * 8 * $Log: RestActor.java,v $ 9 * Revision 1.2 2015/04/06 05:09:37 dick 10 * Javadoc. 11 * 12 * Revision 1.1 2015/04/02 23:44:23 dick 13 * Rest facing Actor. 14 * 15 */ 16 package com.buckosoft.BuckoVidLib.domain.rest; 17 18 /** RestActor is lighter weight than Actor. 19 * We don't want to expose all of our fields to the client. 20 * @author dick 21 * @since 2015-04-01 22 */ 23 public class RestActor { 24 private int id; 25 private String name; 26 27 /** Bean constructor */ 28 public RestActor(){} 29 30 /** Convienence constructor 31 * @param id The id of this actor 32 * @param name The name of this actor 33 */ 34 public RestActor(int id, String name) { 35 this.id = id; 36 this.name = name; 37 } 38 39 /** Get the Actor's id 40 * @return the id 41 */ 42 public int getId() { 43 return id; 44 } 45 /** Set the Actor's id 46 * @param id the id to set 47 */ 48 public void setId(int id) { 49 this.id = id; 50 } 51 /** Get the Actor's name 52 * @return the name 53 */ 54 public String getName() { 55 return name; 56 } 57 /** Set the Actor's name. 58 * @param name the name to set 59 */ 60 public void setName(String name) { 61 this.name = name; 62 } 63 64 65 }