[P2play-commit] SF.net SVN: p2play: [42] P2PlayService
Status: Pre-Alpha
Brought to you by:
tisoft
|
From: <ti...@us...> - 2007-03-20 12:07:01
|
Revision: 42
http://p2play.svn.sourceforge.net/p2play/?rev=42&view=rev
Author: tisoft
Date: 2007-03-20 04:53:30 -0700 (Tue, 20 Mar 2007)
Log Message:
-----------
Initial import.
Added Paths:
-----------
P2PlayService/.classpath
P2PlayService/.project
P2PlayService/.settings/
P2PlayService/.settings/org.eclipse.jdt.core.prefs
P2PlayService/.settings/org.eclipse.wst.common.component
P2PlayService/.settings/org.eclipse.wst.common.project.facet.core.xml
P2PlayService/pom.xml
P2PlayService/src/
P2PlayService/src/main/
P2PlayService/src/main/java/
P2PlayService/src/main/java/org/
P2PlayService/src/main/java/org/p2play/
P2PlayService/src/main/java/org/p2play/service/
P2PlayService/src/main/java/org/p2play/service/AuthenticationService.java
P2PlayService/src/main/java/org/p2play/service/P2PlayVfsService.java
P2PlayService/src/main/java/org/p2play/service/exception/
P2PlayService/src/main/java/org/p2play/service/exception/AuthenticationException.java
P2PlayService/src/main/java/org/p2play/service/object/
P2PlayService/src/main/java/org/p2play/service/object/AuthenticationToken.java
Property Changed:
----------------
P2PlayService/
Property changes on: P2PlayService
___________________________________________________________________
Name: svn:ignore
+ target
Added: P2PlayService/.classpath
===================================================================
--- P2PlayService/.classpath (rev 0)
+++ P2PlayService/.classpath 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: P2PlayService/.project
===================================================================
--- P2PlayService/.project (rev 0)
+++ P2PlayService/.project 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>P2PlayService</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added: P2PlayService/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- P2PlayService/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ P2PlayService/.settings/org.eclipse.jdt.core.prefs 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,7 @@
+#Tue Mar 20 10:11:04 CET 2007
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: P2PlayService/.settings/org.eclipse.wst.common.component
===================================================================
--- P2PlayService/.settings/org.eclipse.wst.common.component (rev 0)
+++ P2PlayService/.settings/org.eclipse.wst.common.component 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="P2PlayService">
+<wb-resource deploy-path="/" source-path="/src/main/java"/>
+</wb-module>
+</project-modules>
Added: P2PlayService/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- P2PlayService/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ P2PlayService/.settings/org.eclipse.wst.common.project.facet.core.xml 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.utility"/>
+ <installed facet="jst.utility" version="1.0"/>
+ <installed facet="jst.java" version="5.0"/>
+</faceted-project>
Added: P2PlayService/pom.xml
===================================================================
--- P2PlayService/pom.xml (rev 0)
+++ P2PlayService/pom.xml 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>P2Play</groupId>
+ <artifactId>P2PlayService</artifactId>
+ <version>0.0.1</version>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.xfire</groupId>
+ <artifactId>xfire-java5</artifactId>
+ <version>1.2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-vfs</groupId>
+ <artifactId>commons-vfs</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+</project>
+
Added: P2PlayService/src/main/java/org/p2play/service/AuthenticationService.java
===================================================================
--- P2PlayService/src/main/java/org/p2play/service/AuthenticationService.java (rev 0)
+++ P2PlayService/src/main/java/org/p2play/service/AuthenticationService.java 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2007 P2Play.org
+ * All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.p2play.service;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+import org.p2play.service.exception.AuthenticationException;
+import org.p2play.service.object.AuthenticationToken;
+
+@WebService(serviceName = "AuthenticationService")
+public interface AuthenticationService {
+ @WebMethod
+ public AuthenticationToken login(String user, char[] password)
+ throws AuthenticationException;
+}
Added: P2PlayService/src/main/java/org/p2play/service/P2PlayVfsService.java
===================================================================
--- P2PlayService/src/main/java/org/p2play/service/P2PlayVfsService.java (rev 0)
+++ P2PlayService/src/main/java/org/p2play/service/P2PlayVfsService.java 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2007 P2Play.org
+ * All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.p2play.service;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+import org.apache.commons.vfs.FileSystemException;
+import org.p2play.service.object.AuthenticationToken;
+
+@WebService(serviceName = "P2PlayVfsService")
+public interface P2PlayVfsService {
+ @WebMethod
+ public void addFolder(AuthenticationToken token, String newFolder)
+ throws FileSystemException;
+
+ @WebMethod
+ public void addFolder(AuthenticationToken token, String parent,
+ String newFolder) throws FileSystemException;
+
+ @WebMethod
+ public String[] getChildren(AuthenticationToken token, String parent)
+ throws FileSystemException;
+
+}
Added: P2PlayService/src/main/java/org/p2play/service/exception/AuthenticationException.java
===================================================================
--- P2PlayService/src/main/java/org/p2play/service/exception/AuthenticationException.java (rev 0)
+++ P2PlayService/src/main/java/org/p2play/service/exception/AuthenticationException.java 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2007 P2Play.org
+ * All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.p2play.service.exception;
+
+public class AuthenticationException extends Exception {
+ public AuthenticationException(String message) {
+ super(message);
+ }
+}
Added: P2PlayService/src/main/java/org/p2play/service/object/AuthenticationToken.java
===================================================================
--- P2PlayService/src/main/java/org/p2play/service/object/AuthenticationToken.java (rev 0)
+++ P2PlayService/src/main/java/org/p2play/service/object/AuthenticationToken.java 2007-03-20 11:53:30 UTC (rev 42)
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2007 P2Play.org
+ * All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.p2play.service.object;
+
+public interface AuthenticationToken {
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|