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.
public class MyUtils extends BaseProcessorExtension { private TicketComponent ticketComponent; public void setNodeService(NodeService nodeService) { this.nodeService = nodeService; } public boolean isAuthenticated(String userName) { return ticketComponent.getUsersWithTickets(true).contains(userName); } public Set<String> getUsersWithTIckets() { return ticketComponent.getUsersWithTickets(true); } }
…. <bean id="js.extension.myUtils" class="my.package.MyUtils" parent="baseJavaScriptExtension"> <!– This bean declared in authentication-services-context.xml –> [b] <property name="ticketComponent" ref="ticketComponent"/>[/b] <property name="extensionName" value="myUtils"/> </bean> ….