Revision 2715 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/main/java/org/gvsig/vcsgis/lib/requests/CheckoutRequestHelper.java
CheckoutRequestHelper.java | ||
---|---|---|
23 | 23 |
package org.gvsig.vcsgis.lib.requests; |
24 | 24 |
|
25 | 25 |
import java.sql.Timestamp; |
26 |
import org.gvsig.tools.dataTypes.DataTypeUtils; |
|
26 | 27 |
import org.gvsig.tools.dispose.DisposableIterable; |
27 | 28 |
import org.gvsig.tools.dispose.DisposeUtils; |
28 | 29 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
... | ... | |
37 | 38 |
*/ |
38 | 39 |
public class CheckoutRequestHelper extends AbstractRequestHelper implements VCSGisCheckoutRequest { |
39 | 40 |
|
41 |
private static final String REQUEST_NAME = "Checkout"; |
|
42 |
|
|
40 | 43 |
// in |
41 | 44 |
public String entityName; |
42 | 45 |
public String repositoryRevisionCode; |
... | ... | |
47 | 50 |
public DisposableIterable<VCSGisRepositoryData> data; |
48 | 51 |
|
49 | 52 |
public CheckoutRequestHelper(VCSGisRepository repository, String entityName) { |
50 |
super(repository, "CheckoutRequest");
|
|
53 |
super(repository, REQUEST_NAME);
|
|
51 | 54 |
this.entityName = entityName; |
52 | 55 |
this.entity = null; |
53 | 56 |
this.data = null; |
... | ... | |
64 | 67 |
} |
65 | 68 |
|
66 | 69 |
@Override |
67 |
public String getRepositoryRevisionCode() { |
|
70 |
public void setEfectiveDate(String efectiveDate) { |
|
71 |
Timestamp tms = (Timestamp) DataTypeUtils.toTimestamp(efectiveDate, null); |
|
72 |
this.efectiveDate = tms; |
|
73 |
} |
|
74 |
|
|
75 |
@Override |
|
76 |
public String getRevisionCode() { |
|
68 | 77 |
return this.repositoryRevisionCode; |
69 | 78 |
} |
70 | 79 |
|
71 | 80 |
@Override |
72 |
public void setRepositoryRevisionCode(String revisionCode) {
|
|
81 |
public void setRevisionCode(String revisionCode) { |
|
73 | 82 |
this.repositoryRevisionCode = revisionCode; |
74 | 83 |
} |
75 | 84 |
|
... | ... | |
87 | 96 |
} |
88 | 97 |
|
89 | 98 |
@Override |
90 |
public VCSGisEntity getRepositoryEntity() {
|
|
99 |
public VCSGisEntity getEntity() { |
|
91 | 100 |
if (this.data == null) { |
92 | 101 |
throw new IllegalStateException("The request needs to be executed before calling this method."); |
93 | 102 |
} |
Also available in: Unified diff