Class MyProfilSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.socialnetwork.myprofil.control.MyProfilSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class MyProfilSessionController 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 MyProfilSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteMyAccount(HttpRequest request)
List<InvitationUser>
getAllMyInvitationsReceived()
return my invitation list ReceivedList<InvitationUser>
getAllMyInvitationsSent()
return my invitation list sentMap<SocialNetworkID,ExternalAccount>
getAllMyNetworks()
Get all social networks linked to current user accountList<String>
getContactsIdsForUser()
get all RelationShips ids for current user.long
getDomainActions()
UserPreferences
getPreferences()
List<SpaceInstLight>
getSpaceTreeview()
UserFull
getUserFull(String userId)
get this user with full informationboolean
isAdmin()
boolean
isUserDomainRW()
void
modifyUser(String idUser, String userLastName, String userFirstName, String userEMail, String oldPassword, String newPassword, String userLoginQuestion, String userLoginAnswer, HttpRequest request)
void
savePreferences(UserPreferences preferences)
void
unlinkSocialNetworkFromSilverpeas(SocialNetworkID networkId)
boolean
updatablePropertyExists()
-
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
-
MyProfilSessionController
public MyProfilSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
-
-
Method Detail
-
getContactsIdsForUser
public List<String> getContactsIdsForUser()
get all RelationShips ids for current user.- Returns:
- :List
-
getUserFull
public UserFull getUserFull(String userId)
get this user with full information- Parameters:
userId
- the user identifier- 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 oldPassword, String newPassword, String userLoginQuestion, String userLoginAnswer, HttpRequest request) 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
-
updatablePropertyExists
public boolean updatablePropertyExists()
-
getAllMyNetworks
public Map<SocialNetworkID,ExternalAccount> getAllMyNetworks()
Get all social networks linked to current user account- Returns:
- a dictionary in which each social network is mapped to an account of this user in this social network.
-
unlinkSocialNetworkFromSilverpeas
public void unlinkSocialNetworkFromSilverpeas(SocialNetworkID networkId)
-
deleteMyAccount
public boolean deleteMyAccount(HttpRequest request)
-
-