public static void register(OperationInterceptorRegistry registry) { registry.addServiceInterceptor( EventLogService.class, Action.DELETE, UnauthorizedDeleteInterceptor::handleDelete); registry.addServiceInterceptor( RequestStatusService.class, Action.DELETE, UnauthorizedDeleteInterceptor::handleDelete); }
public static void register(OperationInterceptorRegistry registry) { registry.addServiceInterceptor( ResourcePoolService.class, Action.DELETE, InUsePlacementZoneInterceptor::handleDelete); }
public static void register(OperationInterceptorRegistry registry) { registry.addFactoryServiceInterceptor( AuthCredentialsService.class, Action.POST, AuthCredentialsInterceptor::handlePatchPostPut); registry.addServiceInterceptor( AuthCredentialsService.class, Action.POST, AuthCredentialsInterceptor::handlePatchPostPut); registry.addServiceInterceptor( AuthCredentialsService.class, Action.PUT, AuthCredentialsInterceptor::handlePatchPostPut); registry.addServiceInterceptor( AuthCredentialsService.class, Action.PATCH, AuthCredentialsInterceptor::handlePatchPostPut); registry.addServiceInterceptor( AuthCredentialsService.class, Action.DELETE, AuthCredentialsInterceptor::handleDelete); }
public static void register(OperationInterceptorRegistry registry) { registry.addFactoryServiceInterceptor( ResourcePoolService.class, Action.POST, SchedulerPlacementZoneInterceptor::handlePostOrPut); registry.addServiceInterceptor( ResourcePoolService.class, Action.PUT, SchedulerPlacementZoneInterceptor::handlePostOrPut); registry.addServiceInterceptor( ResourcePoolService.class, Action.PATCH, SchedulerPlacementZoneInterceptor::handlePatch); }
private static void registerType(OperationInterceptorRegistry registry, Class<? extends Service> serviceType) { registry.addServiceInterceptor(serviceType, null, ProjectInterceptor::handleServiceOp); registry.addFactoryServiceInterceptor(serviceType, null, ProjectInterceptor::handleFactoryOp); }
private static void registerType(OperationInterceptorRegistry registry, Class<? extends Service> serviceType) { registry.addFactoryServiceInterceptor(serviceType, null, CompositeComponentInterceptor::handleFactoryPost); registry.addServiceInterceptor(serviceType, null, CompositeComponentInterceptor::handleServiceOp); }