private WonMessage createWonMessage(URI needURI) throws WonMessageBuilderException { WonNodeInformationService wonNodeInformationService = getEventListenerContext().getWonNodeInformationService(); URI localWonNode = WonRdfUtils.NeedUtils.queryWonNode( getEventListenerContext().getLinkedDataSource().getDataForResource(needURI)); WonMessageBuilder builder = new WonMessageBuilder(); return builder .setMessagePropertiesForNeedState( wonNodeInformationService.generateEventURI(localWonNode), NeedState.INACTIVE, needURI, localWonNode) .build(); }
private WonMessage createWonMessage(URI needURI, URI otherNeedURI, double score, URI originator) throws WonMessageBuilderException { WonNodeInformationService wonNodeInformationService = getEventListenerContext().getWonNodeInformationService(); URI localWonNode = WonRdfUtils.NeedUtils.getWonNodeURIFromNeed( getEventListenerContext().getLinkedDataSource().getDataForResource(needURI), needURI); return WonMessageBuilder.setMessagePropertiesForHint( wonNodeInformationService.generateEventURI(localWonNode), needURI, FacetType.OwnerFacet.getURI(), localWonNode, otherNeedURI, FacetType.OwnerFacet.getURI(), originator, score) .build(); }