1 24 package org.ofbiz.service.group; 25 26 import java.util.Map ; 27 28 import org.ofbiz.service.GenericServiceException; 29 import org.ofbiz.service.ModelService; 30 import org.ofbiz.service.ServiceDispatcher; 31 import org.ofbiz.service.engine.GenericAsyncEngine; 32 33 40 public class ServiceGroupEngine extends GenericAsyncEngine { 41 42 46 public ServiceGroupEngine(ServiceDispatcher dispatcher) { 47 super(dispatcher); 48 } 49 50 53 public Map runSync(String localName, ModelService modelService, Map context) throws GenericServiceException { 54 GroupModel groupModel = ServiceGroupReader.getGroupModel(this.getLocation(modelService)); 55 if (groupModel == null) 56 throw new GenericServiceException("GroupModel was null; not a valid ServiceGroup!"); 57 return groupModel.run(dispatcher, localName, context); 58 } 59 60 63 public void runSyncIgnore(String localName, ModelService modelService, Map context) throws GenericServiceException { 64 runSync(localName, modelService, context); 65 } 66 } 67 | Popular Tags |