Class RedirectableEntityProviderMock

  • All Implemented Interfaces:
    org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable, org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvable, org.sakaiproject.entitybroker.entityprovider.capabilities.Createable, org.sakaiproject.entitybroker.entityprovider.capabilities.CRUDable, org.sakaiproject.entitybroker.entityprovider.capabilities.Deleteable, org.sakaiproject.entitybroker.entityprovider.capabilities.Describeable, org.sakaiproject.entitybroker.entityprovider.capabilities.Inputable, org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable, org.sakaiproject.entitybroker.entityprovider.capabilities.Redirectable, org.sakaiproject.entitybroker.entityprovider.capabilities.Resolvable, org.sakaiproject.entitybroker.entityprovider.capabilities.RESTful, org.sakaiproject.entitybroker.entityprovider.capabilities.Sampleable, org.sakaiproject.entitybroker.entityprovider.capabilities.Saveable, org.sakaiproject.entitybroker.entityprovider.capabilities.Updateable, org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider, org.sakaiproject.entitybroker.entityprovider.EntityProvider, org.sakaiproject.entitybroker.entityprovider.extension.Formats

    public class RedirectableEntityProviderMock
    extends RESTfulEntityProviderMock
    implements org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider, org.sakaiproject.entitybroker.entityprovider.capabilities.RESTful, org.sakaiproject.entitybroker.entityprovider.capabilities.Redirectable
    Stub class to make it possible to test the Redirectable capabilities, will perform like the actual class so it can be reliably used for testing
    Will perform all CRUDable operations as well as allowing for internal data output processing
    Returns MyEntity objects
    Allows for testing Resolvable and CollectionResolvable as well, returns 2 MyEntity objects if no search restrictions, 1 if "stuff" property is set, none if other properties are set
    Author:
    Aaron Zeckoski (aaron@caret.cam.ac.uk)
    • Field Summary

      • Fields inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable

        ACTION_METHOD_SUFFIX
      • Fields inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvable

        SEARCH_LOCATION_REFERENCE, SEARCH_TAGS, SEARCH_USER_REFERENCE
      • Fields inherited from interface org.sakaiproject.entitybroker.entityprovider.extension.Formats

        ALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE