From 9e87bd6789dca8d6cea5599e2dd7410d95ee97ba Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Thu, 6 Jul 2006 17:03:48 +0000 Subject: [PATCH] Add javadocs --- ...lterInvocationDefinitionSourceMapping.java | 35 +++++++++++++++++++ .../MockFilterInvocationDefinitionSource.java | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceMapping.java b/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceMapping.java index 87f376a114..7cd8c817d4 100644 --- a/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceMapping.java +++ b/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceMapping.java @@ -18,28 +18,63 @@ package org.acegisecurity.intercept.web; import java.util.ArrayList; import java.util.List; +import org.acegisecurity.ConfigAttribute; + +/** + * Configuration entry for {@link FilterInvocationDefinitionSource}, that holds + * the url to be protected and the {@link ConfigAttribute}s as {@link String} + * that apply to that url. + * + * @author Carlos Sanchez + * @version $Id$ + * @since 1.1 + */ public class FilterInvocationDefinitionSourceMapping { private String url; private List configAttributes = new ArrayList(); + /** + * Url to be secured. + * + * @param url + */ public void setUrl(String url) { this.url = url; } + /** + * Url to be secured. + * + * @return the url + */ public String getUrl() { return url; } + /** + * + * @param roles + * {@link List}<{@link String}> + */ public void setConfigAttributes(List roles) { this.configAttributes = roles; } + /** + * + * @return {@link List}<{@link String}> + */ public List getConfigAttributes() { return configAttributes; } + /** + * Add a {@link ConfigAttribute} as {@link String} + * + * @param configAttribute + */ public void addConfigAttribute(String configAttribute) { configAttributes.add(configAttribute); } diff --git a/core/src/test/java/org/acegisecurity/intercept/web/MockFilterInvocationDefinitionSource.java b/core/src/test/java/org/acegisecurity/intercept/web/MockFilterInvocationDefinitionSource.java index 7d0a60f0af..0aac36a9b7 100644 --- a/core/src/test/java/org/acegisecurity/intercept/web/MockFilterInvocationDefinitionSource.java +++ b/core/src/test/java/org/acegisecurity/intercept/web/MockFilterInvocationDefinitionSource.java @@ -24,7 +24,7 @@ import java.util.Vector; /** - * DOCUMENT ME! + * Mock for {@link FilterInvocationDefinitionSource} * * @author Ben Alex * @version $Id$