Class UserSaveDataDocumentService
java.lang.Object
dev.getelements.elements.service.savedata.UserSaveDataDocumentService
- All Implemented Interfaces:
SaveDataDocumentService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSaveDataDocument(CreateSaveDataDocumentRequest createSaveDataDocumentRequest) Creates a new SaveDataDocument in the database.voiddeleteSaveDocument(String saveDataDocumentId) Deletes the suppliedSaveDataDocument.findSaveDataDocument(String saveDataDocumentId) Finds a save data document with a specified id, returning an emptyOptional<SaveDataDocument>if no such document has been found.getProfileSaveDataDocumentBySlot(String profileId, int slot) Gets a profile-scoped saved data document by user id and slot.getSaveDataDocuments(int offset, int count, String query) Gets all save data documents, filtering by the supplied query string.getSaveDataDocuments(int offset, int count, String userId, String profileId) Gets all save data documents.getUser()getUserSaveDataDocumentBySlot(String userId, int slot) Gets a user-scoped saved data document by user id and slot.voidsetProfileDao(ProfileDao profileDao) voidsetSaveDataDocumentDao(SaveDataDocumentDao saveDataDocumentDao) voidvoidsetUserDao(UserDao userDao) voidsetValidationHelper(ValidationHelper validationHelper) updateSaveDataDocument(String saveDataDocumentId, UpdateSaveDataDocumentRequest updateSaveDataDocumentRequest) Updates theSaveDataDocumentwith the supplied id and theUpdateSaveDataDocumentRequestand theMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.service.savedata.SaveDataDocumentService
getSaveDataDocument
-
Constructor Details
-
UserSaveDataDocumentService
public UserSaveDataDocumentService()
-
-
Method Details
-
findSaveDataDocument
Description copied from interface:SaveDataDocumentServiceFinds a save data document with a specified id, returning an emptyOptional<SaveDataDocument>if no such document has been found.- Specified by:
findSaveDataDocumentin interfaceSaveDataDocumentService- Parameters:
saveDataDocumentId- the save data document id.- Returns:
- an
Optional<SaveDataDocument>
-
getSaveDataDocuments
Description copied from interface:SaveDataDocumentServiceGets all save data documents, filtering by the supplied query string.- Specified by:
getSaveDataDocumentsin interfaceSaveDataDocumentService- Parameters:
offset- the offsetcount- the number of results to returnquery- the query string- Returns:
- a
Pagination<SaveDataDocument>
-
getSaveDataDocuments
public Pagination<SaveDataDocument> getSaveDataDocuments(int offset, int count, String userId, String profileId) Description copied from interface:SaveDataDocumentServiceGets all save data documents. Filtering by userId, profileId, or both.- Specified by:
getSaveDataDocumentsin interfaceSaveDataDocumentService- Parameters:
offset- the offsetcount- the number of resluts to returnuserId- the userId, if blank or null this will be ignoredprofileId- the profileId, if blank or null this will be ignored- Returns:
- a
Pagination<SaveDataDocument>
-
getUserSaveDataDocumentBySlot
Description copied from interface:SaveDataDocumentServiceGets a user-scoped saved data document by user id and slot.- Specified by:
getUserSaveDataDocumentBySlotin interfaceSaveDataDocumentService- Parameters:
userId- the user idslot- the slot- Returns:
- the
SaveDataDocument, never null
-
getProfileSaveDataDocumentBySlot
Description copied from interface:SaveDataDocumentServiceGets a profile-scoped saved data document by user id and slot.- Specified by:
getProfileSaveDataDocumentBySlotin interfaceSaveDataDocumentService- Parameters:
profileId- the profile idslot- the slot- Returns:
- the
SaveDataDocument, never null
-
createSaveDataDocument
public SaveDataDocument createSaveDataDocument(CreateSaveDataDocumentRequest createSaveDataDocumentRequest) Description copied from interface:SaveDataDocumentServiceCreates a new SaveDataDocument in the database.- Specified by:
createSaveDataDocumentin interfaceSaveDataDocumentService- Parameters:
createSaveDataDocumentRequest- the creation request- Returns:
- the created
SaveDataDocument
-
updateSaveDataDocument
public SaveDataDocument updateSaveDataDocument(String saveDataDocumentId, UpdateSaveDataDocumentRequest updateSaveDataDocumentRequest) Description copied from interface:SaveDataDocumentServiceUpdates theSaveDataDocumentwith the supplied id and theUpdateSaveDataDocumentRequestand the- Specified by:
updateSaveDataDocumentin interfaceSaveDataDocumentService- Parameters:
saveDataDocumentId- the save document IDupdateSaveDataDocumentRequest- the update request- Returns:
- the
SaveDataDocumentas it was written to the database
-
deleteSaveDocument
Description copied from interface:SaveDataDocumentServiceDeletes the suppliedSaveDataDocument.- Specified by:
deleteSaveDocumentin interfaceSaveDataDocumentService- Parameters:
saveDataDocumentId- the identifier of the save data document
-
getUser
-
setUser
-
getSaveDataDocumentDao
-
setSaveDataDocumentDao
-
getValidationHelper
-
setValidationHelper
-
getUserDao
-
setUserDao
-
getProfileDao
-
setProfileDao
-