Interface IUserDatabase
- All Known Implementing Classes:
LocalUserDatabase
public interface IUserDatabase
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAttachment(CharacterHandle handle, Attachment attach) voidcreateCharacter(CharacterHandle handle) Modify a character in the database.voiddeleteAttachment(CharacterHandle handle, Attachment attach) voiddeleteCharacter(CharacterHandle handle) voiddeleteDataset(DatasetDefinition value) voiddeleteDatasetFile(DatasetDefinition value, String name) voiddeleteDatasetLocalization(DatasetDefinition value, String lang) byte[]getAttachmentData(CharacterHandle handle, Attachment attach) getAttachments(CharacterHandle handle) byte[]getDatasetFile(DatasetDefinition value, String name) byte[]getDatasetLocalization(DatasetDefinition value, String lang) voidmodifyAttachment(CharacterHandle handle, Attachment attach) Modify a character in the database.voidmodifyAttachmentData(CharacterHandle handle, Attachment attach) voidmodifyCharacter(CharacterHandle handle) byte[]retrieveAttachment(CharacterHandle handle, Attachment attach) Retrieve data for an attachmentretrieveCharacter(UUID key) Retrieve a character handle complete with all content-less attachmentsvoidstoreDataset(DatasetDefinition value) voidstoreDatasetFile(DatasetDefinition value, String name, byte[] data) voidstoreDatasetLocalization(DatasetDefinition value, String lang, byte[] data)
-
Method Details
-
getCharacters
- Throws:
IOException
-
createCharacter
Modify a character in the database. If it doesn't exist, create it- Throws:
IOException
-
modifyCharacter
- Throws:
IOException
-
deleteCharacter
- Throws:
IOException
-
retrieveCharacter
Retrieve a character handle complete with all content-less attachments- Parameters:
key- Identifier of the character- Returns:
- Throws:
IOException
-
createAttachment
- Throws:
IOException
-
getAttachments
- Throws:
IOException
-
modifyAttachment
Modify a character in the database. If it doesn't exist, create it- Throws:
IOException
-
deleteAttachment
- Throws:
IOException
-
retrieveAttachment
Retrieve data for an attachment- Parameters:
key- Identifier of the character- Returns:
- Throws:
IOException
-
modifyAttachmentData
- Throws:
IOException
-
getAttachmentData
- Throws:
IOException
-
getDatasets
- Throws:
IOException
-
storeDataset
- Throws:
IOException
-
deleteDataset
- Throws:
IOException
-
getDatasetLocalization
- Throws:
IOException
-
storeDatasetLocalization
- Throws:
IOException
-
deleteDatasetLocalization
- Throws:
IOException
-
getDatasetFile
- Throws:
IOException
-
storeDatasetFile
- Throws:
IOException
-
deleteDatasetFile
- Throws:
IOException
-