[ 
https://jira.nuxeo.com/browse/NXS-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bogdan Stefanescu resolved NXS-450.
-----------------------------------

    Resolution: Fixed

> Make it possible to get a list of emails from a group and clarify the 
> scripting functions in this domain
> --------------------------------------------------------------------------------------------------------
>
>                 Key: NXS-450
>                 URL: https://jira.nuxeo.com/browse/NXS-450
>             Project: Nuxeo Studio
>          Issue Type: New Feature
>    Affects Versions: 2.0.3
>            Reporter: Alain Escaffre
>            Assignee: Bogdan Stefanescu
>             Fix For: 2.1
>
>
> Currently, if I need to notify a list of people in a group using automation, 
> the only trick I found is to assign a permission to this group on a document, 
> and then call  "GetPrincipalEmails" giving the permission I assigned (which I 
> made sure was not an existing one for real, so as to be sure to get back only 
> the group I specified).
> This is obviously not ok, and I think that we should have,overall:
> * operations:
>   ** GetUsersAndGroupsForPermission (same as the one currently not nicely 
> called "GetUsersAndGroups"). It would return Principals, with ability to 
> resolve groups as for today
>  
> * Scripting functions: 
>   ** List<String>getEmails(List<Principal>) 
>   ** String getEmail(Principal)
> - these 2 functions are not needed:
> 1. the first one is already existing: List<String> 
> getPrincipalEmails(List<Principal>)
> 2. for the second one you can simply use "principal.email"
>   ** List<Principal> getPrincipalsFromGroup(String group)
>   
> With this, I'll be able to cover the following usecases:
> * Assign tasks to some users having a specific permission on a docuemnt
> * Assign tasks to some hardcoded groups
> and notify everybody by email when I need, without having to use some weird 
> tricks
>   
>  

--
This message is automatically generated by JIRA.
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