From: <fg...@us...> - 2008-05-05 23:13:35
|
Revision: 809 http://openutils.svn.sourceforge.net/openutils/?rev=809&view=rev Author: fgiust Date: 2008-05-05 16:11:37 -0700 (Mon, 05 May 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlstripes-3.5 Added Paths: ----------- tags/openutils-mgnlstripes-3.5/ tags/openutils-mgnlstripes-3.5/pom.xml tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java tags/openutils-mgnlstripes-3.5/src/main/resources/META-INF/mgnlstripes.tld tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml Removed Paths: ------------- tags/openutils-mgnlstripes-3.5/pom.xml tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedLabelTag.java tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedMessagesTag.java tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml Copied: tags/openutils-mgnlstripes-3.5 (from rev 806, trunk/openutils-mgnlstripes) Deleted: tags/openutils-mgnlstripes-3.5/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/pom.xml 2008-05-05 23:11:37 UTC (rev 809) @@ -1,100 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlstripes</artifactId> - <name>openutils-mgnlstripes</name> - <version>3.5-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>net.sourceforge.stripes</groupId> - <artifactId>stripes</artifactId> - <version>1.4.3</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.4</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.4</version> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.4</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jsp-api</artifactId> - <version>2.0</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.7</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://repo.magnolia.info/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnlstripes-3.5/pom.xml (from rev 808, trunk/openutils-mgnlstripes/pom.xml) =================================================================== --- tags/openutils-mgnlstripes-3.5/pom.xml (rev 0) +++ tags/openutils-mgnlstripes-3.5/pom.xml 2008-05-05 23:11:37 UTC (rev 809) @@ -0,0 +1,105 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlstripes</artifactId> + <name>openutils-mgnlstripes</name> + <version>3.5</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>net.sourceforge.stripes</groupId> + <artifactId>stripes</artifactId> + <version>1.4.3</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.4</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.4</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.7</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://repo.magnolia.info/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-3.5</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-3.5</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlstripes-3.5</url> + </scm> +</project> Deleted: tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java =================================================================== --- trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java 2008-05-05 23:11:37 UTC (rev 809) @@ -1,63 +0,0 @@ -/** - * Copyright Openmind http://www.openmindonline.it - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -package it.openutils.magnoliastripes.tag; - -import net.sourceforge.stripes.exception.StripesJspException; -import net.sourceforge.stripes.tag.FormTag; - - -/** - * @author fgiust - * @version $Id: $ - */ -public class ExtendedFormTag extends FormTag -{ - - /** - * Sets the 'action' attribute by inspecting the bean class provided and asking the current ActionResolver what the - * appropriate URL is. - * @param beanclass the Strin FQN of the class, or a Class representing the class - * @throws StripesJspException if the URL cannot be determined for any reason, most likely because of a mis-spelled - * class name, or a class that's not an ActionBean - */ - @Override - public void setBeanclass(Object beanclass) throws StripesJspException - { - String url = getActionBeanUrl(beanclass); - if (url == null) - { - throw new StripesJspException("Could not determine action from 'beanclass' supplied. " - + "The value supplied was '" - + beanclass - + "'. Please ensure that this bean type " - + "exists and is in the classpath. If you are developing a page and the ActionBean " - + "does not yet exist, consider using the 'action' attribute instead for now."); - } - else - { - String currentAction = get("action"); - - setAction(url); - - if (currentAction != null) - { - set("action", currentAction); - } - } - } -} Copied: tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java (from rev 807, trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java) =================================================================== --- tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java (rev 0) +++ tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedFormTag.java 2008-05-05 23:11:37 UTC (rev 809) @@ -0,0 +1,67 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package it.openutils.magnoliastripes.tag; + +import net.sourceforge.stripes.exception.StripesJspException; +import net.sourceforge.stripes.tag.FormTag; + + +/** + * <p> + * workaround needed to create a form tag with an "url" attribute different from the actionbean mapped uri. Could be + * solved more cleanly by http://mc4j.org/jira/browse/STS-349, which will be available in stripes 1.5 + * </p> + * @author fgiust + * @version $Id: $ + */ +public class ExtendedFormTag extends FormTag +{ + + /** + * Sets the 'action' attribute by inspecting the bean class provided and asking the current ActionResolver what the + * appropriate URL is. + * @param beanclass the Strin FQN of the class, or a Class representing the class + * @throws StripesJspException if the URL cannot be determined for any reason, most likely because of a mis-spelled + * class name, or a class that's not an ActionBean + */ + @Override + public void setBeanclass(Object beanclass) throws StripesJspException + { + String url = getActionBeanUrl(beanclass); + if (url == null) + { + throw new StripesJspException("Could not determine action from 'beanclass' supplied. " + + "The value supplied was '" + + beanclass + + "'. Please ensure that this bean type " + + "exists and is in the classpath. If you are developing a page and the ActionBean " + + "does not yet exist, consider using the 'action' attribute instead for now."); + } + else + { + String currentAction = get("action"); + + setAction(url); + + if (currentAction != null) + { + set("action", currentAction); + } + } + } +} Deleted: tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedLabelTag.java =================================================================== --- trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/tag/ExtendedLabelTag.java 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedLabelTag.java 2008-05-05 23:11:37 UTC (rev 809) @@ -1,276 +0,0 @@ -/** - * Copyright Openmind http://www.openmindonline.it - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -package it.openutils.magnoliastripes.tag; - -import java.io.IOException; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.util.HashMap; -import java.util.Map; - -import javax.servlet.jsp.JspException; - -import net.sourceforge.stripes.action.ActionBean; -import net.sourceforge.stripes.controller.ParameterName; -import net.sourceforge.stripes.exception.StripesJspException; -import net.sourceforge.stripes.tag.InputLabelTag; -import net.sourceforge.stripes.validation.Validate; -import net.sourceforge.stripes.validation.ValidateNestedProperties; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * @author molaschi - * @version $Id: $ - */ -public class ExtendedLabelTag extends InputLabelTag -{ - - /** - * Logger. - */ - private Logger log = LoggerFactory.getLogger(ExtendedLabelTag.class); - - boolean nameSet = false; - - /** - * {@inheritDoc} - */ - @Override - public void setName(String name) - { - // TODO Auto-generated method stub - super.setName(name); - this.nameSet = true; - } - - /** - * {@inheritDoc} - */ - @Override - public int doEndInputTag() throws JspException - { - try - { - String label = getLocalizedFieldName(); - String fieldName = getAttributes().remove("name"); - - if (label == null) - { - label = getBodyContentAsString(); - } - - if (label == null) - { - label = "Label could not find localized field name and had no body."; - } - - if (isRequiredField(this.getActionBean(), fieldName)) - { - String cssClass = get("class"); - if (cssClass != null) - { - set("class", cssClass + " required"); - } - else - { - set("class","required"); - } - } - - // Write out the tag - writeOpenTag(getPageContext().getOut(), "label"); - getPageContext().getOut().write(label); - writeCloseTag(getPageContext().getOut(), "label"); - - // Reset the field name so as to not screw up tag pooling - if (this.nameSet) - { - super.setName(fieldName); - } - - set("class", null); - - return EVAL_PAGE; - } - catch (IOException ioe) - { - throw new StripesJspException("Encountered an exception while trying to write to " - + "the output from the stripes:label tag handler class, InputLabelTag.", ioe); - } - } - - protected boolean isRequiredField(ActionBean bean, String name) - { - - ParameterName param = new ParameterName(name); - boolean isIndexed = param.isIndexed(); - - Map<String, Validate> validationInfos = getValidations(bean.getClass()); - - if (validationInfos != null) - { - - for (Map.Entry<String, Validate> entry : validationInfos.entrySet()) - { - String propertyName = entry.getKey(); - Validate validationInfo = entry.getValue(); - - if (name.equals(propertyName) && validationInfo.required() && !isIndexed) - { - return true; - } - } - } - - if (isIndexed) - { - - Validate validationInfo = validationInfos.get(param.getStrippedName()); - - if (validationInfo != null && validationInfo.required()) - { - return true; - } - } - return false; - } - - @SuppressWarnings("unchecked") - protected Map<String, Validate> getValidations(Class< ? extends ActionBean> clazz) - { - if (this.pageContext.getAttribute("validationInfos") != null) - { - Map<String, Map<String, Validate>> validationInfos = (Map<String, Map<String, Validate>>) this.pageContext - .getAttribute("validationInfos"); - if (validationInfos.containsKey(clazz.getName())) - { - return validationInfos.get(clazz.getName()); - } - else - { - Map<String, Validate> fieldValidations = new HashMap<String, Validate>(); - processClassAnnotations(clazz, fieldValidations); - validationInfos.put(clazz.getName(), fieldValidations); - return fieldValidations; - } - } - else - { - Map<String, Map<String, Validate>> validationInfos = new HashMap<String, Map<String, Validate>>(); - Map<String, Validate> fieldValidations = new HashMap<String, Validate>(); - processClassAnnotations(clazz, fieldValidations); - validationInfos.put(clazz.getName(), fieldValidations); - this.pageContext.setAttribute("validationInfos", validationInfos); - return fieldValidations; - } - } - - @SuppressWarnings("unchecked") - protected void processClassAnnotations(Class clazz, Map<String, Validate> fieldValidations) - { - Class superclass = clazz.getSuperclass(); - if (superclass != null) - { - processClassAnnotations(superclass, fieldValidations); - } - - // Process the methods on the class - Method[] methods = clazz.getDeclaredMethods(); - for (Method method : methods) - { - if (!Modifier.isPublic(method.getModifiers())) - { - continue; // only public methods! - } - - Validate validation = method.getAnnotation(Validate.class); - if (validation != null && validation.required()) - { - String fieldName = getPropertyName(method.getName()); - fieldValidations.put(fieldName, validation); - } - - ValidateNestedProperties nested = method.getAnnotation(ValidateNestedProperties.class); - if (nested != null) - { - String fieldName = getPropertyName(method.getName()); - Validate[] validations = nested.value(); - for (Validate nestedValidate : validations) - { - if ("".equals(nestedValidate.field())) - { - log.warn("Nested validation used without field name: ", validation); - } - else - { - if (nestedValidate.required()) - { - fieldValidations.put(fieldName + "." + nestedValidate.field(), nestedValidate); - } - } - } - } - } - - // Process the fields for validation annotations - Field[] fields = clazz.getDeclaredFields(); - for (Field field : fields) - { - Validate validation = field.getAnnotation(Validate.class); - if (validation != null && validation.required()) - { - fieldValidations.put(field.getName(), validation); - } - - ValidateNestedProperties nested = field.getAnnotation(ValidateNestedProperties.class); - if (nested != null) - { - Validate[] validations = nested.value(); - for (Validate nestedValidate : validations) - { - if ("".equals(nestedValidate.field())) - { - log.warn("Nested validation used without field name: ", validation); - } - else - { - if (nestedValidate.required()) - { - fieldValidations.put(field.getName() + "." + nestedValidate.field(), nestedValidate); - } - } - } - } - } - } - - /** - * Helper method that returns the name of the property when supplied with the corresponding get or set method. Does - * not do anything particularly intelligent, just drops the first three characters and makes the next character - * lower case. - */ - protected String getPropertyName(String methodName) - { - return methodName.substring(3, 4).toLowerCase() + methodName.substring(4); - } - -} Deleted: tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedMessagesTag.java =================================================================== --- trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/tag/ExtendedMessagesTag.java 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/src/main/java/it/openutils/magnoliastripes/tag/ExtendedMessagesTag.java 2008-05-05 23:11:37 UTC (rev 809) @@ -1,276 +0,0 @@ -/** - * Copyright Openmind http://www.openmindonline.it - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -package it.openutils.magnoliastripes.tag; - -import java.io.IOException; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.util.HashMap; -import java.util.Map; - -import javax.servlet.jsp.JspException; - -import net.sourceforge.stripes.action.ActionBean; -import net.sourceforge.stripes.controller.ParameterName; -import net.sourceforge.stripes.exception.StripesJspException; -import net.sourceforge.stripes.tag.InputLabelTag; -import net.sourceforge.stripes.validation.Validate; -import net.sourceforge.stripes.validation.ValidateNestedProperties; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * @author luca boati - * @version $Id$ - */ -public class ExtendedMessagesTag extends InputLabelTag -{ - - /** - * Logger. - */ - private Logger log = LoggerFactory.getLogger(ExtendedMessagesTag.class); - - boolean nameSet = false; - - /** - * {@inheritDoc} - */ - @Override - public void setName(String name) - { - // TODO Auto-generated method stub - super.setName(name); - this.nameSet = true; - } - - /** - * {@inheritDoc} - */ - @Override - public int doEndInputTag() throws JspException - { - try - { - String label = getLocalizedFieldName(); - String fieldName = getAttributes().remove("name"); - - if (label == null) - { - label = getBodyContentAsString(); - } - - if (label == null) - { - label = "Label could not find localized field name and had no body."; - } - - // if (isRequiredField(this.getActionBean(), fieldName)) - // { - // String cssClass = get("class"); - // if (cssClass != null) - // { - // set("class", cssClass + " required"); - // } - // else - // { - // set("class", "required"); - // } - // } - - // Write out the tag - // writeOpenTag(getPageContext().getOut(), "label"); - getPageContext().getOut().write(label); - // writeCloseTag(getPageContext().getOut(), "label"); - - // Reset the field name so as to not screw up tag pooling - if (this.nameSet) - { - super.setName(fieldName); - } - - // set("class", null); - - return EVAL_PAGE; - } - catch (IOException ioe) - { - throw new StripesJspException("Encountered an exception while trying to write to " - + "the output from the stripes:label tag handler class, InputLabelTag.", ioe); - } - } - - protected boolean isRequiredField(ActionBean bean, String name) - { - - ParameterName param = new ParameterName(name); - boolean isIndexed = param.isIndexed(); - - Map<String, Validate> validationInfos = getValidations(bean.getClass()); - - if (validationInfos != null) - { - - for (Map.Entry<String, Validate> entry : validationInfos.entrySet()) - { - String propertyName = entry.getKey(); - Validate validationInfo = entry.getValue(); - - if (name.equals(propertyName) && validationInfo.required() && !isIndexed) - { - return true; - } - } - } - - if (isIndexed) - { - - Validate validationInfo = validationInfos.get(param.getStrippedName()); - - if (validationInfo != null && validationInfo.required()) - { - return true; - } - } - return false; - } - - @SuppressWarnings("unchecked") - protected Map<String, Validate> getValidations(Class< ? extends ActionBean> clazz) - { - if (this.pageContext.getAttribute("validationInfos") != null) - { - Map<String, Map<String, Validate>> validationInfos = (Map<String, Map<String, Validate>>) this.pageContext - .getAttribute("validationInfos"); - if (validationInfos.containsKey(clazz.getName())) - { - return validationInfos.get(clazz.getName()); - } - else - { - Map<String, Validate> fieldValidations = new HashMap<String, Validate>(); - processClassAnnotations(clazz, fieldValidations); - validationInfos.put(clazz.getName(), fieldValidations); - return fieldValidations; - } - } - else - { - Map<String, Map<String, Validate>> validationInfos = new HashMap<String, Map<String, Validate>>(); - Map<String, Validate> fieldValidations = new HashMap<String, Validate>(); - processClassAnnotations(clazz, fieldValidations); - validationInfos.put(clazz.getName(), fieldValidations); - this.pageContext.setAttribute("validationInfos", validationInfos); - return fieldValidations; - } - } - - @SuppressWarnings("unchecked") - protected void processClassAnnotations(Class clazz, Map<String, Validate> fieldValidations) - { - Class superclass = clazz.getSuperclass(); - if (superclass != null) - { - processClassAnnotations(superclass, fieldValidations); - } - - // Process the methods on the class - Method[] methods = clazz.getDeclaredMethods(); - for (Method method : methods) - { - if (!Modifier.isPublic(method.getModifiers())) - { - continue; // only public methods! - } - - Validate validation = method.getAnnotation(Validate.class); - if (validation != null && validation.required()) - { - String fieldName = getPropertyName(method.getName()); - fieldValidations.put(fieldName, validation); - } - - ValidateNestedProperties nested = method.getAnnotation(ValidateNestedProperties.class); - if (nested != null) - { - String fieldName = getPropertyName(method.getName()); - Validate[] validations = nested.value(); - for (Validate nestedValidate : validations) - { - if ("".equals(nestedValidate.field())) - { - log.warn("Nested validation used without field name: ", validation); - } - else - { - if (nestedValidate.required()) - { - fieldValidations.put(fieldName + "." + nestedValidate.field(), nestedValidate); - } - } - } - } - } - - // Process the fields for validation annotations - Field[] fields = clazz.getDeclaredFields(); - for (Field field : fields) - { - Validate validation = field.getAnnotation(Validate.class); - if (validation != null && validation.required()) - { - fieldValidations.put(field.getName(), validation); - } - - ValidateNestedProperties nested = field.getAnnotation(ValidateNestedProperties.class); - if (nested != null) - { - Validate[] validations = nested.value(); - for (Validate nestedValidate : validations) - { - if ("".equals(nestedValidate.field())) - { - log.warn("Nested validation used without field name: ", validation); - } - else - { - if (nestedValidate.required()) - { - fieldValidations.put(field.getName() + "." + nestedValidate.field(), nestedValidate); - } - } - } - } - } - } - - /** - * Helper method that returns the name of the property when supplied with the corresponding get or set method. Does - * not do anything particularly intelligent, just drops the first three characters and makes the next character - * lower case. - */ - protected String getPropertyName(String methodName) - { - return methodName.substring(3, 4).toLowerCase() + methodName.substring(4); - } - -} Copied: tags/openutils-mgnlstripes-3.5/src/main/resources/META-INF/mgnlstripes.tld (from rev 807, trunk/openutils-mgnlstripes/src/main/resources/META-INF/mgnlstripes.tld) =================================================================== --- tags/openutils-mgnlstripes-3.5/src/main/resources/META-INF/mgnlstripes.tld (rev 0) +++ tags/openutils-mgnlstripes-3.5/src/main/resources/META-INF/mgnlstripes.tld 2008-05-05 23:11:37 UTC (rev 809) @@ -0,0 +1,198 @@ +<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" + version="2.0"> + <description>mgnlstripes</description> + <display-name>mgnlstripes tags</display-name> + <tlib-version>1.0</tlib-version> + <short-name>mgnlstripes</short-name> + <uri>mgnlstripes</uri> + <tag> + <description> Stripes' HTML form tag. Provides a standard HTML form tag interface, but allows other stripes input + tags to re-populate their values. Also includes a hidden field in the form for the page name that the form is + being rendered on (to allow forwarding to the same page in the case of a validation error. </description> + <display-name>form</display-name> + <name>form</name> + <tag-class>it.openutils.magnoliastripes.tag.ExtendedFormTag</tag-class> + <body-content>JSP</body-content> + <attribute> + <description> The URL to which this form will post. Expected to be a web-app relative path - the tag will prepend + the context path to any action that begins with a slash and does not already contain the context path. Should + match a URL to which an ActionBean has been bound. Required unless 'beanclass' is provided. </description> + <name>action</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description> The fully qualified name of an ActionBean class, or alternatively a Class instance for an ActionBean + class. An alternative to the 'action' attribute, the 'beanclass' attribute will generate an action appropriate + for the ActionBean identified. Note that if an "ActionBean" that does not yet exist is identified an exception + will be thrown! </description> + <name>beanclass</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.Object</type> + </attribute> + <attribute> + <description> The name of the form field that should receive focus when the page is loaded. Two special values are + recognized, 'first' and the empty string; these values cause the form to set focus on the first element in the + form. If any value is set, and the form has validation errors, the behaviour is altered and the first field with + validation errors is focused instead. </description> + <name>focus</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.String</type> + </attribute> + <attribute> + <description> A comma separated list of content types that it is acceptable to submit through this form. (HTML + Pass-through) </description> + <name>accept</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description> A comma separated list of possible character sets for form data. Will be written to the page as + accept-charset. (HTML Pass-through) </description> + <name>acceptcharset</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description> The mime type used to encode the content of this form. This value will be overridden if one or more + Stripes file input tags is used within the body of the form. </description> + <name>enctype</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description> The HTTP method used for sending data to the server. Options are GET and POST. Default is GET. (HTML + Pass-through) </description> + <name>method</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>The unique name of the form. (HTML Pass-through)</description> + <name>name</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description> Where the target URL is to be opened. One of _blank, _self, _parent and _top. (HTML Pass-through) + </description> + <name>target</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when the form is reset. (HTML Pass-through)</description> + <name>onreset</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run prior to the form being submitted to the server, (HTML Pass-through)</description> + <name>onsubmit</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <!-- Start: Standard HTML attributes --> + <attribute> + <description>The CSS class to be applied to the element. (HTML Pass-through)</description> + <name>class</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Text direction. (HTML Pass-through)</description> + <name>dir</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>A unique identifier for the HTML tag on the pgae. (HTML Pass-through)</description> + <name>id</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>The language code of the element. (HTML Pass-through)</description> + <name>lang</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run on each mouse click. (HTML Pass-through)</description> + <name>onclick</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run on a double-click of the mouse. (HTML Pass-through)</description> + <name>ondblclick</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when a key is depressed. (HTML Pass-through)</description> + <name>onkeydown</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when a key is pressed and released. (HTML Pass-through)</description> + <name>onkeypress</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when a key is released. (HTML Pass-through)</description> + <name>onkeyup</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when a mouse button is depressed. (HTML Pass-through)</description> + <name>onmousedown</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when the mouse pointer is moved. (HTML Pass-through)</description> + <name>onmousemove</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when the mouse pointer moves out of the element. (HTML Pass-through)</description> + <name>onmouseout</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when the mouse pointer moves over the element. (HTML Pass-through)</description> + <name>onmouseover</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Scripting code run when a mouse button is released. (HTML Pass-through)</description> + <name>onmouseup</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Inline CSS style fragment that applies to the element (HTML Pass-through)</description> + <name>style</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <description>Tool-tip text for the element. (HTML Pass-through)</description> + <name>title</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <!-- End: Standard HTML attributes --> + <dynamic-attributes>false</dynamic-attributes> + </tag> +</taglib> \ No newline at end of file Deleted: tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlstripes/src/site/apt/index.apt 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt 2008-05-05 23:11:37 UTC (rev 809) @@ -1,152 +0,0 @@ - -------------------------- - openutils-mgnlstripes - -------------------------- - Fabrizio Giustina - -------------------------- - -About openutils-mgnlstripes - - openutils-mgnlstripes is a custom {{{http://www.magnolia.info}magnolia}} module which integrates the - {{{http://mc4j.org/confluence/display/stripes/Home}Stripes}} MVC framework. - - After installed into magnolia, this module will allow you to use any available Stripes action as a Magnolia paragraph, - Any magically-converted Stripes action will still be able to use any standard Stripes feature, plus it will enjoy the - automatic injection of any paragraph property. - - <<This module requires magnolia 3.1-m3, and will not work on any earlier version!>> - -Configuration - - First of all drop the openutils-mgnlstripes jar and the stripes jar into WEB-INF/lib, or (better) if you are using maven - just declare the following dependency: - -+----------------------------------------------+ - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnlstripes</artifactId> - <version>0.2</version> - </dependency> -+----------------------------------------------+ - - Then configure stripes in your web.xml as usual (see {{{http://mc4j.org/confluence/display/stripes/Quick+Start+Guide}http://mc4j.org/confluence/display/stripes/Quick+Start+Guide}} for this). - - You only need to change the configuration for the stripes <<<ActionResolver.Class>>> in order to use - <<<it.openutils.magnoliastripes.MgnlActionResolver>>>. You can do that by adding/modifying the following init parameter - in WEB.xml: - - -+----------------------------------------------+ - <init-param> - <param-name>ActionResolver.Class</param-name> - <param-value>it.openutils.magnoliastripes.MgnlActionResolver</param-value> - </init-param> -+----------------------------------------------+ - -Usage - - When magnolia and stripes will startup now any auto-discovered stripes action will be configured in order to be used as - a magnolia paragraph. This means that paragraphs will be auto-generated, and they don't need to be configured into jcr. - - You should see a few <<<info>>> logs that enumerates the list of stripes paragraphs configured. By convention the name of - the paragraph is the same name of the Stripes action class minus action and lowercase. - - So <<<it.myapp.web.MyStripesAction >>> will be available as a paragraph named <<<mystripes>>>. - - Before being able to use any paragraph you will need to create a dialog for that. By convention the dialog should have - the same name of the paragraph so, following the previous example, you will need to configure a dialog called <<<mystripes>>>. - - Try to put a property called <<<title>>> in such dialog for a test. - - You are ready to use your paragraph into any magnolia template as usual: - -+----------------------------------------------+ - - <cms:contentNodeIterator contentNodeCollectionName="column"> - <cms:editBar adminOnly="true" /> - <cms:includeTemplate /> - </cms:contentNodeIterator> - <cms:newBar contentNodeCollectionName="column" paragraph="mystripes" adminOnly="true" /> - -+----------------------------------------------+ - - Try to add an instance of the <<<mystripes>>> paragraph. Set the title property to whatever you want, you - will be able to use it in your Stripes action bean. - - The following example show the code for the simple <<<MyStripesAction>>> that prints out the configured title to the log: - -+----------------------------------------------+ -package it.myapp.web; - -import net.sourceforge.stripes.action.ActionBean; -import net.sourceforge.stripes.action.ActionBeanContext; -import net.sourceforge.stripes.action.DefaultHandler; -import net.sourceforge.stripes.action.ForwardResolution; -import net.sourceforge.stripes.action.Resolution; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -public class MyStripesAction implements ActionBean -{ - - private Logger log = LoggerFactory.getLogger(MyStripesAction.class); - - private String title; - - @Override - public ActionBeanContext getContext() - { - // TODO - return null; - } - - @Override - public void setContext(ActionBeanContext context) - { - // TODO - } - - public void setTitle(String title) - { - this.title = title; - } - - @DefaultHandler - public Resolution show() - { - - log.info("My title is: {}!", title); - - return new ForwardResolution("/templates/paragraphs/anyjsp.jsp"); - } -} -+----------------------------------------------+ - - As you can see, you will be able to mix parameters that you can use in Stripes action with pure content. Note that you - will not need to configure and use any magnolia paragraph property into your action since you can still use also the - standard magnolia tags in the jsp that is rendered by stripes! - - -Todo/improvements - - Warning! This is a preliminary technology-preview release! - - What does this means? Well, that it should work fine, but the integration is not yet complete and there are still some - missing features... be careful for what is know to not to work. - - - This is a list of know todos: - - * Important! reload stripes paragraph when the configuration of other paragraphs in magnolia is changed! At this moment - stripes paragraphs disappear after any change in paragraphs configured into jcr. - - * Handle multipart forms in request wrapper (should be easy to do) - - * A better way of handling multivalued properties in paragraph - - * Handle binary properties in paragraph - - * Use spring binding/validation for validation of fields in dialogs - - Copied: tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt (from rev 807, trunk/openutils-mgnlstripes/src/site/apt/index.apt) =================================================================== --- tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt (rev 0) +++ tags/openutils-mgnlstripes-3.5/src/site/apt/index.apt 2008-05-05 23:11:37 UTC (rev 809) @@ -0,0 +1,144 @@ + -------------------------- + openutils-mgnlstripes + -------------------------- + Fabrizio Giustina + -------------------------- + +About openutils-mgnlstripes + + openutils-mgnlstripes is a custom {{{http://www.magnolia.info}magnolia}} module which integrates the + {{{http://mc4j.org/confluence/display/stripes/Home}Stripes}} MVC framework. + + After installed into magnolia, this module will allow you to use any available Stripes action as a Magnolia paragraph, + Any magically-converted Stripes action will still be able to use any standard Stripes feature, plus it will enjoy the + automatic injection of any paragraph property. + + <<This module requires magnolia 3.5.x, and will not work on any earlier version!>> + +Configuration + + First of all drop the openutils-mgnlstripes jar and the stripes jar into WEB-INF/lib, or (better) if you are using maven + just declare the following dependency: + ++----------------------------------------------+ + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlstripes</artifactId> + <version>3.5</version> + </dependency> ++----------------------------------------------+ + + Then configure stripes in your web.xml as usual (see {{{http://mc4j.org/confluence/display/stripes/Quick+Start+Guide}http://mc4j.org/confluence/display/stripes/Quick+Start+Guide}} for this). + + <<update: since version 3.5 you don't need to add the Stripes filter to web.xml manually, since this is automatically + configured by the module in config:server/filters. You can add any initialization parameter you may need to the main + magnolia filter in web.xml and it will be inherited by the stripes filter>> + + You only need to change the configuration for the stripes <<<ActionResolver.Class>>> in order to use + <<<it.openutils.magnoliastripes.MgnlActionResolver>>>. You can do that by adding/modifying the following init parameter + in WEB.xml: + + ++----------------------------------------------+ + <init-param> + <param-name>ActionResolver.Class</param-name> + <param-value>it.openutils.magnoliastripes.MgnlActionResolver</param-value> + </init-param> ++----------------------------------------------+ + +Usage + + When magnolia and stripes will startup now any auto-discovered stripes action will be configured in order to be used as + a magnolia paragraph. This means that paragraphs will be auto-generated, and they don't need to be configured into jcr. + + You should see a few <<<info>>> logs that enumerates the list of stripes paragraphs configured. By convention the name of + the paragraph is the same name of the Stripes action class minus action and lowercase. + + So <<<it.myapp.web.MyStripesAction >>> will be available as a paragraph named <<<mystripes>>>. + + Before being able to use any paragraph you will need to create a dialog for that. By convention the dialog should have + the same name of the paragraph so, following the previous example, you will need to configure a dialog called <<<mystripes>>>. + + Try to put a property called <<<title>>> in such dialog for a test. + + You are ready to use your paragraph into any magnolia template as usual: + ++----------------------------------------------+ + + <cms:contentNodeIterator contentNodeCollectionName="column"> + <cms:editBar adminOnly="true" /> + <cms:includeTemplate /> + </cms:contentNodeIterator> + <cms:newBar contentNodeCollectionName="column" paragraph="mystripes" adminOnly="true" /> + ++----------------------------------------------+ + + Try to add an instance of the <<<mystripes>>> paragraph. Set the title property to whatever you want, you + will be able to use it in your Stripes action bean. + + The following example show the code for the simple <<<MyStripesAction>>> that prints out the configured title to the log: + ++----------------------------------------------+ +package it.myapp.web; + +import net.sourceforge.stripes.action.ActionBean; +import net.sourceforge.stripes.action.ActionBeanContext; +import net.sourceforge.stripes.action.DefaultHandler; +import net.sourceforge.stripes.action.ForwardResolution; +import net.sourceforge.stripes.action.Resolution; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +public class MyStripesAction implements ActionBean +{ + + private Logger log = LoggerFactory.getLogger(MyStripesAction.class); + + private String title; + + @Override + public ActionBeanContext getContext() + { + // TODO + return null; + } + + @Override + public void setContext(ActionBeanContext context) + { + // TODO + } + + public void setTitle(String title) + { + this.title = title; + } + + @DefaultHandler + public Resolution show() + { + + log.info("My title is: {}!", title); + + return new ForwardResolution("/templates/paragraphs/anyjsp.jsp"); + } +} ++----------------------------------------------+ + + As you can see, you will be able to mix parameters that you can use in Stripes action with pure content. Note that you + will not need to configure and use any magnolia paragraph property into your action since you can still use also the + standard magnolia tags in the jsp that is rendered by stripes! + + +Todo/improvements + + This is a list of know todos: + + * Important! reload stripes paragraph when the configuration of other paragraphs in magnolia is changed! At this moment + stripes paragraphs disappear after any change in paragraphs configured into jcr. + + * Use stripes binding/validation for validation of fields in dialogs + + Deleted: tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnlstripes/src/site/changes/changes.xml 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml 2008-05-05 23:11:37 UTC (rev 809) @@ -1,29 +0,0 @@ -<?xml version="1.0"?> -<!-- - "type" attribute can be: add, remove, update or fix. ---> -<document> - <properties> - <title>Changes</title> - <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> - </properties> - <body> - <release version="3.5" date="2008-04-24" description="3.5"> - <action type="add" dev="fgiust" due-to=""> </action> - </release> - <release version="0.2" date="2007-08-14" description=""> - <action type="update" dev="fgiust"> - Added support for indexed parameters by replacing "{}" with "[]" in parameter names (hack). With Stripes you can - use indexed parameters, but square brakets are not allowed in jcr node names and can't be used in paragraph - attributes. You can now use "list{1}" in attribute names for that. - </action> - <action type="fix" dev="fgiust"> - Excluded commons-logging dependency from stripes in pom.xml. Magnolia already imports jcl104-over-slf4j, which - is a replacement over the standard commons-logging jar. - </action> - </release> - <release version="0.1" date="2007-08-13" description="Initial release"> - <action type="add" dev="fgiust" due-to="">Initial release with support for stripes paragraphs.</action> - </release> - </body> -</document> \ No newline at end of file Copied: tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml (from rev 807, trunk/openutils-mgnlstripes/src/site/changes/changes.xml) =================================================================== --- tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml (rev 0) +++ tags/openutils-mgnlstripes-3.5/src/site/changes/changes.xml 2008-05-05 23:11:37 UTC (rev 809) @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="3.5" date="2008-04-24" description="3.5"> + <action type="update" dev="fgiust">update deps to magnolia 3.5.4</action> + <action type="update" dev="fgiust">the stripes filter is now added by the module automatically, and it should not + be added anymore in web.xml</action> + <action type="update" dev="fgiust">multipart forms are now handled properly</action> + </release> + <release version="0.2" date="2007-08-14" description=""> + <action type="update" dev="fgiust"> Added support for indexed parameters by replacing "{}" with "[]" in parameter + names (hack). With Stripes you can use indexed parameters, but square brakets are not allowed in jcr node names + and can't be used in paragraph attributes. You can now use "list{1}" in attribute names for that.</action> + <action type="fix" dev="fgiust"> Excluded commons-logging dependency from stripes in pom.xml. Magnolia already + imports jcl104-over-slf4j, which is a replacement over the standard commons-logging jar.</action> + </release> + <release version="0.1" date="2007-08-13" description="Initial release"> + <action type="add" dev="fgiust" due-to="">Initial release with support for stripes paragraphs.</action> + </release> + </body> +</document> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-05-07 09:00:35
|
Revision: 814 http://openutils.svn.sourceforge.net/openutils/?rev=814&view=rev Author: molaschi Date: 2008-05-07 02:00:41 -0700 (Wed, 07 May 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlbootstrapsync-0.1 Added Paths: ----------- tags/openutils-mgnlbootstrapsync-0.1/ tags/openutils-mgnlbootstrapsync-0.1/pom.xml tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java tags/openutils-mgnlbootstrapsync-0.1/src/site/ Removed Paths: ------------- tags/openutils-mgnlbootstrapsync-0.1/pom.xml tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java Copied: tags/openutils-mgnlbootstrapsync-0.1 (from rev 806, trunk/openutils-mgnlbootstrapsync) Deleted: tags/openutils-mgnlbootstrapsync-0.1/pom.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/pom.xml 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlbootstrapsync-0.1/pom.xml 2008-05-07 09:00:41 UTC (rev 814) @@ -1,76 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlbootstrapsync</artifactId> - <name>openutils-mgnlbootstrapsync</name> - <version>0.1-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5-rc2</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://svn.magnolia.info/maven/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnlbootstrapsync-0.1/pom.xml (from rev 813, trunk/openutils-mgnlbootstrapsync/pom.xml) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.1/pom.xml (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.1/pom.xml 2008-05-07 09:00:41 UTC (rev 814) @@ -0,0 +1,82 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlbootstrapsync</artifactId> + <name>openutils-mgnlbootstrapsync</name> + <version>0.1</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5-rc2</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.2</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://svn.magnolia.info/maven/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlbootstrapsync-0.1</url> + </scm> +</project> Deleted: tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-07 09:00:41 UTC (rev 814) @@ -1,160 +0,0 @@ -package it.openutils.mgnlbootstrapsync.listener; - -import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; - -import java.util.ArrayList; -import java.util.List; - -import javax.jcr.RepositoryException; -import javax.jcr.observation.Event; -import javax.jcr.observation.EventIterator; - -import org.apache.commons.lang.StringUtils; -import org.apache.jackrabbit.core.observation.EventImpl; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * @author luca boati mmolaschi - * @version $Id: $ - */ -public class BootstrapSyncListener extends AbstractBootstrapSyncListener -{ - - /** - * Store operation - * @author mmolaschi - * @version $Id: $ - */ - public class JcrOperation - { - - private String path; - - private boolean remove; - - /** - * @param path path of operation - * @param remove is a remove op? - */ - public JcrOperation(String path, boolean remove) - { - this.path = path; - this.remove = remove; - } - } - - private static Logger log = LoggerFactory.getLogger(BootstrapSyncListener.class); - - /** - * Configure listener on watch - * @param watch watch - */ - public BootstrapSyncListener(BootstrapSyncRepositoryWatch watch) - { - super(watch); - } - - /** - * {@inheritDoc} - */ - @Override - public void onEvent(EventIterator events) - { - List<JcrOperation> operations = new ArrayList<JcrOperation>(); - while (events.hasNext()) - { - // Event event - EventImpl event = (EventImpl) events.nextEvent(); - String eventPath = null; - try - { - eventPath = event.getPath(); - } - catch (RepositoryException ex) - { - log.error(ex.getMessage(), ex); - continue; - } - if (eventPath.startsWith("/jcr:")) - { - return; - } - - switch (event.getType()) - { - case Event.NODE_ADDED : - log.debug(eventPath + " added"); - break; - case Event.NODE_REMOVED : - log.debug(eventPath + " removed"); - break; - case Event.PROPERTY_ADDED : - log.debug(eventPath + " added"); - break; - case Event.PROPERTY_CHANGED : - log.debug(eventPath + " changed"); - break; - case Event.PROPERTY_REMOVED : - log.debug(eventPath + " removed"); - break; - default : - break; - } - - if (event.getType() == Event.NODE_REMOVED) - { - operations.add(new JcrOperation(eventPath, true)); - } - else - { - operations.add(new JcrOperation(eventPath, false)); - } - } - - // calculate minimum path and remove operation - String basePath = null; - JcrOperation remove = null; - for (JcrOperation operation : operations) - { - if (operation.remove) - { - remove = operation; - continue; - } - - int basePathSl = StringUtils.countMatches(basePath, "/"); - int pathSl = StringUtils.countMatches(operation.path, "/"); - - if (basePath == null || pathSl < basePathSl) - { - basePath = operation.path; - } - } - - if (remove != null) - { - if (log.isDebugEnabled()) - { - log.debug("Removed PATH: " + remove.path); - } - - removeNode(remove.path); - } - - if (basePath != null) - { - // remove metadata if present - basePath = StringUtils.substringBefore(basePath, "/MetaData"); - - if (log.isDebugEnabled()) - { - log.debug("Changed PATH: " + basePath); - } - - exportNode(basePath); - } - } - -} Copied: tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java (from rev 811, trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-07 09:00:41 UTC (rev 814) @@ -0,0 +1,166 @@ +package it.openutils.mgnlbootstrapsync.listener; + +import info.magnolia.cms.beans.config.ConfigLoader; +import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; + +import java.util.ArrayList; +import java.util.List; + +import javax.jcr.RepositoryException; +import javax.jcr.observation.Event; +import javax.jcr.observation.EventIterator; + +import org.apache.commons.lang.StringUtils; +import org.apache.jackrabbit.core.observation.EventImpl; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author luca boati mmolaschi + * @version $Id: $ + */ +public class BootstrapSyncListener extends AbstractBootstrapSyncListener +{ + + /** + * Store operation + * @author mmolaschi + * @version $Id: $ + */ + public class JcrOperation + { + + private String path; + + private boolean remove; + + /** + * @param path path of operation + * @param remove is a remove op? + */ + public JcrOperation(String path, boolean remove) + { + this.path = path; + this.remove = remove; + } + } + + private static Logger log = LoggerFactory.getLogger(BootstrapSyncListener.class); + + /** + * Configure listener on watch + * @param watch watch + */ + public BootstrapSyncListener(BootstrapSyncRepositoryWatch watch) + { + super(watch); + } + + /** + * {@inheritDoc} + */ + @Override + public void onEvent(EventIterator events) + { + if (!ConfigLoader.isConfigured() || ConfigLoader.isBootstrapping()) + { + return; + } + + List<JcrOperation> operations = new ArrayList<JcrOperation>(); + while (events.hasNext()) + { + // Event event + EventImpl event = (EventImpl) events.nextEvent(); + String eventPath = null; + try + { + eventPath = event.getPath(); + } + catch (RepositoryException ex) + { + log.error(ex.getMessage(), ex); + continue; + } + if (eventPath.startsWith("/jcr:")) + { + return; + } + + switch (event.getType()) + { + case Event.NODE_ADDED : + log.debug(eventPath + " added"); + break; + case Event.NODE_REMOVED : + log.debug(eventPath + " removed"); + break; + case Event.PROPERTY_ADDED : + log.debug(eventPath + " added"); + break; + case Event.PROPERTY_CHANGED : + log.debug(eventPath + " changed"); + break; + case Event.PROPERTY_REMOVED : + log.debug(eventPath + " removed"); + break; + default : + break; + } + + if (event.getType() == Event.NODE_REMOVED) + { + operations.add(new JcrOperation(eventPath, true)); + } + else + { + operations.add(new JcrOperation(eventPath, false)); + } + } + + // calculate minimum path and remove operation + String basePath = null; + JcrOperation remove = null; + for (JcrOperation operation : operations) + { + if (operation.remove) + { + remove = operation; + continue; + } + + int basePathSl = StringUtils.countMatches(basePath, "/"); + int pathSl = StringUtils.countMatches(operation.path, "/"); + + if (basePath == null || pathSl < basePathSl) + { + basePath = operation.path; + } + } + + if (remove != null) + { + if (log.isDebugEnabled()) + { + log.debug("Removed PATH: " + remove.path); + } + + removeNode(remove.path); + } + + if (basePath != null) + { + // remove metadata if present + basePath = StringUtils.substringBefore(basePath, "/MetaData"); + + if (log.isDebugEnabled()) + { + log.debug("Changed PATH: " + basePath); + } + + exportNode(basePath); + } + } + +} Copied: tags/openutils-mgnlbootstrapsync-0.1/src/site (from rev 812, trunk/openutils-mgnlbootstrapsync/src/site) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-05-07 09:08:40
|
Revision: 818 http://openutils.svn.sourceforge.net/openutils/?rev=818&view=rev Author: molaschi Date: 2008-05-07 02:08:45 -0700 (Wed, 07 May 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlbootstrapsync-0.1.1 Added Paths: ----------- tags/openutils-mgnlbootstrapsync-0.1.1/ tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java tags/openutils-mgnlbootstrapsync-0.1.1/src/site/ tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml Removed Paths: ------------- tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml Copied: tags/openutils-mgnlbootstrapsync-0.1.1 (from rev 806, trunk/openutils-mgnlbootstrapsync) Deleted: tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/pom.xml 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml 2008-05-07 09:08:45 UTC (rev 818) @@ -1,76 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlbootstrapsync</artifactId> - <name>openutils-mgnlbootstrapsync</name> - <version>0.1-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5-rc2</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://svn.magnolia.info/maven/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml (from rev 817, trunk/openutils-mgnlbootstrapsync/pom.xml) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.1.1/pom.xml 2008-05-07 09:08:45 UTC (rev 818) @@ -0,0 +1,82 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlbootstrapsync</artifactId> + <name>openutils-mgnlbootstrapsync</name> + <version>0.1.1</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5-rc2</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.2</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://svn.magnolia.info/maven/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.1.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.1.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlbootstrapsync-0.1.1</url> + </scm> +</project> Deleted: tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-04-29 12:54:36 UTC (rev 806) +++ tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-07 09:08:45 UTC (rev 818) @@ -1,160 +0,0 @@ -package it.openutils.mgnlbootstrapsync.listener; - -import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; - -import java.util.ArrayList; -import java.util.List; - -import javax.jcr.RepositoryException; -import javax.jcr.observation.Event; -import javax.jcr.observation.EventIterator; - -import org.apache.commons.lang.StringUtils; -import org.apache.jackrabbit.core.observation.EventImpl; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * @author luca boati mmolaschi - * @version $Id: $ - */ -public class BootstrapSyncListener extends AbstractBootstrapSyncListener -{ - - /** - * Store operation - * @author mmolaschi - * @version $Id: $ - */ - public class JcrOperation - { - - private String path; - - private boolean remove; - - /** - * @param path path of operation - * @param remove is a remove op? - */ - public JcrOperation(String path, boolean remove) - { - this.path = path; - this.remove = remove; - } - } - - private static Logger log = LoggerFactory.getLogger(BootstrapSyncListener.class); - - /** - * Configure listener on watch - * @param watch watch - */ - public BootstrapSyncListener(BootstrapSyncRepositoryWatch watch) - { - super(watch); - } - - /** - * {@inheritDoc} - */ - @Override - public void onEvent(EventIterator events) - { - List<JcrOperation> operations = new ArrayList<JcrOperation>(); - while (events.hasNext()) - { - // Event event - EventImpl event = (EventImpl) events.nextEvent(); - String eventPath = null; - try - { - eventPath = event.getPath(); - } - catch (RepositoryException ex) - { - log.error(ex.getMessage(), ex); - continue; - } - if (eventPath.startsWith("/jcr:")) - { - return; - } - - switch (event.getType()) - { - case Event.NODE_ADDED : - log.debug(eventPath + " added"); - break; - case Event.NODE_REMOVED : - log.debug(eventPath + " removed"); - break; - case Event.PROPERTY_ADDED : - log.debug(eventPath + " added"); - break; - case Event.PROPERTY_CHANGED : - log.debug(eventPath + " changed"); - break; - case Event.PROPERTY_REMOVED : - log.debug(eventPath + " removed"); - break; - default : - break; - } - - if (event.getType() == Event.NODE_REMOVED) - { - operations.add(new JcrOperation(eventPath, true)); - } - else - { - operations.add(new JcrOperation(eventPath, false)); - } - } - - // calculate minimum path and remove operation - String basePath = null; - JcrOperation remove = null; - for (JcrOperation operation : operations) - { - if (operation.remove) - { - remove = operation; - continue; - } - - int basePathSl = StringUtils.countMatches(basePath, "/"); - int pathSl = StringUtils.countMatches(operation.path, "/"); - - if (basePath == null || pathSl < basePathSl) - { - basePath = operation.path; - } - } - - if (remove != null) - { - if (log.isDebugEnabled()) - { - log.debug("Removed PATH: " + remove.path); - } - - removeNode(remove.path); - } - - if (basePath != null) - { - // remove metadata if present - basePath = StringUtils.substringBefore(basePath, "/MetaData"); - - if (log.isDebugEnabled()) - { - log.debug("Changed PATH: " + basePath); - } - - exportNode(basePath); - } - } - -} Copied: tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java (from rev 811, trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.1.1/src/main/java/it/openutils/mgnlbootstrapsync/listener/BootstrapSyncListener.java 2008-05-07 09:08:45 UTC (rev 818) @@ -0,0 +1,166 @@ +package it.openutils.mgnlbootstrapsync.listener; + +import info.magnolia.cms.beans.config.ConfigLoader; +import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; + +import java.util.ArrayList; +import java.util.List; + +import javax.jcr.RepositoryException; +import javax.jcr.observation.Event; +import javax.jcr.observation.EventIterator; + +import org.apache.commons.lang.StringUtils; +import org.apache.jackrabbit.core.observation.EventImpl; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author luca boati mmolaschi + * @version $Id: $ + */ +public class BootstrapSyncListener extends AbstractBootstrapSyncListener +{ + + /** + * Store operation + * @author mmolaschi + * @version $Id: $ + */ + public class JcrOperation + { + + private String path; + + private boolean remove; + + /** + * @param path path of operation + * @param remove is a remove op? + */ + public JcrOperation(String path, boolean remove) + { + this.path = path; + this.remove = remove; + } + } + + private static Logger log = LoggerFactory.getLogger(BootstrapSyncListener.class); + + /** + * Configure listener on watch + * @param watch watch + */ + public BootstrapSyncListener(BootstrapSyncRepositoryWatch watch) + { + super(watch); + } + + /** + * {@inheritDoc} + */ + @Override + public void onEvent(EventIterator events) + { + if (!ConfigLoader.isConfigured() || ConfigLoader.isBootstrapping()) + { + return; + } + + List<JcrOperation> operations = new ArrayList<JcrOperation>(); + while (events.hasNext()) + { + // Event event + EventImpl event = (EventImpl) events.nextEvent(); + String eventPath = null; + try + { + eventPath = event.getPath(); + } + catch (RepositoryException ex) + { + log.error(ex.getMessage(), ex); + continue; + } + if (eventPath.startsWith("/jcr:")) + { + return; + } + + switch (event.getType()) + { + case Event.NODE_ADDED : + log.debug(eventPath + " added"); + break; + case Event.NODE_REMOVED : + log.debug(eventPath + " removed"); + break; + case Event.PROPERTY_ADDED : + log.debug(eventPath + " added"); + break; + case Event.PROPERTY_CHANGED : + log.debug(eventPath + " changed"); + break; + case Event.PROPERTY_REMOVED : + log.debug(eventPath + " removed"); + break; + default : + break; + } + + if (event.getType() == Event.NODE_REMOVED) + { + operations.add(new JcrOperation(eventPath, true)); + } + else + { + operations.add(new JcrOperation(eventPath, false)); + } + } + + // calculate minimum path and remove operation + String basePath = null; + JcrOperation remove = null; + for (JcrOperation operation : operations) + { + if (operation.remove) + { + remove = operation; + continue; + } + + int basePathSl = StringUtils.countMatches(basePath, "/"); + int pathSl = StringUtils.countMatches(operation.path, "/"); + + if (basePath == null || pathSl < basePathSl) + { + basePath = operation.path; + } + } + + if (remove != null) + { + if (log.isDebugEnabled()) + { + log.debug("Removed PATH: " + remove.path); + } + + removeNode(remove.path); + } + + if (basePath != null) + { + // remove metadata if present + basePath = StringUtils.substringBefore(basePath, "/MetaData"); + + if (log.isDebugEnabled()) + { + log.debug("Changed PATH: " + basePath); + } + + exportNode(basePath); + } + } + +} Copied: tags/openutils-mgnlbootstrapsync-0.1.1/src/site (from rev 812, trunk/openutils-mgnlbootstrapsync/src/site) Deleted: tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/site/site.xml 2008-05-06 16:37:17 UTC (rev 812) +++ tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml 2008-05-07 09:08:45 UTC (rev 818) @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project name="Openutils mgnlstripes"> - <publishDate position="navigation-bottom" format="yyyy-MM-dd" /> - <version position="navigation-bottom" /> - <bannerRight> - <name>Openutils</name> - <src>http://openutils.sourceforge.net/images/openutils-logo.png - </src> - <href>http://openutils.sourceforge.net</href> - </bannerRight> - <bannerLeft> - <name>Sourceforge</name> - <src>http://sourceforge.net/sflogo.php?group_id=150467&amp;type=2</src> - <href>http://www.sourceforge.net/projects/openutils</href> - </bannerLeft> - <body> - <head> - <link rel="icon" href="images/favicon.ico" /> - </head> - <breadcrumbs> - <item name="openutils" href="http://openutils.sourceforge.net/" /> - <item name="openutils-mgnlbootstrapsync" href="http://openutils.sourceforge.net/openutils-mgnlbootstrapsync" /> - </breadcrumbs> - <menu name="openutils mgnlstripes"> - <item name="Usage" href="index.html"></item> - </menu> - <menu ref="modules" inherit="bottom" /> - <menu ref="reports" inherit="bottom" /> - </body> - <skin> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-maven-skin</artifactId> - <version>1.1</version> - </skin> -</project> Copied: tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml (from rev 816, trunk/openutils-mgnlbootstrapsync/src/site/site.xml) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.1.1/src/site/site.xml 2008-05-07 09:08:45 UTC (rev 818) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Openutils mgnlbootstrapsync"> + <publishDate position="navigation-bottom" format="yyyy-MM-dd" /> + <version position="navigation-bottom" /> + <bannerRight> + <name>Openutils</name> + <src>http://openutils.sourceforge.net/images/openutils-logo.png + </src> + <href>http://openutils.sourceforge.net</href> + </bannerRight> + <bannerLeft> + <name>Sourceforge</name> + <src>http://sourceforge.net/sflogo.php?group_id=150467&amp;type=2</src> + <href>http://www.sourceforge.net/projects/openutils</href> + </bannerLeft> + <body> + <head> + <link rel="icon" href="images/favicon.ico" /> + </head> + <breadcrumbs> + <item name="openutils" href="http://openutils.sourceforge.net/" /> + <item name="openutils-mgnlbootstrapsync" href="http://openutils.sourceforge.net/openutils-mgnlbootstrapsync" /> + </breadcrumbs> + <menu name="openutils mgnlstripes"> + <item name="Usage" href="index.html"></item> + </menu> + <menu ref="modules" inherit="bottom" /> + <menu ref="reports" inherit="bottom" /> + </body> + <skin> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-maven-skin</artifactId> + <version>1.1</version> + </skin> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-05-07 12:56:46
|
Revision: 823 http://openutils.svn.sourceforge.net/openutils/?rev=823&view=rev Author: fgiust Date: 2008-05-07 05:56:53 -0700 (Wed, 07 May 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlspring-3.5 Added Paths: ----------- tags/openutils-mgnlspring-3.5/ tags/openutils-mgnlspring-3.5/LICENSE.txt tags/openutils-mgnlspring-3.5/pom.xml tags/openutils-mgnlspring-3.5/src/ tags/openutils-mgnlspring-3.5/src/test/java/it/openutils/mgnlspring/ContentBridgeTagTest.java tags/openutils-mgnlspring-3.5/src/test/resources/ Removed Paths: ------------- tags/openutils-mgnlspring-3.5/LICENSE.txt tags/openutils-mgnlspring-3.5/pom.xml tags/openutils-mgnlspring-3.5/src/ tags/openutils-mgnlspring-3.5/src/test/java/it/openutils/mgnlspring/ContentBridgeTagTest.java Copied: tags/openutils-mgnlspring-3.5 (from rev 821, trunk/openutils-mgnlspring) Deleted: tags/openutils-mgnlspring-3.5/LICENSE.txt =================================================================== --- trunk/openutils-mgnlspring/LICENSE.txt 2008-05-07 12:56:00 UTC (rev 821) +++ tags/openutils-mgnlspring-3.5/LICENSE.txt 2008-05-07 12:56:53 UTC (rev 823) @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - <program> Copyright (C) <year> <name of author> - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -<http://www.gnu.org/licenses/>. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -<http://www.gnu.org/philosophy/why-not-lgpl.html>. Copied: tags/openutils-mgnlspring-3.5/LICENSE.txt (from rev 820, trunk/openutils-mgnlspring/LICENSE.txt) =================================================================== --- tags/openutils-mgnlspring-3.5/LICENSE.txt (rev 0) +++ tags/openutils-mgnlspring-3.5/LICENSE.txt 2008-05-07 12:56:53 UTC (rev 823) @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License... [truncated message content] |
From: <fg...@us...> - 2008-06-08 11:39:12
|
Revision: 827 http://openutils.svn.sourceforge.net/openutils/?rev=827&view=rev Author: fgiust Date: 2008-06-08 04:39:19 -0700 (Sun, 08 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnltasks-3.5.2 Added Paths: ----------- tags/openutils-mgnltasks-3.5.2/ tags/openutils-mgnltasks-3.5.2/pom.xml Removed Paths: ------------- tags/openutils-mgnltasks-3.5.2/pom.xml Copied: tags/openutils-mgnltasks-3.5.2 (from rev 825, trunk/openutils-mgnltasks) Deleted: tags/openutils-mgnltasks-3.5.2/pom.xml =================================================================== --- trunk/openutils-mgnltasks/pom.xml 2008-06-08 11:38:26 UTC (rev 825) +++ tags/openutils-mgnltasks-3.5.2/pom.xml 2008-06-08 11:39:19 UTC (rev 827) @@ -1,89 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnltasks</artifactId> - <name>openutils-mgnltasks</name> - <version>3.5.2-SNAPSHOT</version> - <description>A collection of useful magnolia update tasks that can be reused in custom modules</description> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.4</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jsp-api</artifactId> - <version>2.0</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.7</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://repo.magnolia.info/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnltasks-3.5.2/pom.xml (from rev 826, trunk/openutils-mgnltasks/pom.xml) =================================================================== --- tags/openutils-mgnltasks-3.5.2/pom.xml (rev 0) +++ tags/openutils-mgnltasks-3.5.2/pom.xml 2008-06-08 11:39:19 UTC (rev 827) @@ -0,0 +1,95 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnltasks</artifactId> + <name>openutils-mgnltasks</name> + <version>3.5.2</version> + <description>A collection of useful magnolia update tasks that can be reused in custom modules</description> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.7</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://repo.magnolia.info/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnltasks-3.5.2</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnltasks-3.5.2</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnltasks-3.5.2</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fc...@us...> - 2008-06-09 16:47:50
|
Revision: 832 http://openutils.svn.sourceforge.net/openutils/?rev=832&view=rev Author: fcarone Date: 2008-06-09 09:47:53 -0700 (Mon, 09 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-bshd5-2.0.4 Added Paths: ----------- tags/openutils-bshd5-2.0.4/ tags/openutils-bshd5-2.0.4/pom.xml tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java Removed Paths: ------------- tags/openutils-bshd5-2.0.4/pom.xml tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java Copied: tags/openutils-bshd5-2.0.4 (from rev 829, trunk/openutils-bshd5) Deleted: tags/openutils-bshd5-2.0.4/pom.xml =================================================================== --- trunk/openutils-bshd5/pom.xml 2008-06-08 11:47:36 UTC (rev 829) +++ tags/openutils-bshd5-2.0.4/pom.xml 2008-06-09 16:47:53 UTC (rev 832) @@ -1,108 +0,0 @@ -<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> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <artifactId>openutils-bshd5</artifactId> - <name>openutils base Spring-Hibernate DAO for java 5.0</name> - <version>2.0.4-SNAPSHOT</version> - <description>openutils base Spring-Hibernate DAO for java 5.0</description> - <dependencies> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - <version>1.5.0</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>jcl104-over-slf4j</artifactId> - <version>1.5.0</version> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-jdbc</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-beans</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-orm</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-aop</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.hibernate</groupId> - <artifactId>hibernate</artifactId> - <version>3.2.1.ga</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - <exclusion> - <groupId>cglib</groupId> - <artifactId>cglib</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>cglib</groupId> - <artifactId>cglib-nodep</artifactId> - <version>2.1_3</version> - </dependency> - <dependency> - <groupId>commons-beanutils</groupId> - <artifactId>commons-beanutils</artifactId> - <version>1.7.0</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> - </dependency> - </dependencies> - <properties> - <spring.version>2.5.3</spring.version> - </properties> -</project> \ No newline at end of file Copied: tags/openutils-bshd5-2.0.4/pom.xml (from rev 831, trunk/openutils-bshd5/pom.xml) =================================================================== --- tags/openutils-bshd5-2.0.4/pom.xml (rev 0) +++ tags/openutils-bshd5-2.0.4/pom.xml 2008-06-09 16:47:53 UTC (rev 832) @@ -0,0 +1,114 @@ +<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> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <artifactId>openutils-bshd5</artifactId> + <name>openutils base Spring-Hibernate DAO for java 5.0</name> + <version>2.0.4</version> + <description>openutils base Spring-Hibernate DAO for java 5.0</description> + <dependencies> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.5.0</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>jcl104-over-slf4j</artifactId> + <version>1.5.0</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-jdbc</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-beans</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-orm</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-aop</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.hibernate</groupId> + <artifactId>hibernate</artifactId> + <version>3.2.1.ga</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + <exclusion> + <groupId>cglib</groupId> + <artifactId>cglib</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>cglib</groupId> + <artifactId>cglib-nodep</artifactId> + <version>2.1_3</version> + </dependency> + <dependency> + <groupId>commons-beanutils</groupId> + <artifactId>commons-beanutils</artifactId> + <version>1.7.0</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.4</version> + </dependency> + </dependencies> + <properties> + <spring.version>2.5.3</spring.version> + </properties> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-bshd5-2.0.4</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-bshd5-2.0.4</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-bshd5-2.0.4</url> + </scm> +</project> \ No newline at end of file Deleted: tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java 2008-06-08 11:47:36 UTC (rev 829) +++ tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java 2008-06-09 16:47:53 UTC (rev 832) @@ -1,254 +0,0 @@ -package it.openutils.dao.hibernate; - -import it.openutils.hibernate.example.FilterMetadata; - -import java.io.Serializable; -import java.util.List; -import java.util.Map; - -import org.hibernate.criterion.Criterion; -import org.hibernate.criterion.Order; -import org.hibernate.type.Type; - - -/** - * @author Fabrizio Giustina - * @version $Id$ - * @param <T> Persistence class - * @param <K> Object Key - */ -public interface HibernateDAO<T extends Object, K extends Serializable> -{ - - /** - * Execute a query. - * @param query a query expressed in Hibernate's query language - * @return a distinct list of instances (or arrays of instances) - */ - List<T> find(String query); - - /** - * Return all objects related to the implementation of this DAO with no filter. - * @return a list of all instances - */ - List<T> findAll(); - - /** - * Return all objects related to the implementation of this DAO with no filter. - * @param orderProperties <code>desc</code> or <code>asc</code> - * @return a list of all instances - */ - List<T> findAll(final Order[] orderProperties); - - /** - * Return all objects related to the implementation of this DAO with no filter. - * @param orderProperties <code>desc</code> or <code>asc</code> - * @param criteria Additional Criterion conditions - * @return a list of all instances - */ - List<T> findAll(final Order[] orderProperties, List<Criterion> criteria); - - /** - * Execute a query. - * @param query a query expressed in Hibernate's query language - * @param obj filter value - * @param type filter type - * @return a distinct list of instances (or arrays of instances) - */ - List<T> find(String query, Object obj, Type type); - - /** - * Execute a query. - * @param query a query expressed in Hibernate's query language - * @param obj filter values - * @param type filter types - * @return a distinct list of instances (or arrays of instances) - */ - List<T> find(final String query, final Object[] obj, final Type[] type); - - /** - * Re-read the state of the given instance from the underlying database. It is inadvisable to use this to implement - * long-running sessions that span many business tasks. This method is, however, useful in certain special - * circumstances. For example - * <ul> - * <li>where a database trigger alters the object state upon insert or update - * <li>after executing direct SQL (eg. a mass update) in the same session - * <li>after inserting a <tt>Blob</tt> or <tt>Clob</tt> - * </ul> - * @param obj Object - */ - void refresh(T obj); - - /** - * Remove the given object from the Session cache. - * @param obj Object - */ - void evict(T obj); - - /** - * Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent - * instance currently associated with the session, it will be loaded. Return the persistent instance. If the given - * instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not - * become associated with the session. This operation cascades to associated instances if the association is mapped - * with <tt>cascade="merge"</tt>.<br> - * <br> - * The semantics of this method are defined by JSR-220. - * @param obj a detached instance with state to be copied - * @return an updated persistent instance - */ - T merge(T obj); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param maxResults maximum number of results - * @param page result page (first result is maxResults * page) - * @return list of objects - */ - List<T> findFiltered(final T filter, final int maxResults, final int page); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param metadata filter metadata - * @param maxResults maximum number of results - * @param page result page (first result is maxResults * page) - * @return list of objects - */ - List<T> findFiltered(final T filter, Map<String, FilterMetadata> metadata, final int maxResults, final int page); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param customOrder order criterias - * @param metadata filter metadata - * @param maxResults maximum number of results - * @param page result page (first result is maxResults * page) - * @return list of objects - */ - List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, - final int maxResults, final int page); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param customOrder order criterias - * @param metadata filter metadata - * @param maxResults maximum number of results - * @param page result page (first result is maxResults * page) - * @param additionalCriteria additional criteria - * @return list of objects - */ - List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, - final int maxResults, final int page, List<Criterion> additionalCriteria); - - /** - * Return properties from all objects related to the implementation of this DAO filtered using properties of the - * provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param customOrder order criterias - * @param metadata filter metadata - * @param maxResults maximum number of results - * @param page result page (first result is maxResults * page) - * @param additionalCriteria additional criteria - * @param properties properties to be returned - * @return list of properties from all objects - */ - List< ? > findFilteredProperties(final T filter, final Order[] customOrder, - final Map<String, FilterMetadata> metadata, final int maxResults, final int page, - List<Criterion> additionalCriteria, List<String> properties); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @return list of objects - */ - List<T> findFiltered(final T filter); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param orderProperties the name of the property used for ordering - * @return list of objects - */ - List<T> findFiltered(final T filter, final Order[] orderProperties); - - /** - * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param metadata filter metadata - * @return list of objects - */ - List<T> findFiltered(final T filter, Map<String, FilterMetadata> metadata); - - /** - * Return the first object related to the implementation of this DAO filtered using properties of the provided - * instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @return first object in the collection - */ - T findFilteredFirst(final T filter); - - /** - * Return the first object related to the implementation of this DAO filtered using properties of the provided - * instance. - * @param filter an instance of the object with the properties you whish to filter on. - * @param criteria additional criterion - * @return first object in the collection - */ - T findFilteredFirst(final T filter, final List<Criterion> criteria); - - /** - * Used by the base DAO classes but here for your modification Remove a persistent instance from the datastore. The - * argument may be an instance associated with the receiving Session or a transient instance with an identifier - * associated with existing persistent state. - * @param key key - * @return true if the object was successfully deleted, false otherwise - */ - boolean delete(final K key); - - /** - * Load object matching the given key and return it. Throw an exception if not found. - * @param key serializable key - * @return Object - */ - T load(K key); - - /** - * Load object matching the given key and return it. Lazy object will be initialized. - * @param key serializable key - * @return Object - */ - T loadIfAvailable(K key); - - /** - * Load object matching the given key and return it. Lazy object will be initialized. - * @param key serializable key - * @return Object - */ - T get(K key); - - /** - * Used by the base DAO classes but here for your modification Either save() or update() the given instance, - * depending upon the value of its identifier property. - * @param obj Object - */ - void saveOrUpdate(final T obj); - - /** - * Used by the base DAO classes but here for your modification Update the persistent state associated with the given - * identifier. An exception is thrown if there is a persistent instance with the same identifier in the current - * session. - * @param obj a transient instance containing updated state - */ - void update(T obj); - - /** - * Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the - * identifier property if the assigned generator is used.) - * @param obj Object - * @return generated id - */ - K save(T obj); - -} Copied: tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java (from rev 830, trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java) =================================================================== --- tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java (rev 0) +++ tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java 2008-06-09 16:47:53 UTC (rev 832) @@ -0,0 +1,262 @@ +package it.openutils.dao.hibernate; + +import it.openutils.hibernate.example.FilterMetadata; + +import java.io.Serializable; +import java.util.List; +import java.util.Map; + +import org.hibernate.criterion.Criterion; +import org.hibernate.criterion.Order; +import org.hibernate.type.Type; + + +/** + * @author Fabrizio Giustina + * @version $Id$ + * @param <T> Persistence class + * @param <K> Object Key + */ +public interface HibernateDAO<T extends Object, K extends Serializable> +{ + + /** + * Execute a query. + * @param query a query expressed in Hibernate's query language + * @return a distinct list of instances (or arrays of instances) + */ + List<T> find(String query); + + /** + * Return all objects related to the implementation of this DAO with no filter. + * @return a list of all instances + */ + List<T> findAll(); + + /** + * Return all objects related to the implementation of this DAO with no filter. + * @param orderProperties <code>desc</code> or <code>asc</code> + * @return a list of all instances + */ + List<T> findAll(final Order[] orderProperties); + + /** + * Return all objects related to the implementation of this DAO with no filter. + * @param orderProperties <code>desc</code> or <code>asc</code> + * @param criteria Additional Criterion conditions + * @return a list of all instances + */ + List<T> findAll(final Order[] orderProperties, List<Criterion> criteria); + + /** + * Execute a query. + * @param query a query expressed in Hibernate's query language + * @param obj filter value + * @param type filter type + * @return a distinct list of instances (or arrays of instances) + */ + List<T> find(String query, Object obj, Type type); + + /** + * Execute a query. + * @param query a query expressed in Hibernate's query language + * @param obj filter values + * @param type filter types + * @return a distinct list of instances (or arrays of instances) + */ + List<T> find(final String query, final Object[] obj, final Type[] type); + + /** + * Re-read the state of the given instance from the underlying database. It is inadvisable to use this to implement + * long-running sessions that span many business tasks. This method is, however, useful in certain special + * circumstances. For example + * <ul> + * <li>where a database trigger alters the object state upon insert or update + * <li>after executing direct SQL (eg. a mass update) in the same session + * <li>after inserting a <tt>Blob</tt> or <tt>Clob</tt> + * </ul> + * @param obj Object + */ + void refresh(T obj); + + /** + * Remove the given object from the Session cache. + * @param obj Object + */ + void evict(T obj); + + /** + * Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent + * instance currently associated with the session, it will be loaded. Return the persistent instance. If the given + * instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not + * become associated with the session. This operation cascades to associated instances if the association is mapped + * with <tt>cascade="merge"</tt>.<br> + * <br> + * The semantics of this method are defined by JSR-220. + * @param obj a detached instance with state to be copied + * @return an updated persistent instance + */ + T merge(T obj); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param maxResults maximum number of results + * @param page result page (first result is maxResults * page) + * @return list of objects + */ + List<T> findFiltered(final T filter, final int maxResults, final int page); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param metadata filter metadata + * @param maxResults maximum number of results + * @param page result page (first result is maxResults * page) + * @return list of objects + */ + List<T> findFiltered(final T filter, Map<String, FilterMetadata> metadata, final int maxResults, final int page); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param customOrder order criterias + * @param metadata filter metadata + * @param maxResults maximum number of results + * @param page result page (first result is maxResults * page) + * @return list of objects + */ + List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, + final int maxResults, final int page); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param customOrder order criterias + * @param metadata filter metadata + * @param maxResults maximum number of results + * @param page result page (first result is maxResults * page) + * @param additionalCriteria additional criteria + * @return list of objects + */ + List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, + final int maxResults, final int page, List<Criterion> additionalCriteria); + + /** + * Return properties from all objects related to the implementation of this DAO filtered using properties of the + * provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param customOrder order criterias + * @param metadata filter metadata + * @param maxResults maximum number of results + * @param page result page (first result is maxResults * page) + * @param additionalCriteria additional criteria + * @param properties properties to be returned + * @return list of properties from all objects + */ + List< ? > findFilteredProperties(final T filter, final Order[] customOrder, + final Map<String, FilterMetadata> metadata, final int maxResults, final int page, + List<Criterion> additionalCriteria, List<String> properties); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @return list of objects + */ + List<T> findFiltered(final T filter); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param orderProperties the name of the property used for ordering + * @return list of objects + */ + List<T> findFiltered(final T filter, final Order[] orderProperties); + + /** + * Return all objects related to the implementation of this DAO filtered using properties of the provided instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param metadata filter metadata + * @return list of objects + */ + List<T> findFiltered(final T filter, Map<String, FilterMetadata> metadata); + + /** + * Return the first object related to the implementation of this DAO filtered using properties of the provided + * instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @return first object in the collection + */ + T findFilteredFirst(final T filter); + + /** + * Return the first object related to the implementation of this DAO filtered using properties of the provided + * instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @return first object in the collection + */ + T findFilteredFirst(final T filter, final Order[] order); + + /** + * Return the first object related to the implementation of this DAO filtered using properties of the provided + * instance. + * @param filter an instance of the object with the properties you whish to filter on. + * @param criteria additional criterion + * @return first object in the collection + */ + T findFilteredFirst(final T filter, final List<Criterion> criteria); + + /** + * Used by the base DAO classes but here for your modification Remove a persistent instance from the datastore. The + * argument may be an instance associated with the receiving Session or a transient instance with an identifier + * associated with existing persistent state. + * @param key key + * @return true if the object was successfully deleted, false otherwise + */ + boolean delete(final K key); + + /** + * Load object matching the given key and return it. Throw an exception if not found. + * @param key serializable key + * @return Object + */ + T load(K key); + + /** + * Load object matching the given key and return it. Lazy object will be initialized. + * @param key serializable key + * @return Object + */ + T loadIfAvailable(K key); + + /** + * Load object matching the given key and return it. Lazy object will be initialized. + * @param key serializable key + * @return Object + */ + T get(K key); + + /** + * Used by the base DAO classes but here for your modification Either save() or update() the given instance, + * depending upon the value of its identifier property. + * @param obj Object + */ + void saveOrUpdate(final T obj); + + /** + * Used by the base DAO classes but here for your modification Update the persistent state associated with the given + * identifier. An exception is thrown if there is a persistent instance with the same identifier in the current + * session. + * @param obj a transient instance containing updated state + */ + void update(T obj); + + /** + * Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the + * identifier property if the assigned generator is used.) + * @param obj Object + * @return generated id + */ + K save(T obj); + +} Deleted: tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2008-06-08 11:47:36 UTC (rev 829) +++ tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2008-06-09 16:47:53 UTC (rev 832) @@ -1,674 +0,0 @@ -package it.openutils.dao.hibernate; - -import it.openutils.hibernate.example.EnhancedExample; -import it.openutils.hibernate.example.FilterMetadata; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.aopalliance.aop.AspectException; -import org.hibernate.Criteria; -import org.hibernate.Hibernate; -import org.hibernate.HibernateException; -import org.hibernate.ObjectNotFoundException; -import org.hibernate.Query; -import org.hibernate.Session; -import org.hibernate.criterion.CriteriaSpecification; -import org.hibernate.criterion.Criterion; -import org.hibernate.criterion.Order; -import org.hibernate.criterion.ProjectionList; -import org.hibernate.criterion.Projections; -import org.hibernate.criterion.Property; -import org.hibernate.type.Type; -import org.springframework.aop.framework.AopContext; -import org.springframework.orm.hibernate3.HibernateCallback; -import org.springframework.orm.hibernate3.support.HibernateDaoSupport; - - -/** - * Base Hibernate DAO. - * @author Fabrizio Giustina - * @version $Id$ - * @param <T> Persistence class - * @param <K> Object Key - */ -public abstract class HibernateDAOImpl<T extends Object, K extends Serializable> extends HibernateDaoSupport - implements - HibernateDAO<T, K> -{ - - private Class<T> referenceClass; - - private boolean aopenabled; - - /** - * Instantiates a new DAO instance - */ - public HibernateDAOImpl() - { - super(); - } - - /** - * Sets the class of the persistent bean managed by this DAO - * @param referenceClass the class for the bean managed by this DAO - */ - @SuppressWarnings({"unchecked" }) - public HibernateDAOImpl(Class referenceClass) - { - super(); - this.referenceClass = referenceClass; - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public List<T> find(String query) - { - return getHibernateTemplate().find(query); - } - - /** - * {@inheritDoc} - */ - public List<T> findAll() - { - return findAll(getDefaultOrder()); - } - - /** - * {@inheritDoc} - */ - public List<T> findAll(final Order[] orderProperties) - { - return getThis().findAll(orderProperties, new ArrayList<Criterion>()); - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public List<T> findAll(final Order[] orderProperties, final List<Criterion> criteria) - { - return (List<T>) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - Criteria crit = ses.createCriteria(getReferenceClass()); - if (null != orderProperties) - { - for (int j = 0; j < orderProperties.length; j++) - { - crit.addOrder(orderProperties[j]); - } - - } - if (criteria != null) - { - for (Criterion criterion : criteria) - { - crit.add(criterion); - } - } - return crit.list(); - } - }); - } - - /** - * {@inheritDoc} - */ - public List<T> find(String query, Object obj, Type type) - { - return find(query, new Object[]{obj }, new Type[]{type }); - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public List<T> find(final String query, final Object[] obj, final Type[] type) - { - return (List<T>) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - // hibernate 3 - return ses.createQuery(query).setParameters(obj, type).list(); - } - }); - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public T load(K key) - { - T result = (T) getHibernateTemplate().load(getReferenceClass(), key); - Hibernate.initialize(result); - return result; - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public T loadIfAvailable(K key) - { - T result; - try - { - result = (T) getHibernateTemplate().get(getReferenceClass(), key); - if (result != null) - { - Hibernate.initialize(result); - } - } - catch (ObjectNotFoundException e) - { - // during lazy initialization - return null; - } - return result; - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public T get(K key) - { - return (T) getHibernateTemplate().get(getReferenceClass(), key); - } - - /** - * {@inheritDoc} - */ - public void saveOrUpdate(final T obj) - { - getHibernateTemplate().saveOrUpdate(obj); - } - - /** - * {@inheritDoc} - */ - public void update(T obj) - { - getHibernateTemplate().update(obj); - } - - /** - * {@inheritDoc} - */ - public boolean delete(final K key) - { - - return (Boolean) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - ses.delete(ses.load(getReferenceClass(), key)); - return true; - } - }); - - } - - /** - * {@inheritDoc} - */ - public void refresh(T obj) - { - getHibernateTemplate().refresh(obj); - } - - /** - * {@inheritDoc} - */ - public void evict(T obj) - { - getHibernateTemplate().evict(obj); - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public T merge(final T obj) - { - return (T) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - return ses.merge(obj); - } - }); - - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public K save(T obj) - { - return (K) getHibernateTemplate().save(obj); - } - - /** - * {@inheritDoc} - */ - public T findFilteredFirst(final T filter) - { - return getFirstInCollection(findFiltered(filter, 1, 0)); - } - - /** - * {@inheritDoc} - */ - public T findFilteredFirst(final T filter, List<Criterion> criteria) - { - return getFirstInCollection(findFiltered(filter, null, getDefaultFilterMetadata(), 1, 0, criteria)); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(final T filter) - { - return findFiltered(filter, getDefaultFilterMetadata()); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(T filter, Order[] orderProperties) - { - return findFiltered(filter, orderProperties, getDefaultFilterMetadata(), Integer.MAX_VALUE, 0); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(final T filter, final Map<String, FilterMetadata> metadata) - { - return findFiltered(filter, metadata, Integer.MAX_VALUE, 0); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(final T filter, final int maxResults, final int page) - { - return findFiltered(filter, getDefaultFilterMetadata(), maxResults, page); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(final T filter, final Map<String, FilterMetadata> metadata, final int maxResults, - final int page) - { - return findFiltered(filter, null, metadata, maxResults, page); - } - - /** - * {@inheritDoc} - */ - public List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, - final int maxResults, final int page) - { - return getThis().findFiltered(filter, customOrder, metadata, maxResults, page, new ArrayList<Criterion>()); - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - public List<T> findFiltered(T filter, Order[] customOrder, Map<String, FilterMetadata> metadata, int maxResults, - int page, List<Criterion> additionalCriteria) - { - final Order[] orderProperties = customOrder != null && customOrder.length > 0 ? customOrder : this - .getDefaultOrder(); - - return (List<T>) getHibernateTemplate().execute( - new HibernateCallbackForExecution( - filter, - page, - maxResults, - metadata, - orderProperties, - additionalCriteria, - null)); - } - - /** - * {@inheritDoc} - */ - public List< ? > findFilteredProperties(final T filter, final Order[] customOrder, - final Map<String, FilterMetadata> metadata, final int maxResults, final int page, - List<Criterion> additionalCriteria, List<String> properties) - { - final Order[] orderProperties = customOrder != null && customOrder.length > 0 ? customOrder : this - .getDefaultOrder(); - - return (List< ? >) getHibernateTemplate().execute( - new HibernateCallbackForExecution( - filter, - page, - maxResults, - metadata, - orderProperties, - additionalCriteria, - properties)); - } - - /** - * Return the specific Object class that will be used for class-specific implementation of this DAO. - * @return the reference Class - */ - protected Class<T> getReferenceClass() - { - return referenceClass; - } - - public void setReferenceClass(Class<T> referenceClass) - { - this.referenceClass = referenceClass; - } - - /** - * Return a list of <code>Order</code> object to be used for the default ordering of the collection. - * @return the property name - */ - protected Order[] getDefaultOrder() - { - return new Order[0]; - } - - /** - * Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given. - * @param name the name of a query defined externally - * @param params the parameter array - * @param maxResults max number of results - * @return Query - */ - protected List< ? > findByNamedQuery(final String name, final Serializable[] params, final Integer maxResults) - { - return (List< ? >) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - Query q = ses.getNamedQuery(name); - if (maxResults != null) - { - q.setMaxResults(maxResults); - } - if (params != null) - { - for (int i = 0; i < params.length; i++) - { - q.setParameter(i, params[i]); - } - } - return q.list(); - } - }); - } - - /** - * Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given. - * @param name the name of a query defined externally - * @param params the parameter Map - * @param maxResults max number of results - * @return Query - */ - protected List< ? > findByNamedQuery(final String name, final Map<String, Object> params, final Integer maxResults) - { - return (List< ? >) getHibernateTemplate().execute(new HibernateCallback() - { - - public Object doInHibernate(Session ses) throws HibernateException - { - Query q = ses.getNamedQuery(name); - if (maxResults != null) - { - q.setMaxResults(maxResults); - } - - if (params != null) - { - for (Map.Entry<String, Object> entry : params.entrySet()) - { - setParameterValue(q, entry.getKey(), entry.getValue()); - } - } - return q.list(); - } - }); - } - - /** - * Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given. - * @param name the name of a query defined externally - * @param params the parameter array - * @param maxResults max number of results - * @return Query - * @deprecated use the better named <code>findByNamedQuery</code> method - */ - @Deprecated - protected List< ? > getNamedQuery(final String name, final Serializable[] params, int maxResults) - { - return findByNamedQuery(name, params, maxResults > 0 ? maxResults : Integer.MAX_VALUE); - } - - /** - * Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given. - * @param name the name of a query defined externally - * @param params the parameter Map - * @param maxResults max number of results - * @return Query - * @deprecated use the better named <code>findByNamedQuery</code> method - */ - @Deprecated - protected List< ? > getNamedQuery(final String name, final Map<String, Object> params, int maxResults) - { - return findByNamedQuery(name, params, maxResults > 0 ? maxResults : Integer.MAX_VALUE); - } - - /** - * Convenience method to set paramers in the query given based on the actual object type in passed in as the value. - * You may need to add more functionaly to this as desired (or not use this at all). - * @param query the Query to set - * @param key the key name - * @param value the object to set as the parameter - */ - protected void setParameterValue(Query query, String key, Object value) - { - if (null == key || null == value) - { - return; - } - query.setParameter(key, value); - } - - /** - * Returns the default set of FilterMetadata that will be applied to any query. The default implementation doesn't - * set any default filter, subclasses may override this. - * @return map of property name - filter metadata - */ - protected Map<String, FilterMetadata> getDefaultFilterMetadata() - { - return new HashMap<String, FilterMetadata>(0); - } - - /** - * Returns the first object in the collection or null if the collection is null or empty. - * @param list collection - * @return first element in the list - */ - @SuppressWarnings("unchecked") - private T getFirstInCollection(Collection<T> list) - { - if (list != null && !list.isEmpty()) - { - Object result = list.iterator().next(); - Hibernate.initialize(result); - return (T) result; - } - return null; - } - - /** - * Sets the aopenabled. - * @param aopenabled the aopenabled to set - */ - public void setAopenabled(boolean aopenabled) - { - this.aopenabled = aopenabled; - } - - /** - * @return This is needed as for http://opensource.atlassian.com/projects/spring/browse/SPR-2226 - */ - @SuppressWarnings("unchecked") - private HibernateDAO<T, K> getThis() - { - if (!aopenabled) - { - return this; - } - - try - { - return (HibernateDAO<T, K>) AopContext.currentProxy(); - } - catch (AspectException exc) - { - logger.debug("Not running inside an AOP proxy, so no proxy can be returned: " + exc.getMessage()); - return this; - } - catch (IllegalStateException e) - { - logger.warn("Cannot access proxy: " + e.getMessage()); - aopenabled = false; - return this; - } - } - - /** - * @author carone - * @version $Id$ - */ - private final class HibernateCallbackForExecution implements HibernateCallback - { - - /** - * - */ - private final T filter; - - /** - * - */ - private final int page; - - /** - * - */ - private final int maxResults; - - /** - * - */ - private final Map<String, FilterMetadata> metadata; - - /** - * - */ - private final List<String> properties; - - /** - * - */ - private final Order[] orderProperties; - - private List<Criterion> additionalCriteria; - - /** - * @param filter - * @param page - * @param maxResults - * @param metadata - * @param orderProperties - */ - private HibernateCallbackForExecution( - T filter, - int page, - int maxResults, - Map<String, FilterMetadata> metadata, - Order[] orderProperties, - List<Criterion> additionalCriteria, - List<String> properties) - { - this.filter = filter; - this.page = page; - this.maxResults = maxResults; - this.metadata = metadata; - this.orderProperties = orderProperties; - this.additionalCriteria = additionalCriteria; - this.properties = properties; - } - - public Object doInHibernate(Session ses) throws HibernateException - { - Criteria crit = ses.createCriteria(filter.getClass()); - crit.setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY); - crit.setMaxResults(maxResults); - crit.setFirstResult(maxResults * page); - - if (orderProperties != null && orderProperties.length > 0) - { - for (Order order : orderProperties) - { - if (order != null) - { - crit.addOrder(order); - } - } - } - EnhancedExample.create(crit, filter, metadata); - if (additionalCriteria != null && !additionalCriteria.isEmpty()) - { - for (Criterion criterion : additionalCriteria) - { - crit.add(criterion); - } - } - if (properties != null) - { - ProjectionList projectionList = Projections.projectionList(); - - for (String property : properties) - { - projectionList.add(Property.forName(property)); - } - - crit.setProjection(projectionList); - } - return crit.list(); - } - } - -} \ No newline at end of file Copied: tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java (from rev 830, trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java) =================================================================== --- tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java (rev 0) +++ tags/openutils-bshd5-2.0.4/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2008-06-09 16:47:53 UTC (rev 832) @@ -0,0 +1,683 @@ +package it.openutils.dao.hibernate; + +import it.openutils.hibernate.example.EnhancedExample; +import it.openutils.hibernate.example.FilterMetadata; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.aopalliance.aop.AspectException; +import org.hibernate.Criteria; +import org.hibernate.Hibernate; +import org.hibernate.HibernateException; +import org.hibernate.ObjectNotFoundException; +import org.hibernate.Query; +import org.hibernate.Session; +import org.hibernate.criterion.CriteriaSpecification; +import org.hibernate.criterion.Criterion; +import org.hibernate.criterion.Order; +import org.hibernate.criterion.ProjectionList; +import org.hibernate.criterion.Projections; +import org.hibernate.criterion.Property; +import org.hibernate.type.Type; +import org.springframework.aop.framework.AopContext; +import org.springframework.orm.hibernate3.HibernateCallback; +import org.springframework.orm.hibernate3.support.HibernateDaoSupport; + + +/** + * Base Hibernate DAO. + * @author Fabrizio Giustina + * @version $Id$ + * @param <T> Persistence class + * @param <K> Object Key + */ +public abstract class HibernateDAOImpl<T extends Object, K extends Serializable> extends HibernateDaoSupport + implements + HibernateDAO<T, K> +{ + + private Class<T> referenceClass; + + private boolean aopenabled; + + /** + * Instantiates a new DAO instance + */ + public HibernateDAOImpl() + { + super(); + } + + /** + * Sets the class of the persistent bean managed by this DAO + * @param referenceClass the class for the bean managed by this DAO + */ + @SuppressWarnings({"unchecked" }) + public HibernateDAOImpl(Class referenceClass) + { + super(); + this.referenceClass = referenceClass; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public List<T> find(String query) + { + return getHibernateTemplate().find(query); + } + + /** + * {@inheritDoc} + */ + public List<T> findAll() + { + return findAll(getDefaultOrder()); + } + + /** + * {@inheritDoc} + */ + public List<T> findAll(final Order[] orderProperties) + { + return getThis().findAll(orderProperties, new ArrayList<Criterion>()); + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public List<T> findAll(final Order[] orderProperties, final List<Criterion> criteria) + { + return (List<T>) getHibernateTemplate().execute(new HibernateCallback() + { + + public Object doInHibernate(Session ses) throws HibernateException + { + Criteria crit = ses.createCriteria(getReferenceClass()); + if (null != orderProperties) + { + for (int j = 0; j < orderProperties.length; j++) + { + crit.addOrder(orderProperties[j]); + } + + } + if (criteria != null) + { + for (Criterion criterion : criteria) + { + crit.add(criterion); + } + } + return crit.list(); + } + }); + } + + /** + * {@inheritDoc} + */ + public List<T> find(String query, Object obj, Type type) + { + return find(query, new Object[]{obj }, new Type[]{type }); + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public List<T> find(final String query, final Object[] obj, final Type[] type) + { + return (List<T>) getHibernateTemplate().execute(new HibernateCallback() + { + + public Object doInHibernate(Session ses) throws HibernateException + { + // hibernate 3 + return ses.createQuery(query).setParameters(obj, type).list(); + } + }); + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public T load(K key) + { + T result = (T) getHibernateTemplate().load(getReferenceClass(), key); + Hibernate.initialize(result); + return result; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public T loadIfAvailable(K key) + { + T result; + try + { + result = (T) getHibernateTemplate().get(getReferenceClass(), key); + if (result != null) + { + Hibernate.initialize(result); + } + } + catch (ObjectNotFoundException e) + { + // during lazy initialization + return null; + } + return result; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public T get(K key) + { + return (T) getHibernateTemplate().get(getReferenceClass(), key); + } + + /** + * {@inheritDoc} + */ + public void saveOrUpdate(final T obj) + { + getHibernateTemplate().saveOrUpdate(obj); + } + + /** + * {@inheritDoc} + */ + public void update(T obj) + { + getHibernateTemplate().update(obj); + } + + /** + * {@inheritDoc} + */ + public boolean delete(final K key) + { + + return (Boolean) getHibernateTemplate().execute(new HibernateCallback() + { + + public Object doInHibernate(Session ses) throws HibernateException + { + ses.delete(ses.load(getReferenceClass(), key)); + return true; + } + }); + + } + + /** + * {@inheritDoc} + */ + public void refresh(T obj) + { + getHibernateTemplate().refresh(obj); + } + + /** + * {@inheritDoc} + */ + public void evict(T obj) + { + getHibernateTemplate().evict(obj); + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public T merge(final T obj) + { + return (T) getHibernateTemplate().execute(new HibernateCallback() + { + + public Object doInHibernate(Session ses) throws HibernateException + { + return ses.merge(obj); + } + }); + + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public K save(T obj) + { + return (K) getHibernateTemplate().save(obj); + } + + /** + * {@inheritDoc} + */ + public T findFilteredFirst(final T filter) + { + return getFirstInCollection(findFiltered(filter, 1, 0)); + } + + /** + * {@inheritDoc} + */ + public T findFilteredFirst(final T filter, final Order[] order) + { + return getFirstInCollection(findFiltered(filter, order, getDefaultFilterMetadata(), 1, 0)); + } + + + /** + * {@inheritDoc} + */ + public T findFilteredFirst(final T filter, List<Criterion> criteria) + { + return getFirstInCollection(findFiltered(filter, null, getDefaultFilterMetadata(), 1, 0, criteria)); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(final T filter) + { + return findFiltered(filter, getDefaultFilterMetadata()); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(T filter, Order[] orderProperties) + { + return findFiltered(filter, orderProperties, getDefaultFilterMetadata(), Integer.MAX_VALUE, 0); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(final T filter, final Map<String, FilterMetadata> metadata) + { + return findFiltered(filter, metadata, Integer.MAX_VALUE, 0); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(final T filter, final int maxResults, final int page) + { + return findFiltered(filter, getDefaultFilterMetadata(), maxResults, page); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(final T filter, final Map<String, FilterMetadata> metadata, final int maxResults, + final int page) + { + return findFiltered(filter, null, metadata, maxResults, page); + } + + /** + * {@inheritDoc} + */ + public List<T> findFiltered(final T filter, final Order[] customOrder, final Map<String, FilterMetadata> metadata, + final int maxResults, final int page) + { + return getThis().findFiltered(filter, customOrder, metadata, maxResults, page, new ArrayList<Criterion>()); + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public List... [truncated message content] |
From: <fg...@us...> - 2008-06-11 21:26:37
|
Revision: 837 http://openutils.svn.sourceforge.net/openutils/?rev=837&view=rev Author: fgiust Date: 2008-06-11 14:25:54 -0700 (Wed, 11 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-dbmigration-2.0.4 Added Paths: ----------- tags/openutils-dbmigration-2.0.4/ tags/openutils-dbmigration-2.0.4/pom.xml tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml Removed Paths: ------------- tags/openutils-dbmigration-2.0.4/pom.xml tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml Copied: tags/openutils-dbmigration-2.0.4 (from rev 824, trunk/openutils-dbmigration) Deleted: tags/openutils-dbmigration-2.0.4/pom.xml =================================================================== --- trunk/openutils-dbmigration/pom.xml 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/pom.xml 2008-06-11 21:25:54 UTC (rev 837) @@ -1,96 +0,0 @@ -<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> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <artifactId>openutils-dbmigration</artifactId> - <name>openutils db migration</name> - <version>2.0.4-SNAPSHOT</version> - <description /> - <dependencies> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.3</version> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.3</version> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-jdbc</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-beans</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-core</artifactId> - <version>${spring.version}</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.4.1</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>jcl104-over-slf4j</artifactId> - <version>1.4.1</version> - </dependency> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - <version>3.0-FINAL</version> - <optional>true</optional> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <properties> - <spring.version>2.5.1</spring.version> - </properties> -</project> \ No newline at end of file Copied: tags/openutils-dbmigration-2.0.4/pom.xml (from rev 836, trunk/openutils-dbmigration/pom.xml) =================================================================== --- tags/openutils-dbmigration-2.0.4/pom.xml (rev 0) +++ tags/openutils-dbmigration-2.0.4/pom.xml 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,102 @@ +<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> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <artifactId>openutils-dbmigration</artifactId> + <name>openutils db migration</name> + <version>2.0.4</version> + <description /> + <dependencies> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.3</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.3</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-jdbc</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-beans</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-core</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.4.1</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>jcl104-over-slf4j</artifactId> + <version>1.4.1</version> + </dependency> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>3.0-FINAL</version> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <properties> + <spring.version>2.5.1</spring.version> + </properties> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-dbmigration-2.0.4</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-dbmigration-2.0.4</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-dbmigration-2.0.4</url> + </scm> +</project> \ No newline at end of file Deleted: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java =================================================================== --- trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -1,178 +0,0 @@ -/* - * Copyright Openmind http://www.openmindonline.it - * - * 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 it.openutils.migration.generic; - -import it.openutils.migration.task.setup.BaseConditionalTask; - -import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.ResultSet; -import java.sql.ResultSetMetaData; -import java.sql.SQLException; -import java.util.HashMap; -import java.util.Map; - -import org.apache.commons.lang.StringUtils; -import org.springframework.dao.DataAccessException; -import org.springframework.jdbc.core.ConnectionCallback; -import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; - - -/** - * Base conditional task that operates on conditions related to a specific column. This base task takes care of - * retrieving the column metadata, so that subclasses only need to override <code>checkColumnMetadata()</code>. - * @author fgiust - * @version $Id$ - */ -public abstract class JdbcColumnBasedConditionalTask extends BaseConditionalTask -{ - - /** - * Column name - */ - protected String column; - - /** - * Catalog name - */ - protected String catalog; - - /** - * Schema name - */ - protected String schema; - - /** - * Sets the catalog. - * @param catalog the catalog to set - */ - public void setCatalog(String catalog) - { - this.catalog = catalog; - } - - /** - * Sets the schema. - * @param schema the schema to set - */ - public void setSchema(String schema) - { - this.schema = schema; - } - - /** - * Sets the column. - * @param column the column to set - */ - public void setColumn(String column) - { - this.column = column; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean check(SimpleJdbcTemplate jdbcTemplate) - { - - String columnTrim = StringUtils.trim(column); - - final String tableName = StringUtils.substringBefore(columnTrim, "."); - final String columnName = StringUtils.substringAfter(columnTrim, "."); - return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() - { - - public Object doInConnection(Connection con) throws SQLException, DataAccessException - { - DatabaseMetaData dbMetadata = con.getMetaData(); - ResultSet rs = dbMetadata.getColumns(catalog, schema, tableName, columnName); - boolean conditionMet = rs.next(); - if (conditionMet) - { - ResultSetMetaData rsmeta = rs.getMetaData(); - int colcount = rsmeta.getColumnCount(); - Map<String, Object> params = new HashMap<String, Object>(); - for (int j = 1; j <= colcount; j++) - { - params.put(rsmeta.getColumnName(j), rs.getObject(j)); - } - conditionMet = !checkColumnMetadata(params); - } - rs.close(); - return conditionMet; - } - }); - } - - /** - * <p> - * Check if a specific condition is met depending on column metadata. - * </p> - * Column attributes included in the Map are: - * <ol> - * <li><strong>TABLE_CAT</strong> String => table catalog (may be <code>null</code>)</li> - * <li><strong>TABLE_SCHEM</strong> String => table schema (may be <code>null</code>)</li> - * <li><strong>TABLE_NAME</strong> String => table name</li> - * <li><strong>COLUMN_NAME</strong> String => column name</li> - * <li><strong>DATA_TYPE</strong> int => SQL type from java.sql.Types</li> - * <li><strong>TYPE_NAME</strong> String => Data source dependent type name, for a UDT the type name is fully - * qualified</li> - * <li><strong>COLUMN_SIZE</strong> int => column size.</li> - * <li><strong>BUFFER_LENGTH</strong> is not used.</li> - * <li><strong>DECIMAL_DIGITS</strong> int => the number of fractional digits. Null is returned for data types - * where DECIMAL_DIGITS is not applicable.</li> - * <li><strong>NUM_PREC_RADIX</strong> int => Radix (typically either 10 or 2)</li> - * <li><strong>NULLABLE</strong> int => is NULL allowed.</li> - * <ul> - * <li> columnNoNulls - might not allow <code>NULL</code> values</li> - * <li> columnNullable - definitely allows <code>NULL</code> values</li> - * <li> columnNullableUnknown - nullability unknown</li> - * </ul> - * <li><strong>REMARKS</strong> String => comment describing column (may be <code>null</code>)</li> - * <li><strong>COLUMN_DEF</strong> String => default value for the column, which should be interpreted as a string - * when the value is enclosed in single quotes (may be <code>null</code>)</li> - * <li><strong>SQL_DATA_TYPE</strong> int => unused</li> - * <li><strong>SQL_DATETIME_SUB</strong> int => unused</li> - * <li><strong>CHAR_OCTET_LENGTH</strong> int => for char types the maximum number of bytes in the column</li> - * <li><strong>ORDINAL_POSITION</strong> int => index of column in table (starting at 1)</li> - * <li><strong>IS_NULLABLE</strong> String => ISO rules are used to determine the nullability for a column.</li> - * <ul> - * <li> YES --- if the parameter can include NULLs</li> - * <li> NO --- if the parameter cannot include NULLs</li> - * <li> empty string --- if the nullability for the parameter is unknown</li> - * </ul> - * <li><strong>SCOPE_CATLOG</strong> String => catalog of table that is the scope of a reference attribute (<code>null</code> - * if DATA_TYPE isn't REF)</li> - * <li><strong>SCOPE_SCHEMA</strong> String => schema of table that is the scope of a reference attribute (<code>null</code> - * if the DATA_TYPE isn't REF)</li> - * <li><strong>SCOPE_TABLE</strong> String => table name that this the scope of a reference attribure (<code>null</code> - * if the DATA_TYPE isn't REF)</li> - * <li><strong>SOURCE_DATA_TYPE</strong> short => source type of a distinct type or user-generated Ref type, SQL - * type from java.sql.Types (<code>null</code> if DATA_TYPE isn't DISTINCT or user-generated REF)</li> - * <li><strong>IS_AUTOINCREMENT</strong> String => Indicates whether this column is auto incremented</li> - * <ul> - * <li> YES --- if the column is auto incremented</li> - * <li> NO --- if the column is not auto incremented</li> - * <li> empty string --- if it cannot be determined whether the column is auto incremented parameter is unknown</li> - * </ul> - * </ol> - * @param metadata column metadata - * @return <code>true</code> if the condition is met - */ - protected abstract boolean checkColumnMetadata(Map<String, Object> metadata); - -} Copied: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java (from rev 834, trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java) =================================================================== --- tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java (rev 0) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcColumnBasedConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,178 @@ +/* + * Copyright Openmind http://www.openmindonline.it + * + * 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 it.openutils.migration.generic; + +import it.openutils.migration.task.setup.BaseConditionalTask; + +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; +import org.springframework.dao.DataAccessException; +import org.springframework.jdbc.core.ConnectionCallback; +import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; + + +/** + * Base conditional task that operates on conditions related to a specific column. This base task takes care of + * retrieving the column metadata, so that subclasses only need to override <code>checkColumnMetadata()</code>. + * @author fgiust + * @version $Id$ + */ +public abstract class JdbcColumnBasedConditionalTask extends BaseConditionalTask +{ + + /** + * Column name + */ + protected String column; + + /** + * Catalog name + */ + protected String catalog; + + /** + * Schema name + */ + protected String schema; + + /** + * Sets the catalog. + * @param catalog the catalog to set + */ + public void setCatalog(String catalog) + { + this.catalog = catalog; + } + + /** + * Sets the schema. + * @param schema the schema to set + */ + public void setSchema(String schema) + { + this.schema = schema; + } + + /** + * Sets the column. + * @param column the column to set + */ + public void setColumn(String column) + { + this.column = column; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean check(SimpleJdbcTemplate jdbcTemplate) + { + + String columnTrim = StringUtils.trim(column); + + final String tableName = StringUtils.substringBefore(columnTrim, "."); + final String columnName = StringUtils.substringAfter(columnTrim, "."); + return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() + { + + public Object doInConnection(Connection con) throws SQLException, DataAccessException + { + DatabaseMetaData dbMetadata = con.getMetaData(); + ResultSet rs = dbMetadata.getColumns(catalog, schema, tableName, columnName); + boolean conditionMet = rs.next(); + if (conditionMet) + { + ResultSetMetaData rsmeta = rs.getMetaData(); + int colcount = rsmeta.getColumnCount(); + Map<String, Object> params = new HashMap<String, Object>(); + for (int j = 1; j <= colcount; j++) + { + params.put(rsmeta.getColumnName(j), rs.getObject(j)); + } + conditionMet = checkColumnMetadata(params); + } + rs.close(); + return conditionMet; + } + }); + } + + /** + * <p> + * Check if a specific condition is met depending on column metadata. + * </p> + * Column attributes included in the Map are: + * <ol> + * <li><strong>TABLE_CAT</strong> String => table catalog (may be <code>null</code>)</li> + * <li><strong>TABLE_SCHEM</strong> String => table schema (may be <code>null</code>)</li> + * <li><strong>TABLE_NAME</strong> String => table name</li> + * <li><strong>COLUMN_NAME</strong> String => column name</li> + * <li><strong>DATA_TYPE</strong> int => SQL type from java.sql.Types</li> + * <li><strong>TYPE_NAME</strong> String => Data source dependent type name, for a UDT the type name is fully + * qualified</li> + * <li><strong>COLUMN_SIZE</strong> int => column size.</li> + * <li><strong>BUFFER_LENGTH</strong> is not used.</li> + * <li><strong>DECIMAL_DIGITS</strong> int => the number of fractional digits. Null is returned for data types + * where DECIMAL_DIGITS is not applicable.</li> + * <li><strong>NUM_PREC_RADIX</strong> int => Radix (typically either 10 or 2)</li> + * <li><strong>NULLABLE</strong> int => is NULL allowed.</li> + * <ul> + * <li> columnNoNulls - might not allow <code>NULL</code> values</li> + * <li> columnNullable - definitely allows <code>NULL</code> values</li> + * <li> columnNullableUnknown - nullability unknown</li> + * </ul> + * <li><strong>REMARKS</strong> String => comment describing column (may be <code>null</code>)</li> + * <li><strong>COLUMN_DEF</strong> String => default value for the column, which should be interpreted as a string + * when the value is enclosed in single quotes (may be <code>null</code>)</li> + * <li><strong>SQL_DATA_TYPE</strong> int => unused</li> + * <li><strong>SQL_DATETIME_SUB</strong> int => unused</li> + * <li><strong>CHAR_OCTET_LENGTH</strong> int => for char types the maximum number of bytes in the column</li> + * <li><strong>ORDINAL_POSITION</strong> int => index of column in table (starting at 1)</li> + * <li><strong>IS_NULLABLE</strong> String => ISO rules are used to determine the nullability for a column.</li> + * <ul> + * <li> YES --- if the parameter can include NULLs</li> + * <li> NO --- if the parameter cannot include NULLs</li> + * <li> empty string --- if the nullability for the parameter is unknown</li> + * </ul> + * <li><strong>SCOPE_CATLOG</strong> String => catalog of table that is the scope of a reference attribute (<code>null</code> + * if DATA_TYPE isn't REF)</li> + * <li><strong>SCOPE_SCHEMA</strong> String => schema of table that is the scope of a reference attribute (<code>null</code> + * if the DATA_TYPE isn't REF)</li> + * <li><strong>SCOPE_TABLE</strong> String => table name that this the scope of a reference attribure (<code>null</code> + * if the DATA_TYPE isn't REF)</li> + * <li><strong>SOURCE_DATA_TYPE</strong> short => source type of a distinct type or user-generated Ref type, SQL + * type from java.sql.Types (<code>null</code> if DATA_TYPE isn't DISTINCT or user-generated REF)</li> + * <li><strong>IS_AUTOINCREMENT</strong> String => Indicates whether this column is auto incremented</li> + * <ul> + * <li> YES --- if the column is auto incremented</li> + * <li> NO --- if the column is not auto incremented</li> + * <li> empty string --- if it cannot be determined whether the column is auto incremented parameter is unknown</li> + * </ul> + * </ol> + * @param metadata column metadata + * @return <code>true</code> if the condition is met + */ + protected abstract boolean checkColumnMetadata(Map<String, Object> metadata); + +} Deleted: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java =================================================================== --- trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -1,108 +0,0 @@ -/* - * Copyright Openmind http://www.openmindonline.it - * - * 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 it.openutils.migration.generic; - -import it.openutils.migration.task.setup.BaseConditionalTask; - -import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.ResultSet; -import java.sql.SQLException; - -import org.apache.commons.lang.StringUtils; -import org.springframework.dao.DataAccessException; -import org.springframework.jdbc.core.ConnectionCallback; -import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; - - -/** - * Task that executes if a given column exists. - * @author fgiust - * @version $Id: $ - */ -public class JdbcIfColumnExistsConditionalTask extends BaseConditionalTask -{ - - /** - * Column name. - */ - protected String column; - - /** - * Catalog. - */ - protected String catalog; - - /** - * Schema. - */ - protected String schema; - - /** - * Sets the catalog. - * @param catalog the catalog to set - */ - public void setCatalog(String catalog) - { - this.catalog = catalog; - } - - /** - * Sets the schema. - * @param schema the schema to set - */ - public void setSchema(String schema) - { - this.schema = schema; - } - - /** - * Sets the column. - * @param column the column to set - */ - public void setColumn(String column) - { - this.column = column; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean check(SimpleJdbcTemplate jdbcTemplate) - { - - String columnTrim = StringUtils.trim(column); - - final String tableName = StringUtils.substringBefore(columnTrim, "."); - final String columnName = StringUtils.substringAfter(columnTrim, "."); - return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() - { - - public Object doInConnection(Connection con) throws SQLException, DataAccessException - { - - DatabaseMetaData dbMetadata = con.getMetaData(); - ResultSet rs = dbMetadata.getColumns(catalog, schema, tableName, columnName); - boolean tableExists = rs.next(); - rs.close(); - - return !tableExists; - } - }); - } - -} Copied: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java (from rev 834, trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java) =================================================================== --- tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java (rev 0) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfColumnExistsConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,108 @@ +/* + * Copyright Openmind http://www.openmindonline.it + * + * 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 it.openutils.migration.generic; + +import it.openutils.migration.task.setup.BaseConditionalTask; + +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.commons.lang.StringUtils; +import org.springframework.dao.DataAccessException; +import org.springframework.jdbc.core.ConnectionCallback; +import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; + + +/** + * Task that executes if a given column exists. + * @author fgiust + * @version $Id: $ + */ +public class JdbcIfColumnExistsConditionalTask extends BaseConditionalTask +{ + + /** + * Column name. + */ + protected String column; + + /** + * Catalog. + */ + protected String catalog; + + /** + * Schema. + */ + protected String schema; + + /** + * Sets the catalog. + * @param catalog the catalog to set + */ + public void setCatalog(String catalog) + { + this.catalog = catalog; + } + + /** + * Sets the schema. + * @param schema the schema to set + */ + public void setSchema(String schema) + { + this.schema = schema; + } + + /** + * Sets the column. + * @param column the column to set + */ + public void setColumn(String column) + { + this.column = column; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean check(SimpleJdbcTemplate jdbcTemplate) + { + + String columnTrim = StringUtils.trim(column); + + final String tableName = StringUtils.substringBefore(columnTrim, "."); + final String columnName = StringUtils.substringAfter(columnTrim, "."); + return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() + { + + public Object doInConnection(Connection con) throws SQLException, DataAccessException + { + + DatabaseMetaData dbMetadata = con.getMetaData(); + ResultSet rs = dbMetadata.getColumns(catalog, schema, tableName, columnName); + boolean tableExists = rs.next(); + rs.close(); + + return tableExists; + } + }); + } + +} Deleted: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java =================================================================== --- trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -1,105 +0,0 @@ -/* - * Copyright Openmind http://www.openmindonline.it - * - * 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 it.openutils.migration.generic; - -import it.openutils.migration.task.setup.BaseConditionalTask; - -import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.ResultSet; -import java.sql.SQLException; - -import org.apache.commons.lang.StringUtils; -import org.springframework.dao.DataAccessException; -import org.springframework.jdbc.core.ConnectionCallback; -import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; - - -/** - * Task that executes if a named foreign key eists. - * @author fgiust - * @version $Id$ - */ -public class JdbcIfForeignKeyExistsConditionalTask extends BaseConditionalTask -{ - - private String fkName; - - private String catalog; - - private String schema; - - /** - * Sets the catalog. - * @param catalog the catalog to set - */ - public void setCatalog(String catalog) - { - this.catalog = catalog; - } - - /** - * Sets the schema. - * @param schema the schema to set - */ - public void setSchema(String schema) - { - this.schema = schema; - } - - /** - * Sets the fkName (TABLE.FKNAME). - * @param fkName the fkName to set - */ - public void setFkName(String fkName) - { - this.fkName = fkName; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean check(SimpleJdbcTemplate jdbcTemplate) - { - - String fkNameTrim = StringUtils.trim(fkName); - - final String tableName = StringUtils.substringBefore(fkNameTrim, "."); - final String fkName = StringUtils.substringAfter(fkNameTrim, "."); - return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() - { - - public Object doInConnection(Connection con) throws SQLException, DataAccessException - { - boolean fkExists = false; - DatabaseMetaData dbMetadata = con.getMetaData(); - ResultSet rs = dbMetadata.getExportedKeys(catalog, schema, tableName); - while (rs.next()) - { - if (StringUtils.equals(fkName, rs.getString("FK_NAME"))) - { - fkExists = true; - } - } - rs.close(); - - return !fkExists; - } - }); - } - -} Copied: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java (from rev 834, trunk/openutils-dbmigration/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java) =================================================================== --- tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java (rev 0) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/generic/JdbcIfForeignKeyExistsConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,105 @@ +/* + * Copyright Openmind http://www.openmindonline.it + * + * 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 it.openutils.migration.generic; + +import it.openutils.migration.task.setup.BaseConditionalTask; + +import java.sql.Connection; +import java.sql.DatabaseMetaData; +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.commons.lang.StringUtils; +import org.springframework.dao.DataAccessException; +import org.springframework.jdbc.core.ConnectionCallback; +import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; + + +/** + * Task that executes if a named foreign key eists. + * @author fgiust + * @version $Id$ + */ +public class JdbcIfForeignKeyExistsConditionalTask extends BaseConditionalTask +{ + + private String fkName; + + private String catalog; + + private String schema; + + /** + * Sets the catalog. + * @param catalog the catalog to set + */ + public void setCatalog(String catalog) + { + this.catalog = catalog; + } + + /** + * Sets the schema. + * @param schema the schema to set + */ + public void setSchema(String schema) + { + this.schema = schema; + } + + /** + * Sets the fkName (TABLE.FKNAME). + * @param fkName the fkName to set + */ + public void setFkName(String fkName) + { + this.fkName = fkName; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean check(SimpleJdbcTemplate jdbcTemplate) + { + + String fkNameTrim = StringUtils.trim(fkName); + + final String tableName = StringUtils.substringBefore(fkNameTrim, "."); + final String fkName = StringUtils.substringAfter(fkNameTrim, "."); + return (Boolean) jdbcTemplate.getJdbcOperations().execute(new ConnectionCallback() + { + + public Object doInConnection(Connection con) throws SQLException, DataAccessException + { + boolean fkExists = false; + DatabaseMetaData dbMetadata = con.getMetaData(); + ResultSet rs = dbMetadata.getExportedKeys(catalog, schema, tableName); + while (rs.next()) + { + if (StringUtils.equals(fkName, rs.getString("FK_NAME"))) + { + fkExists = true; + } + } + rs.close(); + + return fkExists; + } + }); + } + +} Deleted: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java =================================================================== --- trunk/openutils-dbmigration/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -1,240 +0,0 @@ -/* - * Copyright Openmind http://www.openmindonline.it - * - * 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 it.openutils.migration.task.setup; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import javax.sql.DataSource; - -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang.StringUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.core.io.Resource; -import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; - - -/** - * A base conditional task that executes a task only if an expected condition is met. - * @author fgiust - * @version $Id:SqlServerObjCreationTask.java 3143 2007-09-24 19:50:49Z fgiust $ - */ -public abstract class BaseConditionalTask extends BaseDbTask -{ - - /** - * Logger. - */ - protected Logger log = LoggerFactory.getLogger(getClass()); - - /** - * DDL to run when the condition is met. - */ - protected String ddl; - - /** - * If <code>true</code> executes only if check returned <code>false</code> - */ - protected boolean not; - - /** - * Map of key-value that will be replaced in ddl. - */ - protected Map<String, String> variables; - - /** - * Script list to execute - */ - protected List<Resource> scripts; - - /** - * Sets the scripts. - * @param scripts the scripts to set - */ - public void setScripts(List<Resource> scripts) - { - this.scripts = scripts; - } - - /** - * {@inheritDoc} - */ - public final void setDdl(String ddls) - { - this.ddl = ddls; - } - - /** - * Sets the not. - * @param not the not to set - */ - public final void setNot(boolean not) - { - this.not = not; - } - - /** - * Sets the ddlScript. - * @param ddlScript the ddlScript to set - * @deprecated use the "scripts" property - */ - @Deprecated - public final void setDdlScript(Resource ddlScript) - { - log.warn("ddlScript is deprecated, please use \"scripts\""); - if (scripts == null) - { - scripts = new ArrayList<Resource>(1); - } - scripts.add(ddlScript); - } - - /** - * Subclasses need to override this method and provide specific checks. - * @param jdbcTemplate SimpleJdbcTemplate - * @return true if the condition is met - */ - public abstract boolean check(SimpleJdbcTemplate jdbcTemplate); - - /** - * {@inheritDoc} - */ - @Override - public String getDescription() - { - - if (StringUtils.isNotEmpty(super.getDescription())) - { - return super.getDescription(); - } - - if (scripts != null && !scripts.isEmpty()) - { - StringBuffer result = new StringBuffer(); - result.append("Checking :\n"); - for (Resource script : scripts) - { - result.append(" - " + objectNameFromFileName(script) + "\n"); - } - return result.toString(); - - } - - return getClass().getName(); - } - - /** - * @param script The script resource - * @return The script name - */ - protected String objectNameFromFileName(Resource script) - { - return StringUtils.substringBeforeLast(script.getFilename(), "."); - } - - /** - * Perform sobstitution in the given string. - * @param string Original String - * @return processed string - */ - protected String performSubstitution(String string) - { - if (variables == null || variables.isEmpty()) - { - return string; - } - - String stringReplaced = string; - for (String key : variables.keySet()) - { - stringReplaced = StringUtils.replace(stringReplaced, "${" + key + "}", variables.get(key)); - } - - return stringReplaced; - } - - /** - * {@inheritDoc} - */ - public void execute(DataSource dataSource) - { - SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(dataSource); - - if (check(jdbcTemplate) ^ !not) - { - log.info("Executing Alter Task: {}", getDescription()); - - if (StringUtils.isNotBlank(ddl)) - { - executeSingle(jdbcTemplate, ddl); - } - else - { - if (scripts == null || scripts.isEmpty()) - { - log.error("Unable to execute db task \"{}\", no ddl or scripts configured.", getDescription()); - return; - } - - for (Resource script : scripts) - { - String scriptContent = ddl; - InputStream is = null; - try - { - is = script.getInputStream(); - scriptContent = IOUtils.toString(is, "UTF8"); - } - catch (IOException e) - { - log.error( - "Unable to execute db task \"{}\", script \"{}\" can't be read.", - getDescription(), - script); - return; - } - finally - { - IOUtils.closeQuietly(is); - } - executeSingle(jdbcTemplate, scriptContent); - } - } - } - } - - /** - * @param jdbcTemplate - * @param scriptContent - */ - protected void executeSingle(SimpleJdbcTemplate jdbcTemplate, String scriptContent) - { - String[] ddls = StringUtils.split(performSubstitution(scriptContent), ';'); - for (String statement : ddls) - { - if (StringUtils.isNotBlank(statement)) - { - log.debug("Executing:\n{}", statement); - jdbcTemplate.update(statement); - } - } - } - -} Copied: tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java (from rev 834, trunk/openutils-dbmigration/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java) =================================================================== --- tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java (rev 0) +++ tags/openutils-dbmigration-2.0.4/src/main/java/it/openutils/migration/task/setup/BaseConditionalTask.java 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,240 @@ +/* + * Copyright Openmind http://www.openmindonline.it + * + * 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 it.openutils.migration.task.setup; + +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import javax.sql.DataSource; + +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.io.Resource; +import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; + + +/** + * A base conditional task that executes a task only if an expected condition is met. + * @author fgiust + * @version $Id:SqlServerObjCreationTask.java 3143 2007-09-24 19:50:49Z fgiust $ + */ +public abstract class BaseConditionalTask extends BaseDbTask +{ + + /** + * Logger. + */ + protected Logger log = LoggerFactory.getLogger(getClass()); + + /** + * DDL to run when the condition is met. + */ + protected String ddl; + + /** + * If <code>true</code> executes only if check returned <code>false</code> + */ + protected boolean not; + + /** + * Map of key-value that will be replaced in ddl. + */ + protected Map<String, String> variables; + + /** + * Script list to execute + */ + protected List<Resource> scripts; + + /** + * Sets the scripts. + * @param scripts the scripts to set + */ + public void setScripts(List<Resource> scripts) + { + this.scripts = scripts; + } + + /** + * {@inheritDoc} + */ + public final void setDdl(String ddls) + { + this.ddl = ddls; + } + + /** + * Sets the not. + * @param not the not to set + */ + public final void setNot(boolean not) + { + this.not = not; + } + + /** + * Sets the ddlScript. + * @param ddlScript the ddlScript to set + * @deprecated use the "scripts" property + */ + @Deprecated + public final void setDdlScript(Resource ddlScript) + { + log.warn("ddlScript is deprecated, please use \"scripts\""); + if (scripts == null) + { + scripts = new ArrayList<Resource>(1); + } + scripts.add(ddlScript); + } + + /** + * Subclasses need to override this method and provide specific checks. + * @param jdbcTemplate SimpleJdbcTemplate + * @return true if the condition is met + */ + public abstract boolean check(SimpleJdbcTemplate jdbcTemplate); + + /** + * {@inheritDoc} + */ + @Override + public String getDescription() + { + + if (StringUtils.isNotEmpty(super.getDescription())) + { + return super.getDescription(); + } + + if (scripts != null && !scripts.isEmpty()) + { + StringBuffer result = new StringBuffer(); + result.append("Checking :\n"); + for (Resource script : scripts) + { + result.append(" - " + objectNameFromFileName(script) + "\n"); + } + return result.toString(); + + } + + return getClass().getName(); + } + + /** + * @param script The script resource + * @return The script name + */ + protected String objectNameFromFileName(Resource script) + { + return StringUtils.substringBeforeLast(script.getFilename(), "."); + } + + /** + * Perform sobstitution in the given string. + * @param string Original String + * @return processed string + */ + protected String performSubstitution(String string) + { + if (variables == null || variables.isEmpty()) + { + return string; + } + + String stringReplaced = string; + for (String key : variables.keySet()) + { + stringReplaced = StringUtils.replace(stringReplaced, "${" + key + "}", variables.get(key)); + } + + return stringReplaced; + } + + /** + * {@inheritDoc} + */ + public void execute(DataSource dataSource) + { + SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(dataSource); + + if (check(jdbcTemplate) ^ not) + { + log.info("Executing Alter Task: {}", getDescription()); + + if (StringUtils.isNotBlank(ddl)) + { + executeSingle(jdbcTemplate, ddl); + } + else + { + if (scripts == null || scripts.isEmpty()) + { + log.error("Unable to execute db task \"{}\", no ddl or scripts configured.", getDescription()); + return; + } + + for (Resource script : scripts) + { + String scriptContent = ddl; + InputStream is = null; + try + { + is = script.getInputStream(); + scriptContent = IOUtils.toString(is, "UTF8"); + } + catch (IOException e) + { + log.error( + "Unable to execute db task \"{}\", script \"{}\" can't be read.", + getDescription(), + script); + return; + } + finally + { + IOUtils.closeQuietly(is); + } + executeSingle(jdbcTemplate, scriptContent); + } + } + } + } + + /** + * @param jdbcTemplate + * @param scriptContent + */ + protected void executeSingle(SimpleJdbcTemplate jdbcTemplate, String scriptContent) + { + String[] ddls = StringUtils.split(performSubstitution(scriptContent), ';'); + for (String statement : ddls) + { + if (StringUtils.isNotBlank(statement)) + { + log.debug("Executing:\n{}", statement); + jdbcTemplate.update(statement); + } + } + } + +} Deleted: tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml =================================================================== --- trunk/openutils-dbmigration/src/site/changes/changes.xml 2008-05-07 12:57:08 UTC (rev 824) +++ tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml 2008-06-11 21:25:54 UTC (rev 837) @@ -1,33 +0,0 @@ -<?xml version="1.0"?> -<!-- - "type" attribute can be: add, remove, update or fix. ---> -<document> - <properties> - <title>Changes</title> - <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> - </properties> - <body> - <release version="2.0.4" date="in svn" description="2.0.4"> - <action type="add" dev="fgiust">New jdbc generic tasks: IfColumnIsNotIdentityConditionalTask, - JdbcIfColumnIsNotNullableConditionalTask, JdbcIfForeignKeyExistsConditionalTask</action> - <action type="add" dev="fgiust">New oracle specific tasks: OraclePackageCreationTask, - OracleStoredProcedureCallTask</action> - </release> - <release version="2.0.3" date="2008-02-21" description="2.0.3"> - <action type="add" dev="fgiust">New it.openutils.migration.oracle.OracleViewCreateOrUpdateTask</action> - <action type="fix" dev="fgiust">Fix handling of empty strings for numeric types in ExcelConfigurationTask - </action> - <action type="update" dev="fgiust"> Dates are now always processed using an ISO8601 date format in - ExcelConfigurationTask (previously the parsing was left to the jdbc driver, leading to different results with - different drivers)</action> - <action type="add" dev="fgiust">Added a new "enabled" flag in ExcelConfigurationTask</action> - </release> - <release version="2.0.2" date="2008-02-11" description="2.0.2"> - <action type="add" dev="fgiust">New it.openutils.migration.oracle.OracleSequenceCreationTask</action> - <action type="update" dev="fgiust"> Added ability to set a schema name in - it.openutils.migration.generic.JdbcObjectCreationTask and - it.openutils.migration.generic.JdbcIfColumnExistsConditionalTask</action> - </release> - </body> -</document> \ No newline at end of file Copied: tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml (from rev 835, trunk/openutils-dbmigration/src/site/changes/changes.xml) =================================================================== --- tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml (rev 0) +++ tags/openutils-dbmigration-2.0.4/src/site/changes/changes.xml 2008-06-11 21:25:54 UTC (rev 837) @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="2.0.4" date="2008-06-11" description="2.0.4"> + <action type="fix" dev="fgiust"> Warning: fixed the usage of the "not" condition in + it.openutils.migration.task.setup.BaseConditionalTask that previosly caused unexpected (inverted) results. You + may need to review your conditional tasks in order to check if the condition is still valid!</action> + <action type="add" dev="fgiust">New jdbc generic tasks: IfColumnIsNotIdentityConditionalTask, + JdbcIfColumnIsNotNullableConditionalTask, JdbcIfForeignKeyExistsConditionalTask</action> + <action type="add" dev="fgiust">New oracle specific tasks: OraclePackageCreationTask, + OracleStoredProcedureCallTask</action> + </release> + <release version="2.0.3" date="2008-02-21" description="2.0.3"> + <action type="add" dev="fgiust">New it.openutils.migration.oracle.OracleViewCreateOrUpdateTask</action> + <action type="fix" dev="fgiust">Fix handling of empty strings for numeric types in ExcelConfigurationTask + </action> + <action type="update" dev="fgiust"> Dates are now always processed using an ISO8601 date format in + ExcelConfigurationTask (previously the parsing was left to the jdbc driver, leading to different results with + different drivers)</action> + <action type="add" dev="fgiust">Added a new "enabled" flag in ExcelConfigurationTask</action> + </release> + <release version="2.0.2" date="2008-02-11" description="2.0.2"> + <action type="add" dev="fgiust">New it.openutils.migration.oracle.OracleSequenceCreationTask</action> + <action type="update" dev="fgiust"> Added ability to set a schema name in + it.openutils.migration.generic.JdbcObjectCreationTask and + it.openutils.migration.generic.JdbcIfColumnExistsConditionalTask</action> + </release> + </body> +</document> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-06-20 14:52:20
|
Revision: 849 http://openutils.svn.sourceforge.net/openutils/?rev=849&view=rev Author: fgiust Date: 2008-06-20 07:52:27 -0700 (Fri, 20 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlcontrols-3.5 Added Paths: ----------- tags/openutils-mgnlcontrols-3.5/ tags/openutils-mgnlcontrols-3.5/pom.xml tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java tags/openutils-mgnlcontrols-3.5/src/main/resources/META-INF/magnolia/controls.xml tags/openutils-mgnlcontrols-3.5/src/main/resources/dialogs/grid.ftl tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/basic-dialog.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/borders.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/box.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/button.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/combo.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/core.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/date-picker.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/dialog.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/ext-all.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/form.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/grid.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/layout.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/menu.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/panel.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/progress.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/qtips.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/reset-min.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/resizable.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/slider.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/tabs.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/toolbar.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/tree.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/window.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/xtheme-aero.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/xtheme-gray.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/css/xtheme-vista.css tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/ext-all.js tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/ext-base.js tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-left.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/pspbrwse.jbf tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort-col-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-light-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/menu.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-arrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress2.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners-blue.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/l-blue.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/l.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/r-blue.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/r.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb-blue.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-add.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-no.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-yes.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/exclamation.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/text-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger-tpl.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/Thumbs.db tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-left-white.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-right-white.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/col-move-top.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/dirty.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-no.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-yes.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/footer-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-split.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-loading.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hd-btn.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-sel-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-by.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-expand-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hd-pop.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-asc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-desc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/loading.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/mso-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/nowait.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first-disabled.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last-disabled.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-next-disabled.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev-disabled.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/pick-button.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/refresh.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-expand-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-sel.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/grid/wait.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-left.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stick.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stuck.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/checked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/item-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/left-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprites.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-corners-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/progress/progress-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/s.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-c.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-lr.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shadow.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/blue-loading.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/calendar.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/hd-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/large-loading.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/loading-balls.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/right-btn.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/shared/warning.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/square.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-bg.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-bg.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-thumb.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tabs-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/arrows.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-add.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-between.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-no.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-over.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-under.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-yes.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-minus-nl.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus-nl.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-line.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/folder.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/tree/loading.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-error.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-info.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-question.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-corners.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-right.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/right-corners.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/default/window/top-bottom.psd tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/dlg-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/stick.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/checked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/left-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/light-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/s.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-error.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-info.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-question.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-warning.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.pspimage tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/right-corners.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/gray/window/top-bottom.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/stick.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/s.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/images/vista/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/grid-paste.html tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/img/icon-delete.png tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/img/icon-paste.png tags/openutils-mgnlcontrols-3.5/src/site/ tags/openutils-mgnlcontrols-3.5/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5/src/site/site.xml Removed Paths: ------------- tags/openutils-mgnlcontrols-3.5/pom.xml tags/openutils-mgnlcontrols-3.5/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5/src/site/site.xml Copied: tags/openutils-mgnlcontrols-3.5 (from rev 839, trunk/openutils-mgnlcontrols) Deleted: tags/openutils-mgnlcontrols-3.5/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2008-06-20 13:26:47 UTC (rev 839) +++ tags/openutils-mgnlcontrols-3.5/pom.xml 2008-06-20 14:52:27 UTC (rev 849) @@ -1,66 +0,0 @@ -<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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlcontrols</artifactId> - <name>openutils-mgnlcontrols</name> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnltasks</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> -</project> Copied: tags/openutils-mgnlcontrols-3.5/pom.xml (from rev 848, trunk/openutils-mgnlcontrols/pom.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5/pom.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5/pom.xml 2008-06-20 14:52:27 UTC (rev 849) @@ -0,0 +1,73 @@ +<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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlcontrols</artifactId> + <name>openutils-mgnlcontrols</name> + <version>3.5</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>3.5.2</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlcontrols-3.5</url> + </scm> +</project> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (from rev 846, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java 2008-06-20 14:52:27 UTC (rev 849) @@ -0,0 +1,198 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import freemarker.template.TemplateException; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.ItemType; +import info.magnolia.cms.core.NodeData; +import info.magnolia.cms.core.SystemProperty; +import info.magnolia.cms.gui.control.ControlImpl; +import info.magnolia.cms.gui.control.FreemarkerControl; +import info.magnolia.cms.gui.dialog.DialogBox; +import info.magnolia.cms.gui.dialog.DialogFreemarker; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.NodeDataUtil; + +import java.io.IOException; +import java.io.Writer; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.jcr.PathNotFoundException; +import javax.jcr.PropertyType; +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang.exception.NestableRuntimeException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * similar to DialogFreemarker but with a fixed template, needed till MAGNOLIA-2175 is done + * @author fgiust + * @version $Id: $ + */ +public abstract class ConfigurableFreemarkerDialog extends DialogBox +{ + + /** + * Logger. + */ + private static Logger log = LoggerFactory.getLogger(DialogFreemarker.class); + + private Map configuration; + + /** + * {@inheritDoc} + */ + @Override + protected List readValues() + { + + List values = new ArrayList(); + + if (this.getStorageNode() != null) + { + try + { + // cycles on website content node to get multiple value + int size = this.getStorageNode().getContent(this.getName()).getNodeDataCollection().size(); + for (int i = 0; i < size; i++) + { + NodeData data = this.getStorageNode().getContent(this.getName()).getNodeData("" + i); + values.add(data.getString()); + } + } + catch (PathNotFoundException e) + { + // not yet existing: OK + } + catch (RepositoryException re) + { + log.error("can't set values", re); + } + } + return values; + } + + /** + * Get a recursive map view of a content node + * @param node content node + * @return recursive map view on content node properties and children + * @throws PathNotFoundException + * @throws RepositoryException + * @throws AccessDeniedException + */ + protected Map getSubNodes(Content node) throws RepositoryException, AccessDeniedException + { + + Map values = new LinkedHashMap(); + + // cycles on properties and stores them in map + Collection properties = node.getNodeDataCollection(); + + if (properties != null && properties.size() > 0) + { + Iterator propertiesIt = properties.iterator(); + while (propertiesIt.hasNext()) + { + NodeData property = (NodeData) propertiesIt.next(); + values.put(property.getName(), NodeDataUtil.getValueObject(property)); + } + } + + // cycle on children + Collection children = node.getChildren(ItemType.CONTENTNODE); + if (children != null && children.size() > 0) + { + Iterator childrenIt = children.iterator(); + while (childrenIt.hasNext()) + { + Content child = (Content) childrenIt.next(); + + // gets sub map + Map subValues = getSubNodes(child); + // stores it in map + values.put(child.getName(), subValues); + } + } + + return values; + } + + /** + * {@inheritDoc} + */ + + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + configuration = this.getSubNodes(configNode); + } + + /** + * {@inheritDoc} + */ + @Override + public void drawHtml(Writer out) throws IOException + { + + Map parameters = new HashMap(); + parameters.put("name", this.getName()); + parameters.put("value", this.getValue()); + parameters.put("values", this.getValues()); + parameters.put("request", this.getRequest()); + parameters.put("debug", SystemProperty.getBooleanProperty("magnolia.develop")); + parameters.put("configuration", this.configuration); + this.drawHtmlPre(out); + + try + { + FreemarkerControl control = new FreemarkerControl("multiple".equals(this.getConfigValue("valueType")) + ? ControlImpl.VALUETYPE_MULTIPLE + : ControlImpl.VALUETYPE_SINGLE); + control.setType(this.getConfigValue("type", PropertyType.TYPENAME_STRING)); + control.setName(this.getName()); + control.drawHtml(out, getPath(), parameters); + } + + catch (TemplateException ex) + { + log.error("Error processing dialog template:", ex); + throw new NestableRuntimeException(ex); + } + + this.drawHtmlPost(out); + } + + /** + * @return ftl template path + */ + protected abstract String getPath(); + +} Copied: tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (from rev 842, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java 2008-06-20 14:52:27 UTC (rev 849) @@ -0,0 +1,30 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.setup; + +import it.openutils.mgnltasks.SimpleModuleVersionHandler; + + +/** + * @author fgiust + * @version $Id$ + */ +public class ControlsModuleVersionHandler extends SimpleModuleVersionHandler +{ + +} Copied: tags/openutils-mgnlcontrols-3.5/src/main/resources/META-INF/magnolia/controls.xml (from rev 840, trunk/openutils-mgnlcontrols/src/main/resources/META-INF/magnolia/controls.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5/src/main/resources/META-INF/magnolia/controls.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5/src/main/resources/META-INF/magnolia/controls.xml 2008-06-20 14:52:27 UTC (rev 849) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "module.dtd"> +<module> + <name>controls</name> + <displayName>controls</displayName> + <description>openutils magnolia controls module</description> + <versionHandler>net.sourceforge.openutils.mgnlcontrols.setup.ControlsModuleVersionHandler</versionHandler> + <version>${project.version}</version> + <dependencies> + <dependency> + <name>adminInterface</name> + <version>3.5/*</version> + </dependency> + <dependency> + <name>cache</name> + <version>3.5/*</version> + </dependency> + </dependencies> +</module> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5/src/main/resources/dialogs/grid.ftl (from rev 840, trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl) =================================================================== --- tags/openutils-mgnlcontrols-3.5/src/main/resources/dialogs/grid.ftl (rev 0) +++ tags/openutils-mgnlcontrols-3.5/src/main/resources/dialogs/grid.ftl 2008-06-20 14:52:27 UTC (rev 849) @@ -0,0 +1,200 @@ + +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-base.js"></script> + +[#if debug] +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-all-debug.js"></script> +[#else] +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-all.js"></script> +[/#if] + +<link rel="stylesheet" type="text/css" href="${request.contextPath}/.resources/controls/ext/css/ext-all.css" /> + +<input type="hidden" id="${name}" name="${name}" value="${value}"/> + +<div id="grid-container-${name}"> + <div id="grid-${name}"></div> +</div> + + +<script type="text/javascript"> + // <![CDATA[ + +function loadTable${name}(action) { + var numOfRows= ${configuration.rows}; + + var hidden = document.getElementById('${name}'); + var rows = hidden.value.split('\n'); + + var i, myData = []; + for (i = 0; i < numOfRows; i++) { + myData.push(((action != 'delete' && i < rows.length) ? rows[i] : '').split('\t').concat([ undefined, undefined ]).slice(0, 2)); + } + + var dataStore = new Ext.data.SimpleStore({ + fields: ['0', '1'] + }); + dataStore.loadData(myData); + + // shorthand alias + var fm = Ext.form, Ed = Ext.grid.GridEditor; + + var colModel = new Ext.grid.ColumnModel([ + [#list configuration.columns?values as colmap] + { + header: '${colmap.header}', + dataIndex: '${colmap_index}', + sortable: false, + + // todo: gestire checkbox + [#if (colmap.type?? && colmap.type = 'checkbox')] + editor: new Ed(new fm.Checkbox({ + check:false + })) + [#else] + editor: new Ed(new fm.TextField({ + allowBlank: true + })) + [/#if] + }[#if colmap_has_next],[/#if] + [/#list] + ]); + colModel.defaultSortable = true; + + v... [truncated message content] |
From: <fg...@us...> - 2008-06-23 19:24:36
|
Revision: 856 http://openutils.svn.sourceforge.net/openutils/?rev=856&view=rev Author: fgiust Date: 2008-06-23 12:24:42 -0700 (Mon, 23 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlcontrols-3.5.1 Added Paths: ----------- tags/openutils-mgnlcontrols-3.5.1/ tags/openutils-mgnlcontrols-3.5.1/pom.xml tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java tags/openutils-mgnlcontrols-3.5.1/src/main/resources/META-INF/magnolia/controls.xml tags/openutils-mgnlcontrols-3.5.1/src/main/resources/dialogs/grid.ftl tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/css/ tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/basic-dialog.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/borders.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/box.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/button.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/combo.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/core.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/date-picker.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/dialog.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/ext-all.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/form.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/grid.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/layout.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/menu.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/panel.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/progress.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/qtips.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/reset-min.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/resizable.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/slider.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/tabs.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/toolbar.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/tree.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/window.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/xtheme-aero.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/xtheme-gray.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/css/xtheme-vista.css tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/ext-all.js tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/ext-base.js tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-left.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/pspbrwse.jbf tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort-col-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-light-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/menu.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress2.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners-blue.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/l-blue.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/l.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/r-blue.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/r.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb-blue.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-add.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-no.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-yes.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/exclamation.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/text-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger-tpl.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/Thumbs.db tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-left-white.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-right-white.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/col-move-top.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/dirty.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-no.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-yes.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/footer-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-split.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-loading.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hd-btn.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-sel-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-by.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-expand-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hd-pop.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-asc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-desc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/loading.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/mso-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/nowait.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first-disabled.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last-disabled.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-next-disabled.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev-disabled.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/pick-button.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/refresh.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-expand-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-sel.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/grid/wait.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-left.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stick.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stuck.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/checked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/item-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/left-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprites.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-corners-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/progress/progress-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/s.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-c.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-lr.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shadow.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/blue-loading.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/calendar.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/large-loading.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/loading-balls.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/right-btn.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/shared/warning.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/square.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-bg.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-bg.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-thumb.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tabs-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/arrows.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-add.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-between.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-no.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-over.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-under.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-yes.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-minus-nl.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus-nl.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-line.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/folder.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/tree/loading.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-error.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-info.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-question.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-corners.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-right.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/right-corners.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/default/window/top-bottom.psd tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/dlg-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/stick.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/checked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/left-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/light-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/s.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-error.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-info.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-question.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-warning.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.pspimage tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/right-corners.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/gray/window/top-bottom.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/stick.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/s.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/images/vista/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/img/icon-delete.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/img/icon-paste.png tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/js/ tags/openutils-mgnlcontrols-3.5.1/src/site/ tags/openutils-mgnlcontrols-3.5.1/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5.1/src/site/changes/changes.xml tags/openutils-mgnlcontrols-3.5.1/src/site/resources/images/grid-config.png tags/openutils-mgnlcontrols-3.5.1/src/site/resources/images/grid.png tags/openutils-mgnlcontrols-3.5.1/src/site/site.xml Removed Paths: ------------- tags/openutils-mgnlcontrols-3.5.1/pom.xml tags/openutils-mgnlcontrols-3.5.1/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5.1/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5.1/src/site/changes/changes.xml tags/openutils-mgnlcontrols-3.5.1/src/site/resources/images/grid.png tags/openutils-mgnlcontrols-3.5.1/src/site/site.xml Copied: tags/openutils-mgnlcontrols-3.5.1 (from rev 839, trunk/openutils-mgnlcontrols) Deleted: tags/openutils-mgnlcontrols-3.5.1/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2008-06-20 13:26:47 UTC (rev 839) +++ tags/openutils-mgnlcontrols-3.5.1/pom.xml 2008-06-23 19:24:42 UTC (rev 856) @@ -1,66 +0,0 @@ -<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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlcontrols</artifactId> - <name>openutils-mgnlcontrols</name> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnltasks</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> -</project> Copied: tags/openutils-mgnlcontrols-3.5.1/pom.xml (from rev 855, trunk/openutils-mgnlcontrols/pom.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5.1/pom.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5.1/pom.xml 2008-06-23 19:24:42 UTC (rev 856) @@ -0,0 +1,73 @@ +<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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlcontrols</artifactId> + <name>openutils-mgnlcontrols</name> + <version>3.5.1</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>3.5.2</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlcontrols-3.5.1</url> + </scm> +</project> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (from rev 846, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java 2008-06-23 19:24:42 UTC (rev 856) @@ -0,0 +1,198 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import freemarker.template.TemplateException; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.ItemType; +import info.magnolia.cms.core.NodeData; +import info.magnolia.cms.core.SystemProperty; +import info.magnolia.cms.gui.control.ControlImpl; +import info.magnolia.cms.gui.control.FreemarkerControl; +import info.magnolia.cms.gui.dialog.DialogBox; +import info.magnolia.cms.gui.dialog.DialogFreemarker; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.NodeDataUtil; + +import java.io.IOException; +import java.io.Writer; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.jcr.PathNotFoundException; +import javax.jcr.PropertyType; +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang.exception.NestableRuntimeException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * similar to DialogFreemarker but with a fixed template, needed till MAGNOLIA-2175 is done + * @author fgiust + * @version $Id: $ + */ +public abstract class ConfigurableFreemarkerDialog extends DialogBox +{ + + /** + * Logger. + */ + private static Logger log = LoggerFactory.getLogger(DialogFreemarker.class); + + private Map configuration; + + /** + * {@inheritDoc} + */ + @Override + protected List readValues() + { + + List values = new ArrayList(); + + if (this.getStorageNode() != null) + { + try + { + // cycles on website content node to get multiple value + int size = this.getStorageNode().getContent(this.getName()).getNodeDataCollection().size(); + for (int i = 0; i < size; i++) + { + NodeData data = this.getStorageNode().getContent(this.getName()).getNodeData("" + i); + values.add(data.getString()); + } + } + catch (PathNotFoundException e) + { + // not yet existing: OK + } + catch (RepositoryException re) + { + log.error("can't set values", re); + } + } + return values; + } + + /** + * Get a recursive map view of a content node + * @param node content node + * @return recursive map view on content node properties and children + * @throws PathNotFoundException + * @throws RepositoryException + * @throws AccessDeniedException + */ + protected Map getSubNodes(Content node) throws RepositoryException, AccessDeniedException + { + + Map values = new LinkedHashMap(); + + // cycles on properties and stores them in map + Collection properties = node.getNodeDataCollection(); + + if (properties != null && properties.size() > 0) + { + Iterator propertiesIt = properties.iterator(); + while (propertiesIt.hasNext()) + { + NodeData property = (NodeData) propertiesIt.next(); + values.put(property.getName(), NodeDataUtil.getValueObject(property)); + } + } + + // cycle on children + Collection children = node.getChildren(ItemType.CONTENTNODE); + if (children != null && children.size() > 0) + { + Iterator childrenIt = children.iterator(); + while (childrenIt.hasNext()) + { + Content child = (Content) childrenIt.next(); + + // gets sub map + Map subValues = getSubNodes(child); + // stores it in map + values.put(child.getName(), subValues); + } + } + + return values; + } + + /** + * {@inheritDoc} + */ + + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + configuration = this.getSubNodes(configNode); + } + + /** + * {@inheritDoc} + */ + @Override + public void drawHtml(Writer out) throws IOException + { + + Map parameters = new HashMap(); + parameters.put("name", this.getName()); + parameters.put("value", this.getValue()); + parameters.put("values", this.getValues()); + parameters.put("request", this.getRequest()); + parameters.put("debug", SystemProperty.getBooleanProperty("magnolia.develop")); + parameters.put("configuration", this.configuration); + this.drawHtmlPre(out); + + try + { + FreemarkerControl control = new FreemarkerControl("multiple".equals(this.getConfigValue("valueType")) + ? ControlImpl.VALUETYPE_MULTIPLE + : ControlImpl.VALUETYPE_SINGLE); + control.setType(this.getConfigValue("type", PropertyType.TYPENAME_STRING)); + control.setName(this.getName()); + control.drawHtml(out, getPath(), parameters); + } + + catch (TemplateException ex) + { + log.error("Error processing dialog template:", ex); + throw new NestableRuntimeException(ex); + } + + this.drawHtmlPost(out); + } + + /** + * @return ftl template path + */ + protected abstract String getPath(); + +} Copied: tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (from rev 842, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5.1/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java 2008-06-23 19:24:42 UTC (rev 856) @@ -0,0 +1,30 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.setup; + +import it.openutils.mgnltasks.SimpleModuleVersionHandler; + + +/** + * @author fgiust + * @version $Id$ + */ +public class ControlsModuleVersionHandler extends SimpleModuleVersionHandler +{ + +} Copied: tags/openutils-mgnlcontrols-3.5.1/src/main/resources/META-INF/magnolia/controls.xml (from rev 840, trunk/openutils-mgnlcontrols/src/main/resources/META-INF/magnolia/controls.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5.1/src/main/resources/META-INF/magnolia/controls.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5.1/src/main/resources/META-INF/magnolia/controls.xml 2008-06-23 19:24:42 UTC (rev 856) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "module.dtd"> +<module> + <name>controls</name> + <displayName>controls</displayName> + <description>openutils magnolia controls module</description> + <versionHandler>net.sourceforge.openutils.mgnlcontrols.setup.ControlsModuleVersionHandler</versionHandler> + <version>${project.version}</version> + <dependencies> + <dependency> + <name>adminInterface</name> + <version>3.5/*</version> + </dependency> + <dependency> + <name>cache</name> + <version>3.5/*</version> + </dependency> + </dependencies> +</module> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5.1/src/main/resources/dialogs/grid.ftl (from rev 854, trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl) =================================================================== --- tags/openutils-mgnlcontrols-3.5.1/src/main/resources/dialogs/grid.ftl (rev 0) +++ tags/openutils-mgnlcontrols-3.5.1/src/main/resources/dialogs/grid.ftl 2008-06-23 19:24:42 UTC (rev 856) @@ -0,0 +1,217 @@ + +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-base.js"></script> + +[#if debug] +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-all-debug.js"></script> +[#else] +<script type="text/javascript" src="${request.contextPath}/.resources/controls/ext/ext-all.js"></script> +[/#if] +<script type="text/javascript" src="${request.contextPath}/.resources/controls/js/LinkField.js"></script> +<script type="text/javascript" src="${request.contextPath}/.resources/controls/js/CheckColumn.js"></script> + +<link rel="stylesheet" typ... [truncated message content] |
From: <fg...@us...> - 2008-06-24 15:59:54
|
Revision: 863 http://openutils.svn.sourceforge.net/openutils/?rev=863&view=rev Author: fgiust Date: 2008-06-24 08:28:00 -0700 (Tue, 24 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnltasks-3.5.3 Added Paths: ----------- tags/openutils-mgnltasks-3.5.3/ tags/openutils-mgnltasks-3.5.3/pom.xml tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateGroupTask.java tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateRoleTask.java tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml Removed Paths: ------------- tags/openutils-mgnltasks-3.5.3/pom.xml tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml Copied: tags/openutils-mgnltasks-3.5.3 (from rev 838, trunk/openutils-mgnltasks) Deleted: tags/openutils-mgnltasks-3.5.3/pom.xml =================================================================== --- trunk/openutils-mgnltasks/pom.xml 2008-06-11 21:26:56 UTC (rev 838) +++ tags/openutils-mgnltasks-3.5.3/pom.xml 2008-06-24 15:28:00 UTC (rev 863) @@ -1,89 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnltasks</artifactId> - <name>openutils-mgnltasks</name> - <version>3.5.3-SNAPSHOT</version> - <description>A collection of useful magnolia update tasks that can be reused in custom modules</description> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.4</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jsp-api</artifactId> - <version>2.0</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.7</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://repo.magnolia.info/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnltasks-3.5.3/pom.xml (from rev 862, trunk/openutils-mgnltasks/pom.xml) =================================================================== --- tags/openutils-mgnltasks-3.5.3/pom.xml (rev 0) +++ tags/openutils-mgnltasks-3.5.3/pom.xml 2008-06-24 15:28:00 UTC (rev 863) @@ -0,0 +1,107 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnltasks</artifactId> + <name>openutils-mgnltasks</name> + <version>3.5.3</version> + <description>A collection of useful magnolia update tasks that can be reused in custom modules</description> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.7</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://repo.magnolia.info/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnltasks-3.5.3</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnltasks-3.5.3</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnltasks-3.5.3</url> + </scm> +</project> \ No newline at end of file Deleted: tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java =================================================================== --- trunk/openutils-mgnltasks/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java 2008-06-11 21:26:56 UTC (rev 838) +++ tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java 2008-06-24 15:28:00 UTC (rev 863) @@ -1,94 +0,0 @@ -/** - * Copyright Openmind http://www.openmindonline.it - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -package it.openutils.mgnltasks; - -import info.magnolia.cms.beans.config.ContentRepository; -import info.magnolia.cms.core.Content; -import info.magnolia.cms.core.HierarchyManager; -import info.magnolia.cms.security.Permission; -import info.magnolia.cms.security.UserManager; -import info.magnolia.cms.util.NodeDataUtil; -import info.magnolia.module.InstallContext; -import info.magnolia.module.delta.AbstractRepositoryTask; -import info.magnolia.module.delta.Task; -import info.magnolia.module.delta.TaskExecutionException; - -import java.util.Collection; - -import javax.jcr.RepositoryException; - - -/** - * A task that can be used to add or remove read only access to the anonymous user (for an easy admin/public switch). - * @author fgiust - * @version $Id: $ - */ -public class AnonymousUserSetupTask extends AbstractRepositoryTask implements Task -{ - - private boolean allowAccess; - - /** - * @param allowAccess true to add access to anonymous users, false to remove it - */ - public AnonymousUserSetupTask(boolean allowAccess) - { - super("Setup anonymous user", allowAccess - ? "Adding access to anonymous user" - : "Removing access to anonymous user"); - this.allowAccess = allowAccess; - } - - /** - * {@inheritDoc} - */ - @SuppressWarnings("unchecked") - @Override - protected void doExecute(InstallContext installContext) throws RepositoryException, TaskExecutionException - { - - HierarchyManager hm = installContext.getHierarchyManager(ContentRepository.USER_ROLES); - - Content role = hm.getContent("/" + UserManager.ANONYMOUS_USER); - - Content acls = role.getChildByName("acl_website"); - - Collection<Content> children = acls.getChildren(); - - boolean found = false; - for (Content acl : children) - { - if ("/*".equals(acl.getNodeData("path").getString())) - { - found = true; - - long permissions = acl.getNodeData("permissions").getLong(); - long newpermissions = this.allowAccess ? Permission.READ : 0; - if (permissions != newpermissions) - { - NodeDataUtil.getOrCreate(acl, "permissions").setValue(newpermissions); - } - } - } - if (!found) - { - log.warn("Security not configured on anonymous user! No acl for /* found."); - } - } - -} Copied: tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java (from rev 860, trunk/openutils-mgnltasks/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java) =================================================================== --- tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java (rev 0) +++ tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/AnonymousUserSetupTask.java 2008-06-24 15:28:00 UTC (rev 863) @@ -0,0 +1,110 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package it.openutils.mgnltasks; + +import info.magnolia.cms.beans.config.ContentRepository; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.security.Permission; +import info.magnolia.cms.security.UserManager; +import info.magnolia.cms.util.NodeDataUtil; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractRepositoryTask; +import info.magnolia.module.delta.Task; +import info.magnolia.module.delta.TaskExecutionException; + +import java.util.Collection; + +import javax.jcr.RepositoryException; + + +/** + * A task that can be used to add or remove read only access to the anonymous user (for an easy admin/public switch). + * @author fgiust + * @version $Id$ + */ +public class AnonymousUserSetupTask extends AbstractRepositoryTask implements Task +{ + + private boolean allowAccess; + + /** + * @param allowAccess true to add access to anonymous users, false to remove it + */ + public AnonymousUserSetupTask(boolean allowAccess) + { + super("Setup anonymous user", allowAccess + ? "Adding access to anonymous user" + : "Removing access to anonymous user"); + this.allowAccess = allowAccess; + } + + /** + * {@inheritDoc} + */ + @Override + protected void doExecute(InstallContext installContext) throws RepositoryException, TaskExecutionException + { + + HierarchyManager hm = installContext.getHierarchyManager(ContentRepository.USER_ROLES); + + Content role = hm.getContent("/" + UserManager.ANONYMOUS_USER); + + setupAcl(role, "website", "/", this.allowAccess ? Permission.READ : Permission.NONE); + setupAcl(role, "uri", "/*", this.allowAccess ? Permission.ALL : Permission.NONE); + setupAcl(role, "uri", "/.magnolia*", Permission.NONE); + } + + /** + * @param role + * @param repository + * @param newpermissions + * @throws RepositoryException + * @throws AccessDeniedException + */ + @SuppressWarnings("unchecked") + private void setupAcl(Content role, String repository, String path, long newpermissions) + throws RepositoryException, AccessDeniedException + { + Content acls = role.getChildByName("acl_" + repository); + + Collection<Content> children = acls.getChildren(); + + boolean found = false; + for (Content acl : children) + { + String aclPath = acl.getNodeData("path").getString(); + if (path.equals(aclPath)) + { + found = true; + + long permissions = acl.getNodeData("permissions").getLong(); + if (permissions != newpermissions) + { + NodeDataUtil.getOrCreate(acl, "permissions").setValue(newpermissions); + } + } + } + if (!found) + { + log.warn("Security not configured on anonymous user! No acl for {} found on {}", path, repository); + } + } + +} Copied: tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateGroupTask.java (from rev 860, trunk/openutils-mgnltasks/src/main/java/it/openutils/mgnltasks/CheckAndCreateGroupTask.java) =================================================================== --- tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateGroupTask.java (rev 0) +++ tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateGroupTask.java 2008-06-24 15:28:00 UTC (rev 863) @@ -0,0 +1,76 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package it.openutils.mgnltasks; + +import info.magnolia.cms.beans.config.ContentRepository; +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractRepositoryTask; +import info.magnolia.module.delta.BootstrapSingleResource; +import info.magnolia.module.delta.Task; +import info.magnolia.module.delta.TaskExecutionException; + +import javax.jcr.PathNotFoundException; +import javax.jcr.RepositoryException; + + +/** + * Creates a group if not already existing. + * @author fgiust + * @version $Id$ + */ +public class CheckAndCreateGroupTask extends AbstractRepositoryTask implements Task +{ + + private String group; + + private String bootstrapFile; + + /** + * @param group group name + * @param bootstrapFile bootstrap file used to create the group + */ + public CheckAndCreateGroupTask(String group, String bootstrapFile) + { + super("Checking " + group, "Checking " + group); + this.group = group; + this.bootstrapFile = bootstrapFile; + } + + /** + * {@inheritDoc} + */ + @Override + protected void doExecute(InstallContext installContext) throws RepositoryException, TaskExecutionException + { + + HierarchyManager hm = installContext.getHierarchyManager(ContentRepository.USER_GROUPS); + + try + { + hm.getContent(group); + } + catch (PathNotFoundException e) + { + + BootstrapSingleResource bsr = new BootstrapSingleResource("creating group " + group, "creating group " + + group, bootstrapFile); + bsr.execute(installContext); + } + } +} Copied: tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateRoleTask.java (from rev 860, trunk/openutils-mgnltasks/src/main/java/it/openutils/mgnltasks/CheckAndCreateRoleTask.java) =================================================================== --- tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateRoleTask.java (rev 0) +++ tags/openutils-mgnltasks-3.5.3/src/main/java/it/openutils/mgnltasks/CheckAndCreateRoleTask.java 2008-06-24 15:28:00 UTC (rev 863) @@ -0,0 +1,78 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package it.openutils.mgnltasks; + +import info.magnolia.cms.beans.config.ContentRepository; +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.module.InstallContext; +import info.magnolia.module.delta.AbstractRepositoryTask; +import info.magnolia.module.delta.BootstrapSingleResource; +import info.magnolia.module.delta.Task; +import info.magnolia.module.delta.TaskExecutionException; + +import javax.jcr.PathNotFoundException; +import javax.jcr.RepositoryException; + + +/** + * Creates a role if not already existing. + * @author fgiust + * @version $Id$ + */ +public class CheckAndCreateRoleTask extends AbstractRepositoryTask implements Task +{ + + private String role; + + private String bootstrapFile; + + /** + * @param role role name + * @param bootstrapFile bootstrap file used to create the role + */ + public CheckAndCreateRoleTask(String role, String bootstrapFile) + { + super("Checking " + role, "Checking " + role); + this.role = role; + this.bootstrapFile = bootstrapFile; + } + + /** + * {@inheritDoc} + */ + @Override + protected void doExecute(InstallContext installContext) throws RepositoryException, TaskExecutionException + { + + HierarchyManager hm = installContext.getHierarchyManager(ContentRepository.USER_ROLES); + + try + { + hm.getContent(role); + } + catch (PathNotFoundException e) + { + + BootstrapSingleResource bsr = new BootstrapSingleResource( + "creating role " + role, + "creating role " + role, + bootstrapFile); + bsr.execute(installContext); + } + } +} Deleted: tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnltasks/src/site/changes/changes.xml 2008-06-11 21:26:56 UTC (rev 838) +++ tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml 2008-06-24 15:28:00 UTC (rev 863) @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<!-- - "type" attribute can be: add, remove, update or fix. ---> -<document> - <properties> - <title>Changes</title> - <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> - </properties> - <body> - <release version="3.5.2" date="2008-06-08" description="in svn"> - <action type="add" dev="fgiust">Added [modulename].update.disabled property in SimpleModuleVersionHandler that - can be set to true in order to disable module configuration updates</action> - <action type="add" dev="fgiust">Added it.openutils.mgnltasks.DisableSubscribersTask</action> - </release> - <release version="3.5.1" date="2008-04-28" description="3.5.1"> - <action type="add" dev="fgiust">Added UpdateModuleVersionTask.</action> - <action type="add" dev="fgiust">Added SimpleModuleVersionHandler.</action> - </release> - <release version="3.5" date="2008-04-27" description="first release"> - <action type="add" dev="fgiust">First public release. The version is labeled "3.5" in order to make clear which - version of magnolia is required.</action> - </release> - </body> -</document> \ No newline at end of file Copied: tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml (from rev 860, trunk/openutils-mgnltasks/src/site/changes/changes.xml) =================================================================== --- tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml (rev 0) +++ tags/openutils-mgnltasks-3.5.3/src/site/changes/changes.xml 2008-06-24 15:28:00 UTC (rev 863) @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="3.5.3" date="2008-06-24" description=""> + <action type="add" dev="fgiust">new CheckAndCreateRoleTask and CheckAndCreateGroupTask</action> + <action type="update" dev="fgiust">AnonymousUserSetupTask now also takes care of changing + permissions on URIs</action> + </release> + <release version="3.5.2" date="2008-06-08" description=""> + <action type="add" dev="fgiust">Added [modulename].update.disabled property in SimpleModuleVersionHandler that + can be set to true in order to disable module configuration updates</action> + <action type="add" dev="fgiust">Added it.openutils.mgnltasks.DisableSubscribersTask</action> + </release> + <release version="3.5.1" date="2008-04-28" description="3.5.1"> + <action type="add" dev="fgiust">Added UpdateModuleVersionTask.</action> + <action type="add" dev="fgiust">Added SimpleModuleVersionHandler.</action> + </release> + <release version="3.5" date="2008-04-27" description="first release"> + <action type="add" dev="fgiust">First public release. The version is labeled "3.5" in order to make clear which + version of magnolia is required.</action> + </release> + </body> +</document> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-06-26 17:00:10
|
Revision: 872 http://openutils.svn.sourceforge.net/openutils/?rev=872&view=rev Author: fgiust Date: 2008-06-26 09:58:33 -0700 (Thu, 26 Jun 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlcontrols-3.5.2 Added Paths: ----------- tags/openutils-mgnlcontrols-3.5.2/ tags/openutils-mgnlcontrols-3.5.2/pom.xml tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java tags/openutils-mgnlcontrols-3.5.2/src/main/resources/META-INF/magnolia/controls.xml tags/openutils-mgnlcontrols-3.5.2/src/main/resources/dialogs/grid.ftl tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.grid.xml tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/css/ tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/basic-dialog.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/borders.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/box.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/button.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/combo.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/core.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/date-picker.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/dialog.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/ext-all.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/form.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/grid.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/layout.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/menu.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/panel.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/progress.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/qtips.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/reset-min.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/resizable.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/slider.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/tabs.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/toolbar.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/tree.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/window.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/xtheme-aero.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/xtheme-gray.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/css/xtheme-vista.css tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/ext-all.js tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/ext-base.js tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/aero-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-left.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/bg-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/pspbrwse.jbf tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort-col-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/panel-title-light-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/menu.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/aero/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/progress2.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners-blue.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/corners.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/l-blue.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/l.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/r-blue.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/r.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb-blue.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/box/tb.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-add.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-no.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/dd/drop-yes.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/clear-trigger.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/date-trigger.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/exclamation.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/search-trigger.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/text-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger-tpl.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/form/trigger.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/Thumbs.db tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-left-white.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/arrow-right-white.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/col-move-top.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/dirty.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-no.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/drop-yes.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/footer-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-blue-split.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-loading.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hd-btn.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-hrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/grid3-special-col-sel-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-by.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/group-expand-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hd-pop.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-asc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-desc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-lock.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/hmenu-unlock.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/loading.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/mso-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/nowait.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first-disabled.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-first.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last-disabled.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-last.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-next-disabled.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev-disabled.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/page-prev.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/pick-button.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/refresh.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-expand-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/row-sel.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_asc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/sort_desc.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/grid/wait.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-left.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/mini-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stick.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/stuck.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/checked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/item-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/menu.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/left-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tool-sprites.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-corners-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/progress/progress-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/s.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-c.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shadow-lr.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shadow.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/blue-loading.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/calendar.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/large-loading.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/loading-balls.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/right-btn.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/shared/warning.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/square.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-bg.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-bg.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/slider/slider-v-thumb.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-bg.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tabs/tabs-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/arrows.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-add.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-between.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-no.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-over.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-under.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/drop-yes.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-minus-nl.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus-nl.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end-plus.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-end.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/elbow-line.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/folder.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/tree/loading.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-error.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-info.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/icon-question.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-corners.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/left-right.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/right-corners.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/default/window/top-bottom.psd tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/dlg-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/button/btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/grid/grid-hrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/panel-title-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/stick.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/checked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/group-checked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu-parent.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/menu.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/menu/unchecked.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/corners-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/left-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/light-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tool-sprite-tpl.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/tools-sprites-trans.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/top-bottom.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-left-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/panel/white-top-bottom.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/s.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/ne-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/se-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-left.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroll-right.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/scroller-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/tabs/tab-strip-btm-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow-light.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-arrow.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/btn-over-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/toolbar/tb-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-error.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-info.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-question.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/icon-warning.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/left-corners.pspimage tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/right-corners.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/gray/window/top-bottom.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/bg-center.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/hd-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/se-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/basic-dialog/w-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-split.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/grid/grid-vista-hd.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/gradient-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-collapse.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/ns-expand.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/panel-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/stick.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close-on.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/layout/tab-close.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/qtip/tip-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/s.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/e-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/ne-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/nw-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/s-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/se-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle-dark.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/sizer/sw-handle.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-inactive-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-left-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/tabs/tab-btm-right-bg.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/images/vista/toolbar/tb-btn-sprite.gif tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/img/icon-delete.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/img/icon-paste.png tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/js/ tags/openutils-mgnlcontrols-3.5.2/src/site/ tags/openutils-mgnlcontrols-3.5.2/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5.2/src/site/changes/changes.xml tags/openutils-mgnlcontrols-3.5.2/src/site/resources/images/grid-config.png tags/openutils-mgnlcontrols-3.5.2/src/site/resources/images/grid.png tags/openutils-mgnlcontrols-3.5.2/src/site/site.xml Removed Paths: ------------- tags/openutils-mgnlcontrols-3.5.2/pom.xml tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-bootstrap/controls/config.modules.controls.controls.grid.xml tags/openutils-mgnlcontrols-3.5.2/src/main/resources/mgnl-resources/controls/ext/ext-all-debug.js tags/openutils-mgnlcontrols-3.5.2/src/site/apt/grid.apt tags/openutils-mgnlcontrols-3.5.2/src/site/changes/changes.xml tags/openutils-mgnlcontrols-3.5.2/src/site/resources/images/grid.png tags/openutils-mgnlcontrols-3.5.2/src/site/site.xml Copied: tags/openutils-mgnlcontrols-3.5.2 (from rev 839, trunk/openutils-mgnlcontrols) Deleted: tags/openutils-mgnlcontrols-3.5.2/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2008-06-20 13:26:47 UTC (rev 839) +++ tags/openutils-mgnlcontrols-3.5.2/pom.xml 2008-06-26 16:58:33 UTC (rev 872) @@ -1,66 +0,0 @@ -<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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlcontrols</artifactId> - <name>openutils-mgnlcontrols</name> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnltasks</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> -</project> Copied: tags/openutils-mgnlcontrols-3.5.2/pom.xml (from rev 871, trunk/openutils-mgnlcontrols/pom.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5.2/pom.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5.2/pom.xml 2008-06-26 16:58:33 UTC (rev 872) @@ -0,0 +1,85 @@ +<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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlcontrols</artifactId> + <name>openutils-mgnlcontrols</name> + <version>3.5.2</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>3.5.3</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.2</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.2</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlcontrols-3.5.2</url> + </scm> +</project> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (from rev 846, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/dialog/ConfigurableFreemarkerDialog.java 2008-06-26 16:58:33 UTC (rev 872) @@ -0,0 +1,198 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.dialog; + +import freemarker.template.TemplateException; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.ItemType; +import info.magnolia.cms.core.NodeData; +import info.magnolia.cms.core.SystemProperty; +import info.magnolia.cms.gui.control.ControlImpl; +import info.magnolia.cms.gui.control.FreemarkerControl; +import info.magnolia.cms.gui.dialog.DialogBox; +import info.magnolia.cms.gui.dialog.DialogFreemarker; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.NodeDataUtil; + +import java.io.IOException; +import java.io.Writer; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.jcr.PathNotFoundException; +import javax.jcr.PropertyType; +import javax.jcr.RepositoryException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang.exception.NestableRuntimeException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * similar to DialogFreemarker but with a fixed template, needed till MAGNOLIA-2175 is done + * @author fgiust + * @version $Id: $ + */ +public abstract class ConfigurableFreemarkerDialog extends DialogBox +{ + + /** + * Logger. + */ + private static Logger log = LoggerFactory.getLogger(DialogFreemarker.class); + + private Map configuration; + + /** + * {@inheritDoc} + */ + @Override + protected List readValues() + { + + List values = new ArrayList(); + + if (this.getStorageNode() != null) + { + try + { + // cycles on website content node to get multiple value + int size = this.getStorageNode().getContent(this.getName()).getNodeDataCollection().size(); + for (int i = 0; i < size; i++) + { + NodeData data = this.getStorageNode().getContent(this.getName()).getNodeData("" + i); + values.add(data.getString()); + } + } + catch (PathNotFoundException e) + { + // not yet existing: OK + } + catch (RepositoryException re) + { + log.error("can't set values", re); + } + } + return values; + } + + /** + * Get a recursive map view of a content node + * @param node content node + * @return recursive map view on content node properties and children + * @throws PathNotFoundException + * @throws RepositoryException + * @throws AccessDeniedException + */ + protected Map getSubNodes(Content node) throws RepositoryException, AccessDeniedException + { + + Map values = new LinkedHashMap(); + + // cycles on properties and stores them in map + Collection properties = node.getNodeDataCollection(); + + if (properties != null && properties.size() > 0) + { + Iterator propertiesIt = properties.iterator(); + while (propertiesIt.hasNext()) + { + NodeData property = (NodeData) propertiesIt.next(); + values.put(property.getName(), NodeDataUtil.getValueObject(property)); + } + } + + // cycle on children + Collection children = node.getChildren(ItemType.CONTENTNODE); + if (children != null && children.size() > 0) + { + Iterator childrenIt = children.iterator(); + while (childrenIt.hasNext()) + { + Content child = (Content) childrenIt.next(); + + // gets sub map + Map subValues = getSubNodes(child); + // stores it in map + values.put(child.getName(), subValues); + } + } + + return values; + } + + /** + * {@inheritDoc} + */ + + @Override + public void init(HttpServletRequest request, HttpServletResponse response, Content websiteNode, Content configNode) + throws RepositoryException + { + super.init(request, response, websiteNode, configNode); + configuration = this.getSubNodes(configNode); + } + + /** + * {@inheritDoc} + */ + @Override + public void drawHtml(Writer out) throws IOException + { + + Map parameters = new HashMap(); + parameters.put("name", this.getName()); + parameters.put("value", this.getValue()); + parameters.put("values", this.getValues()); + parameters.put("request", this.getRequest()); + parameters.put("debug", SystemProperty.getBooleanProperty("magnolia.develop")); + parameters.put("configuration", this.configuration); + this.drawHtmlPre(out); + + try + { + FreemarkerControl control = new FreemarkerControl("multiple".equals(this.getConfigValue("valueType")) + ? ControlImpl.VALUETYPE_MULTIPLE + : ControlImpl.VALUETYPE_SINGLE); + control.setType(this.getConfigValue("type", PropertyType.TYPENAME_STRING)); + control.setName(this.getName()); + control.drawHtml(out, getPath(), parameters); + } + + catch (TemplateException ex) + { + log.error("Error processing dialog template:", ex); + throw new NestableRuntimeException(ex); + } + + this.drawHtmlPost(out); + } + + /** + * @return ftl template path + */ + protected abstract String getPath(); + +} Copied: tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (from rev 842, trunk/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java) =================================================================== --- tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java (rev 0) +++ tags/openutils-mgnlcontrols-3.5.2/src/main/java/net/sourceforge/openutils/mgnlcontrols/setup/ControlsModuleVersionHandler.java 2008-06-26 16:58:33 UTC (rev 872) @@ -0,0 +1,30 @@ +/** + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package net.sourceforge.openutils.mgnlcontrols.setup; + +import it.openutils.mgnltasks.SimpleModuleVersionHandler; + + +/** + * @author fgiust + * @version $Id$ + */ +public class ControlsModuleVersionHandler extends SimpleModuleVersionHandler +{ + +} Copied: tags/openutils-mgnlcontrols-3.5.2/src/main/resources/META-INF/magnolia/controls.xml (from rev 840, trunk/openutils-mgnlcontrols/src/main/resources/META-INF/magnolia/controls.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5.2/src/main/resources/META-INF/magnolia/controls.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5.2/src/main/resources/META-INF/magnolia/controls.xml 2008-06-26 16:58:33 UTC (rev 872) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "module.dtd"> +<module> + <name>controls</name> + <displayName>controls</displayName> + <description>openutils magnolia controls module</description> + <versionHandler>net.sourceforge.openutils.mgnlcontrols.setup.ControlsModuleVersionHandler</versionHandler> + <version>${project.version}</version> + <dependencies> + <dependency> + <name>adminInterface</name> + <version>3.5/*</version> + </dependency> + <dependency> + <name>cache</name> + <version>3.5/*</version> + </dependency> + </dependencies> +</module> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5.2/src/main/resources/dialogs/grid.ftl (from rev 854, trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl) =================================================================== --- tags/openutils-mgnlcontrols-3.5.2/src/main/resources/dialogs/grid.ftl (rev 0) +++ tags/openutils-mgnlcontrols-3.5.2/src/main/resources/dialogs/grid.ftl 2008-06-26 16:58:33 UTC (rev 872) @@ -0,0 +1,217 @@ + +<script type="text/ja... [truncated message content] |
From: <mol...@us...> - 2008-07-01 14:10:22
|
Revision: 876 http://openutils.svn.sourceforge.net/openutils/?rev=876&view=rev Author: molaschi Date: 2008-07-01 07:10:27 -0700 (Tue, 01 Jul 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlbootstrapsync-0.2 Added Paths: ----------- tags/openutils-mgnlbootstrapsync-0.2/ tags/openutils-mgnlbootstrapsync-0.2/pom.xml tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java Removed Paths: ------------- tags/openutils-mgnlbootstrapsync-0.2/pom.xml tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java Copied: tags/openutils-mgnlbootstrapsync-0.2 (from rev 873, trunk/openutils-mgnlbootstrapsync) Deleted: tags/openutils-mgnlbootstrapsync-0.2/pom.xml =================================================================== --- trunk/openutils-mgnlbootstrapsync/pom.xml 2008-06-26 17:03:15 UTC (rev 873) +++ tags/openutils-mgnlbootstrapsync-0.2/pom.xml 2008-07-01 14:10:27 UTC (rev 876) @@ -1,76 +0,0 @@ -<?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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlbootstrapsync</artifactId> - <name>openutils-mgnlbootstrapsync</name> - <version>0.2-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5-rc2</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.2</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://svn.magnolia.info/maven/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> Copied: tags/openutils-mgnlbootstrapsync-0.2/pom.xml (from rev 875, trunk/openutils-mgnlbootstrapsync/pom.xml) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.2/pom.xml (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.2/pom.xml 2008-07-01 14:10:27 UTC (rev 876) @@ -0,0 +1,82 @@ +<?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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlbootstrapsync</artifactId> + <name>openutils-mgnlbootstrapsync</name> + <version>0.2</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5-rc2</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.2</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://svn.magnolia.info/maven/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.2</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlbootstrapsync-0.2</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlbootstrapsync-0.2</url> + </scm> +</project> Deleted: tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java =================================================================== --- trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java 2008-06-26 17:03:15 UTC (rev 873) +++ tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java 2008-07-01 14:10:27 UTC (rev 876) @@ -1,427 +0,0 @@ -package it.openutils.mgnlbootstrapsync.listener; - -import info.magnolia.cms.core.Content; -import info.magnolia.cms.core.HierarchyManager; -import info.magnolia.cms.core.Path; -import info.magnolia.cms.core.ie.DataTransporter; -import info.magnolia.cms.core.ie.filters.VersionFilter; -import info.magnolia.cms.security.AccessDeniedException; -import info.magnolia.cms.util.ContentUtil; -import info.magnolia.context.MgnlContext; -import it.openutils.mgnlbootstrapsync.BootstrapAtomicFilter; -import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Collection; -import java.util.Iterator; -import java.util.zip.DeflaterOutputStream; - -import javax.jcr.PathNotFoundException; -import javax.jcr.RepositoryException; -import javax.jcr.Session; -import javax.jcr.observation.EventIterator; -import javax.jcr.observation.EventListener; - -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang.StringUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xml.sax.SAXException; -import org.xml.sax.XMLReader; -import org.xml.sax.helpers.XMLReaderFactory; - -/** - * - * @author mmolaschi - * @version $Id: $ - */ -public abstract class AbstractBootstrapSyncListener implements EventListener -{ - - private static Logger log = LoggerFactory.getLogger(AbstractBootstrapSyncListener.class); - - private BootstrapSyncRepositoryWatch watch; - - private Object synchronizationObject = new Object(); - - /** - * - * @param watch watch for this listener - */ - public AbstractBootstrapSyncListener(BootstrapSyncRepositoryWatch watch) - { - this.watch = watch; - } - - - /** - * {@inheritDoc} - */ - public abstract void onEvent(EventIterator events); - - public BootstrapSyncRepositoryWatch getWatch() - { - return watch; - } - - public void setWatch(BootstrapSyncRepositoryWatch watch) - { - this.watch = watch; - } - - /** - * Change event on node - * @param nodePath path to node - */ - public void exportNode(String nodePath) - { - synchronized (synchronizationObject) - { - String path = nodePath; - - // get repository manager - HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(watch.getRepository()); - - // check if path can exported - boolean isEnablePath = this.watch.getEnableRoots().isEnable(path); - if (isEnablePath) - { - try - { - // check if it is a property - if (hm.isNodeData(path)) - { - // move to parent node - path = StringUtils.substringBeforeLast(path, "/"); - } - } - catch (AccessDeniedException e) - { - log.error(e.getMessage(), e); - return; - } - - Content exported = null; - - try - { - // get exported content - exported = getRightContent(hm.getContent(path), watch.getNodeType()); - if (exported == null) - { - return; - } - } - catch (RepositoryException e) - { - if (log.isDebugEnabled() && e instanceof PathNotFoundException) - { - log.debug("Path already deleted:" + path); - } - if (log.isErrorEnabled() && !(e instanceof PathNotFoundException)) - { - log.error("Error hierarchy manager for path " + path, e); - } - return; - } - - // get handle - String handle = exported.getHandle(); - - // check if path is under a "compressed" node - String pathToExport = this.watch.getExportRoots().getRootPath(handle); - - if (pathToExport == null) - { - // not "compressed" - exportFileIterative(hm, exported); - } - else - { - exportFile(hm, pathToExport, false); - } - } - } - } - - /** - * Remove event on node - * @param path path to node - */ - public void removeNode(String path) - { - // synchornization - synchronized (synchronizationObject) - { - // get hierarchy manager - HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(watch.getRepository()); - - // check if path can exported - boolean isEnablePath = this.watch.getEnableRoots().isEnable(path); - if (isEnablePath) - { - // check if path is under a "compressed" node - String pathToExport = this.watch.getExportRoots().getRootPath(path); - - if (pathToExport == null || pathToExport.equals(path)) - { - // remove every file that starts with path - cleanFileSystem(path); - - try - { - // get parent node - String parentHandle = StringUtils.substringBeforeLast(path, "/"); - String parentXmlName = watch.getRepository() - + StringUtils.replace(parentHandle, "/", ".") - + ".xml"; - if (parentHandle.length() == 0) - { - parentHandle = "/"; - } - - // check if path is under a "compressed" node - String pathParentToExport = this.watch.getExportRoots().getRootPath(parentHandle); - - if (pathParentToExport == null) - { - // xml reader for filtering 2 levels - BootstrapAtomicFilter xmlReader = new BootstrapAtomicFilter(XMLReaderFactory - .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); - - // export parent node - exportFile(parentXmlName, xmlReader, hm, parentHandle); - } - else - { - exportFile(hm, pathParentToExport, false); - } - } - catch (SAXException ex) - { - throw new RuntimeException(ex); - } - } - else - { - exportFile(hm, pathToExport, false); - } - } - } - } - - /** - * Go up in tree until the current node type equals passed item type - * @param c current node - * @param itemType item type to check - * @return right node or null if not found - * @throws RepositoryException repository exception - */ - @SuppressWarnings("unchecked") - private Content getRightContent(Content c, String itemType) throws RepositoryException - { - if (c.getItemType().getSystemName().equals(itemType)) - { - return c; - } - if (c.getChildren() != null) - { - Iterator it = c.getChildren().iterator(); - while(it.hasNext()) - { - return getRightContent((Content)it.next(), itemType); - } - } - return null; - } - - /** - * Export node and its subnodes - * @param hm hierarchy manager - * @param node node - */ - @SuppressWarnings("unchecked") - protected void exportFileIterative(HierarchyManager hm, Content node) - { - // write itself - exportFile(hm, node.getHandle(), true); - - // cycle on children - Collection<Content> children = node.getChildren(ContentUtil.EXCLUDE_META_DATA_CONTENT_FILTER); - if (children != null) - { - for (Content child : children) - { - exportFileIterative(hm, child); - } - } - } - - /** - * Export node to file - * @param hm hierarchy manager - * @param handle path to node - * @param singleNode export single node in file - */ - protected void exportFile(HierarchyManager hm, String handle, boolean singleNode) - { - try - { - if (singleNode) - { - String parentHandle = StringUtils.substringBeforeLast(handle, "/"); - String parentXmlName = watch.getRepository() + StringUtils.replace(parentHandle, "/", ".") + ".xml"; - if (parentHandle.length() == 0) - { - parentHandle = "/"; - } - - BootstrapAtomicFilter xmlReader = new BootstrapAtomicFilter(XMLReaderFactory - .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); - - exportFile(parentXmlName, xmlReader, hm, parentHandle); - } - String xmlName = watch.getRepository() + StringUtils.replace(handle, "/", ".") + ".xml"; - - XMLReader xmlReader = null; - - if (singleNode) - { - xmlReader = new BootstrapAtomicFilter(XMLReaderFactory - .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); - } - exportFile(xmlName, xmlReader, hm, handle); - } - catch (SAXException ex) - { - throw new RuntimeException(ex); - } - } - - /** - * - * @param fileName file name - * @param reader xml filter - * @param hm hierarchy manager - * @param handle path to node - */ - protected void exportFile(String fileName, XMLReader reader, HierarchyManager hm, String handle) - { - // create necessary parent directories - File folder = new File(Path.getAbsoluteFileSystemPath(watch.getExportPath())); - folder.mkdirs(); - - File xmlFile = new File(folder.getAbsoluteFile(), fileName); - FileOutputStream fos = null; - try - { - fos = new FileOutputStream(xmlFile); - } - catch (FileNotFoundException e) - { - log.error(e.getMessage(), e); - return; - } - - try - { - executeExport(fos, reader, hm.getWorkspace().getSession(), handle, watch.getRepository()); - } - catch (IOException e) - { - log.error(e.getMessage(), e); - } - finally - { - IOUtils.closeQuietly(fos); - } - } - - /** - * Clean files for node (path) - * @param path path to node - */ - protected void cleanFileSystem(String path) - { - - String baseName = watch.getRepository() + StringUtils.replace(path, "/", "."); - - // create necessary parent directories - File folder = new File(Path.getAbsoluteFileSystemPath(watch.getExportPath())); - - if (folder.exists()) - { - String[] files = folder.list(); - for (String file : files) - { - File f = new File(folder, file); - if (f.exists() && f.getName().startsWith(baseName)) - { - f.delete(); - log.debug("Removed File: " + f.getName()); - } - } - } - } - - /** - * Execute export - * @param baseOutputStream file output stream - * @param reader xml filter - * @param session jcr session - * @param basepath path to node - * @param repository repository - * @throws IOException exception writing file - */ - protected static void executeExport(OutputStream baseOutputStream, XMLReader reader, Session session, - String basepath, String repository) throws IOException - { - OutputStream outputStream = baseOutputStream; - - try - { - // use XMLSerializer and a SAXFilter in order to rewrite the - // file - - XMLReader xmlReader = reader; - if (reader == null) - { - xmlReader = new VersionFilter(XMLReaderFactory - .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); - } - else - { - xmlReader = new VersionFilter(reader); - } - - DataTransporter.parseAndFormat(outputStream, xmlReader, repository, basepath, session, false); - } - catch (IOException e) - { - throw new RuntimeException(e); - } - catch (SAXException e) - { - throw new RuntimeException(e); - } - catch (RepositoryException e) - { - throw new RuntimeException(e); - } - - // finish the stream properly if zip stream - // this is not done by the IOUtils - if (outputStream instanceof DeflaterOutputStream) - { - ((DeflaterOutputStream) outputStream).finish(); - } - - baseOutputStream.flush(); - IOUtils.closeQuietly(baseOutputStream); - } - -} Copied: tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java (from rev 874, trunk/openutils-mgnlbootstrapsync/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java) =================================================================== --- tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java (rev 0) +++ tags/openutils-mgnlbootstrapsync-0.2/src/main/java/it/openutils/mgnlbootstrapsync/listener/AbstractBootstrapSyncListener.java 2008-07-01 14:10:27 UTC (rev 876) @@ -0,0 +1,429 @@ +package it.openutils.mgnlbootstrapsync.listener; + +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.HierarchyManager; +import info.magnolia.cms.core.Path; +import info.magnolia.cms.core.ie.DataTransporter; +import info.magnolia.cms.core.ie.filters.VersionFilter; +import info.magnolia.cms.security.AccessDeniedException; +import info.magnolia.cms.util.ContentUtil; +import info.magnolia.context.MgnlContext; +import it.openutils.mgnlbootstrapsync.BootstrapAtomicFilter; +import it.openutils.mgnlbootstrapsync.watch.BootstrapSyncRepositoryWatch; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Collection; +import java.util.Iterator; +import java.util.zip.DeflaterOutputStream; + +import javax.jcr.PathNotFoundException; +import javax.jcr.RepositoryException; +import javax.jcr.Session; +import javax.jcr.observation.EventIterator; +import javax.jcr.observation.EventListener; + +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.SAXException; +import org.xml.sax.XMLReader; +import org.xml.sax.helpers.XMLReaderFactory; + + +/** + * @author mmolaschi + * @version $Id: $ + */ +public abstract class AbstractBootstrapSyncListener implements EventListener +{ + + private static Logger log = LoggerFactory.getLogger(AbstractBootstrapSyncListener.class); + + private BootstrapSyncRepositoryWatch watch; + + private Object synchronizationObject = new Object(); + + /** + * @param watch watch for this listener + */ + public AbstractBootstrapSyncListener(BootstrapSyncRepositoryWatch watch) + { + this.watch = watch; + } + + /** + * {@inheritDoc} + */ + public abstract void onEvent(EventIterator events); + + public BootstrapSyncRepositoryWatch getWatch() + { + return watch; + } + + public void setWatch(BootstrapSyncRepositoryWatch watch) + { + this.watch = watch; + } + + /** + * Change event on node + * @param nodePath path to node + */ + public void exportNode(String nodePath) + { + synchronized (synchronizationObject) + { + String path = nodePath; + + // get repository manager + HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(watch.getRepository()); + + // check if path can exported + boolean isEnablePath = this.watch.getEnableRoots().isEnable(path); + if (isEnablePath) + { + try + { + // check if it is a property + if (hm.isNodeData(path)) + { + // move to parent node + path = StringUtils.substringBeforeLast(path, "/"); + } + } + catch (AccessDeniedException e) + { + log.error(e.getMessage(), e); + return; + } + + Content exported = null; + + try + { + + if (watch.getNodeType() != null) + { + // get exported content + exported = getRightContent(hm.getContent(path), watch.getNodeType()); + if (exported == null) + { + return; + } + + } + else + { + exported = hm.getContent(path); + } + } + catch (RepositoryException e) + { + if (log.isDebugEnabled() && e instanceof PathNotFoundException) + { + log.debug("Path already deleted:" + path); + } + if (log.isErrorEnabled() && !(e instanceof PathNotFoundException)) + { + log.error("Error hierarchy manager for path " + path, e); + } + return; + } + + // get handle + String handle = exported.getHandle(); + + // check if path is under a "compressed" node + String pathToExport = this.watch.getExportRoots().getRootPath(handle); + + if (pathToExport == null) + { + // not "compressed" + exportFileIterative(hm, exported); + } + else + { + exportFile(hm, pathToExport, false); + } + } + } + } + + /** + * Remove event on node + * @param path path to node + */ + public void removeNode(String path) + { + // synchornization + synchronized (synchronizationObject) + { + // get hierarchy manager + HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(watch.getRepository()); + + // check if path can exported + boolean isEnablePath = this.watch.getEnableRoots().isEnable(path); + if (isEnablePath) + { + // check if path is under a "compressed" node + String pathToExport = this.watch.getExportRoots().getRootPath(path); + + if (pathToExport == null || pathToExport.equals(path)) + { + // remove every file that starts with path + cleanFileSystem(path); + + try + { + // get parent node + String parentHandle = StringUtils.substringBeforeLast(path, "/"); + String parentXmlName = watch.getRepository() + + StringUtils.replace(parentHandle, "/", ".") + + ".xml"; + if (parentHandle.length() == 0) + { + parentHandle = "/"; + } + + // check if path is under a "compressed" node + String pathParentToExport = this.watch.getExportRoots().getRootPath(parentHandle); + + if (pathParentToExport == null) + { + // xml reader for filtering 2 levels + BootstrapAtomicFilter xmlReader = new BootstrapAtomicFilter(XMLReaderFactory + .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); + + // export parent node + exportFile(parentXmlName, xmlReader, hm, parentHandle); + } + else + { + exportFile(hm, pathParentToExport, false); + } + } + catch (SAXException ex) + { + throw new RuntimeException(ex); + } + } + else + { + exportFile(hm, pathToExport, false); + } + } + } + } + + /** + * Go up in tree until the current node type equals passed item type + * @param c current node + * @param itemType item type to check + * @return right node or null if not found + * @throws RepositoryException repository exception + */ + @SuppressWarnings("unchecked") + private Content getRightContent(Content c, String itemType) throws RepositoryException + { + if (c.getItemType().getSystemName().equals(itemType)) + { + return c; + } + if (c.getParent() != null) + { + return getRightContent(c.getParent(), itemType); + } + return null; + } + + /** + * Export node and its subnodes + * @param hm hierarchy manager + * @param node node + */ + @SuppressWarnings("unchecked") + protected void exportFileIterative(HierarchyManager hm, Content node) + { + // write itself + exportFile(hm, node.getHandle(), true); + + // cycle on children + Collection<Content> children = node.getChildren(ContentUtil.EXCLUDE_META_DATA_CONTENT_FILTER); + if (children != null) + { + for (Content child : children) + { + exportFileIterative(hm, child); + } + } + } + + /** + * Export node to file + * @param hm hierarchy manager + * @param handle path to node + * @param singleNode export single node in file + */ + protected void exportFile(HierarchyManager hm, String handle, boolean singleNode) + { + try + { + if (singleNode) + { + String parentHandle = StringUtils.substringBeforeLast(handle, "/"); + String parentXmlName = watch.getRepository() + StringUtils.replace(parentHandle, "/", ".") + ".xml"; + if (parentHandle.length() == 0) + { + parentHandle = "/"; + } + + BootstrapAtomicFilter xmlReader = new BootstrapAtomicFilter(XMLReaderFactory + .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); + + exportFile(parentXmlName, xmlReader, hm, parentHandle); + } + String xmlName = watch.getRepository() + StringUtils.replace(handle, "/", ".") + ".xml"; + + XMLReader xmlReader = null; + + if (singleNode) + { + xmlReader = new BootstrapAtomicFilter(XMLReaderFactory + .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); + } + exportFile(xmlName, xmlReader, hm, handle); + } + catch (SAXException ex) + { + throw new RuntimeException(ex); + } + } + + /** + * @param fileName file name + * @param reader xml filter + * @param hm hierarchy manager + * @param handle path to node + */ + protected void exportFile(String fileName, XMLReader reader, HierarchyManager hm, String handle) + { + // create necessary parent directories + File folder = new File(Path.getAbsoluteFileSystemPath(watch.getExportPath())); + folder.mkdirs(); + + File xmlFile = new File(folder.getAbsoluteFile(), fileName); + FileOutputStream fos = null; + try + { + fos = new FileOutputStream(xmlFile); + } + catch (FileNotFoundException e) + { + log.error(e.getMessage(), e); + return; + } + + try + { + executeExport(fos, reader, hm.getWorkspace().getSession(), handle, watch.getRepository()); + } + catch (IOException e) + { + log.error(e.getMessage(), e); + } + finally + { + IOUtils.closeQuietly(fos); + } + } + + /** + * Clean files for node (path) + * @param path path to node + */ + protected void cleanFileSystem(String path) + { + + String baseName = watch.getRepository() + StringUtils.replace(path, "/", "."); + + // create necessary parent directories + File folder = new File(Path.getAbsoluteFileSystemPath(watch.getExportPath())); + + if (folder.exists()) + { + String[] files = folder.list(); + for (String file : files) + { + File f = new File(folder, file); + if (f.exists() && f.getName().startsWith(baseName)) + { + f.delete(); + log.debug("Removed File: " + f.getName()); + } + } + } + } + + /** + * Execute export + * @param baseOutputStream file output stream + * @param reader xml filter + * @param session jcr session + * @param basepath path to node + * @param repository repository + * @throws IOException exception writing file + */ + protected static void executeExport(OutputStream baseOutputStream, XMLReader reader, Session session, + String basepath, String repository) throws IOException + { + OutputStream outputStream = baseOutputStream; + + try + { + // use XMLSerializer and a SAXFilter in order to rewrite the + // file + + XMLReader xmlReader = reader; + if (reader == null) + { + xmlReader = new VersionFilter(XMLReaderFactory + .createXMLReader(org.apache.xerces.parsers.SAXParser.class.getName())); + } + else + { + xmlReader = new VersionFilter(reader); + } + + DataTransporter.parseAndFormat(outputStream, xmlReader, repository, basepath, session, false); + } + catch (IOException e) + { + throw new RuntimeException(e); + } + catch (SAXException e) + { + throw new RuntimeException(e); + } + catch (RepositoryException e) + { + throw new RuntimeException(e); + } + + // finish the stream properly if zip stream + // this is not done by the IOUtils + if (outputStream instanceof DeflaterOutputStream) + { + ((DeflaterOutputStream) outputStream).finish(); + } + + baseOutputStream.flush(); + IOUtils.closeQuietly(baseOutputStream); + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-07-12 19:23:28
|
Revision: 880 http://openutils.svn.sourceforge.net/openutils/?rev=880&view=rev Author: fgiust Date: 2008-07-12 12:23:38 -0700 (Sat, 12 Jul 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlext-2.1 Added Paths: ----------- tags/openutils-mgnlext-2.1/ tags/openutils-mgnlext-2.1/pom.xml Removed Paths: ------------- tags/openutils-mgnlext-2.1/pom.xml Copied: tags/openutils-mgnlext-2.1 (from rev 878, trunk/openutils-mgnlext) Deleted: tags/openutils-mgnlext-2.1/pom.xml =================================================================== --- trunk/openutils-mgnlext/pom.xml 2008-07-12 19:15:57 UTC (rev 878) +++ tags/openutils-mgnlext-2.1/pom.xml 2008-07-12 19:23:38 UTC (rev 880) @@ -1,19 +0,0 @@ -<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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlext</artifactId> - <name>openutils-mgnlext</name> - <version>2.1-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> -</project> Copied: tags/openutils-mgnlext-2.1/pom.xml (from rev 879, trunk/openutils-mgnlext/pom.xml) =================================================================== --- tags/openutils-mgnlext-2.1/pom.xml (rev 0) +++ tags/openutils-mgnlext-2.1/pom.xml 2008-07-12 19:23:38 UTC (rev 880) @@ -0,0 +1,25 @@ +<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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlext</artifactId> + <name>openutils-mgnlext</name> + <version>2.1</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlext-2.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlext-2.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlext-2.1</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-07-13 20:00:49
|
Revision: 885 http://openutils.svn.sourceforge.net/openutils/?rev=885&view=rev Author: fgiust Date: 2008-07-13 13:00:56 -0700 (Sun, 13 Jul 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlcontrols-3.5.3 Added Paths: ----------- tags/openutils-mgnlcontrols-3.5.3/ tags/openutils-mgnlcontrols-3.5.3/pom.xml Removed Paths: ------------- tags/openutils-mgnlcontrols-3.5.3/pom.xml Copied: tags/openutils-mgnlcontrols-3.5.3 (from rev 883, trunk/openutils-mgnlcontrols) Deleted: tags/openutils-mgnlcontrols-3.5.3/pom.xml =================================================================== --- trunk/openutils-mgnlcontrols/pom.xml 2008-07-13 19:56:36 UTC (rev 883) +++ tags/openutils-mgnlcontrols-3.5.3/pom.xml 2008-07-13 20:00:56 UTC (rev 885) @@ -1,85 +0,0 @@ -<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"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>8</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlcontrols</artifactId> - <name>openutils-mgnlcontrols</name> - <version>3.5.3-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.5.8</version> - <exclusions> - <exclusion> - <groupId>servlets.com</groupId> - <artifactId>cos</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.5.8</version> - <exclusions> - <exclusion> - <groupId>servlets.com</groupId> - <artifactId>cos</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnltasks</artifactId> - <version>3.5.3</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnlext</artifactId> - <version>2.1</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> -</project> \ No newline at end of file Copied: tags/openutils-mgnlcontrols-3.5.3/pom.xml (from rev 884, trunk/openutils-mgnlcontrols/pom.xml) =================================================================== --- tags/openutils-mgnlcontrols-3.5.3/pom.xml (rev 0) +++ tags/openutils-mgnlcontrols-3.5.3/pom.xml 2008-07-13 20:00:56 UTC (rev 885) @@ -0,0 +1,90 @@ +<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"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>8</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlcontrols</artifactId> + <name>openutils-mgnlcontrols</name> + <version>3.5.3</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.5.8</version> + <exclusions> + <exclusion> + <groupId>servlets.com</groupId> + <artifactId>cos</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>3.5.3</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlext</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.3</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlcontrols-3.5.3</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlcontrols-3.5.3</url> + </scm> +</project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |