Class ResourceRestClient
- java.lang.Object
-
- org.apache.syncope.client.console.rest.BaseRestClient
-
- org.apache.syncope.client.console.rest.ResourceRestClient
-
- All Implemented Interfaces:
Serializable
,RestClient
public class ResourceRestClient extends BaseRestClient
Console client for invoking Rest Resources services.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.client.console.rest.BaseRestClient
LOG
-
-
Constructor Summary
Constructors Constructor Description ResourceRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(String coreAddress, String domain, String jwt, String key)
Pair<Boolean,String>
check(ResourceTO resourceTO)
ResourceTO
create(ResourceTO resourceTO)
void
delete(String name)
String
getConnObjectKeyValue(String resource, String anyTypeKey, String anyKey)
List<ResourceTO>
list()
ResourceTO
read(String name)
ConnObject
readConnObject(String resource, String anyTypeKey, String anyKey)
void
removeSyncToken(String key, String anyType)
Pair<String,List<ConnObject>>
searchConnObjects(String resource, String anyTypeKey, ConnObjectTOQuery.Builder queryBuilder, SortParam<String> sortParam)
void
setLatestSyncToken(String key, String anyType)
void
update(ResourceTO resourceTO)
-
Methods inherited from class org.apache.syncope.client.console.rest.BaseRestClient
getObject, getService, getService, getStatus, getSyncopeService, resetClient, toOrderBy
-
-
-
-
Method Detail
-
check
public boolean check(String coreAddress, String domain, String jwt, String key) throws IOException
- Throws:
IOException
-
check
public Pair<Boolean,String> check(ResourceTO resourceTO)
-
readConnObject
public ConnObject readConnObject(String resource, String anyTypeKey, String anyKey)
-
getConnObjectKeyValue
public String getConnObjectKeyValue(String resource, String anyTypeKey, String anyKey)
-
searchConnObjects
public Pair<String,List<ConnObject>> searchConnObjects(String resource, String anyTypeKey, ConnObjectTOQuery.Builder queryBuilder, SortParam<String> sortParam)
-
read
public ResourceTO read(String name)
-
list
public List<ResourceTO> list()
-
create
public ResourceTO create(ResourceTO resourceTO)
-
update
public void update(ResourceTO resourceTO)
-
delete
public void delete(String name)
-
-