public class SNClient extends SNService
SNService.ResourceTableconfig, RESPONSE_HEADER_TOTAL_COUNT, RESPONSE_RESULT| Constructor and Description |
|---|
SNClient(SNConnectorConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
createResource(SNService.ResourceTable type,
Resource resource) |
void |
deleteResource(SNService.ResourceTable type,
String id) |
Resource |
getResource(SNService.ResourceTable type,
String id) |
PagedResults<Resource> |
getResources(SNService.ResourceTable type) |
PagedResults<Resource> |
getResources(SNService.ResourceTable type,
Integer startIndex,
Integer count,
Boolean backward) |
PagedResults<Resource> |
getResources(SNService.ResourceTable type,
String filterQuery) |
PagedResults<Resource> |
getResources(SNService.ResourceTable type,
String filterQuery,
Integer startIndex,
Integer count,
Boolean backward) |
boolean |
testService() |
Resource |
updateResource(SNService.ResourceTable type,
Resource resource) |
public SNClient(SNConnectorConfiguration config)
public PagedResults<Resource> getResources(SNService.ResourceTable type)
type - public PagedResults<Resource> getResources(SNService.ResourceTable type, Integer startIndex, Integer count, Boolean backward)
type - startIndex - count - backward - public PagedResults<Resource> getResources(SNService.ResourceTable type, String filterQuery)
type - filterQuery - to filter resultspublic PagedResults<Resource> getResources(SNService.ResourceTable type, String filterQuery, Integer startIndex, Integer count, Boolean backward)
type - filterQuery - startIndex - count - backward - public Resource getResource(SNService.ResourceTable type, String id)
type - id - public Resource createResource(SNService.ResourceTable type, Resource resource)
type - resource - public Resource updateResource(SNService.ResourceTable type, Resource resource)
type - resource - public void deleteResource(SNService.ResourceTable type, String id)
type - id - public boolean testService()
Copyright © 2018–2022. All rights reserved.