History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-1173
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Thierry Delprat
Reporter: Jean-Marc Orliaguet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Add a method to get the nearest parent workspace or section

Created: 08/06/07 10:09   Updated: 13/06/07 18:42
Component/s: Core
Affects Version/s: None
Fix Version/s: 5.1.RC

Time Tracking:
Not Specified

Issue Links:
Dependency
 

Resolution Date: 13/06/07 18:42
Require Callback: No
Participants: Jean-Marc Orliaguet, Olivier Grisel and Thierry Delprat
Date of First Response: 12/06/07 00:46
Tags:


 Description  « Hide
It is useful for customization purposes to know which workspace or section is the nearest in a given context.

For instance local themes should not be set on 'simple' folders, but only on Sections and Workspaces or any other type of managed area (Room, Space, Site...), e.g.

- Workspace1 <==
   |_ folder1
   |_folder2 (*)

The idea is to be able to obtain local information without having to read data for every folder in the context path.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thierry Delprat - 12/06/07 00:46
Via the navigationContext you can get the currentWorkspace:
- via the context variable : currentWorkspace
- via navigation Context : navigationContext.getCurrentWorkspace

I think it does work OK for worspaces.
It is not implemenyed for now for sections.

Thierry Delprat - 12/06/07 00:48
Jean Marc : can you test the currentWorkspace feature and if it's OK, I will had the same stuff for Sections.


Jean-Marc Orliaguet - 12/06/07 09:37
OK, I'm testing it with workspaces and I restrict the "theme" tab to workspaces for now.

What is needed then is an abstraction in the API so that it doesn't matter if the nearest unit is a section or a workspace, or a room, or a space ...

Olivier Grisel - 12/06/07 10:50
Maybe we need a new facet for the Workspace and Section types? How should it be named? PlacefulArea? ThemeArea?

Jean-Marc Orliaguet - 12/06/07 11:08
Just call it 'space', that would include workspaces, sections, ... but not simple folders. It should be possible for other document types to tell that are a type of 'space'.

then no need to refer to 'theme' or 'placeful', since that has to do with the use that we do of it.

also a new Seam context variable is needed to replace 'currentWorkspace' with 'currentSpace' or call it 'area', 'currentArea', ...

Thierry Delprat - 12/06/07 16:03
Ok, let's go with currentSpace, I'll do it ASAP.

Thierry Delprat - 13/06/07 02:31
This will be for tomorow ...

Thierry Delprat - 13/06/07 18:42
New Seam context variable : currentSuperSpace
new getter on navigationContext : getCurrentSuperSpace

SuperSpace document are all documents that have the SuperSpace facet.
For now :
  - Workspace and Section types
  - Roots (Workspaces, Sections, Templates)
  - Domain

If not found the Root of the repository is returned.