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.anosite.photoserver.service.blur.generated.RemoteBlurSettingsServiceSkeleton Maven / Gradle / Ivy
package net.anotheria.anosite.photoserver.service.blur.generated;
//CHECKSTYLE:OFF
import org.apache.log4j.Logger;
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.logging.DefaultStatsLogger;
import net.anotheria.moskito.core.logging.IntervalStatsLogger;
import net.anotheria.moskito.core.logging.Log4JOutput;
import net.anotheria.moskito.core.stats.DefaultIntervals;
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;
public class RemoteBlurSettingsServiceSkeleton implements RemoteBlurSettingsService {
private static Logger log = Logger.getLogger(RemoteBlurSettingsServiceSkeleton.class);
private net.anotheria.anosite.photoserver.service.blur.BlurSettingsService implementation;
private long lastAccess;
private long created;
// CONCURRENCY CONTROL
// Class wide concurrency control strategy
private ConcurrencyControlStrategy clazzWideCCStrategy = Defaults.getDefaultConcurrencyControlStrategy();
private ConcurrencyControlStrategy readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds_javalangStringuserId = clazzWideCCStrategy;
private ConcurrencyControlStrategy readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds = clazzWideCCStrategy;
private ConcurrencyControlStrategy blurAlbumCCStrategy_longalbumId = clazzWideCCStrategy;
private ConcurrencyControlStrategy blurAlbumCCStrategy_longalbumId_javalangStringuserId = clazzWideCCStrategy;
private ConcurrencyControlStrategy blurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId = clazzWideCCStrategy;
private ConcurrencyControlStrategy blurPictureCCStrategy_longalbumId_longpictureId = clazzWideCCStrategy;
private ConcurrencyControlStrategy unBlurAlbumCCStrategy_longalbumId = clazzWideCCStrategy;
private ConcurrencyControlStrategy unBlurAlbumCCStrategy_longalbumId_javalangStringuserId = clazzWideCCStrategy;
private ConcurrencyControlStrategy unBlurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId = clazzWideCCStrategy;
private ConcurrencyControlStrategy unBlurPictureCCStrategy_longalbumId_longpictureId = clazzWideCCStrategy;
private ConcurrencyControlStrategy removeBlurSettingsCCStrategy_longalbumId = clazzWideCCStrategy;
// CONCURRENCY CONTROL end
public RemoteBlurSettingsServiceSkeleton(){
this(null);
}
public RemoteBlurSettingsServiceSkeleton(net.anotheria.anosite.photoserver.service.blur.BlurSettingsService anImplementation){
created = System.currentTimeMillis();
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
anImplementation,
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"BlurSettingsService",
"service",
"default",
net.anotheria.anosite.photoserver.service.blur.BlurSettingsService.class, net.anotheria.anoprise.metafactory.Service.class
);
implementation = (net.anotheria.anosite.photoserver.service.blur.BlurSettingsService) proxy.createProxy();
// add moskito logger
new DefaultStatsLogger(proxy.getProducer(), new Log4JOutput(Logger.getLogger("moskito.custom.default")));
new IntervalStatsLogger(proxy.getProducer(), DefaultIntervals.FIVE_MINUTES, new Log4JOutput(Logger.getLogger("moskito.custom.5m")));
new IntervalStatsLogger(proxy.getProducer(), DefaultIntervals.FIFTEEN_MINUTES, new Log4JOutput(Logger.getLogger("moskito.custom.15m")));
new IntervalStatsLogger(proxy.getProducer(), DefaultIntervals.ONE_HOUR, new Log4JOutput(Logger.getLogger("moskito.custom.1h")));
new IntervalStatsLogger(proxy.getProducer(), DefaultIntervals.ONE_DAY, new Log4JOutput(Logger.getLogger("moskito.custom.1d")));
//end moskito logger
// //ADD LOGGING FOR ALL BUILTIN PRODUCERS
IProducerRegistryAPI api = new ProducerRegistryAPIFactory().createProducerRegistryAPI();
List stats = api.getAllProducersBySubsystem("builtin");
for (IStatsProducer producer : stats){
new DefaultStatsLogger(producer, new Log4JOutput(Logger.getLogger("moskito.bi.default")));
new IntervalStatsLogger(producer, DefaultIntervals.FIVE_MINUTES, new Log4JOutput(Logger.getLogger("moskito.bi.5m")));
new IntervalStatsLogger(producer, DefaultIntervals.FIFTEEN_MINUTES, new Log4JOutput(Logger.getLogger("moskito.bi.15m")));
new IntervalStatsLogger(producer, DefaultIntervals.ONE_HOUR, new Log4JOutput(Logger.getLogger("moskito.bi.1h")));
new IntervalStatsLogger(producer, DefaultIntervals.ONE_DAY, new Log4JOutput(Logger.getLogger("moskito.bi.1d")));
}
}
public List readBlurSettings(long albumId, java.util.List pictureIds, java.lang.String userId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("readBlurSettings", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureIds);
diMeParameters.add(userId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds_javalangStringuserId.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.readBlurSettings(albumId, pictureIds, userId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("readBlurSettings()", e);
throw(e);
}finally{
readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds_javalangStringuserId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List readBlurSettings(long albumId, java.util.List pictureIds, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("readBlurSettings", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureIds);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.readBlurSettings(albumId, pictureIds);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("readBlurSettings()", e);
throw(e);
}finally{
readBlurSettingsCCStrategy_longalbumId_javautilListpictureIds.notifyServerSideCallFinished(diMeCallContext);
}
}
public List blurAlbum(long albumId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("blurAlbum", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
blurAlbumCCStrategy_longalbumId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.blurAlbum(albumId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("blurAlbum()", e);
throw(e);
}finally{
blurAlbumCCStrategy_longalbumId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List blurAlbum(long albumId, java.lang.String userId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("blurAlbum", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(userId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
blurAlbumCCStrategy_longalbumId_javalangStringuserId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.blurAlbum(albumId, userId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("blurAlbum()", e);
throw(e);
}finally{
blurAlbumCCStrategy_longalbumId_javalangStringuserId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List blurPicture(long albumId, long pictureId, java.lang.String userId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("blurPicture", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureId);
diMeParameters.add(userId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
blurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.blurPicture(albumId, pictureId, userId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("blurPicture()", e);
throw(e);
}finally{
blurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List blurPicture(long albumId, long pictureId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("blurPicture", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
blurPictureCCStrategy_longalbumId_longpictureId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.blurPicture(albumId, pictureId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("blurPicture()", e);
throw(e);
}finally{
blurPictureCCStrategy_longalbumId_longpictureId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List unBlurAlbum(long albumId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("unBlurAlbum", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
unBlurAlbumCCStrategy_longalbumId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.unBlurAlbum(albumId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("unBlurAlbum()", e);
throw(e);
}finally{
unBlurAlbumCCStrategy_longalbumId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List unBlurAlbum(long albumId, java.lang.String userId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("unBlurAlbum", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(userId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
unBlurAlbumCCStrategy_longalbumId_javalangStringuserId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.unBlurAlbum(albumId, userId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("unBlurAlbum()", e);
throw(e);
}finally{
unBlurAlbumCCStrategy_longalbumId_javalangStringuserId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List unBlurPicture(long albumId, long pictureId, java.lang.String userId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("unBlurPicture", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureId);
diMeParameters.add(userId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
unBlurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.unBlurPicture(albumId, pictureId, userId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("unBlurPicture()", e);
throw(e);
}finally{
unBlurPictureCCStrategy_longalbumId_longpictureId_javalangStringuserId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List unBlurPicture(long albumId, long pictureId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("unBlurPicture", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
diMeParameters.add(pictureId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
unBlurPictureCCStrategy_longalbumId_longpictureId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.unBlurPicture(albumId, pictureId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("unBlurPicture()", e);
throw(e);
}finally{
unBlurPictureCCStrategy_longalbumId_longpictureId.notifyServerSideCallFinished(diMeCallContext);
}
}
public List removeBlurSettings(long albumId, Map,?> __transportableCallContext) throws net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("removeBlurSettings", __transportableCallContext);
diMeCallContext.setServiceId(BlurSettingsServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(albumId);
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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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 -
removeBlurSettingsCCStrategy_longalbumId.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.removeBlurSettings(albumId);
__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.anosite.photoserver.service.blur.BlurSettingsServiceException)
throw (net.anotheria.anosite.photoserver.service.blur.BlurSettingsServiceException) 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.anosite.photoserver.service.blur.BlurSettingsServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("removeBlurSettings()", e);
throw(e);
}finally{
removeBlurSettingsCCStrategy_longalbumId.notifyServerSideCallFinished(diMeCallContext);
}
}
// Service adapter methods
public long getCreationTimestamp(){ return created; }
public long getLastAccessTimestamp(){ return lastAccess; }
}