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 |
---|---|
default <T extends Resource> |
create(String parentHref,
T resource)
Creates a new resource and returns the instance as represented by the server.
|
default <T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
Class<? extends R> returnType) |
<T extends Resource> |
create(String parentHref,
T resource,
T parentResource) |
<T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
T parentResource,
Class<? extends R> returnType) |
<T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
T parentResource,
Class<? extends R> returnType,
Map<String,Object> queryParameters) |
<T extends Resource,R extends Resource> |
create(String parentHref,
T resource,
T parentResource,
Class<? extends R> returnType,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
void |
delete(String href) |
void |
delete(String href,
Map<String,Object> queryParameters) |
void |
delete(String href,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
<T extends Resource> |
delete(String href,
T resource)
Deleted a resource on the remote server.
|
<T extends Resource> |
delete(String href,
T resource,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
<T extends Resource> |
delete(T resource) |
String |
getBaseUrl() |
InputStream |
getRawResponse(String href,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
<T extends Resource> |
getResource(String href,
Class<T> clazz,
Map<String,Object> queryParameters) |
<T extends Resource> |
getResource(String href,
Class<T> clazz,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
<T extends Resource> |
instantiate(Class<T> clazz,
Map<String,Object> properties) |
default <T extends Resource> |
save(String href,
T resource)
Saves an exiting resource to the remote server.
|
<T extends Resource,R extends Resource> |
save(String parentHref,
T resource,
Class<? extends R> returnType,
boolean create) |
<T extends Resource> |
save(String href,
T resource,
T parentResource) |
<T extends Resource> |
save(String href,
T resource,
T parentResource,
Map<String,Object> queryParameters) |
<T extends Resource> |
save(String href,
T resource,
T parentResource,
Map<String,Object> queryParameters,
Map<String,List<String>> headerParameters) |
<T extends Resource> |
save(T resource) |
getCacheManager, getClientCredentials, getResource, http, instantiate, isReady
<T extends Resource,R extends Resource> R create(String parentHref, T resource, T parentResource, Class<? extends R> returnType)
<T extends Resource,R extends Resource> R create(String parentHref, T resource, T parentResource, Class<? extends R> returnType, Map<String,Object> queryParameters)
<T extends Resource,R extends Resource> R create(String parentHref, T resource, T parentResource, Class<? extends R> returnType, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
<T extends Resource> void save(T resource)
<T extends Resource> void save(String href, T resource, T parentResource, Map<String,Object> queryParameters)
<T extends Resource> void save(String href, T resource, T parentResource, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
<T extends Resource> void delete(T resource)
<T extends Resource> void delete(String href, T resource)
DataStore
NOTE: this is typically done by using resource.delete()
instead of this method.
void delete(String href)
void delete(String href, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
<T extends Resource> void delete(String href, T resource, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
<T extends Resource> T getResource(String href, Class<T> clazz, Map<String,Object> queryParameters)
<T extends Resource> T getResource(String href, Class<T> clazz, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
String getBaseUrl()
default <T extends Resource> T create(String parentHref, T resource)
DataStore
create
in interface DataStore
T
- type parameter indicating the returned value is a Resource
instance.parentHref
- the resource URL of the resource to retrieveresource
- the object payload to to send to the serverdefault <T extends Resource,R extends Resource> R create(String parentHref, T resource, Class<? extends R> returnType)
default <T extends Resource> void save(String href, T resource)
DataStore
NOTE: this is typically done by using resource.save()
instead of this method.
InputStream getRawResponse(String href, Map<String,Object> queryParameters, Map<String,List<String>> headerParameters)
Copyright © 2017–2023 Okta. All rights reserved.