|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.dao.ProfileDAO
public class ProfileDAO
Data Access Object providing nice interface to model with user profiles. descriptions. It can be used to as work-around to access some OWL data, not accessible via Jastor-generated Java beans.
Constructor Summary | |
---|---|
ProfileDAO(Model mbaseProfilesDB)
Constructs ProfileDAO object providing interface to the
given model with user profiles. |
|
ProfileDAO(OntModel mProfilesDB)
Constructs ProfileDAO object providing interface to the
given model with user profiles. |
Method Summary | |
---|---|
Opinion |
getUserOpinionAbout(Integer userID,
String concept)
Returns opinion about the given opinion stated by the given user. |
UserProfile |
getUserProfile(int userID)
Returns profile for the user with given ID. |
UserProfile |
getUserProfileByID(Integer userID)
Returns profile for the user with given ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileDAO(Model mbaseProfilesDB)
ProfileDAO
object providing interface to the
given model with user profiles. This construct can be used, when there is
not direct access to ontology model with profile, but only to its base
part, e.g. when we operate on Thing
or
Resource
object.
mbaseProfilesDB
- is a model with user profiles.Thing
,
Resource
public ProfileDAO(OntModel mProfilesDB)
ProfileDAO
object providing interface to the
given model with user profiles.
mProfilesDB
- is a model with user profiles.Method Detail |
---|
public UserProfile getUserProfile(int userID) throws UnknownUserProfileException
userID
- is id of a user.
UnknownUserProfileException
- when profile for the given user cannot be found.public Opinion getUserOpinionAbout(Integer userID, String concept)
userID
- is ID of a user.concept
- is concept objected by the opinion.
null
.public UserProfile getUserProfileByID(Integer userID)
userID
- is ID of a user
null
, when there is no profile
for the given user ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |