Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal Interface Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal:
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl

List of all members.

Public Member Functions

long getFileSize (String projectName, String path) throws RemoteException
boolean existsResource (String path) throws RemoteException
void createFolder (String projectName, String path) throws RemoteException
void createProject (String projectName) throws RemoteException
void changeProjectEncoding (String projectName, String charset) throws RemoteException
void changeFileEncoding (String projectName, String path, String charset) throws RemoteException
void createJavaProject (String projectName) throws RemoteException
boolean clearWorkspace () throws RemoteException
void changeSarosVersion (String version) throws RemoteException
void resetSarosVersion () throws RemoteException
void createFile (String projectName, String path, String content) throws RemoteException
void createFile (String projectName, String path, int size, boolean compressAble) throws RemoteException
void createJavaClass (String projectName, String packageName, String className) throws RemoteException
void append (String projectName, String path, String content) throws RemoteException
byte[] getFileContent (String projectName, String path) throws RemoteException

Member Function Documentation

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.append ( String  projectName,
String  path,
String  content 
) throws RemoteException

Appends content to the give file

Parameters:
projectNamethe name project where the java class should be created
paththe relative path of the file e.g my/foo/bar/hello.java
contentthe content to append
Exceptions:
RemoteExceptionif the file does not exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeFileEncoding ( String  projectName,
String  path,
String  charset 
) throws RemoteException

Changes the encoding of a file.

the project must already exists

Parameters:
projectNamethe project the file belongs to
paththe relative path of the file e.g my/foo/bar/hello.java
charsetthe charset to use for this file
Exceptions:
RemoteExceptionif the new encoding could not be applied

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeProjectEncoding ( String  projectName,
String  charset 
) throws RemoteException

Changes the encoding of a project

Parameters:
projectNamethe name of the project
charsetthe charset to use for this project
Exceptions:
RemoteExceptionif the project does not exists or the charset is not available on the current remote platform

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeSarosVersion ( String  version) throws RemoteException

Changes the current Saros version to the given version

Parameters:
versionthe version that Saros will be set to e.g 2.6.2.11
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.clearWorkspace ( ) throws RemoteException

Clears the current workspace by deleting all projects

Returns:
true if all projects were successfully deleted, false otherwise
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFile ( String  projectName,
String  path,
String  content 
) throws RemoteException

Creates a file in the given project. All missing folders will be created automatically.

the project must already exists

Parameters:
projectNamethe project where the file should be created
paththe relative path of the file e.g my/foo/bar/hello.java
contentthe content of the file
Exceptions:
RemoteExceptionif the file could not be created or already exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFile ( String  projectName,
String  path,
int  size,
boolean  compressAble 
) throws RemoteException

Creates a file in the given project. All missing folders will be created automatically.

the project must already exists

Parameters:
projectNamethe project where the file should be created
paththe relative path of the file e.g my/foo/bar/hello.java
sizethe size of the file
compressAbleif true the content of the file will compress into not more than a several bytes
Exceptions:
RemoteExceptionif the file could not be created or already exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFolder ( String  projectName,
String  path 
) throws RemoteException

Creates a folder in the project. All missing folders will be created automatically.

the project must already exists

Parameters:
projectNamethe name of the project
paththe path of the folder e.g my/foo/bar
Exceptions:
RemoteExceptionif the folder could not be created or the project do not exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createJavaClass ( String  projectName,
String  packageName,
String  className 
) throws RemoteException

Creates a java class in the given project. All missing packages will be created automatically.

the project must already exists

Parameters:
projectNamethe name project where the java class should be created
packageNamethe name of the package e.g my.foo.bar
classNamethe name of the class e.g HelloWorld
Exceptions:
RemoteExceptionif the class could not be created or already exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createJavaProject ( String  projectName) throws RemoteException

Creates a Java project

Parameters:
projectNamethe name of the project
Exceptions:
RemoteExceptionif the project could not be created or already exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createProject ( String  projectName) throws RemoteException

Creates a project

Parameters:
projectNamethe name of the project
Exceptions:
RemoteExceptionif the project could not be created or already exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.existsResource ( String  path) throws RemoteException

Checks if the given resource exists in the current workspace.

Parameters:
paththe path to the resource e.g my/foo/bar
Returns:
true if the resource exists, false otherwise
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

byte [] de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.getFileContent ( String  projectName,
String  path 
) throws RemoteException

Gets the content from the given file

Parameters:
projectNamethe name project where the java class should be created
paththe relative path of the file e.g my/foo/bar/hello.java
Returns:
the content of this file as byte array
Exceptions:
RemoteExceptionif the file does not exists

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

long de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.getFileSize ( String  projectName,
String  path 
) throws RemoteException

Returns the file size in bytes

Parameters:
projectNamethe name of the project
paththe path of the folder e.g my/foo/bar
Returns:
The length, in bytes, or 0L if the file does not exist. Some operating systems may return 0L for pathnames denoting system-dependent entities such as devices or pipes.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.resetSarosVersion ( ) throws RemoteException

Resets the current Saros version to its default state as the plugin was started

Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.

 All Classes Namespaces Files Functions Variables Enumerations