com.silverpeas.socialnetwork.myProfil.control
Class MyProfilSessionController

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

public class MyProfilSessionController
extends AbstractComponentSessionController

Author:
Bensalem Nabil

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
MyProfilSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
           
 
Method Summary
 void acceptInvitation(String invitationId)
           
 List<InvitationUser> getAllMyInvitationsReceived()
          return my invitation list Received
 List<InvitationUser> getAllMyInvitationsSent()
          return my invitation list sent
 Map<SocialNetworkID,ExternalAccount> getAllMyNetworks()
          Get all social networks linked to current user account
 List<String> getContactsIdsForUser(String userId)
          get all RelationShips ids for this user.
 long getDomainActions()
           
 UserPreferences getPreferences()
           
 List<SpaceInstLight> getSpaceTreeview()
           
 UserFull getUserFul(String userId)
          get this user with full information
 void ignoreInvitation(String id)
           
 boolean isAdmin()
           
 boolean isUserDomainRW()
           
 void modifyUser(String idUser, String userLastName, String userFirstName, String userEMail, String userAccessLevel, String oldPassword, String newPassword, String userLoginQuestion, String userLoginAnswer, Map<String,String> properties)
           
 void savePreferences(UserPreferences preferences)
           
 void sendInvitation(String receiverId, String message)
           
 void unlinkSocialNetworkFromSilverpeas(SocialNetworkID networkId)
           
 boolean updatablePropertyExists()
           
 
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

MyProfilSessionController

public MyProfilSessionController(MainSessionController mainSessionCtrl,
                                 ComponentContext componentContext)
Method Detail

getContactsIdsForUser

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


getUserFul

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

Parameters:
userId -
Returns:
UserFull

isUserDomainRW

public boolean isUserDomainRW()

isAdmin

public boolean isAdmin()

getDomainActions

public long getDomainActions()

modifyUser

public void modifyUser(String idUser,
                       String userLastName,
                       String userFirstName,
                       String userEMail,
                       String userAccessLevel,
                       String oldPassword,
                       String newPassword,
                       String userLoginQuestion,
                       String userLoginAnswer,
                       Map<String,String> properties)
                throws AuthenticationException,
                       AdminException
Throws:
AuthenticationException
AdminException

getPreferences

public UserPreferences getPreferences()

savePreferences

public void savePreferences(UserPreferences preferences)

getSpaceTreeview

public List<SpaceInstLight> getSpaceTreeview()

getAllMyInvitationsSent

public List<InvitationUser> getAllMyInvitationsSent()
return my invitation list sent

Returns:
List

getAllMyInvitationsReceived

public List<InvitationUser> getAllMyInvitationsReceived()
return my invitation list Received

Returns:
List

sendInvitation

public void sendInvitation(String receiverId,
                           String message)

ignoreInvitation

public void ignoreInvitation(String id)
Parameters:
id - the invitation identifier
See Also:
InvitationService.ignoreInvitation(int)

acceptInvitation

public void acceptInvitation(String invitationId)
Parameters:
invitationId - the invitation identifier

updatablePropertyExists

public boolean updatablePropertyExists()

getAllMyNetworks

public Map<SocialNetworkID,ExternalAccount> getAllMyNetworks()
Get all social networks linked to current user account

Returns:

unlinkSocialNetworkFromSilverpeas

public void unlinkSocialNetworkFromSilverpeas(SocialNetworkID networkId)


Copyright © 2016 Silverpeas. All Rights Reserved.