public abstract class AbstractProvider extends Object implements Provider
Provider.Configuration| Modifier and Type | Field and Description |
|---|---|
protected Provider.Configuration |
configuration |
protected String |
groupIdPrefix |
protected static com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected org.springframework.web.client.RestTemplate |
restTemplate |
| Constructor and Description |
|---|
AbstractProvider(Provider.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExternalGroupProvider() |
protected <T> T |
parseJson(String json,
Class<T> t) |
boolean |
shouldBeQueriedForGroup(String groupId)
Tells us if it is worthwhile calling this client when returning a single specified group for an user
|
boolean |
shouldBeQueriedForMembers(String groupId)
Tells us if it is worthwhile calling this client when returning all members of a group
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllGroups, getGroupMembership, getGroupMemberships, getMembers, shouldBeQueriedForMembershipsprotected final org.springframework.web.client.RestTemplate restTemplate
protected final Provider.Configuration configuration
protected final String groupIdPrefix
protected static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
public AbstractProvider(Provider.Configuration configuration)
public boolean isExternalGroupProvider()
isExternalGroupProvider in interface Providerpublic boolean shouldBeQueriedForGroup(String groupId)
ProvidershouldBeQueriedForGroup in interface ProvidergroupId - the group being requested (must be fully qualified persistent name or the unqualified Institution name)public boolean shouldBeQueriedForMembers(String groupId)
ProvidershouldBeQueriedForMembers in interface ProvidergroupId - the fully qualified uid groupIdCopyright © 2016 Pivotal Software, Inc.. All rights reserved.