[MGNLCT-13] Register namespaces for jackrabbit datasource Created: 01/Sep/17  Updated: 04/Jun/18  Resolved: 23/May/18

Status: Closed
Project: Content Types
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Task Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 3h
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLCT-36 Update namespace registrations Closed
Relates
relates to MGNLCT-7 Detect and register newly added conte... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: Content types foundation
Sprint: Saigon 144, Saigon 145, Saigon 146
Story Points: 3

 Description   
  • Auto-creation of workspace (MGNLCT-9)
  • Registration of namespaces
  • Registration of nodetypes (MGNLCT-11)
  • Superuser ACLs —to be done with MGNLCT-9 or separate ticket for security setup
  • Subscription —no longer needed since publishing


 Comments   
Comment by Mikaël Geljić [ 23/Apr/18 ]

Splitting this ticket as few other parts are already tracked by other tickets in the epic. (MGNLCT-9 for workspaces, MGNLCT-11 for node-types).

Comment by Ngoc Nguyenthanh [ 10/May/18 ]

A namespace includes 2 parts: a prefix and a URI.

  • Registering a namespace
    • API: NamespaceRegistry#registerNamespace
  • Un-Register a specific namespace
    • API: NamespaceRegistry#unregisterNamespace
  • Renaming a namespace: Kind of migration

Concerns

  • Re-indexing: seem like it requires to  handle manually some parts of the process
  • How to handle in production mode?

Conclusion

  • Only supports for creations. Every changes should be take care manually by migration.

TBC

Comment by Ngoc Nguyenthanh [ 22/May/18 ]

autoCreate will be considered whenever auto generation of namespaces is needed

A definition

datasource:
  namespaces:
    dragonFly: https://www.magnolia-cms.com/jcr/namespace/content-type/dragonFly
  autoCreate: true

Key of the item is the namespace prefix, the value is a full URI.

If we want to support a default URI:

  • namespaces will be a List instead of Map
  • Support a new property: namespaceURI

As discussed, it's more easier for user to get full control of namespace creation when allows them to set the full URI on every item.

Generated at Mon Feb 12 00:36:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.