cziegeler 02/05/29 09:05:42 Modified: src/java/org/apache/cocoon/webapps/authentication/components ApplicationHandler.java Handler.java Log: New authentication manager Revision Changes Path 1.3 +8 -1 xml-cocoon2/src/java/org/apache/cocoon/webapps/authentication/components/ApplicationHandler.java Index: ApplicationHandler.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/webapps/authentication/components/ApplicationHandler.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ApplicationHandler.java 19 Apr 2002 11:02:58 -0000 1.2 +++ ApplicationHandler.java 29 May 2002 16:05:42 -0000 1.3 @@ -67,7 +67,7 @@ * inside a handler configuration. * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> - * @version CVS $Id: ApplicationHandler.java,v 1.2 2002/04/19 11:02:58 cziegeler Exp $ + * @version CVS $Id: ApplicationHandler.java,v 1.3 2002/05/29 16:05:42 cziegeler Exp $ */ public final class ApplicationHandler implements java.io.Serializable { @@ -107,6 +107,13 @@ } this.configurations = new HashMap(3, 2); this.attributeName = "authentication_AH_" + handler.getName() + "_" + this.name; + } + + /** + * Make a copy + */ + public ApplicationHandler copy() { + return null; } /** 1.4 +26 -1 xml-cocoon2/src/java/org/apache/cocoon/webapps/authentication/components/Handler.java Index: Handler.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/webapps/authentication/components/Handler.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Handler.java 29 Apr 2002 08:52:07 -0000 1.3 +++ Handler.java 29 May 2002 16:05:42 -0000 1.4 @@ -68,7 +68,7 @@ * The authentication Handler. * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> - * @version CVS $Id: Handler.java,v 1.3 2002/04/29 08:52:07 cziegeler Exp $ + * @version CVS $Id: Handler.java,v 1.4 2002/05/29 16:05:42 cziegeler Exp $ */ public final class Handler implements java.io.Serializable { @@ -127,6 +127,31 @@ public Handler(String name) { this.name = name; this.attributeName = "authentication_H_" + this.name; + } + + /** + * Make a copy + */ + public Handler copy() { + Handler copy = new Handler(this.name); + copy.redirectURI = this.redirectURI; + copy.redirectParameters = this.redirectParameters; + copy.authenticationResource = this.authenticationResource; + copy.loadResource = this.loadResource; + copy.saveResource = this.saveResource; + copy.loadUsersResource = this.loadUsersResource; + copy.loadRolesResource = this.loadRolesResource; + copy.newUserResource = this.newUserResource; + copy.newRoleResource = this.newRoleResource; + copy.deleteUserResource = this.deleteUserResource; + copy.deleteRoleResource = this.deleteRoleResource; + copy.changeUserResource = this.changeUserResource; + Iterator iter = this.applications.keySet().iterator(); + while (iter.hasNext()) { + final String name = (String)iter.next(); + copy.applications.put(name, ((ApplicationHandler)this.applications.get(name)).copy()); + } + return copy; } /**
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]