@Component public class AtomInformationServiceImpl extends java.lang.Object implements AtomInformationService
AtomInformationService.PagedResource<T,E>| Constructor and Description |
|---|
AtomInformationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Connection> |
getConnection(java.net.URI socket,
java.net.URI targetSocket)
Retrieves the connection identified by the specified sockets.
|
java.util.Collection<java.net.URI> |
listAtomURIs()
Retrieves a list of all atoms on the atomserver.
|
java.util.Collection<java.net.URI> |
listAtomURIs(AtomState atomState)
Retrieves a list of all atoms with the given atomState on the atomserver.
|
java.util.Collection<java.net.URI> |
listAtomURIsCreatedAfter(java.util.Date createdAfter,
AtomState atomState)
retrieves atoms that have been modified after a certain date
|
java.util.Collection<java.net.URI> |
listAtomURIsModifiedAfter(java.util.Date modifiedAfter,
AtomState atomState)
retrieves atoms that have been modified after a certain date
|
org.springframework.data.domain.Slice<MessageEvent> |
listConnectionEvents(java.net.URI connectionUri,
int page,
java.lang.Integer preferedPageSize,
WonMessageType messageType) |
org.springframework.data.domain.Slice<MessageEvent> |
listConnectionEventsAfter(java.net.URI connectionUri,
java.net.URI msgURI,
java.lang.Integer preferredPageSize,
WonMessageType msgType) |
org.springframework.data.domain.Slice<MessageEvent> |
listConnectionEventsBefore(java.net.URI connectionUri,
java.net.URI msgURI,
java.lang.Integer preferredPageSize,
WonMessageType msgType) |
java.util.Collection<Connection> |
listConnections()
Retrieves all connections (regardless of state).
|
org.springframework.data.domain.Slice<Connection> |
listConnections(int page,
java.lang.Integer preferedPageSize,
java.util.Date timeSpot)
Retrieves slice of the connection URIs list for a given page number
|
java.util.Collection<Connection> |
listConnections(java.net.URI atomURI)
Retrieves all connections (regardless of state) for the specified local atom
URI.
|
org.springframework.data.domain.Slice<Connection> |
listConnections(java.net.URI atomURI,
int page,
java.lang.Integer preferedPageSize,
WonMessageType messageType,
java.util.Date timeSpot)
Retrieves slice of the list of connections for the specified local atom URI.
|
org.springframework.data.domain.Slice<Connection> |
listConnectionsAfter(java.net.URI resumeConnURI,
java.lang.Integer preferredPageSize,
java.util.Date timeSpot)
Retrieves slice of the connections that follows the given connection URI from
the point of view of their latest events.
|
org.springframework.data.domain.Slice<Connection> |
listConnectionsAfter(java.net.URI atomURI,
java.net.URI resumeConnURI,
java.lang.Integer preferredPageSize,
WonMessageType messageType,
java.util.Date timeSpot)
Retrieves slice of the connections that follows the given connection URI from
the point of view of their latest events.
|
org.springframework.data.domain.Slice<Connection> |
listConnectionsBefore(java.net.URI resumeConnURI,
java.lang.Integer preferredPageSize,
java.util.Date timeSpot)
Retrieves slice of the connections that precede the given connection URI from
the point of view of their latest events.
|
org.springframework.data.domain.Slice<Connection> |
listConnectionsBefore(java.net.URI atomURI,
java.net.URI resumeConnURI,
java.lang.Integer preferredPageSize,
WonMessageType messageType,
java.util.Date timeSpot)
Retrieves slice of the connections for the specified local atom URI that
precede the given connection URI from the point of view of their latest
events.
|
java.util.Collection<java.net.URI> |
listConnectionURIs()
Retrieves all connection URIs (regardless of state).
|
org.springframework.data.domain.Slice<java.net.URI> |
listConnectionURIs(int page,
java.lang.Integer preferedPageSize,
java.util.Date timeSpot)
Deprecated.
|
java.util.Collection<java.net.URI> |
listConnectionURIs(java.net.URI atomURI)
Deprecated.
|
org.springframework.data.domain.Slice<java.net.URI> |
listConnectionURIs(java.net.URI atomURI,
int page,
java.lang.Integer preferedPageSize,
WonMessageType messageType,
java.util.Date timeSpot)
Deprecated.
|
java.util.Collection<Connection> |
listModifiedConnectionsAfter(java.util.Date modifiedAfter)
Retrieves all connections that were modified (by adding events) after a
certain date
|
org.springframework.data.domain.Slice<java.net.URI> |
listPagedAtomURIs(int page,
java.lang.Integer preferedPageSize,
AtomState atomState)
Retrieves a page of the list of atoms on the atomserver that have a given
state with number of atom uris per page preference.
|
org.springframework.data.domain.Slice<java.net.URI> |
listPagedAtomURIsAfter(java.net.URI atomURI,
java.lang.Integer preferedPageSize,
AtomState atomState)
Retrieves list of atoms on the atomserver that where created later than the
given atom that have a given state with number of atom uris per page
preference.
|
org.springframework.data.domain.Slice<java.net.URI> |
listPagedAtomURIsBefore(java.net.URI atomURI,
java.lang.Integer preferedPageSize,
AtomState atomState)
Retrieves list of atoms on the atomserver that where created earlier than the
given atom that have a given state with number of atom uris per page
preference.
|
Atom |
readAtom(java.net.URI atomURI)
Read general information about the atom.
|
DataWithEtag<Atom> |
readAtom(java.net.URI atomURI,
java.lang.String etag)
read atom data including if atom version number is equal to etag
|
org.apache.jena.rdf.model.Model |
readAtomContent(java.net.URI atomURI)
Retrieves the public description of the atom as an RDF graph.
|
Connection |
readConnection(java.net.URI connectionURI)
Read general information about the connection.
|
DataWithEtag<Connection> |
readConnection(java.net.URI connectionURI,
java.lang.String etag)
read connection data including etag if connection version number is equal to
etag
|
org.apache.jena.rdf.model.Model |
readConnectionContent(java.net.URI connectionURI)
Retrieves the public description of the connection as an RDF graph.
|
void |
setAtomRepository(AtomRepository atomRepository) |
void |
setConnectionRepository(ConnectionRepository connectionRepository) |
void |
setPageSize(int pageSize) |
public java.util.Collection<java.net.URI> listAtomURIs()
AtomInformationServicelistAtomURIs in interface AtomInformationServicepublic java.util.Collection<java.net.URI> listAtomURIs(AtomState atomState)
AtomInformationServicelistAtomURIs in interface AtomInformationServiceatomState - State that an atom needs to have to be included.public org.springframework.data.domain.Slice<java.net.URI> listPagedAtomURIs(int page,
java.lang.Integer preferedPageSize,
AtomState atomState)
AtomInformationServicelistPagedAtomURIs in interface AtomInformationServicepage - the page numberpreferedPageSize - preferred number of members per page, null =>
use defaultatomState - Active/Inactive, null => all statespublic org.springframework.data.domain.Slice<java.net.URI> listPagedAtomURIsBefore(java.net.URI atomURI,
java.lang.Integer preferedPageSize,
AtomState atomState)
AtomInformationServicelistPagedAtomURIsBefore in interface AtomInformationServicepreferedPageSize - preferred number of members per page, null =>
use defaultatomState - Active/Inactive, null => all statespublic java.util.Collection<java.net.URI> listAtomURIsModifiedAfter(java.util.Date modifiedAfter,
AtomState atomState)
AtomInformationServicelistAtomURIsModifiedAfter in interface AtomInformationServicemodifiedAfter - modification date of the atoms to retrieveatomState - filterBypublic java.util.Collection<java.net.URI> listAtomURIsCreatedAfter(java.util.Date createdAfter,
AtomState atomState)
AtomInformationServicelistAtomURIsCreatedAfter in interface AtomInformationServicecreatedAfter - modification date of the atoms to retrieveatomState - filterBypublic org.springframework.data.domain.Slice<java.net.URI> listPagedAtomURIsAfter(java.net.URI atomURI,
java.lang.Integer preferedPageSize,
AtomState atomState)
AtomInformationServicelistPagedAtomURIsAfter in interface AtomInformationServicepreferedPageSize - preferred number of members per page, null =>
use defaultatomState - Active/Inactive, null => all statespublic java.util.Collection<java.net.URI> listConnectionURIs()
AtomInformationServicelistConnectionURIs in interface AtomInformationServicepublic java.util.Optional<Connection> getConnection(java.net.URI socket, java.net.URI targetSocket)
AtomInformationServicegetConnection in interface AtomInformationServicepublic java.util.Collection<Connection> listConnections()
AtomInformationServicelistConnections in interface AtomInformationServicepublic java.util.Collection<Connection> listModifiedConnectionsAfter(java.util.Date modifiedAfter)
AtomInformationServicelistModifiedConnectionsAfter in interface AtomInformationServicemodifiedAfter - modification date@Deprecated
public org.springframework.data.domain.Slice<java.net.URI> listConnectionURIs(int page,
java.lang.Integer preferedPageSize,
java.util.Date timeSpot)
AtomInformationServicelistConnectionURIs in interface AtomInformationServicepage - the page numberpreferedPageSize - preferred number of members per page or null; null
=> use defaulttimeSpot - time at which we want the list state to be fixed, if null -
current statepublic org.springframework.data.domain.Slice<Connection> listConnections(int page, java.lang.Integer preferedPageSize, java.util.Date timeSpot)
AtomInformationServicelistConnections in interface AtomInformationServicepage - the page numberpreferedPageSize - preferred number of members per page or null; null
=> use defaulttimeSpot - time at which we want the list state to be fixed, if null -
current statepublic org.springframework.data.domain.Slice<Connection> listConnectionsBefore(java.net.URI resumeConnURI, java.lang.Integer preferredPageSize, java.util.Date timeSpot)
AtomInformationServicelistConnectionsBefore in interface AtomInformationServiceresumeConnURI - the returned slice connections precede (in time of their
latest events) this connection uripreferredPageSize - preferred number of members per page or null; null
=> use defaulttimeSpot - time at which we want the list state to be fixed, cannot be
nullpublic org.springframework.data.domain.Slice<Connection> listConnectionsAfter(java.net.URI resumeConnURI, java.lang.Integer preferredPageSize, java.util.Date timeSpot)
AtomInformationServicelistConnectionsAfter in interface AtomInformationServiceresumeConnURI - the returned slice connections follow (in time of their
latest events) this connection uripreferredPageSize - preferred number of members per page or null; null
=> use defaulttimeSpot - time at which we want the list state to be fixed, cannot be
null@Deprecated
public java.util.Collection<java.net.URI> listConnectionURIs(java.net.URI atomURI)
throws NoSuchAtomException
AtomInformationServicelistConnectionURIs in interface AtomInformationServiceatomURI - the URI of the atomNoSuchAtomException - if atomURI is not a known
atom URIpublic java.util.Collection<Connection> listConnections(java.net.URI atomURI) throws NoSuchAtomException
AtomInformationServicelistConnections in interface AtomInformationServiceatomURI - the URI of the atomNoSuchAtomException - if atomURI is not a known
atom URI@Deprecated
public org.springframework.data.domain.Slice<java.net.URI> listConnectionURIs(java.net.URI atomURI,
int page,
java.lang.Integer preferedPageSize,
WonMessageType messageType,
java.util.Date timeSpot)
AtomInformationServicelistConnectionURIs in interface AtomInformationServiceatomURI - the URI of the atompage - the page numberpreferedPageSize - preferred number of members per page or null; null
=> use defaultmessageType - event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixed, if null -
current statepublic org.springframework.data.domain.Slice<Connection> listConnections(java.net.URI atomURI, int page, java.lang.Integer preferedPageSize, WonMessageType messageType, java.util.Date timeSpot)
AtomInformationServicelistConnections in interface AtomInformationServiceatomURI - the URI of the atompage - the page numberpreferedPageSize - preferred number of members per page or null; null
=> use defaultmessageType - event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixed, if null -
current statepublic org.springframework.data.domain.Slice<Connection> listConnectionsBefore(java.net.URI atomURI, java.net.URI resumeConnURI, java.lang.Integer preferredPageSize, WonMessageType messageType, java.util.Date timeSpot)
AtomInformationServicelistConnectionsBefore in interface AtomInformationServiceresumeConnURI - the returned slice connections precede (in time of their
latest events) this connection uripreferredPageSize - preferred number of members per page or null; null
=> use defaultmessageType - event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixed, cannot be
nullpublic org.springframework.data.domain.Slice<Connection> listConnectionsAfter(java.net.URI atomURI, java.net.URI resumeConnURI, java.lang.Integer preferredPageSize, WonMessageType messageType, java.util.Date timeSpot)
AtomInformationServicelistConnectionsAfter in interface AtomInformationServiceresumeConnURI - the returned slice connections follow (in time of their
latest events) this connection uripreferredPageSize - preferred number of members per page or null; null
=> use defaultmessageType - event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixed, cannot be
nullpublic Atom readAtom(java.net.URI atomURI) throws NoSuchAtomException
AtomInformationServicereadAtom in interface AtomInformationServiceNoSuchAtomExceptionpublic DataWithEtag<Atom> readAtom(java.net.URI atomURI, java.lang.String etag) throws NoSuchAtomException
AtomInformationServicereadAtom in interface AtomInformationServiceatomURI - describes the atom to lookupetag - describes the version of the data to look upNoSuchAtomExceptionpublic org.apache.jena.rdf.model.Model readAtomContent(java.net.URI atomURI)
throws NoSuchAtomException
AtomInformationServicereadAtomContent in interface AtomInformationServiceNoSuchAtomExceptionpublic Connection readConnection(java.net.URI connectionURI) throws NoSuchConnectionException
AtomInformationServicereadConnection in interface AtomInformationServiceNoSuchConnectionExceptionpublic DataWithEtag<Connection> readConnection(java.net.URI connectionURI, java.lang.String etag)
AtomInformationServicereadConnection in interface AtomInformationServiceconnectionURI - describes the connection to lookupetag - describes the version of the data to look uppublic org.apache.jena.rdf.model.Model readConnectionContent(java.net.URI connectionURI)
throws NoSuchConnectionException
AtomInformationServicereadConnectionContent in interface AtomInformationServiceNoSuchConnectionExceptionpublic org.springframework.data.domain.Slice<MessageEvent> listConnectionEvents(java.net.URI connectionUri, int page, java.lang.Integer preferedPageSize, WonMessageType messageType)
listConnectionEvents in interface AtomInformationServicepublic org.springframework.data.domain.Slice<MessageEvent> listConnectionEventsAfter(java.net.URI connectionUri, java.net.URI msgURI, java.lang.Integer preferredPageSize, WonMessageType msgType)
listConnectionEventsAfter in interface AtomInformationServicepublic org.springframework.data.domain.Slice<MessageEvent> listConnectionEventsBefore(java.net.URI connectionUri, java.net.URI msgURI, java.lang.Integer preferredPageSize, WonMessageType msgType)
listConnectionEventsBefore in interface AtomInformationServicepublic void setAtomRepository(AtomRepository atomRepository)
public void setConnectionRepository(ConnectionRepository connectionRepository)
public void setPageSize(int pageSize)
Copyright © 2019. All Rights Reserved.