public interface ProfileLogic
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNewCompanyProfile(CompanyProfile companyProfile)
Adds a new company profile to the database.
|
List<String> |
getAllSakaiPersonIds()
Get a list of all SakaiPerson's userIds (ie list of all people with profile records)
|
int |
getAllSakaiPersonIdsCount()
Get a count of all users with SakaiPerson records
|
BasicPerson |
getBasicPerson(String userUuid)
Get a BasicPerson
|
BasicPerson |
getBasicPerson(org.sakaiproject.user.api.User user)
Get a BasicPerson
|
List<BasicPerson> |
getBasicPersons(List<org.sakaiproject.user.api.User> users)
Get a List of BasicPersons for the given Users.
|
List<CompanyProfile> |
getCompanyProfiles(String userId)
Retrieves the company profiles from the database for the specified user.
|
Person |
getPerson(String userUuid)
Get a Person
|
Person |
getPerson(org.sakaiproject.user.api.User user)
Get a Person
|
List<Person> |
getPersons(List<org.sakaiproject.user.api.User> users)
Get a List of Persons for the given Users.
|
SocialNetworkingInfo |
getSocialNetworkingInfo(String userId)
Retrieves the social networking information for the specified user from
the database.
|
UserProfile |
getUserProfile(String userUuid)
Get a UserProfile for the given userUuid
All users have profiles, even if they haven't filled it in yet.
|
UserProfile |
getUserProfile(String userUuid,
String siteId)
Get a UserProfile for the given userUuid
All users have profiles, even if they haven't filled it in yet.
|
boolean |
removeCompanyProfile(String userId,
long companyProfile)
Removes the specified company profile for the specified user.
|
boolean |
saveSocialNetworkingInfo(SocialNetworkingInfo socialNetworkingInfo)
Saves the social networking information to the database.
|
boolean |
saveUserProfile(org.sakaiproject.api.common.edu.person.SakaiPerson sp)
Persist a SakaiPerson object and send an email notification, if required.
|
boolean |
updateCompanyProfile(CompanyProfile companyProfile)
Saves an existing company profile in the database.
|
UserProfile getUserProfile(String userUuid)
All users have profiles, even if they haven't filled it in yet. At a very minimum it will contain their name. Privacy checks will determine visibility of other fields
You must be logged-in in order to make requests to this method as the content returned will be tailored to be visible for the currently logged in user.
userUuid - uuid of the user to retrieve the profile forUserProfile getUserProfile(String userUuid, String siteId)
All users have profiles, even if they haven't filled it in yet. At a very minimum it will contain their name. Privacy checks will determine visibility of other fields
You must be logged-in in order to make requests to this method as the content returned will be tailored to be visible for the currently logged in user.
userUuid - uuid of the user to retrieve the profile forsiteId - a site id to check permissions against. Occasionally, site persmissions like roster.viewemail
need to override profile2 permissions.boolean saveUserProfile(org.sakaiproject.api.common.edu.person.SakaiPerson sp)
Note that this may eventually change to UserProfile, when SakaiPerson is reimplemented.
sp - SakaiPerson objboolean addNewCompanyProfile(CompanyProfile companyProfile)
companyProfile - the company profile to add.List<CompanyProfile> getCompanyProfiles(String userId)
userId - the ID of the user to query by.boolean removeCompanyProfile(String userId, long companyProfile)
userId - the ID of the user to query by.companyProfile - the ID of the company profile to remove.boolean updateCompanyProfile(CompanyProfile companyProfile)
addNewCompanyProfile method.companyProfile - the existing company profile to be saved.SocialNetworkingInfo getSocialNetworkingInfo(String userId)
userId - the user to query by.boolean saveSocialNetworkingInfo(SocialNetworkingInfo socialNetworkingInfo)
socialNetworkingInfo - BasicPerson getBasicPerson(String userUuid)
userUuid - BasicPerson getBasicPerson(org.sakaiproject.user.api.User user)
user - List<BasicPerson> getBasicPersons(List<org.sakaiproject.user.api.User> users)
users - Person getPerson(org.sakaiproject.user.api.User user)
user - List<Person> getPersons(List<org.sakaiproject.user.api.User> users)
users - List<String> getAllSakaiPersonIds()
int getAllSakaiPersonIdsCount()
Copyright © 2008-2016 The Sakai Foundation. All Rights Reserved.