Package MarcSync
Klasse Collection
java.lang.Object
MarcSync.Collection
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCollection(String accessToken, String collectionName) Creates a new instance of the MarcSync collection -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateEntry(EntryData entryData) Creates an entry in the collectionvoiddeleteEntries(EntryData filters) Deletes the entries matching with the specified filtervoidDeletes the entry with the specified IDvoiddrop()Warning:booleanexists()Entry[]getEntries(EntryData filters) getEntryById(String id) getName()voidupdateEntries(EntryData filters, EntryData entryData) Updates the entries matching with the specified filtervoidupdateEntryById(String id, EntryData entryData) Updates the entry with the specified ID
-
Konstruktordetails
-
Collection
Creates a new instance of the MarcSync collection- Parameter:
accessToken- The access token to use for communication with MarcSynccollectionName- The name of the collection to use- Siehe auch:
-
-
Methodendetails
-
drop
Warning:- Löst aus:
URISyntaxExceptionIOException-Note: This method will delete the collection and all of its entries. This action cannot be undone.
-
setName
- Gibt zurück:
- The name of the collection
- Löst aus:
URISyntaxExceptionIOException
-
getName
- Gibt zurück:
- The name of the collection
-
exists
public boolean exists()- Gibt zurück:
- Whether or not the collection exists
Note: This method is useful if you want to fetch the collection from the server to check if it exists before using it.
-
createEntry
Creates an entry in the collection- Gibt zurück:
- A new instance of the MarcSync entry
- Löst aus:
URISyntaxExceptionIOException
-
getEntryById
- Gibt zurück:
- The entry with the specified ID
- Löst aus:
URISyntaxExceptionIOExceptionInterruptedException
-
getEntries
public Entry[] getEntries(EntryData filters) throws IOException, InterruptedException, URISyntaxException - Gibt zurück:
- The entries with the specified filter
Note: This method is useful if you want to fetch multiple entries from the server at once.
- Löst aus:
IOExceptionInterruptedExceptionURISyntaxException- Siehe auch:
-
deleteEntryById
Deletes the entry with the specified IDNote: Will delete the entry from the collection. This action cannot be undone.
- Löst aus:
URISyntaxExceptionIOException
-
deleteEntries
Deletes the entries matching with the specified filterNote: Will delete the matching entries from the collection. This action cannot be undone.
- Löst aus:
URISyntaxExceptionIOException- Siehe auch:
-
updateEntryById
Updates the entry with the specified ID- Löst aus:
URISyntaxExceptionIOException- Siehe auch:
-
updateEntries
public void updateEntries(EntryData filters, EntryData entryData) throws URISyntaxException, IOException Updates the entries matching with the specified filter- Löst aus:
URISyntaxExceptionIOException- Siehe auch:
-