Revision 3310 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/main/java/org/gvsig/vcsgis/lib/requests/CommitRequestHelper.java
CommitRequestHelper.java | ||
---|---|---|
30 | 30 |
import org.apache.commons.lang3.StringUtils; |
31 | 31 |
import org.gvsig.tools.dispose.DisposableIterable; |
32 | 32 |
import org.gvsig.tools.dispose.DisposeUtils; |
33 |
import org.gvsig.vcsgis.lib.EntityEditableImpl;
|
|
33 |
import org.gvsig.vcsgis.lib.VCSGisChange;
|
|
34 | 34 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
35 | 35 |
import org.gvsig.vcsgis.lib.VCSGisEntityEditable; |
36 | 36 |
import org.gvsig.vcsgis.lib.repository.VCSGisRepository; |
37 |
import org.gvsig.vcsgis.lib.VCSGisChange; |
|
38 | 37 |
import org.gvsig.vcsgis.lib.repository.requests.VCSGisCommitRequest; |
38 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspaceEntity; |
|
39 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspaceEntityImpl; |
|
39 | 40 |
|
40 | 41 |
|
41 | 42 |
/** |
... | ... | |
54 | 55 |
public DisposableIterable<VCSGisChange> changes; |
55 | 56 |
|
56 | 57 |
// out |
57 |
public List<VCSGisEntityEditable> changedLocalEntities;
|
|
58 |
public List<VCSGisWorkspaceEntity> changedLocalEntities;
|
|
58 | 59 |
|
59 | 60 |
|
60 | 61 |
public CommitRequestHelper(VCSGisRepository repository) { |
... | ... | |
68 | 69 |
} |
69 | 70 |
|
70 | 71 |
@Override |
71 |
public VCSGisEntityEditable createEntity(String code, String name) {
|
|
72 |
VCSGisEntityEditable entity = new EntityEditableImpl();
|
|
72 |
public VCSGisWorkspaceEntity createEntity(String code, String name) {
|
|
73 |
VCSGisWorkspaceEntity entity = new VCSGisWorkspaceEntityImpl();
|
|
73 | 74 |
entity.setEntityCode(code); |
74 | 75 |
entity.setEntityName(name); |
75 | 76 |
return entity; |
76 | 77 |
} |
77 | 78 |
|
78 | 79 |
@Override |
79 |
public VCSGisEntityEditable createEntity(VCSGisEntity fromEntity) {
|
|
80 |
VCSGisEntityEditable entity = new EntityEditableImpl();
|
|
80 |
public VCSGisWorkspaceEntity createEntity(VCSGisWorkspaceEntity fromEntity) {
|
|
81 |
VCSGisWorkspaceEntity entity = new VCSGisWorkspaceEntityImpl();
|
|
81 | 82 |
entity.copyfrom(fromEntity); |
82 | 83 |
return entity; |
83 | 84 |
} |
84 | 85 |
|
85 | 86 |
@Override |
86 |
public List<VCSGisEntityEditable> getChangedLocalEntities() {
|
|
87 |
public List<VCSGisWorkspaceEntity> getChangedLocalEntities() {
|
|
87 | 88 |
return this.changedLocalEntities; |
88 | 89 |
} |
89 | 90 |
|
... | ... | |
122 | 123 |
} |
123 | 124 |
|
124 | 125 |
@Override |
125 |
public void add(VCSGisEntityEditable entity) {
|
|
126 |
public void add(VCSGisWorkspaceEntity entity) {
|
|
126 | 127 |
if (this.getChangedLocalEntityByCode(entity.getEntityCode()) != null) { |
127 | 128 |
if (this.newLocalEntities.contains(entity.getEntityCode())) { |
128 | 129 |
return; |
Also available in: Unified diff