public class ResourceRestClient extends BaseRestClient
LOG
Constructor and Description |
---|
ResourceRestClient() |
Modifier and Type | Method and Description |
---|---|
Pair<Boolean,String> |
check(ResourceTO resourceTO) |
static boolean |
check(String coreAddress,
String domain,
String jwt,
String key) |
ResourceTO |
create(ResourceTO resourceTO) |
void |
delete(String name) |
String |
getConnObjectKeyValue(String resource,
String anyTypeKey,
String anyKey) |
List<ResourceTO> |
list() |
ResourceTO |
read(String name) |
ConnObjectTO |
readConnObject(String resource,
String anyTypeKey,
String anyKey) |
void |
removeSyncToken(String key,
String anyType) |
Pair<String,List<ConnObjectTO>> |
searchConnObjects(String resource,
String anyTypeKey,
ConnObjectTOQuery.Builder queryBuilder,
SortParam<String> sortParam) |
void |
setLatestSyncToken(String key,
String anyType) |
void |
update(ResourceTO resourceTO) |
getObject, getService, getService, getStatus, getSyncopeService, resetClient, toOrderBy
public static boolean check(String coreAddress, String domain, String jwt, String key) throws IOException
IOException
public Pair<Boolean,String> check(ResourceTO resourceTO)
public ConnObjectTO readConnObject(String resource, String anyTypeKey, String anyKey)
public String getConnObjectKeyValue(String resource, String anyTypeKey, String anyKey)
public Pair<String,List<ConnObjectTO>> searchConnObjects(String resource, String anyTypeKey, ConnObjectTOQuery.Builder queryBuilder, SortParam<String> sortParam)
public ResourceTO read(String name)
public List<ResourceTO> list()
public ResourceTO create(ResourceTO resourceTO)
public void update(ResourceTO resourceTO)
public void delete(String name)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.