com.silverpeas.socialnetwork.myContactProfil.control
Class MyContactProfilSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.silverpeas.socialnetwork.myContactProfil.control.MyContactProfilSessionController
All Implemented Interfaces:
ComponentSessionController

public class MyContactProfilSessionController
extends AbstractComponentSessionController

Author:
Bensalem Nabil

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
MyContactProfilSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
           
 
Method Summary
 List<String> getCommonContactsIdsForUser(String userId)
          get all RelationShips ids for this user
 List<String> getContactsIdsForUser(String userId)
          get all RelationShips ids for this user
 UserFull getUserFull(String userId)
          get this user with full information
 boolean isInMyContact(String userId)
          this userId is in my Contacts
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyContactProfilSessionController

public MyContactProfilSessionController(MainSessionController mainSessionCtrl,
                                        ComponentContext componentContext)
Parameters:
mainSessionCtrl -
componentContext -
Method Detail

getUserFull

public UserFull getUserFull(String userId)
get this user with full information

Parameters:
userId -
Returns:
UserFull

isInMyContact

public boolean isInMyContact(String userId)
                      throws SocialNetworkException
this userId is in my Contacts

Returns:
true if this user in my Contacts
Throws:
SocialNetworkException

getContactsIdsForUser

public List<String> getContactsIdsForUser(String userId)
get all RelationShips ids for this user


getCommonContactsIdsForUser

public List<String> getCommonContactsIdsForUser(String userId)
get all RelationShips ids for this user



Copyright © 2016 Silverpeas. All Rights Reserved.