View Javadoc
1   /******************************************************************************
2    * SyncServer.java - Define the server 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  /** Define the server side parameters for a sync operation
11   * @author Dick Balaska
12   * @since 2014/05/31
13   * @see <a href="http://cvs.buckosoft.com/Projects/PicMan/PicMan/src/main/java/com/buckosoft/PicMan/domain/SyncServer.java">SyncServer.java</a>
14   */
15  public class SyncServer {
16  	private	int		id;
17  	private	String	name;
18  	private	int		rid;
19  	private	int		sid;
20  	private	boolean	active;
21  	private	boolean	allowPush;
22  	private	boolean	allowPull;
23  	
24  	public SyncServer() {
25  	}
26  	
27  	public SyncServer(int id, String name, int rid, int sid, boolean active, boolean allowPush, boolean allowPull) {
28  		this.id = id;
29  		this.name = name;
30  		this.rid = rid;
31  		this.sid = sid;
32  		this.active = active;
33  		this.allowPush = allowPush;
34  		this.allowPull = allowPull;
35  	}
36  
37  	/**
38  	 * @return the id
39  	 */
40  	public int getId() {
41  		return id;
42  	}
43  	/**
44  	 * @param id the id to set
45  	 */
46  	public void setId(int id) {
47  		this.id = id;
48  	}
49  
50  	/**
51  	 * @return the name
52  	 */
53  	public String getName() {
54  		return name;
55  	}
56  	/**
57  	 * @param name the name to set
58  	 */
59  	public void setName(String name) {
60  		this.name = name;
61  	}
62  
63  	/**
64  	 * @return the rid
65  	 */
66  	public int getRid() {
67  		return rid;
68  	}
69  	/**
70  	 * @param rid the rid to set
71  	 */
72  	public void setRid(int rid) {
73  		this.rid = rid;
74  	}
75  
76  	/**
77  	 * @return the sid
78  	 */
79  	public int getSid() {
80  		return sid;
81  	}
82  	/**
83  	 * @param sid the sid to set
84  	 */
85  	public void setSid(int sid) {
86  		this.sid = sid;
87  	}
88  
89  	/**
90  	 * @return the active
91  	 */
92  	public boolean isActive() {
93  		return active;
94  	}
95  	/**
96  	 * @param active the active to set
97  	 */
98  	public void setActive(boolean active) {
99  		this.active = active;
100 	}
101 
102 	/**
103 	 * @return the allowPush
104 	 */
105 	public boolean isAllowPush() {
106 		return allowPush;
107 	}
108 	/**
109 	 * @param allowPush the allowPush to set
110 	 */
111 	public void setAllowPush(boolean allowPush) {
112 		this.allowPush = allowPush;
113 	}
114 
115 	/**
116 	 * @return the allowPull
117 	 */
118 	public boolean isAllowPull() {
119 		return allowPull;
120 	}
121 	/**
122 	 * @param allowPull the allowPull to set
123 	 */
124 	public void setAllowPull(boolean allowPull) {
125 		this.allowPull = allowPull;
126 	}
127 }