Interface QuestionPoolServiceAPI


  • public interface QuestionPoolServiceAPI
    The QuestionPoolServiceAPI declares a shared interface to control question pool information.
    Author:
    Ed Smiley
    • Method Detail

      • getAllPools

        List getAllPools​(String agentId)
        Get all pools from the back end.
      • getBasicInfoOfAllPools

        List getBasicInfoOfAllPools​(String agentId)
        Get basic info for pools(just id and title) for displaying in pulldown .
      • getPoolIdsByItem

        List getPoolIdsByItem​(Long itemId)
        Get a list of pools that have a specific item
      • hasItem

        boolean hasItem​(Long itemId,
                        Long poolId)
      • getPoolIdsByAgent

        List getPoolIdsByAgent​(String agentId)
        Get pool id's by agent.
      • getSubPools

        List getSubPools​(Long poolId)
        Get a list of pools that have a specific parent
      • getSubPoolSize

        long getSubPoolSize​(Long poolId)
        Get the size of a subpool.
      • hasSubPools

        boolean hasSubPools​(Long poolId)
        Checks to see if a pool has subpools
      • getAllItems

        List getAllItems​(Long poolId)
        Get all scores for a published assessment from the back end.
      • addItemToPool

        void addItemToPool​(Long itemId,
                           Long poolId)
        Save a question to a pool.
      • moveItemToPool

        void moveItemToPool​(Long itemId,
                            Long sourceId,
                            Long destId)
        Move a question to a pool.
      • isDescendantOf

        boolean isDescendantOf​(Long poolA,
                               Long poolB,
                               String agentId)
        Is a pool a descendant of the other?
      • movePool

        void movePool​(String agentId,
                      Long sourceId,
                      Long destId)
        Move a subpool to a pool.
      • deletePool

        void deletePool​(Long poolId,
                        String agentId,
                        Tree tree)
        Delete a pool
      • removeQuestionFromPool

        void removeQuestionFromPool​(Long questionId,
                                    Long poolId)
        removes a Question from the question pool. This does not *delete* the question itself
      • copyPool

        void copyPool​(Tree tree,
                      String agentId,
                      Long sourceId,
                      Long destId,
                      String prependString1,
                      String prependString2)
        Copy a subpool to a pool.
      • getQuestionPoolItemMap

        Map getQuestionPoolItemMap()
      • getUserPoolAttachmentReport

        String getUserPoolAttachmentReport​(String userId,
                                           Long poolId,
                                           String contextToReplace)