public class SecureDeliveryServiceImpl extends Object implements SecureDeliveryServiceAPI
SecureDeliveryServiceAPI.Phase, SecureDeliveryServiceAPI.PhaseStatusEXITPWD_KEY, MODULE_KEY, NONE_ID, TITLE_DECORATION| Constructor and Description |
|---|
SecureDeliveryServiceImpl() |
| 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) |
void |
init()
Loads the secure delivery plugins defined by the samigo.secureDeliveryPlugins setting.
|
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.
|
public void init()
public boolean isSecureDeliveryAvaliable()
isSecureDeliveryAvaliable in interface SecureDeliveryServiceAPIpublic boolean isSecureDeliveryModuleAvailable(String moduleId)
isSecureDeliveryModuleAvailable in interface SecureDeliveryServiceAPImoduleId - public SortedSet<RegisteredSecureDeliveryModuleIfc> getSecureDeliveryModules(Locale locale)
getSecureDeliveryModules in interface SecureDeliveryServiceAPIpublic String getTitleDecoration(String moduleId, Locale locale)
getTitleDecoration in interface SecureDeliveryServiceAPIpublic SecureDeliveryServiceAPI.PhaseStatus validatePhase(String moduleId, SecureDeliveryServiceAPI.Phase phase, PublishedAssessmentIfc assessment, javax.servlet.http.HttpServletRequest request)
validatePhase in interface SecureDeliveryServiceAPImoduleId - phase - assessment - request - public String getInitialHTMLFragments(javax.servlet.http.HttpServletRequest request, Locale locale)
getInitialHTMLFragments in interface SecureDeliveryServiceAPIrequest - locale - public String getHTMLFragment(String moduleId, PublishedAssessmentIfc assessment, javax.servlet.http.HttpServletRequest request, SecureDeliveryServiceAPI.Phase phase, SecureDeliveryServiceAPI.PhaseStatus status, Locale locale)
getHTMLFragment in interface SecureDeliveryServiceAPImoduleId - assessment - request - phase - status - locale - public SecureDeliveryModuleIfc getModuleReference(String moduleId, Object context)
getModuleReference in interface SecureDeliveryServiceAPImoduleId - context - public String encryptPassword(String moduleId, String password)
encryptPassword in interface SecureDeliveryServiceAPImoduleId - password - public String decryptPassword(String moduleId, String password)
decryptPassword in interface SecureDeliveryServiceAPImoduleId - password - Copyright © 2003–2020 Sakai Project. All rights reserved.