As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
NodeRef manager = getPersonService().getPerson(this.getManager()); projectProps.put(ProjectModel.ASPECT_PROJ_PROP_MANAGER,manager);
<associations> <association name="project:projectmanager"> <title>Project manager</title> <source> <mandatory>false</mandatory> <many>false</many> </source> <target> <class>cm:person</class> <mandatory>false</mandatory> <many>false</many> </target> </association>
getManager() gives a String which is get by: nodeService.getProperty(ref, ContentModel.PROP_USERNAME).toString());