Class MyContactProfilSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.socialnetwork.mycontactprofil.control.MyContactProfilSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class MyContactProfilSessionController extends AbstractComponentSessionController
- Author:
- Bensalem Nabil
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description MyContactProfilSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCommonContactsIdsForUser(String userId)
get all RelationShips ids for this userList<String>
getContactsIdsForUser(String userId)
get all RelationShips ids for this userUserFull
getUserFull(String userId)
get this user with full informationboolean
isInMyContact(String userId)
this userId is in my Contacts-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
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
- the user identifier- Returns:
- UserFull
-
isInMyContact
public boolean isInMyContact(String userId)
this userId is in my Contacts- Parameters:
userId
- : int userId- Returns:
- true if this user in my Contacts
-
getContactsIdsForUser
public List<String> getContactsIdsForUser(String userId)
get all RelationShips ids for this user- Parameters:
userId
- : int myId- Returns:
- : List
of contact identifiers
-
-