Questions tagged [service-layer]

A Service Layer represents one application boundary and consists of a set of available operations from the perspective of interfacing client layers. It encapsulates the application's business logic, controlling transactions and coordinating responses in the implementation of its operations. In enterprise OOP it is often the glue between an application's Model/Data Layers and its Presentation Layers.

A Service Layer represents one application boundary and consists of a set of available operations from the perspective of interfacing client layers. It encapsulates the application's business logic, controlling transactions and coordinating responses in the implementation of its operations. In enterprise OOP it is often the glue between an application's Model/Data Layers and its Presentation Layers.

This excerpt was heavily borrowed from Martin Fowler's book - http://martinfowler.com/eaaCatalog/serviceLayer.html

395 questions
0
votes
2 answers

SAP B1 Service Layer JavaScript Extensibility SQLQueries

I am triying to use SQLQueries using Service Layer JavaScript Extension to get some info from table OCRD (field DocEntry) beacuse is not expossed in stanard CRUD entities (BusinessPartners). Is there a way to do it? I can retrieve the information by…
0
votes
1 answer

Using service layer functions in a java project without spring

I am writing an azure function in java. To use a good modular pattern I created a service layer which has abstract interface classes and an impl layer that implements the service layer. However, I am not using Spring-framework so I can't use…
fireball.1
  • 1,413
  • 2
  • 17
  • 42
0
votes
0 answers

Should my ArticleService take care of authorization?

I'm wondering if my service which is a layer between my ArticleRepository (Doctrine 2) and my Controller (Zend Framework) should take care of authentification/authorization or it should be part of another Service/Layer? I wondering because I need to…
JohnT
  • 967
  • 2
  • 16
  • 30
0
votes
1 answer

Add properties in an entity in the Service Layer?

How can I update the service layer to have new properties inside an entity that I created in SAP B1 9.3. I have a created ServiceLayer - SAP B1. Inside the table OTSH I created 2 new fields, but my service Layer didn't return me that fields. I…
Ana Santos
  • 13
  • 1
  • 7
0
votes
1 answer

How to solve this issue: No matching records found (ODBC -2028) when I try to make a post?

I am trying to add a timesheet in SAP B1 via lambda/AWS. My code already worked before but, now, it returns me this error - No matching records found (ODBC -2028). Can you please help me. This is my code for post: addNewAppointment: function(sId,…
Ana Santos
  • 13
  • 1
  • 7
0
votes
1 answer

Performance of DB queries in layered application

I’m building an ASPnetCore layered application which in turn will have a large DB. I’m using entity framework core and asynchronous calls to retrieve data from the db in database. These calls I’m awaiting. In the service layer I’m also using…
0
votes
1 answer

service layer with data repository

Can someone explain? I'm trying to convert my wpf app mvvm into different layers (reading ddd). I have some small confusions Presentation Layer (WPF, WEB, API) (ok.. this I know ) Entity Model (I know is the class that represent database table…
Stelios
  • 330
  • 5
  • 21
0
votes
1 answer

How should business rules be implemented in ETL?

I work on an product that imports data from a mainframe using SSIS via flat file. The SSIS packages use a stage database to transform flat file data and then call stored procedures in the ODS to load the transformed data. There is a potential plan…
kakridge
  • 2,153
  • 1
  • 17
  • 27
0
votes
0 answers

Software Architecture: Does Service Layer and Business Layer has their own Model

I am confused with designing application between Business and Service Layer. What I get so far through researching from internet? A service layer normally a domain specific code which serve for the presentation. A business layer normally a domain…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
0 answers

How can I avoid circular dependencies in NodeJS?

I'm building a service layer that going to keep a business application. There'are too difficult to avoid circular dependency. In my application, I have two modules which include A and B. In module A, I have a function called "formatDataModuleA". In…
stevenH
  • 155
  • 3
  • 13
0
votes
1 answer

What is the best service layer structure in ASP.NET Core application

I'm working with ASP.NET Core MVC from some time and I'm facing a huge problem with organazing my code in the service layer. In some applications the services are used in each other(which according to me can cause circular dependency problems), but…
0
votes
1 answer

spring rest doc - service layer mocking

recently i saw the blog post say that "for documentation purpose, we use mocking for service layer (in environment using spring rest doc)", so this post use annotation like spring's @MockBean to service layer object. but i think, if i mock service…
0
votes
2 answers

Should my Service implements transaction & commit method?

Let's say I want to do a bulk User update in my UsersController. In my UsersController I do: foreach ($users as $user) { $userService = new UserService(); $user->updateUser($data); } If there are a lot of users, it can get slower because…
JohnT
  • 967
  • 2
  • 16
  • 30
0
votes
1 answer

How do you work with User entity and its connection status?

I'm currently working on a project with Zend Framework & Doctrine 2, I'm really happy with both of those tools, but I'm wondering on how work with this special User object, which shares database data, session data (authorization, paramaters, acl,…
JohnT
  • 967
  • 2
  • 16
  • 30
0
votes
1 answer

I have an API that returns items, so do I need a Service / Repository, another layer of extraction

I have an API (a DLL) which has various methods that return objects / collections of items. I would like to create a Web Service that would return items to the calling client. So what's the best approach, call my methods directory on my API and…
Martin
  • 23,844
  • 55
  • 201
  • 327