public interface InternalDataStore extends DataStore
WARNING: This API CAN CHANGE AT ANY TIME, WITHOUT NOTICE. DO NOT DEPEND ON IT.
| Modifier and Type | Method and Description |
|---|---|
<T extends Resource> |
create(String parentHref,
T resource) |
<T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
Class<? extends R> returnType) |
<T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
Class<? extends R> returnType,
HttpHeaders customHeaders) |
void |
delete(String href) |
<T extends Resource> |
delete(T resource) |
<T extends Resource> |
deleteResourceProperty(T resource,
String propertyName) |
String |
getBaseUrl() |
CacheResolver |
getCacheResolver() |
<T extends Resource> |
getResource(String href,
Class<T> clazz,
Map<String,Object> queryParameters) |
<T extends Resource> |
instantiate(Class<T> clazz,
Map<String,Object> properties) |
<T extends Resource> |
instantiate(Class<T> clazz,
Map<String,Object> properties,
boolean hrefFragment)
Instantiates and returns a new instance of the specified Resource type.
|
<T extends Resource> |
save(String href,
T resource) |
<T extends Resource> |
save(T resource) |
<T extends Resource,R extends Resource> |
save(T resource,
Class<? extends R> returnType) |
getCacheManager, getClientCredentials, getResource, instantiate<T extends Resource> T instantiate(Class<T> clazz, Map<String,Object> properties, boolean hrefFragment)
href to be a fragment, where the baseUrl can be missing and will be added automatically.T - the Resource sub-typeclazz - the Resource class to instantiate.properties - the properties the instantiated resource will havehrefFragment - when true, the baseUrl will be appended to the value found in the href key of the properties map.
If false the href will not be altered and will be kept as-is.<T extends Resource,R extends Resource> R create(String parentHref, T resource, Class<? extends R> returnType)
<T extends Resource,R extends Resource> R create(String parentHref, T resource, Class<? extends R> returnType, HttpHeaders customHeaders)
<T extends Resource> void save(T resource)
<T extends Resource> void delete(T resource)
void delete(String href)
<T extends Resource> void deleteResourceProperty(T resource, String propertyName)
<T extends Resource> T getResource(String href, Class<T> clazz, Map<String,Object> queryParameters)
CacheResolver getCacheResolver()
String getBaseUrl()
Copyright © 2017 Okta. All rights reserved.