Package com.ardoq.service
Interface ComponentService
public interface ComponentService
-
Method Summary
Modifier and Type Method Description ComponentcreateComponent(Component component)voidcreateComponent(Component component, retrofit.Callback<Component> callback)retrofit.client.ResponsedeleteComponent(String id)voiddeleteComponent(String id, retrofit.Callback<retrofit.client.Response> callback)List<Component>findComponentsByFields(Map<String,String> fields)Find components by one or more fields.List<Component>findComponentsByFields(Map<String,String> fields, retrofit.Callback<Component> callback)List<Component>findComponentsInWorkspaceByName(String workspaceId, String name)List<Component>findComponentsInWorkspaceByName(String workspaceId, String name, retrofit.Callback<Component> callback)List<Component>getAllComponents()voidgetAllComponents(retrofit.Callback<List<Component>> callback)ComponentgetComponentById(String id)ComponentgetComponentById(String id, Map<String,String> queryParams)voidgetComponentById(String id, Map<String,String> queryParams, retrofit.Callback<Component> callback)voidgetComponentById(String id, retrofit.Callback<Component> callback)ComponentupdateComponent(String id, Component component)Updates a component and returns a NEW immutable component.voidupdateComponent(String id, Component component, retrofit.Callback<Component> callback)
-
Method Details
-
getAllComponents
-
getAllComponents
-
getComponentById
-
getComponentById
-
getComponentById
-
getComponentById
-
findComponentsByFields
@GET("/api/component/fieldsearch") List<Component> findComponentsByFields(@QueryMap Map<String,String> fields)Find components by one or more fields. A field matches if the field equals the query (partial matches are not returned). If multiple fields are passed it will return components where all fields match.- Parameters:
fields- Map<String,String> fieldName -> expectedFieldValue- Returns:
- list of components
-
findComponentsByFields
-
findComponentsInWorkspaceByName
-
findComponentsInWorkspaceByName
-
createComponent
-
createComponent
-
updateComponent
@PUT("/api/component/{id}") Component updateComponent(@Path("id") String id, @Body Component component)Updates a component and returns a NEW immutable component.- Parameters:
id- The ID of the component to updatecomponent- The component's data that you wish to update- Returns:
- updated and synced component
- See Also:
Component
-
updateComponent
-
deleteComponent
-
deleteComponent
@DELETE("/api/component/{id}") void deleteComponent(@Path("id") String id, retrofit.Callback<retrofit.client.Response> callback)
-