@Override public Group getGroup(String groupId) { IdentityStoreInvocationContext ctx = createContext(); if (ctx.getRealm() != null && ctx.getTier() != null) { throw new IllegalStateException("Ambiguous context state - Group may only be managed in either the " + "scope of a Realm or a Tier, however both have been set."); } return getContextualStoreForFeature(ctx, Feature.readGroup).getGroup(groupId); }
@Override public Group getGroup(String groupName, Group parent) { IdentityStoreInvocationContext ctx = createContext(); if (ctx.getRealm() != null && ctx.getTier() != null) { throw new IllegalStateException("Ambiguous context state - Group may only be managed in either the " + "scope of a Realm or a Tier, however both have been set."); } return getContextualStoreForFeature(ctx, Feature.readGroup).getGroup(groupName, parent); }