Class DirectorySessionController

    • 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......
      • getUsersByQuery

        public DirectoryItemList getUsersByQuery​(QueryDescription queryDescription,
                                                 boolean globalSearch)
                                          throws DirectoryException
        get all users corresponding from the search request.
        Parameters:
        queryDescription - the search request
        globalSearch - true if it's a search outside directory (direct from URL)
        Throws:
        DirectoryException - if an error occurs while searching users.
      • 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"
      • getAllUsersOfSpaceTree

        public DirectoryItemList getAllUsersOfSpaceTree​(String spaceId)
        Gets all users specified at space level roles of given space and of component instances of space and its sub-spaces.
        Parameters:
        spaceId - the unique identifier of a space.
      • getOnlyUsersOfSpace

        public DirectoryItemList getOnlyUsersOfSpace​(String spaceId)
        Gets all users specified at space level roles of given space without taking care of component instances of the space and its sub-spaces.
        Parameters:
        spaceId - the unique identifier of a 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()