@Repository public class UserRepository extends Object
Note: JOOQ query has 1:1 mapping with SQL and is very easy to understand. If you want to see the generated SQL (for debugging), add org.jooq.tools: DEBUG in application.yaml file.
Constructor and Description |
---|
UserRepository(org.jooq.DSLContext dslContext,
org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices metricService) |
Modifier and Type | Method and Description |
---|---|
List<OneOpsTeam> |
getAllTeams(AppGroup appGroup)
Returns all teams in the application group assembly.
|
List<OneOpsTeam> |
getTeams(String userName,
AppGroup appGroup)
Returns all teams having given user in the application group assembly.
|
public UserRepository(org.jooq.DSLContext dslContext, org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices metricService)
public List<OneOpsTeam> getTeams(@Nonnull String userName, @Nonnull AppGroup appGroup)
userName
- oneops user name (usually it's your AD/LDAP user name)appGroup
- AppGroup
OneOpsTeam
public List<OneOpsTeam> getAllTeams(@Nonnull AppGroup appGroup)
appGroup
- AppGroup
OneOpsTeam
Copyright © 2018 Walmart, Inc.. All rights reserved.