Skip to content

Commit ac5493c

Browse files
workin on #161
1 parent d1fce07 commit ac5493c

26 files changed

+76
-92
lines changed

src/main/java/org/woehlke/twitterwall/oodm/service/MediaService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import org.woehlke.twitterwall.oodm.entities.Media;
44
import org.woehlke.twitterwall.oodm.service.common.DomainObjectEntityService;
55
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithIdTwitter;
6-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
76
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithUrl;
87

98

src/main/java/org/woehlke/twitterwall/oodm/service/MentionService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.woehlke.twitterwall.oodm.service.common.DomainObjectEntityService;
88
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithIdTwitter;
99
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithScreenName;
10-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
1110

1211

1312
/**

src/main/java/org/woehlke/twitterwall/oodm/service/TaskHistoryService.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
*/
1212
public interface TaskHistoryService extends DomainObjectMinimalService<TaskHistory> {
1313

14-
TaskHistory store(TaskHistory domainObject);
15-
16-
TaskHistory create(TaskHistory domainObject);
17-
18-
TaskHistory update(TaskHistory domainObject);
19-
2014
Page<TaskHistory> findByTask(Task oneTask, Pageable pageRequest);
2115

2216
TaskHistory findById(long id);
17+
18+
TaskHistory store(TaskHistory domainObject);
2319
}

src/main/java/org/woehlke/twitterwall/oodm/service/TickerSymbolService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import org.woehlke.twitterwall.oodm.entities.TickerSymbol;
44
import org.woehlke.twitterwall.oodm.service.common.DomainObjectEntityService;
5-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
65
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithUrl;
76

87

src/main/java/org/woehlke/twitterwall/oodm/service/TweetService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
import org.woehlke.twitterwall.oodm.entities.transients.*;
99
import org.woehlke.twitterwall.oodm.service.common.DomainObjectWithEntitiesService;
1010
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithIdTwitter;
11-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
1211

1312

1413
/**
1514
* Created by tw on 10.06.17.
1615
*/
17-
public interface TweetService extends DomainObjectWithEntitiesService<Tweet>,DomainServiceWithIdTwitter<Tweet>,DomainServiceWithTask<Tweet> {
16+
public interface TweetService extends DomainObjectWithEntitiesService<Tweet>,DomainServiceWithIdTwitter<Tweet> {
1817

1918
Page<Tweet> findTweetsForHashTag(HashTag hashtag, Pageable pageRequest);
2019

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package org.woehlke.twitterwall.oodm.service;
22

33
import org.woehlke.twitterwall.oodm.entities.UrlCache;
4-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
54
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithUrl;
65

76
/**
87
* Created by tw on 23.06.17.
98
*/
10-
public interface UrlCacheService extends DomainServiceWithUrl<UrlCache>,DomainServiceWithTask<UrlCache> {
9+
public interface UrlCacheService extends DomainServiceWithUrl<UrlCache> {
10+
11+
void delete(UrlCache urlCache);
1112

1213
}

src/main/java/org/woehlke/twitterwall/oodm/service/UserService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
import org.woehlke.twitterwall.oodm.entities.User;
77
import org.woehlke.twitterwall.oodm.entities.transients.*;
88
import org.woehlke.twitterwall.oodm.service.common.DomainObjectWithEntitiesService;
9-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithIdTwitter;
109
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithScreenName;
11-
import org.woehlke.twitterwall.oodm.service.common.DomainServiceWithTask;
1210

1311

1412
/**

src/main/java/org/woehlke/twitterwall/oodm/service/common/DomainObjectEntityService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
import org.woehlke.twitterwall.oodm.entities.common.DomainObjectEntity;
44

5-
public interface DomainObjectEntityService<T extends DomainObjectEntity> extends DomainServiceWithTask<T> {
5+
public interface DomainObjectEntityService<T extends DomainObjectEntity> {
66
}

src/main/java/org/woehlke/twitterwall/oodm/service/common/DomainObjectWithEntitiesService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
import org.woehlke.twitterwall.oodm.entities.common.DomainObjectWithEntities;
44

5-
public interface DomainObjectWithEntitiesService<T extends DomainObjectWithEntities> extends DomainServiceWithIdTwitter<T>,DomainServiceWithTask<T> {
5+
public interface DomainObjectWithEntitiesService<T extends DomainObjectWithEntities> extends DomainServiceWithIdTwitter<T> {
66
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.woehlke.twitterwall.oodm.service.common;
22

3+
import org.woehlke.twitterwall.oodm.entities.Task;
34
import org.woehlke.twitterwall.oodm.entities.common.DomainObject;
45

56
/**
67
* Created by tw on 24.06.17.
78
*/
89
public interface DomainService<T extends DomainObject> extends DomainObjectMinimalService<T> {
9-
10+
T store(T domainObject, Task task);
1011
}

0 commit comments

Comments
 (0)