public interface SecureDeliveryServiceAPI
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecureDeliveryServiceAPI.Phase |
static class |
SecureDeliveryServiceAPI.PhaseStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXITPWD_KEY |
static String |
MODULE_KEY |
static String |
NONE_ID |
static String |
TITLE_DECORATION |
| Modifier and Type | Method and Description |
|---|---|
String |
decryptPassword(String moduleId,
String password)
Uses the module specified to decrypt the exit password.
|
String |
encryptPassword(String moduleId,
String password)
Uses the module specified to encrypt the exit password before storing it on the assessment settings.
|
String |
getHTMLFragment(String moduleId,
PublishedAssessmentIfc assessment,
javax.servlet.http.HttpServletRequest request,
SecureDeliveryServiceAPI.Phase phase,
SecureDeliveryServiceAPI.PhaseStatus status,
Locale locale)
Returns an HTML appropriate for the combination of parameters.
|
String |
getInitialHTMLFragments(javax.servlet.http.HttpServletRequest request,
Locale locale)
Returns the initial HTML fragments for all active modules.
|
SecureDeliveryModuleIfc |
getModuleReference(String moduleId,
Object context)
Helper method to obtain a reference to the runtime instance of the module specified.
|
SortedSet<RegisteredSecureDeliveryModuleIfc> |
getSecureDeliveryModules(Locale locale) |
String |
getTitleDecoration(String moduleId,
Locale locale) |
boolean |
isSecureDeliveryAvaliable() |
boolean |
isSecureDeliveryModuleAvailable(String moduleId) |
SecureDeliveryServiceAPI.PhaseStatus |
validatePhase(String moduleId,
SecureDeliveryServiceAPI.Phase phase,
PublishedAssessmentIfc assessment,
javax.servlet.http.HttpServletRequest request)
Checks with the module specified by moduleId if the current delivery phase can continue.
|
static final String MODULE_KEY
static final String EXITPWD_KEY
static final String TITLE_DECORATION
static final String NONE_ID
boolean isSecureDeliveryAvaliable()
boolean isSecureDeliveryModuleAvailable(String moduleId)
moduleId - SortedSet<RegisteredSecureDeliveryModuleIfc> getSecureDeliveryModules(Locale locale)
String getTitleDecoration(String moduleId, Locale locale)
moduleId - locale - SecureDeliveryServiceAPI.PhaseStatus validatePhase(String moduleId, SecureDeliveryServiceAPI.Phase phase, PublishedAssessmentIfc assessment, javax.servlet.http.HttpServletRequest request)
moduleId - phase - assessment - request - String getInitialHTMLFragments(javax.servlet.http.HttpServletRequest request, Locale locale)
request - locale - String getHTMLFragment(String moduleId, PublishedAssessmentIfc assessment, javax.servlet.http.HttpServletRequest request, SecureDeliveryServiceAPI.Phase phase, SecureDeliveryServiceAPI.PhaseStatus status, Locale locale)
moduleId - assessment - request - phase - status - locale - String encryptPassword(String moduleId, String password)
moduleId - password - String decryptPassword(String moduleId, String password)
moduleId - password - SecureDeliveryModuleIfc getModuleReference(String moduleId, Object context)
moduleId - context - Copyright © 2005–2019 Sakai Project. All rights reserved.