03-13-2012 05:19 PM
final QName PROP_QNAME_EMAIL = QName.createQName("http://www.alfresco.org/model/content/1.0", "email");
final Map<QName, Serializable> properties = nodeService.getProperties(nodeRef);
properties.get(PROP_QNAME_EMAIL)
03-14-2012 05:15 PM
03-15-2012 05:20 AM
final Set<String> authorities = authorityService.getContainedAuthorities(AuthorityType.GROUP, "GROUP_PMO support", false);
where PMO support is the name of my group, but size of authorities is 0 and i am sure that there is two members of this group. What i am doing wrong?03-15-2012 05:50 AM
final Set<String> authorities = authorityService.getContainedAuthorities(AuthorityType.USER, "GROUP_PMO support", false);
for (final String authority : authorities) {
final NodeRef person = personService.getPerson(authority);
final Map<QName, Serializable> properties = nodeService.getProperties(person);
LOGGER.debug(properties.get(ContentModel.PROP_EMAIL).toString());
}
Thanks Axel once again on your help and for pointing me to the ContentModel interface.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.