Search in sources :

Example 1 with FavouritesService

use of org.finos.waltz.service.app_group.FavouritesService in project waltz by khartec.

the class AppGroupHarness method main.

public static void main(String[] args) throws InsufficientPrivelegeException {
    System.out.println("--- start");
    ApplicationIdSelectorFactory appSelectorFactory = new ApplicationIdSelectorFactory();
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    DSLContext dsl = ctx.getBean(DSLContext.class);
    FavouritesService service = ctx.getBean(FavouritesService.class);
    Collection<AppGroupEntry> appGroupEntries = service.addApplication("jessica.woodland-scott@db.com", 15792);
    System.out.println("--- done");
}
Also used : FavouritesService(org.finos.waltz.service.app_group.FavouritesService) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) ApplicationIdSelectorFactory(org.finos.waltz.data.application.ApplicationIdSelectorFactory) DSLContext(org.jooq.DSLContext) AppGroupEntry(org.finos.waltz.model.app_group.AppGroupEntry)

Aggregations

ApplicationIdSelectorFactory (org.finos.waltz.data.application.ApplicationIdSelectorFactory)1 AppGroupEntry (org.finos.waltz.model.app_group.AppGroupEntry)1 FavouritesService (org.finos.waltz.service.app_group.FavouritesService)1 DSLContext (org.jooq.DSLContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1