public class HttpClientCoursesDaoImpl extends Object implements ICacheableCoursesDao<HttpClientCoursesDaoImpl.CoursesCacheKey,HttpClientCoursesDaoImpl.CoursesCacheKey>
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientCoursesDaoImpl.CoursesCacheKey |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_KEY_TERMCODE |
| Constructor and Description |
|---|
HttpClientCoursesDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
createParameters(javax.portlet.PortletRequest request,
Map<String,IParameterEvaluator> params) |
CoursesByTerm |
getCoursesByTerm(HttpClientCoursesDaoImpl.CoursesCacheKey key)
Get courses for a term for the current user
|
HttpClientCoursesDaoImpl.CoursesCacheKey |
getCoursesByTermKey(javax.portlet.PortletRequest request,
String termCode,
TermList termList)
A cache key for the courses that would be retrieved by this request
|
protected org.springframework.http.HttpEntity<?> |
getRequestEntity(HttpClientCoursesDaoImpl.CoursesCacheKey credentials)
Get a request entity prepared for basic authentication.
|
TermList |
getTermList(HttpClientCoursesDaoImpl.CoursesCacheKey key)
Get a term list for the current user
|
HttpClientCoursesDaoImpl.CoursesCacheKey |
getTermListKey(javax.portlet.PortletRequest request)
A cache key for the term list that would be retrieved by this request
|
protected TermsAndCourses |
getTermsAndCourses(HttpClientCoursesDaoImpl.CoursesCacheKey key,
String url) |
void |
setCoursesUrlFormat(String urlFormat) |
void |
setPasswordEvaluator(IParameterEvaluator passwordEvaluator) |
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate) |
protected void |
setTermCodeRequestAttribute(javax.portlet.PortletRequest request,
String termCode) |
void |
setTermsUrlFormat(String urlFormat) |
void |
setUrlParams(Map<String,IParameterEvaluator> params) |
void |
setUsernameEvaluator(IParameterEvaluator usernameEvaluator) |
public static final String PROPERTY_KEY_TERMCODE
public void setTermsUrlFormat(String urlFormat)
public void setCoursesUrlFormat(String urlFormat)
public void setUrlParams(Map<String,IParameterEvaluator> params)
public void setUsernameEvaluator(IParameterEvaluator usernameEvaluator)
public void setPasswordEvaluator(IParameterEvaluator passwordEvaluator)
public void setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
public HttpClientCoursesDaoImpl.CoursesCacheKey getTermListKey(javax.portlet.PortletRequest request)
ICacheableCoursesDaogetTermListKey in interface ICacheableCoursesDao<HttpClientCoursesDaoImpl.CoursesCacheKey,HttpClientCoursesDaoImpl.CoursesCacheKey>public TermList getTermList(HttpClientCoursesDaoImpl.CoursesCacheKey key)
ICacheableCoursesDaogetTermList in interface ICacheableCoursesDao<HttpClientCoursesDaoImpl.CoursesCacheKey,HttpClientCoursesDaoImpl.CoursesCacheKey>public HttpClientCoursesDaoImpl.CoursesCacheKey getCoursesByTermKey(javax.portlet.PortletRequest request, String termCode, TermList termList)
ICacheableCoursesDaogetCoursesByTermKey in interface ICacheableCoursesDao<HttpClientCoursesDaoImpl.CoursesCacheKey,HttpClientCoursesDaoImpl.CoursesCacheKey>public CoursesByTerm getCoursesByTerm(HttpClientCoursesDaoImpl.CoursesCacheKey key)
ICacheableCoursesDaogetCoursesByTerm in interface ICacheableCoursesDao<HttpClientCoursesDaoImpl.CoursesCacheKey,HttpClientCoursesDaoImpl.CoursesCacheKey>protected TermsAndCourses getTermsAndCourses(HttpClientCoursesDaoImpl.CoursesCacheKey key, String url)
protected org.springframework.http.HttpEntity<?> getRequestEntity(HttpClientCoursesDaoImpl.CoursesCacheKey credentials)
protected void setTermCodeRequestAttribute(javax.portlet.PortletRequest request,
String termCode)
Copyright © 2015 Jasig. All Rights Reserved.