Giter Site home page Giter Site logo

mejo1024 / iliasdownloader2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kekru/iliasdownloader2

0.0 0.0 0.0 127 KB

Tool to download files from the ILIAS platform automatically

Home Page: http://whiledo.de/index.php?p=iliasdownloader2

License: GNU General Public License v3.0

Java 100.00%

iliasdownloader2's Introduction

Build Status

ILIASDownloader2

Tool to download files from the ILIAS platform.
The swing GUI has got german texts, but the code is in english.

The project is divided into three parts.

  • IliasConnector JavaDoc
    base classes to find and download files from an ILIAS server
  • SyncRunner (depends on IliasConnector) JavaDoc
    simple command line app using the base classes
  • SwingFrontend (depends on SyncRunner) JavaDoc
    Swing GUI

Runnable App

You find the runnable java app here (german).
The latest version of master-Branch is available at JitPack.

To use ILIASDownloader2 on commandline only, run java -jar iliasdownloader.jar help for more information.
There is also an Android app here (german).

Create runnable App

Be sure that you have installed Maven.
Then run mvn clean install -P build-runnable-swing in the root directory of this project. You'll find the runnable Jar file in ILIASDownloader-SwingFrontend/target.

If you only want the SyncRunner-module to be runnable, run mvn clean install -P build-runnable-syncrunner.

Install Lombok

This project uses Project Lombok for Bytecode preprocessing. To make it work with your IDE (eclipse, IntelliJ,...), follow the steps on the Project Lombok setup pages.

Getting started

Add libraries to your maven dependencies.

<project>
	...
	<dependencies>
		<dependency>
			<groupId>com.github.kekru.ILIASDownloader2</groupId>
			<artifactId>ILIASDownloader-SyncRunner</artifactId>
			<version>v0.0.12</version>
        </dependency>
	</dependencies>
	
	<repositories>
		<repository>
			<id>jitpack.io</id>
			<url>https://jitpack.io</url>
		</repository>
	</repositories>
</project>

First of all you could copy ConsoleController.java and replace the System.out.println() lines with your custom callback functions.

If you write a mobile app, you should disable the default download of files
iliasProperties.setAllowDownload(false);

Then you run syncService.startOrStopSync(); to search for files and fileLoadEnd(FileObject) will be called for each file.

To download a file, run syncService.getFileSync().loadFileOrExerciseIgoreDownloadFileFlag(fileObject.getXmlObject(), DownloadMethod.WEBSERVICE);.
If you want to use DownloadMethod.WEBDAV, call the following first:

if(!syncService.getIliasSoapService().isWebdavAuthenticationActive()){
	syncService.getIliasSoapService().enableWebdavAuthentication(„login“,“pw“);
}

Help for configuration

In IliasProperties.java you'll find iliasServerURL and iliasClient.
You can find out iliasClient by calling IliasUtil.findClientByLoginPageOrWebserviceURL(iliasServerURL).

Central classes

ILIASSoapService.java communicates with the ILIAS Server. There you find the SOAP Webservice calls.

FileSync.java collects the files on the ILIAS server and downloads them. You'll find both in

<dependency>
	<groupId>com.github.kekru.ILIASDownloader2</groupId>
	<artifactId>ILIASDownloader-IliasConnector</artifactId>
	<version>v0.0.12</version>
</dependency>

How to go on?

Just look into MainController.java. This is the main class of the swing GUI and here you will find all functions that exists in the project.

<dependency>
   <groupId>com.github.kekru.ILIASDownloader2</groupId>
   <artifactId>ILIASDownloader-SwingFrontend</artifactId>
   <version>v0.0.12</version>
</dependency>

iliasdownloader2's People

Contributors

kekru avatar dependabot[bot] avatar mejo1024 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.