public class TrainingCourseAppServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements TrainingCourseAppService
| Modifier and Type | Field and Description |
|---|---|
static String |
COURSEID_PARAM
The Constant COURSEID_PARAM.
|
static String |
TakeSurveyPortlet_PLUGIN_ID_PREFIX |
static String |
USER_PARAM
The Constant USER_PARAM.
|
static String |
UTF_8
The Constant UTF_8.
|
| Constructor and Description |
|---|
TrainingCourseAppServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO |
addQuestionnaireToUnit(org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit,
org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO questionnaire) |
org.gcube.portal.trainingmodule.shared.TrainingVideoDTO |
addVideoToUnit(org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit,
org.gcube.portal.trainingmodule.shared.TrainingVideoDTO videoDTO) |
TrainingCourseObj |
changeStatus(TrainingCourseObj project,
boolean isActive)
Change status.
|
int |
countQuestionnairesForTrainingUnit(long trainingUnitId)
Count questionnaires for training unit.
|
int |
countVideosForTrainingUnit(long trainingUnitId)
Count videos for training unit.
|
TrainingCourseObj |
createNewCourse(TrainingCourseObj project) |
org.gcube.portal.trainingmodule.shared.TrainingUnitDTO |
createUnitFolder(TrainingCourseObj project,
org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit)
Creates the unit folder.
|
int |
deleteQuestionnaireForId(long questionnaireId)
Delete questionnaire for id.
|
boolean |
deleteTrainingProject(TrainingCourseObj project)
Delete training project.
|
int |
deleteVideoForId(long videoId)
Delete video for id.
|
void |
deleteWorkspaceItem(String itemId)
Delete workspace item.
|
List<org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO> |
getListOfQuestionnaireForUnit(long unitInternalId) |
List<org.gcube.portal.trainingmodule.shared.TrainingVideoDTO> |
getListOfVideoForUnit(long unitInternalId) |
List<TrainingCourseObj> |
getOwnedTrainingCoursesForCurrentVRE() |
String |
getQueryStringToShowUserProgress(TrainingCourseObj course,
String userNameToShowProgress)
Gets the query string to show user progress.
|
WorkspaceItemInfo |
getWorkspaceItemInfo(String itemId)
Gets the workspace item info.
|
TrainingCourseObj |
loadTrainingCourse(long trainingCourseId) |
TrainingCourseObj |
shareWithCurrentScope(TrainingCourseObj project)
Share with current scope.
|
TrainingCourseObj |
shareWithUsers(TrainingCourseObj project,
List<String> listLogins)
Share with users.
|
TrainingCourseObj |
updateCourse(TrainingCourseObj course) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String UTF_8
public static final String USER_PARAM
public static final String COURSEID_PARAM
public static final String TakeSurveyPortlet_PLUGIN_ID_PREFIX
public TrainingCourseObj createNewCourse(TrainingCourseObj project) throws Exception
createNewCourse in interface TrainingCourseAppServiceExceptionpublic List<TrainingCourseObj> getOwnedTrainingCoursesForCurrentVRE() throws Exception
getOwnedTrainingCoursesForCurrentVRE in interface TrainingCourseAppServiceExceptionpublic TrainingCourseObj loadTrainingCourse(long trainingCourseId) throws Exception
loadTrainingCourse in interface TrainingCourseAppServiceExceptionpublic org.gcube.portal.trainingmodule.shared.TrainingUnitDTO createUnitFolder(TrainingCourseObj project, org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit) throws Exception
createUnitFolder in interface TrainingCourseAppServiceproject - the projectunit - the unitException - the exceptionpublic WorkspaceItemInfo getWorkspaceItemInfo(String itemId) throws Exception
getWorkspaceItemInfo in interface TrainingCourseAppServiceitemId - the item idException - the exceptionpublic int countVideosForTrainingUnit(long trainingUnitId)
throws Exception
countVideosForTrainingUnit in interface TrainingCourseAppServicetrainingUnitId - the training unit idException - the exceptionpublic int countQuestionnairesForTrainingUnit(long trainingUnitId)
throws Exception
countQuestionnairesForTrainingUnit in interface TrainingCourseAppServicetrainingUnitId - the training unit idException - the exceptionpublic void deleteWorkspaceItem(String itemId) throws Exception
deleteWorkspaceItem in interface TrainingCourseAppServiceitemId - the item idException - the exceptionpublic TrainingCourseObj shareWithUsers(TrainingCourseObj project, List<String> listLogins) throws Exception
shareWithUsers in interface TrainingCourseAppServiceproject - the projectlistLogins - the list loginsException - the exceptionpublic TrainingCourseObj shareWithCurrentScope(TrainingCourseObj project) throws Exception
shareWithCurrentScope in interface TrainingCourseAppServiceproject - the projectException - the exceptionpublic boolean deleteTrainingProject(TrainingCourseObj project) throws Exception
deleteTrainingProject in interface TrainingCourseAppServiceproject - the projectException - the exceptionpublic TrainingCourseObj changeStatus(TrainingCourseObj project, boolean isActive) throws Exception
changeStatus in interface TrainingCourseAppServiceproject - the projectisActive - the is activeException - the exceptionpublic org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO addQuestionnaireToUnit(org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit,
org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO questionnaire)
throws Exception
addQuestionnaireToUnit in interface TrainingCourseAppServiceExceptionpublic List<org.gcube.portal.trainingmodule.shared.TrainingUnitQuestionnaireDTO> getListOfQuestionnaireForUnit(long unitInternalId) throws Exception
getListOfQuestionnaireForUnit in interface TrainingCourseAppServiceExceptionpublic org.gcube.portal.trainingmodule.shared.TrainingVideoDTO addVideoToUnit(org.gcube.portal.trainingmodule.shared.TrainingUnitDTO unit,
org.gcube.portal.trainingmodule.shared.TrainingVideoDTO videoDTO)
throws Exception
addVideoToUnit in interface TrainingCourseAppServiceExceptionpublic List<org.gcube.portal.trainingmodule.shared.TrainingVideoDTO> getListOfVideoForUnit(long unitInternalId) throws Exception
getListOfVideoForUnit in interface TrainingCourseAppServiceExceptionpublic TrainingCourseObj updateCourse(TrainingCourseObj course) throws Exception
updateCourse in interface TrainingCourseAppServiceExceptionpublic String getQueryStringToShowUserProgress(TrainingCourseObj course, String userNameToShowProgress) throws Exception
getQueryStringToShowUserProgress in interface TrainingCourseAppServicecourse - the courseuserNameToShowProgress - the user name to show progressException - the exceptionpublic int deleteQuestionnaireForId(long questionnaireId)
throws Exception
deleteQuestionnaireForId in interface TrainingCourseAppServicequestionnaireId - the questionnaire idException - the exceptionpublic int deleteVideoForId(long videoId)
throws Exception
deleteVideoForId in interface TrainingCourseAppServicevideoId - the video idException - the exceptionCopyright © 2018. All Rights Reserved.