
public interface DataAccess
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteUserData(String file,
String instance)
Deletes a User from the XML file.
|
void |
deleteUserDataInChe(String instance)
Deletes a given user from CHE
|
ArrayList<OntologyInstance> |
getEmptyCHEFormFields(String instance)
Gets empty ontology instances for creating a user interface
|
ArrayList<OntologyInstance> |
getEmptyProfile(String profile)
Gets an empty ontology profile to create a user interface
|
ArrayList<OntologyInstance> |
getFormFields(String file)
Gets the Datafields of a XML instance to generate a view for
userinterface
|
boolean |
saveUserData(String file,
OntologyInstance ontologyInstnce)
Saves a new Userprofile
|
void |
saveUserDataInCHE(OntologyInstance ont)
Saves user in CHE.
|
void |
updateUserData(String id,
HashMap<String,ArrayList<Subprofile>> subprofiles)
Updates a given user in CHE
|
void |
updateUserData(String file,
String id,
HashMap<String,ArrayList<Subprofile>> subprofiles)
Updates User in XML representation
|
void updateUserData(String file, String id, HashMap<String,ArrayList<Subprofile>> subprofiles)
file - xml file to updateid - ID of the usersubprofiles - A list of updated SubprofilesArrayList<OntologyInstance> getFormFields(String file)
file - xml file, which is unmarshalledboolean deleteUserData(String file, String instance)
file - file where the user is persisted.instance - the user as instanceboolean saveUserData(String file, OntologyInstance ontologyInstnce)
file - xml file in which to saveontologyInstnce - the Userinstance for savingArrayList<OntologyInstance> getEmptyProfile(String profile)
profile - the xml file with the ontology profilevoid saveUserDataInCHE(OntologyInstance ont)
ont - the user instanceArrayList<OntologyInstance> getEmptyCHEFormFields(String instance)
instance - the type (user/device) of ontology instancevoid updateUserData(String id, HashMap<String,ArrayList<Subprofile>> subprofiles)
id - Id of the usersubprofiles - the Subprofiles of the uservoid deleteUserDataInChe(String instance)
instance - the user, who will be deletedCopyright © 2018 universAAL Consortium. All rights reserved.