11-10-2015 03:06 PM
protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status, Cache cache) {
model = new HashMap<String, Object>();
requestedUser = req.getParameter("name");
authorityService = this.getAuthorityService();
if(!requestedUser.trim().isEmpty()||requestedUser!=null &&personService.personExists(requestedUser)){
NodeRef singleUser = personService.getPerson(requestedUser);
log.debug(singleUser);
model.put("user", nodeService.getProperties(singleUser));
}else{
userList = personService.getPeople("*",true,new ArrayList<QName>() ,new ArrayList<Pair<QName,Boolean>>(),new PagingRequest(personService.countPeople()));
}
return model;
}
11-16-2015 05:53 PM
<bean id="webscript.com.someco.ratings.rating.post" class="com.someco.scripts.PostRating" parent="webscript">
<property name="ratingBean">
<ref bean="ratingBean" />
</property>
<property name="nodeService">
<ref bean="NodeService" />
</property>
</bean>
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.