
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 ProfileAgentuser - public User getUser(User user)
user - public User getUser(String uri)
getUser in interface ProfileAgentpublic List<User> getAllUsers()
getAllUsers in interface ProfileAgentpublic boolean updateUser(User user)
updateUser in interface ProfileAgentpublic boolean deleteUser(String uri)
deleteUser in interface ProfileAgentpublic String addUserProfile(UserProfile profile)
public String getUserProfile(User user)
ProfileAgentUserProfile object
from the profile log that are associated with the given user.getUserProfile in interface ProfileAgentpublic String addUserProfile(User user, UserProfile profile)
ProfileAgentUserProfile for
the user with userID.addUserProfile in interface ProfileAgentprofile - The user profile to be addedpublic void changeUserProfile(User user, UserProfile userProfile)
ProfileAgentUserProfile
for user with userID.changeUserProfile in interface ProfileAgentuserProfile - The user profile to be changedpublic void removeUserProfile(User user)
ProfileAgentUserProfile
for user with userID.removeUserProfile in interface ProfileAgentpublic List getSpaceProfiles(User user)
ProfileAgentSpaceProfile list
from the profile log that are associated with the given user.getSpaceProfiles in interface ProfileAgentuser - The user who performed the operationpublic void addSpaceProfile(User user, SpaceProfile spaceProfile)
ProfileAgentSpaceProfile
that was performed by the user.addSpaceProfile in interface ProfileAgentuser - The user who performed the actionspaceProfile - The space profile for the userpublic void changeSpaceProfile(User user, SpaceProfile spaceProfile)
ProfileAgentSpaceProfile that was
performed by the user.changeSpaceProfile in interface ProfileAgentspaceProfile - The space profile for the user to be changedpublic void removeSpaceProfile(User user)
ProfileAgentSpaceProfile that was
performed by the user.removeSpaceProfile in interface ProfileAgentuser - The user whose space profile is to be removedpublic String addSubProfile(SubProfile profile)
public SubProfile getSubProfile(SubProfile profile)
public String getUserSubprofiles(User user)
ProfileAgentSubProfile objects
from the profile log that are associated with the given user.getUserSubprofiles in interface ProfileAgentpublic String addUserSubprofile(User user, SubProfile subProfile)
ProfileAgentSubProfile for the
user with userID.addUserSubprofile in interface ProfileAgentsubProfile - The user subprofile to be addedpublic void changeUserSubprofile(User user, SubProfile subProfile)
ProfileAgentUserProfile
for user with userID.changeUserSubprofile in interface ProfileAgentsubProfile - The user subprofile to be changedpublic void removeUserSubprofile(User user, String subprofile_URI)
ProfileAgentUserProfile
for user with userID.removeUserSubprofile in interface ProfileAgentpublic List getUserSubprofiles(UserProfile profile)
getUserSubprofiles in interface ProfileAgentpublic String addUserSubprofile(UserProfile userProfile, SubProfile subProfile)
addUserSubprofile in interface ProfileAgentpublic String addSpace(Space space)
addSpace in interface ProfileAgentpublic Space getSpace(Space space)
getSpace in interface ProfileAgentpublic List<Space> getSpaces()
getSpaces in interface ProfileAgentpublic String addSpaceProfile(SpaceProfile spaceProfile)
ProfileAgentaddSpaceProfile in interface ProfileAgentpublic String addDevice(Device device, Space space)
addDevice in interface ProfileAgentpublic Device getDevice(String uri)
getDevice in interface ProfileAgentpublic boolean updateDevice(Device device)
updateDevice in interface ProfileAgentpublic boolean deleteDevice(String uri)
deleteDevice in interface ProfileAgentpublic List<Device> getAllDevices(Space space)
getAllDevices in interface ProfileAgentpublic String getSpaceProfile(SpaceProfile spaceProfile)
getSpaceProfile in interface ProfileAgentpublic String addService(AppService service)
addService in interface ProfileAgentpublic String getService(AppService service)
getService in interface ProfileAgentpublic String getServices()
getServices in interface ProfileAgentpublic String changeService(AppService service)
changeService in interface ProfileAgentpublic String removeService(AppService service)
removeService in interface ProfileAgentpublic String addServiceProf(AppServiceProfile serviceProfile)
addServiceProf in interface ProfileAgentpublic String getServiceProf(AppServiceProfile serviceProfile)
getServiceProf in interface ProfileAgentpublic String changeServiceProf(AppServiceProfile serviceProfile)
changeServiceProf in interface ProfileAgentpublic String removeServiceProf(AppServiceProfile serviceProfile)
removeServiceProf in interface ProfileAgentpublic String addServicesToSpace(Space space, AppService serv)
addServicesToSpace in interface ProfileAgentpublic String getServicesOfSpace(Space space)
getServicesOfSpace in interface ProfileAgentpublic String getHROfServ(AppService service)
getHROfServ in interface ProfileAgentpublic String getHWOfServ(AppService service)
getHWOfServ in interface ProfileAgentpublic String getAppOfServ(AppService service)
getAppOfServ in interface ProfileAgentpublic String getSpaceProfile()
getSpaceProfile in interface ProfileAgentpublic String getUserProfile(String userID)
getUserProfile in interface ProfileAgentCopyright © 2018 universAAL Consortium. All rights reserved.