public interface ProfileAgent
org.universAAL.tools.ucc.profile.agent.impl
package; this way the actual
storage of profiles can be expanded to other methods and service providers
can select from these methods the one that fits best and has best
performance, or they can implement their own storage method.Modifier and Type | Method and Description |
---|---|
String |
addDevice(Device device,
Space space) |
String |
addService(AppService service) |
String |
addServiceProf(AppServiceProfile serviceProfile) |
String |
addServicesToSpace(Space space,
AppService serv) |
String |
addSpace(Space space)
Used by uCC
|
String |
addSpaceProfile(SpaceProfile spaceProfile)
For testing
|
void |
addSpaceProfile(User user,
SpaceProfile spaceProfile)
Stores the new
SpaceProfile
that was performed by the user. |
String |
addUser(User user)
The following APIs use Profiling server
|
String |
addUserProfile(User user,
UserProfile userProfile)
Stores the new
UserProfile for
the user with userID. |
String |
addUserSubprofile(UserProfile profile,
SubProfile subProfile) |
String |
addUserSubprofile(User user,
SubProfile subProfile)
Stores the new
SubProfile for the
user with userID. |
String |
changeService(AppService service) |
String |
changeServiceProf(AppServiceProfile serviceProfile) |
void |
changeSpaceProfile(User user,
SpaceProfile spaceProfile)
Changes the existing
SpaceProfile that was
performed by the user. |
void |
changeUserProfile(User user,
UserProfile userProfile)
Changes the existing
UserProfile
for user with userID. |
void |
changeUserSubprofile(User user,
SubProfile subProfile)
Changes the existing
UserProfile
for user with userID. |
boolean |
deleteDevice(String uri) |
boolean |
deleteUser(String uri) |
List<Device> |
getAllDevices(Space space) |
List<User> |
getAllUsers() |
String |
getAppOfServ(AppService service) |
Device |
getDevice(String uri) |
String |
getHROfServ(AppService service) |
String |
getHWOfServ(AppService service) |
String |
getService(AppService service) |
String |
getServiceProf(AppServiceProfile serviceProfile) |
String |
getServices() |
String |
getServicesOfSpace(Space space) |
Space |
getSpace(Space space) |
String |
getSpaceProfile()
APIs for uCC/uStore Web services
|
String |
getSpaceProfile(SpaceProfile spaceProfile) |
List<SpaceProfile> |
getSpaceProfiles(User user)
Returns an
SpaceProfile list
from the profile log that are associated with the given user. |
List<Space> |
getSpaces() |
User |
getUser(String uri) |
String |
getUserProfile(String userId) |
String |
getUserProfile(User user)
Returns an
UserProfile object
from the profile log that are associated with the given user. |
String |
getUserSubprofiles(User user)
Returns all
SubProfile objects
from the profile log that are associated with the given user. |
List |
getUserSubprofiles(UserProfile profile) |
String |
removeService(AppService service) |
String |
removeServiceProf(AppServiceProfile serviceProfile) |
void |
removeSpaceProfile(User user)
Removes the existing
SpaceProfile that was
performed by the user. |
void |
removeUserProfile(User user)
removes the existing
UserProfile
for user with userID. |
void |
removeUserSubprofile(User user,
String subprofile_URI)
removes the existing
UserProfile
for user with userID. |
boolean |
updateDevice(Device device) |
boolean |
updateUser(User user) |
boolean updateUser(User user)
boolean deleteUser(String uri)
String getUserProfile(User user)
UserProfile
object
from the profile log that are associated with the given user.user
- String addUserProfile(User user, UserProfile userProfile)
UserProfile
for
the user with userID.user
- userProfile
- The user profile to be addedvoid changeUserProfile(User user, UserProfile userProfile)
UserProfile
for user with userID.user
- userProfile
- The user profile to be changedvoid removeUserProfile(User user)
UserProfile
for user with userID.user
- String getUserSubprofiles(User user)
SubProfile
objects
from the profile log that are associated with the given user.user
- List getUserSubprofiles(UserProfile profile)
String addUserSubprofile(User user, SubProfile subProfile)
SubProfile
for the
user with userID.user
- subProfile
- The user subprofile to be addedString addUserSubprofile(UserProfile profile, SubProfile subProfile)
void changeUserSubprofile(User user, SubProfile subProfile)
UserProfile
for user with userID.user
- subProfile
- The user subprofile to be changedvoid removeUserSubprofile(User user, String subprofile_URI)
UserProfile
for user with userID.user
- List<SpaceProfile> getSpaceProfiles(User user)
SpaceProfile
list
from the profile log that are associated with the given user.user
- The user who performed the operationvoid addSpaceProfile(User user, SpaceProfile spaceProfile)
SpaceProfile
that was performed by the user.user
- The user who performed the actionspaceProfile
- The space profile for the uservoid changeSpaceProfile(User user, SpaceProfile spaceProfile)
SpaceProfile
that was
performed by the user.user
- spaceProfile
- The space profile for the user to be changedvoid removeSpaceProfile(User user)
SpaceProfile
that was
performed by the user.user
- The user whose space profile is to be removedString addSpaceProfile(SpaceProfile spaceProfile)
boolean updateDevice(Device device)
boolean deleteDevice(String uri)
String getSpaceProfile(SpaceProfile spaceProfile)
String addService(AppService service)
String getService(AppService service)
String changeService(AppService service)
String removeService(AppService service)
String getServices()
String addServiceProf(AppServiceProfile serviceProfile)
String getServiceProf(AppServiceProfile serviceProfile)
String changeServiceProf(AppServiceProfile serviceProfile)
String removeServiceProf(AppServiceProfile serviceProfile)
String addServicesToSpace(Space space, AppService serv)
String getHROfServ(AppService service)
String getHWOfServ(AppService service)
String getAppOfServ(AppService service)
String getSpaceProfile()
Copyright © 2018 universAAL Consortium. All rights reserved.