@Test void testCreateDecoratedRepositoryRowLevelSecurityDisabled() { Repository<Entity> repository = getRepositoryMock(); assertEquals( repository, rowLevelSecurityRepositoryDecoratorFactory.createDecoratedRepository(repository)); }
public Repository<Entity> createDecoratedRepository(Repository<Entity> repository) { Repository<Entity> decoratedRepository; if (isRowLevelSecured(repository)) { decoratedRepository = new RowLevelSecurityRepositoryDecorator( repository, userPermissionEvaluator, mutableAclService); } else { decoratedRepository = repository; } return decoratedRepository; }
RowLevelSecurityRepositoryDecoratorFactory { public Repository<Entity> createDecoratedRepository(Repository<Entity> repository) { Repository<Entity> decoratedRepository; if (isRowLevelSecured(repository)) { decoratedRepository = new RowLevelSecurityRepositoryDecorator( repository, userPermissionEvaluator, mutableAclService); } else { decoratedRepository = repository; } return decoratedRepository; } }
RowLevelSecurityRepositoryDecoratorFactory { public Repository<Entity> createDecoratedRepository(Repository<Entity> repository) { Repository<Entity> decoratedRepository; if (isRowLevelSecured(repository)) { decoratedRepository = new RowLevelSecurityRepositoryDecorator( repository, userPermissionEvaluator, mutableAclService); } else { decoratedRepository = repository; } return decoratedRepository; } RowLevelSecurityRepositoryDecoratorFactory(
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService,
      MutableAclClassService mutableAclClassService); }
RowLevelSecurityRepositoryDecoratorFactory { public Repository<Entity> createDecoratedRepository(Repository<Entity> repository) { Repository<Entity> decoratedRepository; if (isRowLevelSecured(repository)) { decoratedRepository = new RowLevelSecurityRepositoryDecorator( repository, userPermissionEvaluator, mutableAclService); } else { decoratedRepository = repository; } return decoratedRepository; } RowLevelSecurityRepositoryDecoratorFactory(
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService,
      MutableAclClassService mutableAclClassService); Repository<Entity> createDecoratedRepository(Repository<Entity> repository); }
RowLevelSecurityRepositoryDecoratorFactory { public Repository<Entity> createDecoratedRepository(Repository<Entity> repository) { Repository<Entity> decoratedRepository; if (isRowLevelSecured(repository)) { decoratedRepository = new RowLevelSecurityRepositoryDecorator( repository, userPermissionEvaluator, mutableAclService); } else { decoratedRepository = repository; } return decoratedRepository; } RowLevelSecurityRepositoryDecoratorFactory(
      UserPermissionEvaluator userPermissionEvaluator,
      MutableAclService mutableAclService,
      MutableAclClassService mutableAclClassService); Repository<Entity> createDecoratedRepository(Repository<Entity> repository);  }