On Tue, Jul 30, 2013 at 6:50 AM, Gornstein, Daniel S.
<[email protected]> wrote:
> All,
>
> I am currently working on RAVE-1010 
> (https://issues.apache.org/jira/browse/RAVE-1010) updating the service layers 
> to support crud operations from the rest API.
>
> I was planning to add getAll, getCountAll, and getLimitedList to the services 
> with respective repositories who also implement those methods.
>
> Right now some of the services (WidgetService) return SearchResult objects, 
> while others (CategoryService) return List<Category>.
>
> Should I be switching all services to return SearchResult objects?

The rest api will probably want SearchResults objects, to fill in the
metadata. Possibly refactor to rename the any conflicting methods that
do not return a SearchResults instance?

>
> Also I noticed on some of the methods in interfaces for the services have 
> spring annotations of @PostAuthorize or @PostFilter.
>
> I was wondering what the appropriate use cases are as they are not on every 
> service interface, nor on every method in the interface.
>
> Thanks,
> Dan Gornstein

Reply via email to