[ 
http://jira.nuxeo.org/browse/NXP-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31595#action_31595
 ] 

Florent Guillaume commented on NXP-1888:
----------------------------------------

Add a hasPermission(DocumentModel entry, String permission) method on the 
directory Session.
Add a subclass DocumentModelWithPermissionImpl of DocumentModelImpl that 
records a read-only status.
The hasPermission method will check it, or (if the entry comes from a basic 
directory that generated a standard DocumentModelImpl) just check the status of 
the directory itself.



> Allow a mix of read-only and read-write entries in the same directory
> ---------------------------------------------------------------------
>
>                 Key: NXP-1888
>                 URL: http://jira.nuxeo.org/browse/NXP-1888
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: New Feature
>          Components: Directory
>    Affects Versions: 5.1.2
>            Reporter: Florent Guillaume
>            Assignee: Florent Guillaume
>             Fix For: 5.1.4
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> In general it would be useful to have both read-only and read-write entries 
> in the same directory.
> This is needed for instance in the case of a multi-directory that has a 
> read-only source and a read-write source.
> The UI would use this information to choose whether or not to display the 
> "Modify" tab on an entry.
> To get this information, an API is needed so that given a DocumentModel from 
> a directory, it's possible to know if it is read-only.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to