forked from johnnymitrevski/classifiedsMVC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complete concrete implementation of CRUD services
- Loading branch information
1 parent
44f2f39
commit 91d60c7
Showing
15 changed files
with
185 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
src/main/java/com/blogspot/agilisto/classifieds/services/EnquiryService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
package com.blogspot.agilisto.classifieds.services; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.data.mongodb.core.query.Query; | ||
import org.springframework.data.mongodb.core.query.Update; | ||
|
||
import com.blogspot.agilisto.classifieds.model.Enquiry; | ||
|
||
/** | ||
* CRUD interface for Enquiry domain model | ||
*/ | ||
public interface EnquiryService { | ||
Long save(Enquiry enquiry); | ||
void save(Enquiry enquiry); | ||
|
||
Enquiry getEnquiry(String id); | ||
|
||
List<Enquiry> getEnquiries(Query query); | ||
|
||
Enquiry getEnquiry(String enquiry); | ||
void updateEnquiries(Query query, Update update); | ||
|
||
void updateEnquiry(Enquiry enquiry); | ||
void deleteEnquiry(String id); | ||
|
||
void deleteEnquiry(Enquiry enquiry); | ||
void deleteEnquries(Query query); | ||
} |
15 changes: 11 additions & 4 deletions
15
src/main/java/com/blogspot/agilisto/classifieds/services/ListingService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package com.blogspot.agilisto.classifieds.services; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.data.mongodb.core.query.Query; | ||
import org.springframework.data.mongodb.core.query.Update; | ||
|
||
import com.blogspot.agilisto.classifieds.model.Listing; | ||
|
||
/** | ||
* CRUD interface for Listing domain model | ||
*/ | ||
public interface ListingService { | ||
Long save(Listing listing); | ||
void save(Listing listing); | ||
|
||
Listing getListing(String id); | ||
|
||
Listing getListing(String listing); | ||
List<Listing> getListings(Query query); | ||
|
||
void updateListing(Listing listing); | ||
void updateListing(String id, Update update); | ||
|
||
void deleteListing(Listing listing); | ||
void deleteListing(String id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.