domain-object

Domain objects/services and the Business Logic Layer

泄露秘密 提交于 2019-11-28 15:43:49
What are domain objects and domain services in software architecture? I am not familiar with them or how they differ from the business logic layer? Different people use these terms in somewhat different ways, but here's my take: 1) "Business" and "domain" are roughly synonyms. "Domain" is a bit more general in that it doesn't make the assumption that you're writing a business application. So if we were writing a scientific app or a game, we might prefer to refer to the relevant part of the code as "domain" code rather than "business" code. So in the remainder of this explanation I'll use

How do one use ACL to filter a list of domain-objects according to a certain user's permissions (e.g. EDIT)?

梦想与她 提交于 2019-11-27 09:51:34
问题 When using the ACL implementation in Symfony2 in a web application, we have come across a use case where the suggested way of using the ACLs (checking a users permissions on a single domain object) becomes unfeasible. Thus, we wonder if there exists some part of the ACL API we can use to solve our problem. The use case is in a controller that prepares a list of domain objects to be presented in a template, so that the user can choose which of her objects she wants to edit. The user does not

Domain objects/services and the Business Logic Layer

纵然是瞬间 提交于 2019-11-27 09:21:31
问题 What are domain objects and domain services in software architecture? I am not familiar with them or how they differ from the business logic layer? 回答1: Different people use these terms in somewhat different ways, but here's my take: 1) "Business" and "domain" are roughly synonyms. "Domain" is a bit more general in that it doesn't make the assumption that you're writing a business application. So if we were writing a scientific app or a game, we might prefer to refer to the relevant part of