Search in sources :

Example 1 with AccessController

use of com.thinkbiganalytics.security.AccessController in project kylo by Teradata.

the class FeedHealthRepositoryTest method accessController.

@Bean
public AccessController accessController() {
    AccessController mock = Mockito.mock(AccessController.class);
    Mockito.when(mock.isEntityAccessControlled()).thenReturn(true);
    return mock;
}
Also used : AccessController(com.thinkbiganalytics.security.AccessController) Bean(org.springframework.context.annotation.Bean)

Example 2 with AccessController

use of com.thinkbiganalytics.security.AccessController in project kylo by Teradata.

the class JpaBatchJobExecutionProviderTest method accessController.

@Bean
public AccessController accessController() {
    AccessController mock = Mockito.mock(AccessController.class);
    Mockito.when(mock.isEntityAccessControlled()).thenReturn(true);
    return mock;
}
Also used : AccessController(com.thinkbiganalytics.security.AccessController) Bean(org.springframework.context.annotation.Bean)

Example 3 with AccessController

use of com.thinkbiganalytics.security.AccessController in project kylo by Teradata.

the class OpsManagerFeedRepositoryTest method accessController.

@Bean
public AccessController accessController() {
    AccessController mock = Mockito.mock(AccessController.class);
    Mockito.when(mock.isEntityAccessControlled()).thenReturn(true);
    return mock;
}
Also used : AccessController(com.thinkbiganalytics.security.AccessController) Bean(org.springframework.context.annotation.Bean)

Example 4 with AccessController

use of com.thinkbiganalytics.security.AccessController in project kylo by Teradata.

the class JpaFeedProviderTest method accessController.

@Bean
public AccessController accessController() {
    AccessController mock = Mockito.mock(AccessController.class);
    Mockito.when(mock.isEntityAccessControlled()).thenReturn(true);
    return mock;
}
Also used : AccessController(com.thinkbiganalytics.security.AccessController) Bean(org.springframework.context.annotation.Bean)

Example 5 with AccessController

use of com.thinkbiganalytics.security.AccessController in project kylo by Teradata.

the class JcrFeedSecurityTestConfig method accessController.

@Bean
public AccessController accessController() {
    AccessController ctlr = Mockito.mock(DefaultAccessController.class);
    when(ctlr.isEntityAccessControlled()).thenReturn(true);
    return ctlr;
}
Also used : DefaultAccessController(com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController) AccessController(com.thinkbiganalytics.security.AccessController) Bean(org.springframework.context.annotation.Bean)

Aggregations

AccessController (com.thinkbiganalytics.security.AccessController)5 Bean (org.springframework.context.annotation.Bean)5 DefaultAccessController (com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController)1