public class ProfileAgentImpl extends Object implements ProfileAgent
Constructor and Description |
---|
ProfileAgentImpl(ModuleContext context) |
Modifier and Type | Method and Description |
---|---|
String |
addDevice(Device device) |
String |
addDevice(Device device,
Space space) |
String |
addDeviceToSpace(Device dev,
Space space) |
String |
addService(AppService service) |
String |
addServiceProf(AppServiceProfile serviceProfile) |
String |
addServicesToSpace(Space space,
AppService serv) |
String |
addSpace(Space space)
use space server
|
String |
addSpaceProfile(SpaceProfile spaceProfile)
For testing
|
void |
addSpaceProfile(User user,
SpaceProfile spaceProfile)
Stores the new
SpaceProfile
that was performed by the user. |
String |
addSubProfile(SubProfile profile) |
String |
addUser(User user)
add user to CHE via Profiling server
|
String |
addUserProfile(UserProfile profile) |
String |
addUserProfile(User user,
UserProfile profile)
Stores the new
UserProfile for
the user with userID. |
String |
addUserSubprofile(UserProfile userProfile,
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) |
String |
getDevice(Device device) |
Device |
getDevice(String uri) |
String |
getDevicesOfSpace(Space space) |
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()
For uCC/uStore Web service
|
String |
getSpaceProfile(SpaceProfile spaceProfile) |
List |
getSpaceProfiles(User user)
Returns an
SpaceProfile list
from the profile log that are associated with the given user. |
List<Space> |
getSpaces() |
SubProfile |
getSubProfile(SubProfile profile) |
User |
getUser(String uri) |
User |
getUser(User user)
get user from CHE
|
String |
getUserProfile(String userID)
get user profile for user with userId (use Profiling server)
|
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) |
public ProfileAgentImpl(ModuleContext context)
public String addUser(User user)
addUser
in interface ProfileAgent
user
- public User getUser(User user)
user
- public User getUser(String uri)
getUser
in interface ProfileAgent
public List<User> getAllUsers()
getAllUsers
in interface ProfileAgent
public boolean updateUser(User user)
updateUser
in interface ProfileAgent
public boolean deleteUser(String uri)
deleteUser
in interface ProfileAgent
public String addUserProfile(UserProfile profile)
public String getUserProfile(User user)
ProfileAgent
UserProfile
object
from the profile log that are associated with the given user.getUserProfile
in interface ProfileAgent
public String addUserProfile(User user, UserProfile profile)
ProfileAgent
UserProfile
for
the user with userID.addUserProfile
in interface ProfileAgent
profile
- The user profile to be addedpublic void changeUserProfile(User user, UserProfile userProfile)
ProfileAgent
UserProfile
for user with userID.changeUserProfile
in interface ProfileAgent
userProfile
- The user profile to be changedpublic void removeUserProfile(User user)
ProfileAgent
UserProfile
for user with userID.removeUserProfile
in interface ProfileAgent
public List getSpaceProfiles(User user)
ProfileAgent
SpaceProfile
list
from the profile log that are associated with the given user.getSpaceProfiles
in interface ProfileAgent
user
- The user who performed the operationpublic void addSpaceProfile(User user, SpaceProfile spaceProfile)
ProfileAgent
SpaceProfile
that was performed by the user.addSpaceProfile
in interface ProfileAgent
user
- The user who performed the actionspaceProfile
- The space profile for the userpublic void changeSpaceProfile(User user, SpaceProfile spaceProfile)
ProfileAgent
SpaceProfile
that was
performed by the user.changeSpaceProfile
in interface ProfileAgent
spaceProfile
- The space profile for the user to be changedpublic void removeSpaceProfile(User user)
ProfileAgent
SpaceProfile
that was
performed by the user.removeSpaceProfile
in interface ProfileAgent
user
- The user whose space profile is to be removedpublic String addSubProfile(SubProfile profile)
public SubProfile getSubProfile(SubProfile profile)
public String getUserSubprofiles(User user)
ProfileAgent
SubProfile
objects
from the profile log that are associated with the given user.getUserSubprofiles
in interface ProfileAgent
public String addUserSubprofile(User user, SubProfile subProfile)
ProfileAgent
SubProfile
for the
user with userID.addUserSubprofile
in interface ProfileAgent
subProfile
- The user subprofile to be addedpublic void changeUserSubprofile(User user, SubProfile subProfile)
ProfileAgent
UserProfile
for user with userID.changeUserSubprofile
in interface ProfileAgent
subProfile
- The user subprofile to be changedpublic void removeUserSubprofile(User user, String subprofile_URI)
ProfileAgent
UserProfile
for user with userID.removeUserSubprofile
in interface ProfileAgent
public List getUserSubprofiles(UserProfile profile)
getUserSubprofiles
in interface ProfileAgent
public String addUserSubprofile(UserProfile userProfile, SubProfile subProfile)
addUserSubprofile
in interface ProfileAgent
public String addSpace(Space space)
addSpace
in interface ProfileAgent
public Space getSpace(Space space)
getSpace
in interface ProfileAgent
public List<Space> getSpaces()
getSpaces
in interface ProfileAgent
public String addSpaceProfile(SpaceProfile spaceProfile)
ProfileAgent
addSpaceProfile
in interface ProfileAgent
public String addDevice(Device device, Space space)
addDevice
in interface ProfileAgent
public Device getDevice(String uri)
getDevice
in interface ProfileAgent
public boolean updateDevice(Device device)
updateDevice
in interface ProfileAgent
public boolean deleteDevice(String uri)
deleteDevice
in interface ProfileAgent
public List<Device> getAllDevices(Space space)
getAllDevices
in interface ProfileAgent
public String getSpaceProfile(SpaceProfile spaceProfile)
getSpaceProfile
in interface ProfileAgent
public String addService(AppService service)
addService
in interface ProfileAgent
public String getService(AppService service)
getService
in interface ProfileAgent
public String getServices()
getServices
in interface ProfileAgent
public String changeService(AppService service)
changeService
in interface ProfileAgent
public String removeService(AppService service)
removeService
in interface ProfileAgent
public String addServiceProf(AppServiceProfile serviceProfile)
addServiceProf
in interface ProfileAgent
public String getServiceProf(AppServiceProfile serviceProfile)
getServiceProf
in interface ProfileAgent
public String changeServiceProf(AppServiceProfile serviceProfile)
changeServiceProf
in interface ProfileAgent
public String removeServiceProf(AppServiceProfile serviceProfile)
removeServiceProf
in interface ProfileAgent
public String addServicesToSpace(Space space, AppService serv)
addServicesToSpace
in interface ProfileAgent
public String getServicesOfSpace(Space space)
getServicesOfSpace
in interface ProfileAgent
public String getHROfServ(AppService service)
getHROfServ
in interface ProfileAgent
public String getHWOfServ(AppService service)
getHWOfServ
in interface ProfileAgent
public String getAppOfServ(AppService service)
getAppOfServ
in interface ProfileAgent
public String getSpaceProfile()
getSpaceProfile
in interface ProfileAgent
public String getUserProfile(String userID)
getUserProfile
in interface ProfileAgent
Copyright © 2018 universAAL Consortium. All rights reserved.