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.account.generated.RemoteAccountServiceSkeleton Maven / Gradle / Ivy
package net.anotheria.portalkit.services.account.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 RemoteAccountServiceSkeleton implements RemoteAccountService {
private static Logger log = LoggerFactory.getLogger(RemoteAccountServiceSkeleton.class);
private net.anotheria.portalkit.services.account.AccountService implementation;
private long lastAccess;
private long created;
// CONCURRENCY CONTROL
// Class wide concurrency control strategy
private ConcurrencyControlStrategy clazzWideCCStrategy = Defaults.getDefaultConcurrencyControlStrategy();
private ConcurrencyControlStrategy getAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid = clazzWideCCStrategy;
private ConcurrencyControlStrategy getAccountsCCStrategy_javautilListids = clazzWideCCStrategy;
private ConcurrencyControlStrategy deleteAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid = clazzWideCCStrategy;
private ConcurrencyControlStrategy updateAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoUpdate = clazzWideCCStrategy;
private ConcurrencyControlStrategy createAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoCreate = clazzWideCCStrategy;
private ConcurrencyControlStrategy getAccountIdByNameCCStrategy_javalangStringaccountName = clazzWideCCStrategy;
private ConcurrencyControlStrategy getAccountIdByEmailCCStrategy_javalangStringaccountEmail = clazzWideCCStrategy;
private ConcurrencyControlStrategy getAccountIdByNameCCStrategy_javalangStringaccountName_javalangStringbrand = clazzWideCCStrategy;
private ConcurrencyControlStrategy getAccountIdByEmailCCStrategy_javalangStringaccountEmail_javalangStringbrand = clazzWideCCStrategy;
// CONCURRENCY CONTROL end
public RemoteAccountServiceSkeleton(){
this(null);
}
public RemoteAccountServiceSkeleton(net.anotheria.portalkit.services.account.AccountService anImplementation){
created = System.currentTimeMillis();
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
anImplementation,
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"AccountService",
"service",
"default",
net.anotheria.portalkit.services.account.AccountService.class, net.anotheria.anoprise.metafactory.Service.class
);
implementation = (net.anotheria.portalkit.services.account.AccountService) 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 getAccount(net.anotheria.portalkit.services.common.AccountId id, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccount", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(id);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccount(id);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccount()", e);
throw(e);
}finally{
getAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getAccounts(java.util.List ids, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccounts", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(ids);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountsCCStrategy_javautilListids.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccounts(ids);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccounts()", e);
throw(e);
}finally{
getAccountsCCStrategy_javautilListids.notifyServerSideCallFinished(diMeCallContext);
}
}
public List deleteAccount(net.anotheria.portalkit.services.common.AccountId id, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("deleteAccount", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(id);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
deleteAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid.notifyServerSideCallStarted(diMeCallContext);
try{
implementation.deleteAccount(id);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("deleteAccount()", e);
throw(e);
}finally{
deleteAccountCCStrategy_netanotheriaportalkitservicescommonAccountIdid.notifyServerSideCallFinished(diMeCallContext);
}
}
public List updateAccount(net.anotheria.portalkit.services.account.Account toUpdate, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("updateAccount", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(toUpdate);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
updateAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoUpdate.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.updateAccount(toUpdate);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("updateAccount()", e);
throw(e);
}finally{
updateAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoUpdate.notifyServerSideCallFinished(diMeCallContext);
}
}
public List createAccount(net.anotheria.portalkit.services.account.Account toCreate, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("createAccount", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(toCreate);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
createAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoCreate.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.createAccount(toCreate);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("createAccount()", e);
throw(e);
}finally{
createAccountCCStrategy_netanotheriaportalkitservicesaccountAccounttoCreate.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getAccountIdByName(java.lang.String accountName, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccountIdByName", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(accountName);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountIdByNameCCStrategy_javalangStringaccountName.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccountIdByName(accountName);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccountIdByName()", e);
throw(e);
}finally{
getAccountIdByNameCCStrategy_javalangStringaccountName.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getAccountIdByEmail(java.lang.String accountEmail, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccountIdByEmail", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(accountEmail);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountIdByEmailCCStrategy_javalangStringaccountEmail.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccountIdByEmail(accountEmail);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccountIdByEmail()", e);
throw(e);
}finally{
getAccountIdByEmailCCStrategy_javalangStringaccountEmail.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getAccountIdByName(java.lang.String accountName, java.lang.String brand, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccountIdByName", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(accountName);
diMeParameters.add(brand);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountIdByNameCCStrategy_javalangStringaccountName_javalangStringbrand.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccountIdByName(accountName, brand);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccountIdByName()", e);
throw(e);
}finally{
getAccountIdByNameCCStrategy_javalangStringaccountName_javalangStringbrand.notifyServerSideCallFinished(diMeCallContext);
}
}
public List getAccountIdByEmail(java.lang.String accountEmail, java.lang.String brand, Map,?> __transportableCallContext) throws net.anotheria.portalkit.services.account.AccountServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("getAccountIdByEmail", __transportableCallContext);
diMeCallContext.setServiceId(AccountServiceConstants.getServiceId());
ArrayList diMeParameters = new ArrayList();
diMeParameters.add(accountEmail);
diMeParameters.add(brand);
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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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 -
getAccountIdByEmailCCStrategy_javalangStringaccountEmail_javalangStringbrand.notifyServerSideCallStarted(diMeCallContext);
try{
Object __result = implementation.getAccountIdByEmail(accountEmail, brand);
__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.account.AccountServiceException)
throw (net.anotheria.portalkit.services.account.AccountServiceException) 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.account.AccountServiceException e){
if (Verbosity.logServerSideExceptions())
log.error("getAccountIdByEmail()", e);
throw(e);
}finally{
getAccountIdByEmailCCStrategy_javalangStringaccountEmail_javalangStringbrand.notifyServerSideCallFinished(diMeCallContext);
}
}
// Service adapter methods
public long getCreationTimestamp(){ return created; }
public long getLastAccessTimestamp(){ return lastAccess; }
}