org.universAAL.context.prof.serv
Class SCaller

Package class diagram package SCaller
java.lang.Object
  extended by org.universAAL.context.prof.serv.SCaller

public class SCaller
extends Object

Takes care of asking the CHE the equivalent request to the call received by the profiling server.

Author:
alfiva

Constructor Summary
protected SCaller(ModuleContext context)
          Default constructor.
 
Method Summary
protected  void addProfile(Resource input)
           
protected  void addProfileToUser(Resource user, Resource profile)
           
protected  void addSubProfile(Resource input)
           
protected  void addSubProfileToProf(Resource profile, Resource subprofile)
           
protected  void addSubProfileToUser(Resource user, Resource subprofile)
           
protected  void addUser(Resource input)
           
protected  void changeProfile(Resource input)
           
protected  void changeSubProfile(Resource input)
           
protected  void changeUser(Resource input)
           
 void close()
          Relay for the actual SCaller.
protected  Resource getProfile(Resource input)
           
protected  Resource getProfileOfUser(Resource user)
           
protected  Resource getSubProfile(Resource input)
           
protected  ArrayList getSubProfilesOfProfile(Resource profile)
           
protected  ArrayList getSubProfilesOfUser(Resource user)
           
protected  Resource getUser(Resource input)
           
protected  ArrayList getUsers()
           
protected  void removeProfile(Resource input)
           
protected  void removeSubProfile(Resource input)
           
protected  void removeUser(Resource input)
           
static String[] splitPrefixes(String serialized)
          Splits a Turtle serialized string into prefixes and content, so it can be used inside SPARQL queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCaller

protected SCaller(ModuleContext context)
Default constructor.

Parameters:
mcontext - uAAL Module mcontext.
Method Detail

close

public void close()
Relay for the actual SCaller.


getUser

protected Resource getUser(Resource input)

addUser

protected void addUser(Resource input)

changeUser

protected void changeUser(Resource input)

removeUser

protected void removeUser(Resource input)

getProfile

protected Resource getProfile(Resource input)

addProfile

protected void addProfile(Resource input)

changeProfile

protected void changeProfile(Resource input)

removeProfile

protected void removeProfile(Resource input)

getSubProfile

protected Resource getSubProfile(Resource input)

addSubProfile

protected void addSubProfile(Resource input)

changeSubProfile

protected void changeSubProfile(Resource input)

removeSubProfile

protected void removeSubProfile(Resource input)

getUsers

protected ArrayList getUsers()

getProfileOfUser

protected Resource getProfileOfUser(Resource user)

getSubProfilesOfUser

protected ArrayList getSubProfilesOfUser(Resource user)

getSubProfilesOfProfile

protected ArrayList getSubProfilesOfProfile(Resource profile)

addProfileToUser

protected void addProfileToUser(Resource user,
                                Resource profile)

addSubProfileToUser

protected void addSubProfileToUser(Resource user,
                                   Resource subprofile)

addSubProfileToProf

protected void addSubProfileToProf(Resource profile,
                                   Resource subprofile)

splitPrefixes

public static String[] splitPrefixes(String serialized)
Splits a Turtle serialized string into prefixes and content, so it can be used inside SPARQL queries.

Parameters:
serialized - The turtle string
Returns:
An array of length 2. The first item [0] is the string with the prefixes, and the second [1] is the string with the triples content


Copyright © 2014 universAAL Consortium. All Rights Reserved.