Class ExternalIntegrationProviderMock
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.external.ExternalIntegrationProviderMock
-
- All Implemented Interfaces:
LearningTrackingProvider,ExternalIntegrationProvider
public class ExternalIntegrationProviderMock extends Object implements ExternalIntegrationProvider
A mock which provides a placeholder class to handle external integration- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Field Summary
-
Fields inherited from interface org.sakaiproject.entitybroker.providers.ExternalIntegrationProvider
SESSION_ID
-
-
Constructor Summary
Constructors Constructor Description ExternalIntegrationProviderMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectfetchEntity(String reference)<T> TfindService(Class<T> type)voidfireEvent(String eventName, String reference)<T> TgetConfigurationSetting(String settingName, T defaultValue)StringgetMaxJSONLevel()StringgetServerUrl()StringhandleEntityError(HttpServletRequest req, Throwable error)voidhandleUserSessionKey(HttpServletRequest req)voidregisterStatement(String prefix, String actorEmail, String verbStr, String objectURI, Boolean resultSuccess, Float resultScaledScore)
-
-
-
Method Detail
-
fetchEntity
public Object fetchEntity(String reference)
- Specified by:
fetchEntityin interfaceExternalIntegrationProvider
-
fireEvent
public void fireEvent(String eventName, String reference)
- Specified by:
fireEventin interfaceExternalIntegrationProvider
-
getServerUrl
public String getServerUrl()
- Specified by:
getServerUrlin interfaceExternalIntegrationProvider
-
getMaxJSONLevel
public String getMaxJSONLevel()
- Specified by:
getMaxJSONLevelin interfaceExternalIntegrationProvider
-
handleEntityError
public String handleEntityError(HttpServletRequest req, Throwable error)
- Specified by:
handleEntityErrorin interfaceExternalIntegrationProvider
-
handleUserSessionKey
public void handleUserSessionKey(HttpServletRequest req)
- Specified by:
handleUserSessionKeyin interfaceExternalIntegrationProvider
-
findService
public <T> T findService(Class<T> type)
- Specified by:
findServicein interfaceExternalIntegrationProvider
-
getConfigurationSetting
public <T> T getConfigurationSetting(String settingName, T defaultValue)
- Specified by:
getConfigurationSettingin interfaceExternalIntegrationProvider
-
registerStatement
public void registerStatement(String prefix, String actorEmail, String verbStr, String objectURI, Boolean resultSuccess, Float resultScaledScore)
- Specified by:
registerStatementin interfaceLearningTrackingProvider
-
-