org.sakaiproject.profile2.logic
Class ProfileLogicImpl

java.lang.Object
  extended by org.sakaiproject.profile2.logic.ProfileLogicImpl
All Implemented Interfaces:
ProfileLogic

public class ProfileLogicImpl
extends Object
implements ProfileLogic

Implementation of ProfileLogic for Profile2.

Author:
Steve Swinsburg (s.swinsburg@lancaster.ac.uk)

Constructor Summary
ProfileLogicImpl()
           
 
Method Summary
 boolean addNewCompanyProfile(CompanyProfile companyProfile)
          
 List<String> getAllSakaiPersonIds()
          
 int getAllSakaiPersonIdsCount()
          
 BasicPerson getBasicPerson(String userUuid)
          
 BasicPerson getBasicPerson(org.sakaiproject.user.api.User user)
          
 List<BasicPerson> getBasicPersons(List<org.sakaiproject.user.api.User> users)
          
 List<CompanyProfile> getCompanyProfiles(String userId)
          
 Person getPerson(String userUuid)
          
 Person getPerson(org.sakaiproject.user.api.User user)
          
 List<Person> getPersons(List<org.sakaiproject.user.api.User> users)
          
 SocialNetworkingInfo getSocialNetworkingInfo(String userId)
          
 UserProfile getUserProfile(String userUuid)
          
 void init()
           
 boolean removeCompanyProfile(String userId, long companyProfileId)
          
 boolean saveSocialNetworkingInfo(SocialNetworkingInfo socialNetworkingInfo)
          
 boolean saveUserProfile(org.sakaiproject.api.common.edu.person.SakaiPerson sp)
          
 boolean updateCompanyProfile(CompanyProfile companyProfile)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileLogicImpl

public ProfileLogicImpl()
Method Detail

getUserProfile

public UserProfile getUserProfile(String userUuid)

Specified by:
getUserProfile in interface ProfileLogic

saveUserProfile

public boolean saveUserProfile(org.sakaiproject.api.common.edu.person.SakaiPerson sp)

Specified by:
saveUserProfile in interface ProfileLogic

addNewCompanyProfile

public boolean addNewCompanyProfile(CompanyProfile companyProfile)

Specified by:
addNewCompanyProfile in interface ProfileLogic

updateCompanyProfile

public boolean updateCompanyProfile(CompanyProfile companyProfile)

Specified by:
updateCompanyProfile in interface ProfileLogic

getCompanyProfiles

public List<CompanyProfile> getCompanyProfiles(String userId)

Specified by:
getCompanyProfiles in interface ProfileLogic

removeCompanyProfile

public boolean removeCompanyProfile(String userId,
                                    long companyProfileId)

Specified by:
removeCompanyProfile in interface ProfileLogic

getSocialNetworkingInfo

public SocialNetworkingInfo getSocialNetworkingInfo(String userId)

Specified by:
getSocialNetworkingInfo in interface ProfileLogic

saveSocialNetworkingInfo

public boolean saveSocialNetworkingInfo(SocialNetworkingInfo socialNetworkingInfo)

Specified by:
saveSocialNetworkingInfo in interface ProfileLogic

getBasicPerson

public BasicPerson getBasicPerson(String userUuid)

Specified by:
getBasicPerson in interface ProfileLogic

getBasicPerson

public BasicPerson getBasicPerson(org.sakaiproject.user.api.User user)

Specified by:
getBasicPerson in interface ProfileLogic

getBasicPersons

public List<BasicPerson> getBasicPersons(List<org.sakaiproject.user.api.User> users)

Specified by:
getBasicPersons in interface ProfileLogic

getPerson

public Person getPerson(String userUuid)

Specified by:
getPerson in interface ProfileLogic

getPerson

public Person getPerson(org.sakaiproject.user.api.User user)

Specified by:
getPerson in interface ProfileLogic

getPersons

public List<Person> getPersons(List<org.sakaiproject.user.api.User> users)

Specified by:
getPersons in interface ProfileLogic

getAllSakaiPersonIds

public List<String> getAllSakaiPersonIds()

Specified by:
getAllSakaiPersonIds in interface ProfileLogic

getAllSakaiPersonIdsCount

public int getAllSakaiPersonIdsCount()

Specified by:
getAllSakaiPersonIdsCount in interface ProfileLogic

init

public void init()


Copyright © 2008-2012 The Sakai Foundation. All Rights Reserved.