+++ /dev/null
-/************************************************************************************
- *
- * Copyright (c) 2008 Igor Barma, Eric Brun, Alexandre Desoubeaux, Christian Martel.
- *
- * Ce logiciel est diffuse sous les termes et conditions de la licence CECILL.
- * Voir le fichier joint Licence_CeCILL_V2-fr.txt pour plus de details.
- *
- ************************************************************************************/
-package com.pentila.evalcomp.manager.ressource.moodle;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.apache.commons.fileupload.FileItem;
-
-import com.pentila.evalcomp.domain.Ressource;
-import com.pentila.evalcomp.domain.User;
-import com.pentila.evalcomp.domain.definition.RessourceDefinition;
-import com.pentila.evalcomp.domain.instance.EvaluationSubjectInstance;
-import com.pentila.evalcomp.domain.transit.RessourceItem;
-import com.pentila.evalcomp.manager.ressource.IRessourcePlugin;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class MoodlePlugin.
- */
-public class MoodlePlugin implements IRessourcePlugin {
-
- /** The plugin name. */
- private String pluginName = "Cours Moodle";
-
- /** The plugin key. */
- private String pluginKey;
-
- /** The moodle web service. */
- private MoodleWebService moodleWebService;
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#addFolder(java.lang.String,
- * java.lang.String, java.lang.String)
- */
- public RessourceItem addFolder(RessourceItem ri, String login) {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * com.pentila.evalcomp.manager.interfacedef.IRessource#addResourceToESI
- * (com.pentila.evalcomp.domain.User,
- * com.pentila.evalcomp.domain.transit.ResourceFile,
- * com.pentila.evalcomp.domain.instance.EvaluationSubjectInstance)
- */
- public Ressource addRessourceToESI(User user, RessourceItem rf,
- EvaluationSubjectInstance esi) {
-
- return null;
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#addResource(java.lang.String,
- * org.apache.commons.fileupload.FileItem, java.lang.String)
- */
- /*
- * public void addResource(String login, FileItem fileItem, String inPath) {
- * storage.saveFile(login, fileItem, inPath); }
- */
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#copyFolder()
- */
- public void copyFolder() {
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * com.pentila.evalcomp.manager.interfacedef.IRessource#copyResource(com
- * .pentila.evalcomp.domain.transit.ResourceFile, java.lang.Long,
- * java.lang.String)
- */
- public void copyRessource(RessourceItem file, Long id, String login) {
- // TODO Auto-generated method stub
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#deleteFolder(java.lang.String,
- * java.lang.String)
- */
- public void deleteFolder(RessourceItem ri, String login) {
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#deleteResource(java.lang.String,
- * java.lang.String)
- */
- public void deleteRessource(RessourceItem ri, String login) {
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#getWorkspace(java.lang.String)
- */
- public RessourceItem getWorkspace(String login) {
- RessourceItem ri = moodleWebService.getWorkspace(login);
- ri.setPluginKey(pluginKey);
- ri.setName(pluginName);
- return ri;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#moveFolder()
- */
- public void moveFolder(RessourceItem newri, RessourceItem ri, String login) {
- // TODO Auto-generated method stub
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#moveFile()
- */
- public void moveRessource(RessourceItem newri, RessourceItem ri,
- String login) {
- // TODO Auto-generated method stub
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * com.pentila.evalcomp.manager.interfacedef.IRessource#removeResourceFromESI
- * (java.lang.String, java.util.Set)
- */
- public void removeRessourceFromESI(Ressource r, String login) {
- // TODO Auto-generated method stub
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#renameFolder(java.lang.String,
- * java.lang.String, java.lang.String)
- */
- public void renameFolder(RessourceItem ri, String login) {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.pentila.evalcomp.manager.nn#renameResource(java.lang.String,
- * java.lang.String, java.lang.String)
- */
- public void renameRessource(RessourceItem ri, String login) {
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.ressource.IRessourcePlugin#getPluginKey()
- */
- public String getPluginKey() {
- return pluginKey;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.ressource.IRessourcePlugin#setPluginKey(java.lang.String)
- */
- public void setPluginKey(String pluginKey) {
- this.pluginKey = pluginKey;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#addRessourceItem(java.lang.String, org.apache.commons.fileupload.FileItem, java.lang.String, java.lang.String)
- */
- public void addRessourceItem(String login, FileItem fileItem,
- String inPath, String pluginKey) {
- // TODO Auto-generated method stub
-
- }
-
- /**
- * Gets the moodle web service.
- *
- * @return the moodle web service
- */
- public MoodleWebService getMoodleWebService() {
- return moodleWebService;
- }
-
- /**
- * Sets the moodle web service.
- *
- * @param moodleWebService the new moodle web service
- */
- public void setMoodleWebService(MoodleWebService moodleWebService) {
- this.moodleWebService = moodleWebService;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#removePermission(com.pentila.evalcomp.domain.Ressource, java.util.Set, java.lang.String)
- */
- public void removePermission(Ressource r, Set<String> suid, String role) {
- // TODO Auto-generated method stub
- // non utilise pour moodle
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#removePermission(com.pentila.evalcomp.domain.definition.RessourceDefinition, java.util.Set, java.lang.String)
- */
- public void removePermission(RessourceDefinition rd, Set<String> suid,
- String role) {
- // TODO Auto-generated method stub
- moodleWebService.removePermission(rd, suid, role);
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#setPermission(com.pentila.evalcomp.domain.Ressource, java.util.Set, java.lang.String)
- */
- public void setPermission(Ressource r, Set<String> suid, String role) {
- // TODO Auto-generated method stub
- // non utilise pour moodle
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#setPermission(com.pentila.evalcomp.domain.definition.RessourceDefinition, java.util.Set, java.lang.String)
- */
- public void setPermission(RessourceDefinition rd, Set<String> suid,
- String role) {
- // TODO Auto-generated method stub
- moodleWebService.setPermission(rd, suid, role);
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#addRessourceDefinition(com.pentila.evalcomp.domain.definition.RessourceDefinition)
- */
- public RessourceDefinition addRessourceDefinition(RessourceDefinition rd) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#getRessource(java.lang.String, java.lang.String, java.lang.String)
- */
- public RessourceItem getRessource(String pluginKey, String ressourceKey,
- String mode) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#getRessourceUrl(java.lang.String, java.lang.String, java.lang.String)
- */
- public String getRessourceUrl(String pluginKey, String ressourceKey,
- String mode) {
- // TODO Auto-generated method stub
- return moodleWebService.getRessourceUrl(pluginKey, ressourceKey, mode);
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#removeRessourceDefinition(com.pentila.evalcomp.domain.definition.RessourceDefinition)
- */
- public void removeRessourceDefinition(RessourceDefinition rd) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.interfacedef.IRessourceBase#query(java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.String)
- */
- public Set<RessourceItem> query(String query, Integer size, Integer start,
- String pluginKey) {
- // TODO Auto-generated method stub
- return new HashSet<RessourceItem>();
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.ressource.IRessourcePlugin#getPluginName()
- */
- public String getPluginName() {
- return pluginName;
- }
-
- /* (non-Javadoc)
- * @see com.pentila.evalcomp.manager.ressource.IRessourcePlugin#setPluginName(java.lang.String)
- */
- public void setPluginName(String pluginName) {
- this.pluginName = pluginName;
- }
-
-}