public class CableEndpointsResourceImpl extends Object implements CableEndpointsResource
CableResource interface.| Constructor and Description |
|---|
CableEndpointsResourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<CableEndpointsElement> |
getAllCableEndpoints(String newerThan)
Returns cables with minimal data.
|
static CableEndpointsElement |
getCableEndpointElement(Cable cable)
Creates an instance of
CableElement from database model object Cable. |
CableEndpointsElement |
getCableEndpoints(String number)
Returns a specific cable instance.
|
static Endpoint |
getEndpoint(EndpointElement endpointElement)
Creates an instance of
Endpoint from data transfer object EndpointElement. |
static EndpointElement |
getEndpointElement(Endpoint endpoint)
Creates an instance of
EndpointElement from database model object Endpoint. |
public List<CableEndpointsElement> getAllCableEndpoints(String newerThan)
CableEndpointsResourcegetAllCableEndpoints in interface CableEndpointsResourcenewerThan - a timestamp to filter cables - only cables with timestamp newer than modified will be returnedpublic CableEndpointsElement getCableEndpoints(String number)
CableEndpointsResourcegetCableEndpoints in interface CableEndpointsResourcenumber - the number of the cable to retrievepublic static CableEndpointsElement getCableEndpointElement(Cable cable)
CableElement from database model object Cable.cable - the database model objectpublic static EndpointElement getEndpointElement(Endpoint endpoint)
EndpointElement from database model object Endpoint.endpoint - the database model objectpublic static Endpoint getEndpoint(EndpointElement endpointElement)
Endpoint from data transfer object EndpointElement.endpointElement - the data transfer objectCopyright © 2025 European Spallation Source. All rights reserved.