You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/09/20 15:06:40 UTC

svn commit: rev 46935 - in incubator/lenya/trunk/src/java/org/apache/lenya/cms: cocoon/components/modules/input usecase

Author: andreas
Date: Mon Sep 20 06:06:39 2004
New Revision: 46935

Modified:
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractOperation.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractUsecase.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Operation.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWork.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWorkImpl.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Usecase.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseException.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolver.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolverImpl.java
Log:
added license and javadocs

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java	Mon Sep 20 06:06:39 2004
@@ -1,8 +1,18 @@
 /*
- * Created on 20.09.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.cocoon.components.modules.input;
 
@@ -15,10 +25,9 @@
 import org.apache.lenya.cms.usecase.UnitOfWork;
 
 /**
- * @author nobby
- * 
- * TODO To change the template for this generated type comment go to Window - Preferences - Java -
- * Code Style - Code Templates
+ * Super class for operation-based input modules.
+ *
+ * @version $Id:$ 
  */
 public class OperationModule extends AbstractInputModule implements Operation, Serviceable, Initializable {
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractOperation.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractOperation.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractOperation.java	Mon Sep 20 06:06:39 2004
@@ -1,8 +1,18 @@
 /*
- * Created on 20.09.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
@@ -14,6 +24,9 @@
 import org.apache.avalon.framework.service.Serviceable;
 
 /**
+ * Abstract operation implementation.
+ * 
+ * @version $Id:$
  */
 public class AbstractOperation extends AbstractLogEnabled implements Operation, Serviceable,
         Initializable, Disposable {

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractUsecase.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractUsecase.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/AbstractUsecase.java	Mon Sep 20 06:06:39 2004
@@ -1,5 +1,18 @@
 /*
- * Created on 22.07.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
  */
 package org.apache.lenya.cms.usecase;
 
@@ -14,10 +27,9 @@
 import org.apache.lenya.workflow.Situation;
 
 /**
- * @author nobby
- * 
- * TODO To change the template for this generated type comment go to Window - Preferences - Java -
- * Code Style - Code Templates
+ * Abstract usecase implementation.
+ *
+ * @version $Id:$ 
  */
 public class AbstractUsecase extends AbstractOperation implements Usecase {
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Operation.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Operation.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Operation.java	Mon Sep 20 06:06:39 2004
@@ -1,12 +1,25 @@
 /*
- * Created on 20.09.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
 /**
+ * Operation interface.
+ * 
+ * @version $Id:$
  */
 public interface Operation {
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWork.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWork.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWork.java	Mon Sep 20 06:06:39 2004
@@ -1,8 +1,18 @@
 /*
- * Created on 20.09.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWorkImpl.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWorkImpl.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UnitOfWorkImpl.java	Mon Sep 20 06:06:39 2004
@@ -1,6 +1,18 @@
 /*
- <License>
- </License>
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
  */
 package org.apache.lenya.cms.usecase;
 
@@ -19,7 +31,6 @@
 /**
  * Abstract base class for operations on documents.
  * 
- * @author <a href="andreas@apache.org">Andreas Hartmann </a>
  * @version $Id: UnitOfWork.java,v 1.2 2004/06/28 20:25:32 andreas Exp $
  */
 public class UnitOfWorkImpl extends AbstractLogEnabled implements UnitOfWork, Contextualizable {

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Usecase.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Usecase.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/Usecase.java	Mon Sep 20 06:06:39 2004
@@ -1,8 +1,18 @@
 /*
- * Created on 22.07.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
@@ -13,10 +23,9 @@
 import org.apache.lenya.workflow.Situation;
 
 /**
- * @author nobby
+ * Usecase interface.
  *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * @version $Id:$
  */
 public interface Usecase {
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseException.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseException.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseException.java	Mon Sep 20 06:06:39 2004
@@ -1,48 +1,58 @@
 /*
- * Created on 22.07.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
 /**
- * @author nobby
+ * Usecase exception.
  *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * @version $Id:$
  */
 public class UsecaseException extends Exception {
 
     /**
-     * 
+     * Ctor.
      */
     public UsecaseException() {
         super();
     }
 
     /**
-     * @param arg0
+     * Ctor.
+     * @param message The message.
      */
-    public UsecaseException(String arg0) {
-        super(arg0);
+    public UsecaseException(String message) {
+        super(message);
     }
 
     /**
-     * @param arg0
-     * @param arg1
+     * Ctor.
+     * @param message The message.
+     * @param cause The cause.
      */
-    public UsecaseException(String arg0, Throwable arg1) {
-        super(arg0, arg1);
-        // TODO Auto-generated constructor stub
+    public UsecaseException(String message, Throwable cause) {
+        super(message, cause);
     }
 
     /**
-     * @param arg0
+     * Ctor.
+     * @param cause The cause.
      */
-    public UsecaseException(Throwable arg0) {
-        super(arg0);
-        // TODO Auto-generated constructor stub
+    public UsecaseException(Throwable cause) {
+        super(cause);
     }
 
 }

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolver.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolver.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolver.java	Mon Sep 20 06:06:39 2004
@@ -1,18 +1,27 @@
 /*
- * Created on 22.07.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
 import org.apache.avalon.framework.service.ServiceException;
 
 /**
- * @author nobby
+ * Usecase resolver interface.
  *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * @version $Id:$
  */
 public interface UsecaseResolver {
 

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolverImpl.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolverImpl.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/usecase/UsecaseResolverImpl.java	Mon Sep 20 06:06:39 2004
@@ -1,8 +1,18 @@
 /*
- * Created on 22.07.2004
+ * Copyright  1999-2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.usecase;
 
@@ -14,10 +24,9 @@
 import org.apache.avalon.framework.service.Serviceable;
 
 /**
- * @author nobby
- * 
- * TODO To change the template for this generated type comment go to Window - Preferences - Java -
- * Code Style - Code Templates
+ * Usecase resolver implementation.
+ *
+ * @version $Id:$ 
  */
 public class UsecaseResolverImpl extends AbstractLogEnabled implements UsecaseResolver,
         Serviceable, Disposable {

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org