Interface ContentStoreManager

    • Method Detail

      • getContentStores

        Map<String,​ContentStore> getContentStores()
                                                 throws ContentStoreException
        Gets all available content stores. Each content store uses the default number of retries (3) on call failure.
        Returns:
        a map of content stores to content store IDs
        Throws:
        ContentStoreException - if the content store list cannot be retrieved
      • getContentStores

        Map<String,​ContentStore> getContentStores​(int maxRetries)
                                                 throws ContentStoreException
        Gets all available content stores.
        Parameters:
        maxRetries - number of retries to perform if a content store call fails
        Returns:
        a map of content stores to content store IDs
        Throws:
        ContentStoreException - if the content store list cannot be retrieved
      • getContentStore

        ContentStore getContentStore​(String storeID)
                              throws ContentStoreException
        Gets a specific content store based on ID. Content store uses the default number of retries (3) on call failure.
        Parameters:
        storeID - the ID of a particular content store
        Returns:
        the ContentStore mapped to storeID
        Throws:
        ContentStoreException - if the content store cannot be retrieved
      • getContentStore

        ContentStore getContentStore​(String storeID,
                                     int maxRetries)
                              throws ContentStoreException
        Gets a specific content store based on ID.
        Parameters:
        storeID - the ID of a particular content store
        maxRetries - number of retries to perform if a content store call fails
        Returns:
        the ContentStore mapped to storeID
        Throws:
        ContentStoreException - if the content store cannot be retrieved
      • getPrimaryContentStore

        ContentStore getPrimaryContentStore​(int maxRetries)
                                     throws ContentStoreException
        Gets the primary content store.
        Parameters:
        maxRetries - number of retries to perform if a content store call fails
        Returns:
        the primary ContentStore
        Throws:
        ContentStoreException
      • getPrimaryContentStoreAsAnonymous

        ContentStore getPrimaryContentStoreAsAnonymous()
                                                throws ContentStoreException
        Provides access to the primary content store without requiring login(). Only certain ContentStore activities are permitted to anonymous users, primarily getting content from open spaces. Content store uses the default number of retries (3) on call failure.
        Returns:
        the primary ContentStore
        Throws:
        ContentStoreException
      • getPrimaryContentStoreAsAnonymous

        ContentStore getPrimaryContentStoreAsAnonymous​(int maxRetries)
                                                throws ContentStoreException
        Provides access to the primary content store without requiring login(). Only certain ContentStore activities are permitted to anonymous users, primarily getting content from open spaces.
        Parameters:
        maxRetries - number of retries to perform if a content store call fails
        Returns:
        the primary ContentStore
        Throws:
        ContentStoreException