View Javadoc
1   /******************************************************************************
2    * SyncClient.java - Define the client side parameters for a sync operation
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2014 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.domain;
9   
10  import java.util.Date;
11  
12  /** Define the client side parameters for a sync operation
13   * @author Dick Balaska
14   * @since 2014/05/31
15   * @see <a href="http://cvs.buckosoft.com/Projects/PicMan/PicMan/src/main/java/com/buckosoft/PicMan/domain/SyncClient.java">SyncClient.java</a>
16   */
17  public class SyncClient {
18  	private	int		id;
19  	private	String	name;
20  	private	int		rid;
21  	private	int		sid;
22  	private	String	serverHost;
23  	private	String	serverSet;
24  	private	boolean	active;
25  	private	boolean	allowPush;
26  	private	boolean	allowPull;
27  	private	int		period;
28  	private	Date	lastSync;
29  	/**
30  	 * @return the id
31  	 */
32  	public int getId() {
33  		return id;
34  	}
35  	/**
36  	 * @param id the id to set
37  	 */
38  	public void setId(int id) {
39  		this.id = id;
40  	}
41  	/**
42  	 * @return the name
43  	 */
44  	public String getName() {
45  		return name;
46  	}
47  	/**
48  	 * @param name the name to set
49  	 */
50  	public void setName(String name) {
51  		this.name = name;
52  	}
53  	/**
54  	 * @return the rid
55  	 */
56  	public int getRid() {
57  		return rid;
58  	}
59  	/**
60  	 * @param rid the rid to set
61  	 */
62  	public void setRid(int rid) {
63  		this.rid = rid;
64  	}
65  	/**
66  	 * @return the sid
67  	 */
68  	public int getSid() {
69  		return sid;
70  	}
71  	/**
72  	 * @param sid the sid to set
73  	 */
74  	public void setSid(int sid) {
75  		this.sid = sid;
76  	}
77  	/**
78  	 * @return the serverHost
79  	 */
80  	public String getServerHost() {
81  		return serverHost;
82  	}
83  	/**
84  	 * @param serverHost the serverHost to set
85  	 */
86  	public void setServerHost(String serverHost) {
87  		this.serverHost = serverHost;
88  	}
89  	/**
90  	 * @return the serverSet
91  	 */
92  	public String getServerSet() {
93  		return serverSet;
94  	}
95  	/**
96  	 * @param serverSet the serverSet to set
97  	 */
98  	public void setServerSet(String serverSet) {
99  		this.serverSet = serverSet;
100 	}
101 	/**
102 	 * @return the active
103 	 */
104 	public boolean isActive() {
105 		return active;
106 	}
107 	/**
108 	 * @param active the active to set
109 	 */
110 	public void setActive(boolean active) {
111 		this.active = active;
112 	}
113 	/**
114 	 * @return the allowPush
115 	 */
116 	public boolean isAllowPush() {
117 		return allowPush;
118 	}
119 	/**
120 	 * @param allowPush the allowPush to set
121 	 */
122 	public void setAllowPush(boolean allowPush) {
123 		this.allowPush = allowPush;
124 	}
125 	/**
126 	 * @return the allowPull
127 	 */
128 	public boolean isAllowPull() {
129 		return allowPull;
130 	}
131 	/**
132 	 * @param allowPull the allowPull to set
133 	 */
134 	public void setAllowPull(boolean allowPull) {
135 		this.allowPull = allowPull;
136 	}
137 	
138 	/** Get the refresh period in number of seconds
139 	 * @return the period
140 	 */
141 	public int getPeriod() {
142 		return period;
143 	}
144 	/** Set the refresh period in number of seconds
145 	 * @param period the period to set
146 	 */
147 	public void setPeriod(int period) {
148 		this.period = period;
149 	}
150 	/**
151 	 * @return the lastSync
152 	 */
153 	public Date getLastSync() {
154 		return lastSync;
155 	}
156 	/**
157 	 * @param lastSync the lastSync to set
158 	 */
159 	public void setLastSync(Date lastSync) {
160 		this.lastSync = lastSync;
161 	}
162 
163 
164 }