11-02-2007 08:39 AM
FacesContext fc = FacesContext.getCurrentInstance();
ServiceRegistry services = Repository.getServiceRegistry(fc);
NavigationBean navigator = (NavigationBean) FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
NodeRef space = navigator.getCurrentNode().getNodeRef();
//Once I have the current space, I would like to get its users. (And what I don't have any idea about is how to insert the coordinator role comparision
// I don't know if the following code is correct
services.getNodeService().getProperty(space, ContentModel.PROP_USERNAME));
NodeRef peopleRef = personService.getPeopleContainer();
List<ChildAssociationRef> childRefs = nodeService.getChildAssocs(peopleRef);
for (ChildAssociationRef ref: childRefs)
{
// get the NodeRef of the person
NodeRef personRef = ref.getChildRef();
if (nodeService.getType(nodeRef).equals(ContentModel.TYPE_PERSON))
{
… do some work with person properties here …
}
}
11-08-2007 04:18 AM
11-09-2007 12:56 PM
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.