View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

ERP/2.50/Developers Guide/Concepts/Security Model

Developers Guide

Index


Contents

Introduction

This section discusses how different Openbravo security concepts influence development in Openbravo.

Openbravo's security concept consists of three main parts:

This section will discuss security and access definitions from the perspective of a developer. Where necessary references to functional documentation is used.

The developer can work in two modes in Openbravo: 1) traditional: using sqlc etc., 2) data access layer: using the new data access layer. Both approaches are discussed separately.

Openbravo Security Concepts

The following functional documents give a good introduction in Openbravo security concepts:

Security concepts and Openbravo Servlets

The tables in the org.openbravo.model.ad.access package define access control for windows/tabs, processes, workflow etc.

The security checks using this table are implemented by the HttpSecureAppServlet servlet. Any servlet extending this class will automatically inherit this security implementation.

Security concepts and XSQL and Manual Code

Openbravo provides a standard way to extend sql queries with filters for accessible clients and organizations. This is discussed in detail in this section of the developers guide:

Security concepts and the Data Access Layer

For the developer the Data Access Layer provides several interfaces (OBCriteria and OBQuery) that take automatic care of specific security aspects:

In addition checks are done when retrieving a value of a property. The data access layer makes a distinction between the following two read-modes (on object level):

The DAL also checks write access when changing properties of a business object. Write access is also checked when an object is saved to the database. The following checks are done:

The data access layer also performs specific authorization checks when an object is deleted: the user must have access to the object and it must be deletable.

For much more information on how the Data Access Layer implements security see this link.

For more information on the Data Access Layer and multi-client/multi-organization see this link.




 New Selectors |  Multi-Client and Multi-Org 

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Security_Model"

This page has been accessed 516 times. This page was last modified 15:21, 7 July 2009. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.