Coverage Report - com.buckosoft.PicMan.domain.SyncClient
 
Classes in this File Line Coverage Branch Coverage Complexity
SyncClient
0%
0/34
N/A
1
 
 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  0
 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  0
                 return id;
 34  
         }
 35  
         /**
 36  
          * @param id the id to set
 37  
          */
 38  
         public void setId(int id) {
 39  0
                 this.id = id;
 40  0
         }
 41  
         /**
 42  
          * @return the name
 43  
          */
 44  
         public String getName() {
 45  0
                 return name;
 46  
         }
 47  
         /**
 48  
          * @param name the name to set
 49  
          */
 50  
         public void setName(String name) {
 51  0
                 this.name = name;
 52  0
         }
 53  
         /**
 54  
          * @return the rid
 55  
          */
 56  
         public int getRid() {
 57  0
                 return rid;
 58  
         }
 59  
         /**
 60  
          * @param rid the rid to set
 61  
          */
 62  
         public void setRid(int rid) {
 63  0
                 this.rid = rid;
 64  0
         }
 65  
         /**
 66  
          * @return the sid
 67  
          */
 68  
         public int getSid() {
 69  0
                 return sid;
 70  
         }
 71  
         /**
 72  
          * @param sid the sid to set
 73  
          */
 74  
         public void setSid(int sid) {
 75  0
                 this.sid = sid;
 76  0
         }
 77  
         /**
 78  
          * @return the serverHost
 79  
          */
 80  
         public String getServerHost() {
 81  0
                 return serverHost;
 82  
         }
 83  
         /**
 84  
          * @param serverHost the serverHost to set
 85  
          */
 86  
         public void setServerHost(String serverHost) {
 87  0
                 this.serverHost = serverHost;
 88  0
         }
 89  
         /**
 90  
          * @return the serverSet
 91  
          */
 92  
         public String getServerSet() {
 93  0
                 return serverSet;
 94  
         }
 95  
         /**
 96  
          * @param serverSet the serverSet to set
 97  
          */
 98  
         public void setServerSet(String serverSet) {
 99  0
                 this.serverSet = serverSet;
 100  0
         }
 101  
         /**
 102  
          * @return the active
 103  
          */
 104  
         public boolean isActive() {
 105  0
                 return active;
 106  
         }
 107  
         /**
 108  
          * @param active the active to set
 109  
          */
 110  
         public void setActive(boolean active) {
 111  0
                 this.active = active;
 112  0
         }
 113  
         /**
 114  
          * @return the allowPush
 115  
          */
 116  
         public boolean isAllowPush() {
 117  0
                 return allowPush;
 118  
         }
 119  
         /**
 120  
          * @param allowPush the allowPush to set
 121  
          */
 122  
         public void setAllowPush(boolean allowPush) {
 123  0
                 this.allowPush = allowPush;
 124  0
         }
 125  
         /**
 126  
          * @return the allowPull
 127  
          */
 128  
         public boolean isAllowPull() {
 129  0
                 return allowPull;
 130  
         }
 131  
         /**
 132  
          * @param allowPull the allowPull to set
 133  
          */
 134  
         public void setAllowPull(boolean allowPull) {
 135  0
                 this.allowPull = allowPull;
 136  0
         }
 137  
         
 138  
         /** Get the refresh period in number of seconds
 139  
          * @return the period
 140  
          */
 141  
         public int getPeriod() {
 142  0
                 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  0
                 this.period = period;
 149  0
         }
 150  
         /**
 151  
          * @return the lastSync
 152  
          */
 153  
         public Date getLastSync() {
 154  0
                 return lastSync;
 155  
         }
 156  
         /**
 157  
          * @param lastSync the lastSync to set
 158  
          */
 159  
         public void setLastSync(Date lastSync) {
 160  0
                 this.lastSync = lastSync;
 161  0
         }
 162  
 
 163  
 
 164  
 }