Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.anotheria.portalkit.services.approval.generated.RemoteApprovalServiceSkeleton Maven / Gradle / Ivy
package net.anotheria.portalkit.services.approval.generated;
//BEGIN GENERATED CODE
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import org.distributeme.core.Verbosity;
import org.distributeme.core.Defaults;
import org.distributeme.core.ServerSideCallContext;
import org.distributeme.core.interceptor.ServerSideRequestInterceptor;
import org.distributeme.core.interceptor.InterceptorResponse;
import org.distributeme.core.interceptor.InterceptionContext;
import org.distributeme.core.interceptor.InterceptorRegistry;
import org.distributeme.core.interceptor.InterceptionPhase;
import org.distributeme.core.concurrencycontrol.ConcurrencyControlStrategy;
import net.anotheria.moskito.core.dynamic.MoskitoInvokationProxy;
import net.anotheria.moskito.core.predefined.ServiceStatsCallHandler;
import net.anotheria.moskito.core.predefined.ServiceStatsFactory;
import net.anotheria.moskito.core.registry.IProducerRegistryAPI;
import net.anotheria.moskito.core.registry.ProducerRegistryAPIFactory;
import net.anotheria.moskito.core.producers.IStatsProducer;
import net.anotheria.moskito.core.logging.LoggerUtil;
// Generated by org.distributeme.generator.SkeletonGenerator
@SuppressWarnings("PMD")
public class RemoteApprovalServiceSkeleton implements RemoteApprovalService {
private static Logger log = LoggerFactory.getLogger(RemoteApprovalServiceSkeleton.class);
private net.anotheria.portalkit.services.approval.ApprovalService implementation;
private long lastAccess;
private long created;
// CONCURRENCY CONTROL
// Class wide concurrency control strategy
private ConcurrencyControlStrategy clazzWideCCStrategy = Defaults.getDefaultConcurrencyControlStrategy();
private ConcurrencyControlStrategy createTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket = clazzWideCCStrategy;
private ConcurrencyControlStrategy deleteTicketByReferenceIdCCStrategy_javalangStringreferenceId = clazzWideCCStrategy;
private ConcurrencyControlStrategy deleteTicketCCStrategy_longticketId = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketByIdCCStrategy_longticketId = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsByLocaleCCStrategy_javalangStringlocale_javalangStringagentId = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId_intlimit = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsCountCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsByTypeAndLocaleCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringlocale_javalangStringagentId = clazzWideCCStrategy;
private ConcurrencyControlStrategy getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType = clazzWideCCStrategy;
private ConcurrencyControlStrategy approveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket = clazzWideCCStrategy;
private ConcurrencyControlStrategy approveTicketsCCStrategy_javautilCollectiontickets = clazzWideCCStrategy;
private ConcurrencyControlStrategy disapproveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket = clazzWideCCStrategy;
private ConcurrencyControlStrategy disapproveTicketsCCStrategy_javautilCollectiontickets = clazzWideCCStrategy;
private ConcurrencyControlStrategy getLockedTicketsCCStrategy = clazzWideCCStrategy;
private ConcurrencyControlStrategy getLockedTicketsCCStrategy_javalangStringlocale = clazzWideCCStrategy;
private ConcurrencyControlStrategy deleteUserDataCCStrategy_netanotheriaportalkitservicescommonAccountIdarg0 = clazzWideCCStrategy;
private ConcurrencyControlStrategy describeDataCCStrategy = clazzWideCCStrategy;
private ConcurrencyControlStrategy performIntegrityCheckCCStrategy_netanotheriaportalkitservicescommonintegrityIntegrityCheckHelperarg0 = clazzWideCCStrategy;
// CONCURRENCY CONTROL end
public RemoteApprovalServiceSkeleton(){
this(null);
}
public RemoteApprovalServiceSkeleton(net.anotheria.portalkit.services.approval.ApprovalService anImplementation){
created = System.currentTimeMillis();
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
anImplementation,
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"ApprovalService",
"service",
"default",
net.anotheria.portalkit.services.approval.ApprovalService.class, net.anotheria.anoprise.metafactory.Service.class, net.anotheria.portalkit.services.common.UserDataManagingService.class
);
implementation = (net.anotheria.portalkit.services.approval.ApprovalService) proxy.createProxy();
// add moskito logger
LoggerUtil.createSLF4JDefaultAndIntervalStatsLogger(proxy.getProducer());
//end moskito logger
// //ADD LOGGING FOR ALL BUILTIN PRODUCERS
IProducerRegistryAPI api = new ProducerRegistryAPIFactory().createProducerRegistryAPI();
List stats = api.getAllProducersBySubsystem("builtin");
for (IStatsProducer producer : stats){
LoggerUtil.createSLF4JDefaultAndIntervalStatsLogger(producer);
}
}
public List createTicket(net.anotheria.portalkit.services.approval.TicketBO ticket, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("createTicket", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticket);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
createTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.createTicket(ticket);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("createTicket()", e);
throw(e);
}finally{
createTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallFinished(diMeCallContext);
}
}
public List deleteTicketByReferenceId(java.lang.String referenceId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("deleteTicketByReferenceId", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(referenceId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
deleteTicketByReferenceIdCCStrategy_javalangStringreferenceId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.deleteTicketByReferenceId(referenceId);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("deleteTicketByReferenceId()", e);
throw(e);
}finally{
deleteTicketByReferenceIdCCStrategy_javalangStringreferenceId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List deleteTicket(long ticketId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("deleteTicket", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
deleteTicketCCStrategy_longticketId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.deleteTicket(ticketId);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("deleteTicket()", e);
throw(e);
}finally{
deleteTicketCCStrategy_longticketId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketById(long ticketId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketById", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketByIdCCStrategy_longticketId.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketById(ticketId);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketById()", e);
throw(e);
}finally{
getTicketByIdCCStrategy_longticketId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsByLocale(java.lang.String locale, java.lang.String agentId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsByLocale", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(locale);
diMeParameters.add(agentId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsByLocaleCCStrategy_javalangStringlocale_javalangStringagentId.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsByLocale(locale, agentId);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsByLocale()", e);
throw(e);
}finally{
getTicketsByLocaleCCStrategy_javalangStringlocale_javalangStringagentId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsByType(net.anotheria.portalkit.services.approval.TicketType ticketType, net.anotheria.portalkit.services.approval.IReferenceType referenceType, java.lang.String agentId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsByType", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketType);
diMeParameters.add(referenceType);
diMeParameters.add(agentId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsByType(ticketType, referenceType, agentId);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsByType()", e);
throw(e);
}finally{
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsByType(net.anotheria.portalkit.services.approval.TicketType ticketType, net.anotheria.portalkit.services.approval.IReferenceType referenceType, java.lang.String agentId, int limit, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsByType", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketType);
diMeParameters.add(referenceType);
diMeParameters.add(agentId);
diMeParameters.add(limit);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId_intlimit.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsByType(ticketType, referenceType, agentId, limit);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsByType()", e);
throw(e);
}finally{
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringagentId_intlimit.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsCount(net.anotheria.portalkit.services.approval.TicketType ticketType, net.anotheria.portalkit.services.approval.IReferenceType referenceType, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsCount", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketType);
diMeParameters.add(referenceType);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsCountCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsCount(ticketType, referenceType);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsCount()", e);
throw(e);
}finally{
getTicketsCountCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsByTypeAndLocale(net.anotheria.portalkit.services.approval.TicketType ticketType, net.anotheria.portalkit.services.approval.IReferenceType referenceType, java.lang.String locale, java.lang.String agentId, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsByTypeAndLocale", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketType);
diMeParameters.add(referenceType);
diMeParameters.add(locale);
diMeParameters.add(agentId);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsByTypeAndLocaleCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringlocale_javalangStringagentId.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsByTypeAndLocale(ticketType, referenceType, locale, agentId);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsByTypeAndLocale()", e);
throw(e);
}finally{
getTicketsByTypeAndLocaleCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType_javalangStringlocale_javalangStringagentId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getTicketsByType(net.anotheria.portalkit.services.approval.TicketType ticketType, net.anotheria.portalkit.services.approval.IReferenceType referenceType, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getTicketsByType", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticketType);
diMeParameters.add(referenceType);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getTicketsByType(ticketType, referenceType);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getTicketsByType()", e);
throw(e);
}finally{
getTicketsByTypeCCStrategy_netanotheriaportalkitservicesapprovalTicketTypeticketType_netanotheriaportalkitservicesapprovalIReferenceTypereferenceType.notifyServerSideCallFinished(diMeCallContext);
}
}
public List approveTicket(net.anotheria.portalkit.services.approval.TicketBO ticket, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("approveTicket", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticket);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
approveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.approveTicket(ticket);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("approveTicket()", e);
throw(e);
}finally{
approveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallFinished(diMeCallContext);
}
}
public List approveTickets(java.util.Collection tickets, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("approveTickets", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(tickets);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
approveTicketsCCStrategy_javautilCollectiontickets.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.approveTickets(tickets);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("approveTickets()", e);
throw(e);
}finally{
approveTicketsCCStrategy_javautilCollectiontickets.notifyServerSideCallFinished(diMeCallContext);
}
}
public List disapproveTicket(net.anotheria.portalkit.services.approval.TicketBO ticket, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("disapproveTicket", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ticket);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
disapproveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.disapproveTicket(ticket);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("disapproveTicket()", e);
throw(e);
}finally{
disapproveTicketCCStrategy_netanotheriaportalkitservicesapprovalTicketBOticket.notifyServerSideCallFinished(diMeCallContext);
}
}
public List disapproveTickets(java.util.Collection tickets, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("disapproveTickets", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(tickets);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
disapproveTicketsCCStrategy_javautilCollectiontickets.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.disapproveTickets(tickets);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("disapproveTickets()", e);
throw(e);
}finally{
disapproveTicketsCCStrategy_javautilCollectiontickets.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getLockedTickets(Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getLockedTickets", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getLockedTicketsCCStrategy.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getLockedTickets();
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getLockedTickets()", e);
throw(e);
}finally{
getLockedTicketsCCStrategy.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getLockedTickets(java.lang.String locale, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.approval.ApprovalServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getLockedTickets", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(locale);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
getLockedTicketsCCStrategy_javalangStringlocale.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getLockedTickets(locale);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof net.anotheria.portalkit.services.approval.ApprovalServiceException)
throw (net.anotheria.portalkit.services.approval.ApprovalServiceException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(net.anotheria.portalkit.services.approval.ApprovalServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getLockedTickets()", e);
throw(e);
}finally{
getLockedTicketsCCStrategy_javalangStringlocale.notifyServerSideCallFinished(diMeCallContext);
}
}
public List deleteUserData(net.anotheria.portalkit.services.common.AccountId arg0, Map,?> __transportableCallContext){
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("deleteUserData", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(arg0);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
deleteUserDataCCStrategy_netanotheriaportalkitservicescommonAccountIdarg0.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.deleteUserData(arg0);
__return.add(org.distributeme.core.util.VoidMarker.VOID);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}finally{
deleteUserDataCCStrategy_netanotheriaportalkitservicescommonAccountIdarg0.notifyServerSideCallFinished(diMeCallContext);
}
}
public List describeData(Map,?> __transportableCallContext){
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("describeData", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
describeDataCCStrategy.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.describeData();
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}finally{
describeDataCCStrategy.notifyServerSideCallFinished(diMeCallContext);
}
}
public List performIntegrityCheck(net.anotheria.portalkit.services.common.integrity.IntegrityCheckHelper arg0, Map,?> __transportableCallContext) throws java.lang.Exception{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("performIntegrityCheck", __transportableCallContext);
diMeCallContext.setServiceId(ApprovalServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(arg0);
diMeCallContext.setParameters(diMeParameters);
InterceptionContext diMeInterceptionContext = new InterceptionContext();
// Initialize interceptors
List diMeInterceptors = InterceptorRegistry.getInstance().getServerSideRequestInterceptors();
ArrayList __return = new ArrayList();
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.BEFORE_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.beforeServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof java.lang.Exception)
throw (java.lang.Exception) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
// Concurrency control, server side -
performIntegrityCheckCCStrategy_netanotheriaportalkitservicescommonintegrityIntegrityCheckHelperarg0.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.performIntegrityCheck(arg0);
__return.add(__result);
diMeInterceptionContext.setReturnValue(__result);
__return.add(diMeCallContext.getTransportableCallContext());
diMeInterceptionContext.setCurrentPhase(InterceptionPhase.AFTER_SERVANT_CALL);
for (ServerSideRequestInterceptor interceptor : diMeInterceptors){
InterceptorResponse interceptorResponse = interceptor.afterServantCall(diMeCallContext, diMeInterceptionContext);
switch(interceptorResponse.getCommand()){
case ABORT:
if (interceptorResponse.getException() instanceof RuntimeException)
throw (RuntimeException) interceptorResponse.getException();
if (interceptorResponse.getException() instanceof java.lang.Exception)
throw (java.lang.Exception) interceptorResponse.getException();
throw new RuntimeException("Interceptor exception",interceptorResponse.getException());
case RETURN:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case OVERWRITE_RETURN_AND_CONTINUE:
__return.set(0, interceptorResponse.getReturnValue());
diMeInterceptionContext.setReturnValue(interceptorResponse.getReturnValue());
break;
case CONTINUE:
break;
} //...switch
} //...for
return __return;
}catch(java.lang.Exception e){
if (Verbosity.logServerSideExceptions())
log.error("performIntegrityCheck()", e);
throw(e);
}finally{
performIntegrityCheckCCStrategy_netanotheriaportalkitservicescommonintegrityIntegrityCheckHelperarg0.notifyServerSideCallFinished(diMeCallContext);
}
}
// Service adapter methods
public long getCreationTimestamp(){ return created; }
public long getLastAccessTimestamp(){ return lastAccess; }
}