Академический Документы
Профессиональный Документы
Культура Документы
Review of
Developer Training Part 1
6/3/2013
Review
Review
Cockpits
hmc
Web
Services
Web Shop
Other
hybris ServiceLayer
Business Services
(Classification, CMS, Price Calculation, ...)
Infrastructure Services
(Cache, Security, Transaction, Session, ...)
Models
hybris Persistence
Items
Database
6/3/2013
Extensions Review
Review
Spring contexts
GlobalContext
Tenant
Tenant Context
Context
master
master
WebContext
/shop_master
Tenant
Tenant Context
Context
junit
junit
WebContext
/back_master
Tenant
Context
foo
WebContext
/shop_foo
WebContext
/back_foo
6/3/2013
Extension Concept
Extension B
serviceB
serviceA
Web Context
controllerX
Tenant context
serviceA serviceB
Extension A
serviceA
Web Context
controllerX
Beans from web context can access beans from tenant context
Review
<attributequalifier="MyAttribute">
8
6/3/2013
Review
10
Initialization:
ALL database tables are dropped.
New tables and an empty system are created (only type definitions and the
admin & anonymous user).
Data model is created from scratch as defined in the items.xml files.
Existing data model definitions will be lost!
Update:
Adds newly defined types to the type system definition in the database.
Modifies type system definition in the database to match the definition in the
domain model.
No loss of data!
Review
11
Essential Data:
Necessary during initialization: create the
Default catalog, restrictions and basic
CronJobs
Project Data:
Extension-specific Project Data
How to include:
Convention over Configuration
(essentialdata*.impex, projectdata*.impex)
Hook Service Layer code into hybris
initialization and update life-cycle events
(@SystemSetup annotation)
6/3/2013
12
Review
Product
hybris defined type representing an item of merchandize
includes attributes e.g. name, description, sales unit, price, etc.
may hold variants
Shirt
Variant Product
Category
Silk
Turtle
Neck
Sports T
Womens
Clothing
Shoes
12
Review
13
13
6/3/2013
14