Class DirectorySessionController

    • Constructor Detail

      • DirectorySessionController

        public DirectorySessionController​(MainSessionController mainSessionCtrl,
                                          ComponentContext componentContext)
        Standard Session Controller Constructeur
        Parameters:
        mainSessionCtrl - The user's profile
        componentContext - The component's profile
    • Method Detail

      • setMemberPage

        public void setMemberPage​(PaginationPage memberPage)
      • getUsersByIndex

        public DirectoryItemList getUsersByIndex​(String index)
        get all Users that their Last Name begin with 'Index'
        Parameters:
        index - :Alphabetical Index like A,B,C,E......
      • getAllUsersByGroup

        public DirectoryItemList getAllUsersByGroup​(String groupId)
        get all User of the Group who has Id="groupId"
        Parameters:
        groupId - :the ID of group
      • getAllUsersByGroups

        public DirectoryItemList getAllUsersByGroups​(List<String> groupIds,
                                                     String componentId)
        get all Users of the Groups which Id is in "groupIds"
        Parameters:
        groupIds - :a list of groups' ids
      • removeUserFromLists

        public void removeUserFromLists​(User userToRemove)
      • getLastListOfAllUsers

        public DirectoryItemList getLastListOfAllUsers()
        get all User "we keep the last list of All users"
      • getLastListOfUsersCalled

        public DirectoryItemList getLastListOfUsersCalled()
        get the last list of users called "keep the session"
      • getAllUsersBySpace

        public DirectoryItemList getAllUsersBySpace​(String spaceId)
        return All users of Space who has Id="spaceId"
        Parameters:
        spaceId - :the ID of Space
      • mergeUsersIntoDirectoryItemList

        public void mergeUsersIntoDirectoryItemList​(User[] users,
                                                    DirectoryItemList directoryItems)
        Merges given user list into the specified directory list of items. For each given user, if no associated user item exists into directoryItems it is added to the directoryItems. If it does already exist, nothing is done.
        Parameters:
        users - the users to add into directoryItems.
        directoryItems - the list of directory items that will be filled.
      • getAllUsersByDomains

        public DirectoryItemList getAllUsersByDomains()
        return All users of current domains
      • getCurrentView

        public String getCurrentView()
      • setCurrentView

        public void setCurrentView​(String currentView)
      • getCurrentDirectory

        public int getCurrentDirectory()
      • setCurrentDirectory

        public void setCurrentDirectory​(int currentDirectory)
      • getCommonUserDetail

        public UserDetail getCommonUserDetail()
      • getOtherUserDetail

        public UserDetail getOtherUserDetail()
      • getCurrentGroups

        public List<Group> getCurrentGroups()
      • getCurrentDomains

        public List<Domain> getCurrentDomains()
      • setCurrentDomains

        public void setCurrentDomains​(List<String> domainIds)
      • getCurrentQuery

        public String getCurrentQuery()
      • setCurrentQuery

        public void setCurrentQuery​(String currentQuery)
      • getCurrentSort

        public String getCurrentSort()
      • setCurrentSort

        public void setCurrentSort​(String sort)
      • sort

        public void sort​(String sort)
      • getExtraForm

        public Form getExtraForm()
      • getExtraFormContext

        public PagesContext getExtraFormContext()
      • buildQuery

        public QueryDescription buildQuery​(List<org.apache.commons.fileupload.FileItem> items,
                                           boolean globalSearch)
      • clearSearchCriteria

        public void clearSearchCriteria()
      • isQuickUserSelectionEnabled

        public boolean isQuickUserSelectionEnabled()
      • setUseQuickUserSelection

        public void setUseQuickUserSelection​(String value)
      • getContacts

        public DirectoryItemList getContacts​(String componentId,
                                             boolean componentScope)
        Gets contacts of a given 'yellowPages' component.
        Returns:
        the list of complete contact of component.
      • initSources

        public void initSources​(boolean domainsRestriction)
      • setSelectedSource

        public void setSelectedSource​(String id)
      • setDoNotUseContacts

        public void setDoNotUseContacts​(boolean doNotUse)
      • setReferer

        public void setReferer​(String referer)
      • getReferer

        public String getReferer()
      • isExportEnabled

        public boolean isExportEnabled()