You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(39) |
Dec
(10) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(19) |
Feb
(150) |
Mar
(10) |
Apr
|
May
(8) |
Jun
(11) |
Jul
(27) |
Aug
(52) |
Sep
(35) |
Oct
(30) |
Nov
(18) |
Dec
(4) |
2008 |
Jan
(76) |
Feb
(121) |
Mar
(39) |
Apr
(55) |
May
(18) |
Jun
(49) |
Jul
(32) |
Aug
(4) |
Sep
(10) |
Oct
|
Nov
(3) |
Dec
(33) |
2009 |
Jan
(19) |
Feb
(87) |
Mar
(69) |
Apr
(38) |
May
(47) |
Jun
(20) |
Jul
(5) |
Aug
(76) |
Sep
(145) |
Oct
(34) |
Nov
(8) |
Dec
(68) |
2010 |
Jan
(150) |
Feb
(379) |
Mar
(191) |
Apr
(100) |
May
(525) |
Jun
(269) |
Jul
(127) |
Aug
(190) |
Sep
(190) |
Oct
(29) |
Nov
(147) |
Dec
(83) |
2011 |
Jan
(188) |
Feb
(81) |
Mar
(43) |
Apr
(97) |
May
(63) |
Jun
(129) |
Jul
(17) |
Aug
(124) |
Sep
(6) |
Oct
(20) |
Nov
(67) |
Dec
(23) |
2012 |
Jan
(6) |
Feb
(14) |
Mar
(181) |
Apr
(64) |
May
(102) |
Jun
(47) |
Jul
(26) |
Aug
(3) |
Sep
(1) |
Oct
(14) |
Nov
(13) |
Dec
(23) |
2013 |
Jan
(4) |
Feb
(14) |
Mar
(18) |
Apr
(14) |
May
(27) |
Jun
(27) |
Jul
(5) |
Aug
(2) |
Sep
(74) |
Oct
(79) |
Nov
(21) |
Dec
(97) |
2014 |
Jan
(6) |
Feb
(3) |
Mar
(8) |
Apr
|
May
(5) |
Jun
|
Jul
(9) |
Aug
(6) |
Sep
(3) |
Oct
(10) |
Nov
(6) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(25) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <gca...@us...> - 2012-06-22 15:52:01
|
Revision: 4070 http://openutils.svn.sourceforge.net/openutils/?rev=4070&view=rev Author: gcatania Date: 2012-06-22 15:51:52 +0000 (Fri, 22 Jun 2012) Log Message: ----------- BSHD-15 fix example support for backref properties, added unit test Modified Paths: -------------- trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/HibernateDAOPersistenceTest.java Modified: trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-22 11:17:21 UTC (rev 4069) +++ trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-22 15:51:52 UTC (rev 4070) @@ -50,6 +50,7 @@ import org.hibernate.criterion.Restrictions; import org.hibernate.engine.SessionImplementor; import org.hibernate.metadata.ClassMetadata; +import org.hibernate.property.BackrefPropertyAccessor; import org.hibernate.type.Type; @@ -68,8 +69,6 @@ private PropertySelector selector; - private DefaultPropertySelector defaultSelector = DefaultPropertySelector.NOT_NULL; - private MatchMode matchMode; private boolean isIgnoreCaseEnabled; @@ -132,8 +131,11 @@ */ public ExampleTree setPropertySelector(PropertySelector selector) { - this.selector = selector; - defaultSelector = null; + if (selector == null) + { + throw new NullPointerException("Null selector specified"); + } + this.selector = new ExcludeBackrefPropertySelector(selector); // BSHD-15 return this; } @@ -143,7 +145,7 @@ */ public ExampleTree excludeZeroes() { - return setDefaultSelector(DefaultPropertySelector.NOT_NULL_OR_ZERO); + return setPropertySelector(ExampleTreePropertySelectorSupport.NOT_NULL_OR_ZERO); } /** @@ -152,7 +154,7 @@ */ public ExampleTree excludeNone() { - return setDefaultSelector(DefaultPropertySelector.ALL); + return setPropertySelector(ExampleTreePropertySelectorSupport.ALL); } /** @@ -235,17 +237,6 @@ return add(associationPath, override); } - private static enum DefaultPropertySelector { - NOT_NULL, NOT_NULL_OR_ZERO, ALL; - } - - private ExampleTree setDefaultSelector(DefaultPropertySelector defaultSelector) - { - this.defaultSelector = defaultSelector; - selector = null; - return this; - } - private class ExampleTreeWalker implements Serializable { @@ -351,24 +342,7 @@ { ex.ignoreCase(); } - if (selector != null) - { - ex.setPropertySelector(selector); - } - else - { - switch (defaultSelector) - { - case NOT_NULL_OR_ZERO : - ex.excludeZeroes(); - break; - case ALL : - ex.excludeNone(); - break; - default : - break; - } - } + ex.setPropertySelector(selector != null ? selector : new ExcludeBackrefPropertySelector()); // BSHD-15 Set<String> excludedPropertiesForPath = excludedProperties.get(associationPath); if (excludedPropertiesForPath != null) { @@ -472,3 +446,97 @@ } } + + +/** + * support for BSHD-15 + * @author gcatania + * @version $Id$ + */ +class ExcludeBackrefPropertySelector implements PropertySelector +{ + + private static final long serialVersionUID = -2803322309158823550L; + + private final PropertySelector selector; + + public ExcludeBackrefPropertySelector(PropertySelector selector) + { + this.selector = selector; + } + + public ExcludeBackrefPropertySelector() + { + selector = ExampleTreePropertySelectorSupport.NOT_NULL; + } + + public boolean include(Object propertyValue, String propertyName, Type type) + { + if (BackrefPropertyAccessor.UNKNOWN.equals(propertyValue)) + { + return false; + } + return selector.include(propertyValue, propertyName, type); + } + +} + + +/** + * workaround to {@link Example} not exposing internal property selectors + * @author gcatania + * @version $Id$ + */ +@SuppressWarnings({"serial", "static-method"}) +class ExampleTreePropertySelectorSupport +{ + + static final PropertySelector NOT_NULL = new NotNullPropertySelector(); + + static final PropertySelector ALL = new AllPropertySelector(); + + static final PropertySelector NOT_NULL_OR_ZERO = new NotNullOrZeroPropertySelector(); + + static final class AllPropertySelector implements PropertySelector + { + + public boolean include(Object object, String propertyName, Type type) + { + return true; + } + + private Object readResolve() + { + return ALL; + } + } + + static final class NotNullPropertySelector implements PropertySelector + { + + public boolean include(Object object, String propertyName, Type type) + { + return object != null; + } + + private Object readResolve() + { + return NOT_NULL; + } + } + + static final class NotNullOrZeroPropertySelector implements PropertySelector + { + + public boolean include(Object object, String propertyName, Type type) + { + return object != null && (!(object instanceof Number) || ((Number) object).longValue() != 0); + } + + private Object readResolve() + { + return NOT_NULL_OR_ZERO; + } + } + +} \ No newline at end of file Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/HibernateDAOPersistenceTest.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/HibernateDAOPersistenceTest.java 2012-06-22 11:17:21 UTC (rev 4069) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/HibernateDAOPersistenceTest.java 2012-06-22 15:51:52 UTC (rev 4070) @@ -65,7 +65,7 @@ /* * TODO tests to perform: 1) find filtered with collection with zero, one or more elements 2) find filtered with - * additional criteria 3) filter metadata support 4) find filtered with id 5) find filtered with backref + * additional criteria 3) filter metadata support */ @Autowired @@ -221,7 +221,7 @@ Designer designer = priusDesigner(prius); personDAO.save(designer); - // FIXME evicting breaks the test, there must be something wrong in the hibernate mapping configuration + // evicting breaks equals() on persistent bags // personDAO.evict(designer); // cannot use load() with entity inheritance, see https://forum.hibernate.org/viewtopic.php?p=2418875 @@ -462,6 +462,44 @@ Assert.assertEquals(alicesProperties[1], alice.getBirthDate()); } + + /** + * BSHD-15 check backref property accessors + */ + @Test + public void testOneToMany() + { + Sticker st1 = new Sticker(); + st1.setName("Warning! Baby on board!"); + st1.setHeight(20d); + st1.setWidth(10d); + Sticker st2 = new Sticker(); + st2.setName("Objects in the mirror are losing"); + st2.setHeight(5d); + st2.setWidth(10d); + + Car chucksPrius = chucksPrius(chuck(), prius(toyota())); + chucksPrius.setStickers(Collections.singletonList(st1)); + Long savedId = carDAO.save(chucksPrius); + chucksPrius = carDAO.load(savedId); + // evicting breaks equals() on persistent bags + // carDAO.evict(chucksPrius); + + Car filter = chucksPrius.clone(); + // filter.setOwner(null); + // filter.setModel(null); + filter.setStickers(null); + // filter.setRegistrationDate(null); + // filter.setMarketValue(null); + // filter.setId(null); + + Car found = carDAO.findFilteredFirst(filter); + Assert.assertEquals(found, chucksPrius); + + // found = carDAO.findFilteredFirst(chucksPrius); + // Assert.assertEquals(found, chucksPrius); + } + // @Test // public void testExampleAssociations() // { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@op...> - 2012-06-22 12:04:14
|
See <https://hudson.openmindonline.it/job/openutils-bshd5/63/changes> |
From: <hu...@op...> - 2012-06-22 12:04:14
|
See <https://hudson.openmindonline.it/job/openutils-bshd5/net.sourceforge.openutils$openutils-bshd5/63/changes> |
From: <gca...@us...> - 2012-06-22 11:17:27
|
Revision: 4069 http://openutils.svn.sourceforge.net/openutils/?rev=4069&view=rev Author: gcatania Date: 2012-06-22 11:17:21 +0000 (Fri, 22 Jun 2012) Log Message: ----------- BSHD-2 adding clone on test dataobjects, fix unidirectional manyToOne Modified Paths: -------------- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Address.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Car.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarMaker.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarModel.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CurrencyAmount.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Designer.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Employee.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/FullName.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Owner.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Person.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Sticker.java trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Title.java Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Address.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Address.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Address.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -36,7 +36,7 @@ * @author gcatania */ @Entity -public class Address +public class Address implements Cloneable { @Id @@ -293,4 +293,18 @@ + "]"; } + /** {@inheritDoc} */ + @Override + public Address clone() + { + try + { + return (Address) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Car.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Car.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Car.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -25,6 +25,7 @@ package it.openutils.hibernate.test.model; +import java.util.ArrayList; import java.util.Calendar; import java.util.List; @@ -34,6 +35,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; @@ -42,7 +44,7 @@ * @author gcatania */ @Entity -public class Car +public class Car implements Cloneable { @Id @@ -62,6 +64,8 @@ private CurrencyAmount marketValue; @OneToMany(cascade = CascadeType.ALL) + // join table appears problematic, using single join column instead + @JoinColumn(name = "carId", nullable = false) private List<Sticker> stickers; /** @@ -223,7 +227,7 @@ return false; } } - else if (!registrationDate.equals(other.registrationDate)) + else if (registrationDate.compareTo(other.registrationDate) != 0) { return false; } @@ -248,11 +252,9 @@ public String toString() { StringBuilder builder = new StringBuilder(); - builder - .append("Car [id=") - .append(id) - .append(", registrationDate=") - .append(registrationDate) + builder.append("Car [id=").append(id).append(", model=").append(model) + // .append(", registrationDate=") + // .append(registrationDate) .append(", marketValue=") .append(marketValue) .append(", stickers=") @@ -261,4 +263,36 @@ return builder.toString(); } + /** {@inheritDoc} */ + @Override + public Car clone() + { + Car clone; + try + { + clone = (Car) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + if (model != null) + { + clone.model = model.clone(); + } + if (registrationDate != null) + { + clone.registrationDate = (Calendar) registrationDate.clone(); + } + if (stickers != null) + { + clone.stickers = new ArrayList<Sticker>(); + for (Sticker s : stickers) + { + clone.stickers.add(s.clone()); + } + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarMaker.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarMaker.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarMaker.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -25,6 +25,7 @@ package it.openutils.hibernate.test.model; +import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; @@ -38,7 +39,7 @@ * @author gcatania */ @Entity -public class CarMaker +public class CarMaker implements Cloneable { @Id @@ -206,4 +207,32 @@ return builder.toString(); } + /** {@inheritDoc} */ + @Override + public CarMaker clone() + { + CarMaker clone; + try + { + clone = (CarMaker) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + if (capitalization != null) + { + clone.capitalization = capitalization.clone(); + } + if (models != null) + { + clone.models = new ArrayList<CarModel>(); + for (CarModel m : models) + { + clone.models.add(m.clone()); + } + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarModel.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarModel.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CarModel.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -38,7 +38,7 @@ * @author gcatania */ @Entity -public class CarModel +public class CarModel implements Cloneable { @Id @@ -217,4 +217,18 @@ return builder.toString(); } + /** {@inheritDoc} */ + @Override + public CarModel clone() + { + try + { + return (CarModel) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CurrencyAmount.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CurrencyAmount.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/CurrencyAmount.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -32,7 +32,7 @@ * @author gcatania */ @Embeddable -public class CurrencyAmount +public class CurrencyAmount implements Cloneable { private double amount; @@ -143,4 +143,17 @@ return new StringBuilder().append(currency).append(' ').append(amount).toString(); } + /** {@inheritDoc} */ + @Override + public CurrencyAmount clone() + { + try + { + return (CurrencyAmount) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + } } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Designer.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Designer.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Designer.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -25,6 +25,7 @@ package it.openutils.hibernate.test.model; +import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; @@ -130,4 +131,20 @@ return true; } + /** {@inheritDoc} */ + @Override + public Designer clone() + { + Designer clone = (Designer) super.clone(); + if (designedModels != null) + { + clone.designedModels = new HashSet<CarModel>(); + for (CarModel m : designedModels) + { + clone.designedModels.add(m.clone()); + } + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Employee.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Employee.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Employee.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -190,7 +190,7 @@ return false; } } - else if (!employedSince.equals(other.employedSince)) + else if (employedSince.compareTo(other.employedSince) != 0) { return false; } @@ -230,4 +230,24 @@ return true; } + /** {@inheritDoc} */ + @Override + public Employee clone() + { + Employee clone = (Employee) super.clone(); + if (employer != null) + { + clone.employer = employer.clone(); + } + if (grossAnnualSalary != null) + { + clone.grossAnnualSalary = grossAnnualSalary.clone(); + } + if (employedSince != null) + { + clone.employedSince = (Calendar) employedSince.clone(); + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/FullName.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/FullName.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/FullName.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -33,7 +33,7 @@ * @author gcatania */ @Embeddable -public class FullName +public class FullName implements Cloneable { private Title title; @@ -173,4 +173,18 @@ return "FullName [familyName=" + familyName + ", givenName=" + givenName + ", title=" + title + "]"; } + /** {@inheritDoc} */ + @Override + public FullName clone() + { + try + { + return (FullName) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Owner.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Owner.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Owner.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -25,6 +25,7 @@ package it.openutils.hibernate.test.model; +import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; @@ -125,4 +126,24 @@ return true; } + /** {@inheritDoc} */ + @Override + public Owner clone() + { + Owner clone = (Owner) super.clone(); + if (cars != null) + { + clone.cars = new HashSet<Car>(); + for (Car car : cars) + { + clone.cars.add(car.clone()); + } + } + if (totalValueOfCars != null) + { + clone.totalValueOfCars = totalValueOfCars.clone(); + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Person.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Person.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Person.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -47,7 +47,7 @@ @Entity @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "personType") -public class Person +public class Person implements Cloneable { @Id @@ -188,7 +188,7 @@ return false; } } - else if (!birthDate.equals(other.birthDate)) + else if (birthDate.compareTo(other.birthDate) != 0) { return false; } @@ -257,4 +257,37 @@ return builder.toString(); } + /** {@inheritDoc} */ + @Override + public Person clone() + { + Person clone; + try + { + clone = (Person) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + + if (name != null) + { + clone.name = name.clone(); + } + if (birthDate != null) + { + clone.birthDate = (Calendar) birthDate.clone(); + } + if (currentAddress != null) + { + clone.currentAddress = currentAddress.clone(); + } + if (fiscalAddress != null) + { + clone.fiscalAddress = fiscalAddress.clone(); + } + return clone; + } + } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Sticker.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Sticker.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Sticker.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -35,7 +35,7 @@ * @author gcatania */ @Entity -public class Sticker +public class Sticker implements Cloneable { @Id @@ -216,4 +216,17 @@ return builder.toString(); } + /** {@inheritDoc} */ + @Override + public Sticker clone() + { + try + { + return (Sticker) super.clone(); + } + catch (CloneNotSupportedException e) + { + throw new InternalError(e.getMessage()); + } + } } Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Title.java =================================================================== --- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Title.java 2012-06-12 12:55:08 UTC (rev 4068) +++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/model/Title.java 2012-06-22 11:17:21 UTC (rev 4069) @@ -28,9 +28,8 @@ /** * @author gcatania */ -public enum Title { - +public enum Title +{ /** male, female titles */ MR, MRS - } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2012-06-12 12:55:19
|
Revision: 4068 http://openutils.svn.sourceforge.net/openutils/?rev=4068&view=rev Author: fgiust Date: 2012-06-12 12:55:08 +0000 (Tue, 12 Jun 2012) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 12:54:54 UTC (rev 4067) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 12:55:08 UTC (rev 4068) @@ -10,7 +10,7 @@ <artifactId>openutils-mgnlmedia</artifactId> <name>SimpleMedia Module for Magnolia CMS</name> <description>SimpleMedia Module for Magnolia CMS: a module for Magnolia CMS for easier management of multimedia assets.</description> - <version>4.5.3</version> + <version>4.5.4-SNAPSHOT</version> <inceptionYear>2008</inceptionYear> <licenses> <license> @@ -24,9 +24,9 @@ <url>http://jira.openmindlab.com/browse/MEDIA</url> </issueManagement> <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</developerConnection> - <url>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</url> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/magnoliamodules/branches/magnolia44/openutils-mgnlmedia</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/magnoliamodules/branches/magnolia44/openutils-mgnlmedia</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk/openutils-mgnlmedia</url> </scm> <build> <resources> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2012-06-12 12:55:04
|
Revision: 4067 http://openutils.svn.sourceforge.net/openutils/?rev=4067&view=rev Author: fgiust Date: 2012-06-12 12:54:54 +0000 (Tue, 12 Jun 2012) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlmedia-4.5.3 Added Paths: ----------- tags/openutils-mgnlmedia-4.5.3/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2012-06-12 12:54:11
|
Revision: 4066 http://openutils.svn.sourceforge.net/openutils/?rev=4066&view=rev Author: fgiust Date: 2012-06-12 12:54:05 +0000 (Tue, 12 Jun 2012) Log Message: ----------- [maven-release-plugin] prepare release openutils-mgnlmedia-4.5.3 Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 12:52:53 UTC (rev 4065) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 12:54:05 UTC (rev 4066) @@ -10,7 +10,7 @@ <artifactId>openutils-mgnlmedia</artifactId> <name>SimpleMedia Module for Magnolia CMS</name> <description>SimpleMedia Module for Magnolia CMS: a module for Magnolia CMS for easier management of multimedia assets.</description> - <version>4.5.3-SNAPSHOT</version> + <version>4.5.3</version> <inceptionYear>2008</inceptionYear> <licenses> <license> @@ -24,9 +24,9 @@ <url>http://jira.openmindlab.com/browse/MEDIA</url> </issueManagement> <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/magnoliamodules/branches/magnolia44/openutils-mgnlmedia</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/magnoliamodules/branches/magnolia44/openutils-mgnlmedia</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk/openutils-mgnlmedia</url> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</developerConnection> + <url>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmedia-4.5.3</url> </scm> <build> <resources> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2012-06-12 12:52:59
|
Revision: 4065 http://openutils.svn.sourceforge.net/openutils/?rev=4065&view=rev Author: fgiust Date: 2012-06-12 12:52:53 +0000 (Tue, 12 Jun 2012) Log Message: ----------- update pdfbox version Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 08:50:52 UTC (rev 4064) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/pom.xml 2012-06-12 12:52:53 UTC (rev 4065) @@ -196,7 +196,7 @@ <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> - <version>1.4.0</version> + <version>1.6.0</version> <exclusions> <exclusion> <groupId>commons-logging</groupId> @@ -245,6 +245,10 @@ <groupId>org.freehep</groupId> <artifactId>freehep-graphicsio-tests</artifactId> </exclusion> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> </exclusions> </dependency> </dependencies> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2012-06-12 08:51:04
|
Revision: 4064 http://openutils.svn.sourceforge.net/openutils/?rev=4064&view=rev Author: fgiust Date: 2012-06-12 08:50:52 +0000 (Tue, 12 Jun 2012) Log Message: ----------- MEDIA-281 Support wildcards in search Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterOptionProvider.java magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterText.java magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/configuration/SearchMediaQueryConfiguration.java magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/setup/MediaModuleVersionHandler.java magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.xml magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.handler.xml magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.xml magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties Added Paths: ----------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.filters.query.subfilters.searchin.options.filename.xml Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterOptionProvider.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterOptionProvider.java 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterOptionProvider.java 2012-06-12 08:50:52 UTC (rev 4064) @@ -29,6 +29,8 @@ import javax.jcr.RepositoryException; import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang.builder.ToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; /** @@ -140,4 +142,20 @@ } } + /** + * {@inheritDoc} + */ + @Override + public String toString() + { + return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE) + .append("reference", this.reference) + .append("addempty", this.addempty) + .append("options", this.options) + .append("control", this.getControl()) + .append("subfilters", this.getSubfilters()) + .append("label", this.getLabel()) + .toString(); + } + } Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterText.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterText.java 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/SearchFilterText.java 2012-06-12 08:50:52 UTC (rev 4064) @@ -38,6 +38,8 @@ public class SearchFilterText extends SearchFilterAbstract { + private boolean wildcards; + /** * {@inheritDoc} */ @@ -52,16 +54,50 @@ if (values != null && values.length > 0) { fullTextSearch = values[0]; + + if (wildcards) + { + fullTextSearch = StringUtils.replace(fullTextSearch, "*", "%"); + + fullTextSearch = StringUtils.stripStart(StringUtils.stripEnd(fullTextSearch, "%"), "%"); + } + if (MapUtils.isNotEmpty(getSubfilters()) && StringUtils.isNotBlank(fullTextSearch)) { + for (String key : getSubfilters().keySet()) { values = request.getParameterValues(key); - if (values != null) + + if (wildcards && (values == null || values.length == 0)) { + + SearchFilterOptionProvider infilter = (SearchFilterOptionProvider) getSubfilters().get(key); + + if (infilter != null) + { + List<Option> options = infilter.getOptions(); + List<String> optionparams = new ArrayList<String>(); + for (Option option : options) + { + optionparams.add(option.getValue()); + } + values = optionparams.toArray(new String[optionparams.size()]); + } + } + + if (values != null && values.length != 0) + { for (String name : values) { - criterionList.add(Restrictions.contains("@" + name, fullTextSearch)); + if (wildcards) + { + criterionList.add(Restrictions.like("@" + name, fullTextSearch)); + } + else + { + criterionList.add(Restrictions.contains("@" + name, fullTextSearch)); + } } if (criterionList.size() > 1) { @@ -80,9 +116,28 @@ if (StringUtils.isNotBlank(fullTextSearch)) { - criterionList.add(Restrictions.contains(".", fullTextSearch)); + if (wildcards && criterionList.size() > 0) + { + // jcr:like doesn't work on fulltext, but put criterionList on or + Criterion c = Restrictions.or(criterionList.get(0), Restrictions.contains(".", fullTextSearch)); + criterionList.remove(0); + criterionList.add(0, c); + } + else + { + criterionList.add(Restrictions.contains(".", fullTextSearch)); + } } } return criterionList; } + + /** + * Sets the wildcards. + * @param wildcards the wildcards to set + */ + public void setWildcards(boolean wildcards) + { + this.wildcards = wildcards; + } } Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/configuration/SearchMediaQueryConfiguration.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/configuration/SearchMediaQueryConfiguration.java 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/advancedsearch/configuration/SearchMediaQueryConfiguration.java 2012-06-12 08:50:52 UTC (rev 4064) @@ -169,13 +169,22 @@ c.setPaging(itemsPerPage, pageNumberStartingFromOne); } - AdvancedResult result = c.execute(); - if (log.isDebugEnabled()) + try { - log.debug("Executing {} -> {} results", c.toXpathExpression(), result.getTotalSize()); + AdvancedResult result = c.execute(); + + if (log.isDebugEnabled()) + { + log.debug("Executing {} -> {} results", c.toXpathExpression(), result.getTotalSize()); + } + return result; } + catch (Throwable e) + { + log.error("Error running query " + c.toXpathExpression(), e); + } - return result; + return AdvancedResult.EMPTY_RESULT; } } Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/setup/MediaModuleVersionHandler.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/setup/MediaModuleVersionHandler.java 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/setup/MediaModuleVersionHandler.java 2012-06-12 08:50:52 UTC (rev 4064) @@ -130,8 +130,8 @@ // change "external video" handler tasks.add(new ChangeExistingPropertyTask( ContentRepository.CONFIG, - "/modules/media/mediatypes/youtube", - "menuIcon", + "/modules/media/mediatypes/youtube/handler", + "class", "net.sourceforge.openutils.mgnlmedia.media.types.impl.YouTubeVideoTypeHandler", ExternalVideoTypeHandler.class.getName())); @@ -231,6 +231,12 @@ "Playlists", "media.menu.playlists")); + tasks.add(new CreateMissingPropertyTask( + ContentRepository.CONFIG, + "/modules/media/config/search/filters/query", + "wildcards", + Boolean.TRUE)); + return tasks; } Added: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.filters.query.subfilters.searchin.options.filename.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.filters.query.subfilters.searchin.options.filename.xml (rev 0) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.filters.query.subfilters.searchin.options.filename.xml 2012-06-12 08:50:52 UTC (rev 4064) @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node sv:name="filename" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>65cc5316-dca7-43ba-901c-c705a39eccd9</sv:value> + </sv:property> + <sv:property sv:name="enabled" sv:type="String"> + <sv:value>true</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="label" sv:type="String"> + <sv:value>config.search.filters.options.filename</sv:value> + </sv:property> + <sv:property sv:name="value" sv:type="String"> + <sv:value>media_name</sv:value> + </sv:property> + <sv:node sv:name="MetaData"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:metaData</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activated" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:authorid" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:creationdate" sv:type="Date"> + <sv:value>2010-02-18T15:38:57.738+01:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> + <sv:value>2012-06-11T22:06:52.791+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.filters.query.subfilters.searchin.options.filename.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.xml 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.config.search.xml 2012-06-12 08:50:52 UTC (rev 4064) @@ -3,7 +3,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:content</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -13,7 +13,7 @@ <sv:value>net.sourceforge.openutils.mgnlmedia.media.advancedsearch.configuration.SearchMediaQueryConfiguration</sv:value> </sv:property> <sv:property sv:name="defaultBasePath" sv:type="String"> - <sv:value>/mediagallery</sv:value> + <sv:value>/</sv:value> </sv:property> <sv:property sv:name="jcr:createdBy" sv:type="String"> <sv:value>admin</sv:value> @@ -42,7 +42,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:content</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -72,7 +72,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -90,6 +90,9 @@ <sv:property sv:name="label" sv:type="String"> <sv:value>config.search.filters.text</sv:value> </sv:property> + <sv:property sv:name="wildcards" sv:type="String"> + <sv:value>true</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> @@ -104,14 +107,14 @@ <sv:value>2010-02-15T17:07:44.717+01:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-03-22T10:21:19.449+01:00</sv:value> + <sv:value>2012-06-11T21:58:59.300+02:00</sv:value> </sv:property> </sv:node> <sv:node sv:name="subfilters"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -141,7 +144,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -180,7 +183,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -210,7 +213,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -247,7 +250,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -291,7 +294,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -333,7 +336,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -365,7 +368,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -407,7 +410,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -440,7 +443,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -483,7 +486,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -523,7 +526,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -565,7 +568,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -607,7 +610,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -640,7 +643,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -685,7 +688,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -728,7 +731,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -771,7 +774,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -814,7 +817,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -856,7 +859,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -889,7 +892,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -929,7 +932,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -969,7 +972,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -1009,7 +1012,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -1049,7 +1052,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.handler.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.handler.xml 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.handler.xml 2012-06-12 08:50:52 UTC (rev 4064) @@ -3,19 +3,28 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>9ab64dfc-9f0d-44a6-83ff-5fc1a6adf634</sv:value> </sv:property> <sv:property sv:name="class" sv:type="String"> - <sv:value>net.sourceforge.openutils.mgnlmedia.media.types.impl.YouTubeVideoTypeHandler</sv:value> + <sv:value>net.sourceforge.openutils.mgnlmedia.media.types.impl.ExternalVideoTypeHandler</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="parseremotefiles" sv:type="Boolean"> + <sv:value>true</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> <sv:value>superuser</sv:value> </sv:property> @@ -30,16 +39,22 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>72c87fc6-7506-405e-b396-1e6090fc993a</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -57,7 +72,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -69,10 +84,16 @@ <sv:property sv:name="enabled" sv:type="String"> <sv:value>true</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.xml 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/mgnl-bootstrap/media-nooverwrite/config.modules.media.mediatypes.youtube.xml 2012-06-12 08:50:52 UTC (rev 4064) @@ -3,7 +3,7 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> <sv:value>mix:lockable</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> @@ -18,6 +18,9 @@ <sv:property sv:name="i18nBasename" sv:type="String"> <sv:value>net.sourceforge.openutils.mgnlmedia.media.lang.messages</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="label" sv:type="String"> <sv:value>media.types.youtube</sv:value> </sv:property> @@ -31,6 +34,9 @@ <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> @@ -50,97 +56,4 @@ <sv:value>2010-03-11T16:13:12.672+01:00</sv:value> </sv:property> </sv:node> - <sv:node sv:name="handler"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>9ab64dfc-9f0d-44a6-83ff-5fc1a6adf634</sv:value> - </sv:property> - <sv:property sv:name="class" sv:type="String"> - <sv:value>net.sourceforge.openutils.mgnlmedia.media.types.impl.ExternalVideoTypeHandler</sv:value> - </sv:property> - <sv:property sv:name="parseremotefiles" sv:type="Boolean"> - <sv:value>true</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-02-14T21:25:50.277+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-02-14T21:26:04.623+01:00</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="videoSupportHandlers"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>72c87fc6-7506-405e-b396-1e6090fc993a</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-02-14T20:45:51.843+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-02-14T21:26:08.988+01:00</sv:value> - </sv:property> - </sv:node> - <sv:node sv:name="youtube"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:contentNode</sv:value> - </sv:property> - <sv:property sv:name="jcr:mixinTypes" sv:type="Name"> - <sv:value>mix:lockable</sv:value> - </sv:property> - <sv:property sv:name="jcr:uuid" sv:type="String"> - <sv:value>9d7010da-0448-477e-952e-4433cba91661</sv:value> - </sv:property> - <sv:property sv:name="class" sv:type="String"> - <sv:value>net.sourceforge.openutils.mgnlmedia.media.types.externals.YoutubeSupport</sv:value> - </sv:property> - <sv:property sv:name="enabled" sv:type="String"> - <sv:value>true</sv:value> - </sv:property> - <sv:node sv:name="MetaData"> - <sv:property sv:name="jcr:primaryType" sv:type="Name"> - <sv:value>mgnl:metaData</sv:value> - </sv:property> - <sv:property sv:name="mgnl:activated" sv:type="Boolean"> - <sv:value>false</sv:value> - </sv:property> - <sv:property sv:name="mgnl:authorid" sv:type="String"> - <sv:value>superuser</sv:value> - </sv:property> - <sv:property sv:name="mgnl:creationdate" sv:type="Date"> - <sv:value>2010-02-14T20:46:10.804+01:00</sv:value> - </sv:property> - <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> - <sv:value>2010-02-14T21:26:08.989+01:00</sv:value> - </sv:property> - </sv:node> - </sv:node> - </sv:node> - </sv:node> </sv:node> Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages.properties 2012-06-12 08:50:52 UTC (rev 4064) @@ -158,6 +158,7 @@ config.search.filters.date.from=Created from config.search.filters.date.until=Until config.search.filters.options.title=Title +config.search.filters.options.filename=Filename config.search.filters.options.description=Description config.search.filters.options.all=All config.search.filters.options.published=Published Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties 2012-06-08 16:21:47 UTC (rev 4063) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/media/lang/messages_it.properties 2012-06-12 08:50:52 UTC (rev 4064) @@ -161,6 +161,7 @@ config.search.filters.date.from=Creazione da config.search.filters.date.until=Fino a config.search.filters.options.title=Titolo +config.search.filters.options.filename=Nome file config.search.filters.options.description=Descrizione config.search.filters.options.all=Tutti config.search.filters.options.published=Pubblicati This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gca...@us...> - 2012-06-08 16:21:53
|
Revision: 4063 http://openutils.svn.sourceforge.net/openutils/?rev=4063&view=rev Author: gcatania Date: 2012-06-08 16:21:47 +0000 (Fri, 08 Jun 2012) Log Message: ----------- BSHD-13 generic backwards compatibility fixes Modified Paths: -------------- branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java Modified: branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java =================================================================== --- branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java 2012-06-06 22:27:54 UTC (rev 4062) +++ branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAO.java 2012-06-08 16:21:47 UTC (rev 4063) @@ -460,7 +460,7 @@ * {@link ExampleTree#overridePropertyFilter(String, String, Criterion)} */ @Deprecated - List<Object> findFilteredProperties(T filter, Order[] orders, Map<String, FilterMetadata> metadata, int maxResults, + List<?> findFilteredProperties(T filter, Order[] orders, Map<String, FilterMetadata> metadata, int maxResults, int page, List<Criterion> criteria, List<String> properties); } Modified: branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java =================================================================== --- branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-06 22:27:54 UTC (rev 4062) +++ branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-08 16:21:47 UTC (rev 4063) @@ -505,7 +505,7 @@ * {@link ExampleTree#overridePropertyFilter(String, String, Criterion)} {@inheritDoc} */ @Deprecated - public List<Object> findFilteredProperties(T filter, Order[] orders, Map<String, FilterMetadata> metadata, + public List<?> findFilteredProperties(T filter, Order[] orders, Map<String, FilterMetadata> metadata, int maxResults, int page, List<Criterion> criteria, List<String> properties) { return (List<Object>) getHibernateTemplate().execute( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@op...> - 2012-06-06 23:11:26
|
See <https://hudson.openmindonline.it/job/openutils-parent/41/changes> Changes: [gcatania] added my developer tag on openutils-parent ------------------------------------------ Started by an SCM change Updating https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-parent U pom.xml At revision 4062 Found mavenVersion 2.2.1 from file jar:file:/usr/local/maven/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties Parsing POMs [openutils-parent] $ /usr/local/jdk1.6.0_20/bin/java -cp /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.403.jar:/usr/local/maven/boot/classworlds-1.1.jar hudson.maven.agent.Main /usr/local/maven /data/webapps/hudson/WEB-INF/lib/remoting-1.403.jar /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.403.jar 34022 /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.openmindonline.it/job/openutils-parent/ws/openutils-parent/pom.xml> install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to build project '<https://hudson.openmindonline.it/job/openutils-parent/ws/openutils-parent/pom.xml;> it requires Maven version 3.0.0 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Jun 07 00:48:22 CEST 2012 [INFO] Final Memory: 2M/57M [INFO] ------------------------------------------------------------------------ channel stopped |
From: <gca...@us...> - 2012-06-06 22:28:00
|
Revision: 4062 http://openutils.svn.sourceforge.net/openutils/?rev=4062&view=rev Author: gcatania Date: 2012-06-06 22:27:54 +0000 (Wed, 06 Jun 2012) Log Message: ----------- updating svnmerge props Property Changed: ---------------- branches/openutils-bshd5-backport/ Property changes on: branches/openutils-bshd5-backport ___________________________________________________________________ Modified: svnmerge-integrated - /trunk/openutils-bshd5:1-4040,4042-4047,4059 + /trunk/openutils-bshd5:1-4040,4042-4047,4059,4060 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gca...@us...> - 2012-06-06 22:25:05
|
Revision: 4061 http://openutils.svn.sourceforge.net/openutils/?rev=4061&view=rev Author: gcatania Date: 2012-06-06 22:24:59 +0000 (Wed, 06 Jun 2012) Log Message: ----------- merged revision 4060 - update versions BSHD-10 Revision Links: -------------- http://openutils.svn.sourceforge.net/openutils/?rev=4060&view=rev Modified Paths: -------------- branches/openutils-bshd5-backport/pom.xml branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/ExampleTree.java branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java Property Changed: ---------------- branches/openutils-bshd5-backport/ branches/openutils-bshd5-backport/src/ Property changes on: branches/openutils-bshd5-backport ___________________________________________________________________ Modified: svn:mergeinfo - /trunk/openutils-bshd5:4045-4047*,4059 + /trunk/openutils-bshd5:4045-4047*,4057,4059 Modified: branches/openutils-bshd5-backport/pom.xml =================================================================== --- branches/openutils-bshd5-backport/pom.xml 2012-06-06 22:16:19 UTC (rev 4060) +++ branches/openutils-bshd5-backport/pom.xml 2012-06-06 22:24:59 UTC (rev 4061) @@ -59,12 +59,12 @@ <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> - <version>1.6.1</version> + <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> - <version>1.6.1</version> + <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> @@ -124,9 +124,9 @@ <version>3.2.1</version> </dependency> <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> + <groupId>org.apache.commons</groupId> + <artifactId>commons-lang3</artifactId> + <version>3.1</version> </dependency> <dependency> <groupId>org.javassist</groupId> @@ -186,6 +186,7 @@ </dependency> </dependencies> <properties> + <slf4j.version>1.6.5</slf4j.version> <spring.version>2.5.5</spring.version> <hibernate.version>3.3.1.GA</hibernate.version> <hibernate.annotations.version>3.4.0.GA</hibernate.annotations.version> Property changes on: branches/openutils-bshd5-backport/src ___________________________________________________________________ Modified: svn:mergeinfo - /trunk/openutils-bshd5/src:4045-4047 + /trunk/openutils-bshd5/src:4045-4047,4057 Modified: branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java =================================================================== --- branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-06 22:16:19 UTC (rev 4060) +++ branches/openutils-bshd5-backport/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-06 22:24:59 UTC (rev 4061) @@ -39,7 +39,7 @@ import org.aopalliance.aop.AspectException; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.Hibernate; import org.hibernate.HibernateException; @@ -167,7 +167,7 @@ */ public List<T> find(String query, Object paramValue, Type paramType) { - return getThis().find(query, new Object[]{paramValue}, new Type[]{paramType}); + return getThis().find(query, new Object[]{paramValue }, new Type[]{paramType }); } /** Modified: branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/ExampleTree.java =================================================================== --- branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-06 22:16:19 UTC (rev 4060) +++ branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-06 22:24:59 UTC (rev 4061) @@ -37,7 +37,7 @@ import java.util.Map; import java.util.Set; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.EntityMode; import org.hibernate.Hibernate; Modified: branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java =================================================================== --- branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java 2012-06-06 22:16:19 UTC (rev 4060) +++ branches/openutils-bshd5-backport/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java 2012-06-06 22:24:59 UTC (rev 4061) @@ -33,7 +33,7 @@ import java.util.Set; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.EntityMode; import org.hibernate.Hibernate; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gca...@us...> - 2012-06-06 22:16:25
|
Revision: 4060 http://openutils.svn.sourceforge.net/openutils/?rev=4060&view=rev Author: gcatania Date: 2012-06-06 22:16:19 +0000 (Wed, 06 Jun 2012) Log Message: ----------- Merged revisions 4059 via svnmerge from https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-bshd5 ........ r4059 | gcatania | 2012-06-07 00:01:52 +0200 (Thu, 07 Jun 2012) | 1 line BSHD-14 make bshd5 into an osgi bundle ........ Revision Links: -------------- http://openutils.svn.sourceforge.net/openutils/?rev=4059&view=rev Modified Paths: -------------- branches/openutils-bshd5-backport/pom.xml Property Changed: ---------------- branches/openutils-bshd5-backport/ branches/openutils-bshd5-backport/pom.xml Property changes on: branches/openutils-bshd5-backport ___________________________________________________________________ Modified: svnmerge-integrated - /trunk/openutils-bshd5:1-4040,4042-4047 + /trunk/openutils-bshd5:1-4040,4042-4047,4059 Modified: svn:mergeinfo - /trunk/openutils-bshd5:4045-4047* + /trunk/openutils-bshd5:4045-4047*,4059 Modified: branches/openutils-bshd5-backport/pom.xml =================================================================== --- branches/openutils-bshd5-backport/pom.xml 2012-06-06 22:01:52 UTC (rev 4059) +++ branches/openutils-bshd5-backport/pom.xml 2012-06-06 22:16:19 UTC (rev 4060) @@ -7,6 +7,7 @@ <version>1.12</version> </parent> <artifactId>openutils-bshd5</artifactId> + <packaging>bundle</packaging> <name>openutils base Spring-Hibernate DAO</name> <version>2.5.0-SNAPSHOT</version> <description>Openutils base Spring-Hibernate DAO (for java 5 and more)</description> @@ -46,6 +47,12 @@ </descriptors> </configuration> </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <version>2.3.7</version> + <extensions>true</extensions> + </plugin> </plugins> </build> <dependencies> Property changes on: branches/openutils-bshd5-backport/pom.xml ___________________________________________________________________ Modified: svn:mergeinfo - /trunk/openutils-bshd5/pom.xml:4045-4047 + /trunk/openutils-bshd5/pom.xml:4045-4047,4059 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@op...> - 2012-06-06 22:11:16
|
See <https://hudson.openmindonline.it/job/openutils-parent/40/> ------------------------------------------ Started by an SCM change Updating https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-parent At revision 4057 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. no change for https://openutils.svn.sourceforge.net/svnroot/openutils/trunk/openutils-parent since the previous build Found mavenVersion 2.2.1 from file jar:file:/usr/local/maven/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties Parsing POMs [openutils-parent] $ /usr/local/jdk1.6.0_20/bin/java -cp /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.403.jar:/usr/local/maven/boot/classworlds-1.1.jar hudson.maven.agent.Main /usr/local/maven /data/webapps/hudson/WEB-INF/lib/remoting-1.403.jar /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.403.jar 52540 /data/hudson-data/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.openmindonline.it/job/openutils-parent/ws/openutils-parent/pom.xml> install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to build project '<https://hudson.openmindonline.it/job/openutils-parent/ws/openutils-parent/pom.xml;> it requires Maven version 3.0.0 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Jun 06 23:48:14 CEST 2012 [INFO] Final Memory: 2M/57M [INFO] ------------------------------------------------------------------------ channel stopped |
From: <hu...@op...> - 2012-06-06 22:02:11
|
See <https://hudson.openmindonline.it/job/openutils-bshd5/61/changes> |
From: <gca...@us...> - 2012-06-06 22:01:58
|
Revision: 4059 http://openutils.svn.sourceforge.net/openutils/?rev=4059&view=rev Author: gcatania Date: 2012-06-06 22:01:52 +0000 (Wed, 06 Jun 2012) Log Message: ----------- BSHD-14 make bshd5 into an osgi bundle Modified Paths: -------------- trunk/openutils-bshd5/pom.xml Modified: trunk/openutils-bshd5/pom.xml =================================================================== --- trunk/openutils-bshd5/pom.xml 2012-06-06 21:50:39 UTC (rev 4058) +++ trunk/openutils-bshd5/pom.xml 2012-06-06 22:01:52 UTC (rev 4059) @@ -7,6 +7,7 @@ <version>1.12</version> </parent> <artifactId>openutils-bshd5</artifactId> + <packaging>bundle</packaging> <name>openutils base Spring-Hibernate DAO</name> <version>3.0.0-SNAPSHOT</version> <description>Openutils base Spring-Hibernate DAO (for java 5 and more)</description> @@ -46,6 +47,12 @@ </descriptors> </configuration> </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <version>2.3.7</version> + <extensions>true</extensions> + </plugin> </plugins> </build> <dependencies> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gca...@us...> - 2012-06-06 21:50:45
|
Revision: 4058 http://openutils.svn.sourceforge.net/openutils/?rev=4058&view=rev Author: gcatania Date: 2012-06-06 21:50:39 +0000 (Wed, 06 Jun 2012) Log Message: ----------- added my developer tag on openutils-parent Modified Paths: -------------- trunk/openutils-parent/pom.xml Modified: trunk/openutils-parent/pom.xml =================================================================== --- trunk/openutils-parent/pom.xml 2012-06-06 21:28:38 UTC (rev 4057) +++ trunk/openutils-parent/pom.xml 2012-06-06 21:50:39 UTC (rev 4058) @@ -90,6 +90,16 @@ </roles> <timezone>+1</timezone> </developer> + <developer> + <id>gcatania</id> + <name>Gabriele Catania</name> + <email>gab...@gm...</email> + <organization>energeya</organization> + <roles> + <role>developer</role> + </roles> + <timezone>+1</timezone> + </developer> </developers> <build> <plugins> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gca...@us...> - 2012-06-06 21:28:44
|
Revision: 4057 http://openutils.svn.sourceforge.net/openutils/?rev=4057&view=rev Author: gcatania Date: 2012-06-06 21:28:38 +0000 (Wed, 06 Jun 2012) Log Message: ----------- BSHD-10 dependency update Modified Paths: -------------- trunk/openutils-bshd5/pom.xml trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java Modified: trunk/openutils-bshd5/pom.xml =================================================================== --- trunk/openutils-bshd5/pom.xml 2012-06-06 09:03:25 UTC (rev 4056) +++ trunk/openutils-bshd5/pom.xml 2012-06-06 21:28:38 UTC (rev 4057) @@ -52,12 +52,12 @@ <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> - <version>1.6.1</version> + <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> - <version>1.6.1</version> + <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> @@ -84,7 +84,7 @@ <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> - <version>3.5.6-Final</version> + <version>${hibernate.version}</version> <exclusions> <exclusion> <groupId>cglib</groupId> @@ -106,14 +106,14 @@ <version>3.2.1</version> </dependency> <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> + <groupId>org.apache.commons</groupId> + <artifactId>commons-lang3</artifactId> + <version>3.1</version> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> - <version>3.16.1-GA</version> + <version>${javassist.version}</version> </dependency> <!-- test dependencies --> <dependency> @@ -143,7 +143,7 @@ <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> - <version>3.5.6-Final</version> + <version>${hibernate.version}</version> <scope>test</scope> <exclusions> <exclusion> @@ -162,6 +162,9 @@ </dependency> </dependencies> <properties> + <slf4j.version>1.6.5</slf4j.version> + <hibernate.version>3.5.6-Final</hibernate.version> + <javassist.version>3.16.1-GA</javassist.version> <spring.version>3.0.0.RELEASE</spring.version> </properties> </project> Modified: trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-06 09:03:25 UTC (rev 4056) +++ trunk/openutils-bshd5/src/main/java/it/openutils/dao/hibernate/HibernateDAOImpl.java 2012-06-06 21:28:38 UTC (rev 4057) @@ -39,7 +39,7 @@ import org.aopalliance.aop.AspectException; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.Hibernate; import org.hibernate.HibernateException; @@ -166,7 +166,7 @@ */ public List<T> find(String query, Object paramValue, Type paramType) { - return getThis().find(query, new Object[]{paramValue}, new Type[]{paramType}); + return getThis().find(query, new Object[]{paramValue }, new Type[]{paramType }); } /** Modified: trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-06 09:03:25 UTC (rev 4056) +++ trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/ExampleTree.java 2012-06-06 21:28:38 UTC (rev 4057) @@ -37,7 +37,7 @@ import java.util.Map; import java.util.Set; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.EntityMode; import org.hibernate.Hibernate; Modified: trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java =================================================================== --- trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java 2012-06-06 09:03:25 UTC (rev 4056) +++ trunk/openutils-bshd5/src/main/java/it/openutils/hibernate/example/FilterMetadataSupport.java 2012-06-06 21:28:38 UTC (rev 4057) @@ -33,7 +33,7 @@ import java.util.Set; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.hibernate.Criteria; import org.hibernate.EntityMode; import org.hibernate.Hibernate; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@op...> - 2012-06-06 09:25:36
|
See <https://hudson.openmindonline.it/job/openutils-deployment/36/> |
From: <df...@us...> - 2012-06-06 09:03:36
|
Revision: 4056 http://openutils.svn.sourceforge.net/openutils/?rev=4056&view=rev Author: dfghi Date: 2012-06-06 09:03:25 +0000 (Wed, 06 Jun 2012) Log Message: ----------- DEPLOY-13 Add the possibility to expose the server name as system property. Committed just because I've already used this in a couple of projects... Modified Paths: -------------- trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java Modified: trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java =================================================================== --- trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java 2012-05-28 13:52:12 UTC (rev 4055) +++ trunk/openutils-deployment/src/main/java/it/openutils/deployment/spring/EnvironmentPropertyConfigurer.java 2012-06-06 09:03:25 UTC (rev 4056) @@ -117,6 +117,11 @@ * Set all the properties configured as system properties. */ private boolean exposeSystemProperties; + + /** + * Expose the server name as system property. + */ + private boolean exposeServerName; private String nullValue; @@ -164,6 +169,14 @@ { this.exposeSystemProperties = exposeSystemProperties; } + + /** + * Expose the server name as system property. + * @param exposeServerName <code>true</code> if you want to set the server name as system property (with the key stated in <code>serverPropertyName</code>). + */ + public void setExposeServerName(boolean exposeServerName) { + this.exposeServerName = exposeServerName; + } @Override public void setNullValue(String nullValue) @@ -225,7 +238,7 @@ if (hostname != null) { - if (exposeSystemProperties) + if (exposeSystemProperties || exposeServerName) { if (System.getProperty(serverPropertyName) != null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2012-05-28 13:52:18
|
Revision: 4055 http://openutils.svn.sourceforge.net/openutils/?rev=4055&view=rev Author: diego_schivo Date: 2012-05-28 13:52:12 +0000 (Mon, 28 May 2012) Log Message: ----------- CONTROLS-49 Paste from spreadsheet: javascript error Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/clipboard.html Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/clipboard.html =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/clipboard.html 2012-05-28 08:37:33 UTC (rev 4054) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/clipboard.html 2012-05-28 13:52:12 UTC (rev 4055) @@ -22,7 +22,7 @@ <textarea id="clipboard" name="clipboard" rows="4" cols="20" style="width: 100%;border: 1px solid #999"></textarea> </p> <div class="mgnlDialogTabsetSaveBar"> - <span class="mgnlControlButton" onclick="opener.window.gridPaste(urlParams['name'], urlParams['expand'] == 'true'), document.getElementById('clipboard').value); mgnlShiftPushButtonClick(this); window.top.close();" onmouseout="mgnlShiftPushButtonOut(this);" + <span class="mgnlControlButton" onclick="opener.window.gridPaste(urlParams['name'], document.getElementById('clipboard').value, (urlParams['expand'] == 'true')); mgnlShiftPushButtonClick(this); window.top.close();" onmouseout="mgnlShiftPushButtonOut(this);" onmousedown="mgnlShiftPushButtonDown(this);"> OK </span> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <df...@us...> - 2012-05-28 08:37:39
|
Revision: 4054 http://openutils.svn.sourceforge.net/openutils/?rev=4054&view=rev Author: dfghi Date: 2012-05-28 08:37:33 +0000 (Mon, 28 May 2012) Log Message: ----------- CONTROLS-38 Backport of r4053: "Paste form excel" and "clear all" now can be disabled. Revision Links: -------------- http://openutils.svn.sourceforge.net/openutils/?rev=4053&view=rev Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-28 08:34:10 UTC (rev 4053) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-28 08:37:33 UTC (rev 4054) @@ -196,6 +196,8 @@ var rows = hidden.value.split(/\r?\n/); [#assign addRowsEnabled = (configuration['addRowsEnabled']!false)?string == 'true'] + [#assign pasteFromExcelEnabled = (configuration['pasteFromExcelEnabled']!true)?string == 'true'] + [#assign clearAllEnabled = (configuration['clearAllEnabled']!true)?string == 'true'] [#assign cfgRows = configuration.rows!10] [#if (addRowsEnabled)] var numOfRows= Math.max(${cfgRows}, rows.length); @@ -271,7 +273,8 @@ } } } - } + }, + disabled: ${(!clearAllEnabled)?string} }, { text: 'Paste from spreadsheet', tooltip: 'Paste from spreadsheet', @@ -279,7 +282,8 @@ iconCls: 'button-paste', handler: function() { mgnlOpenWindow('/.resources/controls/clipboard.html?name=${name}&expand=${addRowsEnabled?string}', 320, 200); - } + }, + disabled: ${(!pasteFromExcelEnabled)?string} }, { text: '', tooltip: 'Move row up', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <df...@us...> - 2012-05-28 08:34:21
|
Revision: 4053 http://openutils.svn.sourceforge.net/openutils/?rev=4053&view=rev Author: dfghi Date: 2012-05-28 08:34:10 +0000 (Mon, 28 May 2012) Log Message: ----------- CONTROLS-38 "Paste form excel" and "clear all" now can be disabled. Modified Paths: -------------- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl Modified: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-25 16:24:35 UTC (rev 4052) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-28 08:34:10 UTC (rev 4053) @@ -196,6 +196,8 @@ var rows = hidden.value.split(/\r?\n/); [#assign addRowsEnabled = (configuration['addRowsEnabled']!false)?string == 'true'] + [#assign pasteFromExcelEnabled = (configuration['pasteFromExcelEnabled']!true)?string == 'true'] + [#assign clearAllEnabled = (configuration['clearAllEnabled']!true)?string == 'true'] [#assign cfgRows = configuration.rows!10] [#if (addRowsEnabled)] var numOfRows= Math.max(${cfgRows}, rows.length); @@ -271,7 +273,8 @@ } } } - } + }, + disabled: ${(!clearAllEnabled)?string} }, { text: 'Paste from spreadsheet', tooltip: 'Paste from spreadsheet', @@ -279,7 +282,8 @@ iconCls: 'button-paste', handler: function() { mgnlOpenWindow('/.resources/controls/clipboard.html?name=${name}&expand=${addRowsEnabled?string}', 320, 200); - } + }, + disabled: ${(!pasteFromExcelEnabled)?string} }, { text: '', tooltip: 'Move row up', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <df...@us...> - 2012-05-25 16:24:41
|
Revision: 4052 http://openutils.svn.sourceforge.net/openutils/?rev=4052&view=rev Author: dfghi Date: 2012-05-25 16:24:35 +0000 (Fri, 25 May 2012) Log Message: ----------- CONTROLS-47 Backport of r4050: Extended combobox to prevent value display in some cases. Revision Links: -------------- http://openutils.svn.sourceforge.net/openutils/?rev=4050&view=rev Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/PipeComboBox.js Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2012-05-25 16:16:57 UTC (rev 4051) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/java/net/sourceforge/openutils/mgnlcontrols/configuration/ComboGridColumnType.java 2012-05-25 16:24:35 UTC (rev 4052) @@ -43,9 +43,20 @@ @Override public String getHeadSnippet() { - return "<script type=\"text/javascript\" src=\"" - + MgnlContext.getContextPath() - + "/.resources/controls/js/PipeComboBox.js\"></script>"; + StringBuilder result = new StringBuilder(super.getHeadSnippet()); + result.append("<script type=\"text/javascript\" src=\""); + result.append(MgnlContext.getContextPath()); + result.append("/.resources/controls/js/PipeComboBox.js\"></script>"); + // Combobox must be patched because of a bug. For reference, see: + // http://www.sencha.com/forum/showthread.php?17465-1.1.1-Local-ComboBox-data-store-filter-not-cleared-on-call-to-setValue%28%29 + result.append("var PatchedComboBox = Ext.extend(Ext.form.ComboBox, {"); + result.append(" setValue: function(v) {"); + result.append(" this.store.clearFilter();"); + result.append(" PatchedComboBox.superclass.setValue.call(this, v);"); + result.append(" }"); + result.append("});\n"); + result.append("</script>"); + return result.toString(); } /** @@ -89,7 +100,7 @@ column.put( "editor", "(function() { window.gridComboColumnTypeTmp = new " - + ("true".equals(String.valueOf(colMap.get("pipe"))) ? "PipeComboBox" : "fm.ComboBox") + + ("true".equals(String.valueOf(colMap.get("pipe"))) ? "PipeComboBox" : "PatchedComboBox") + "({" + StringUtils.join(options, ",") + "}); return new Ed(gridComboColumnTypeTmp); })()"); @@ -103,7 +114,7 @@ else { column.put("editor", "new Ed(new " - + ("true".equals(String.valueOf(colMap.get("pipe"))) ? "PipeComboBox" : "fm.ComboBox") + + ("true".equals(String.valueOf(colMap.get("pipe"))) ? "PipeComboBox" : "PatchedComboBox") + "({" + StringUtils.join(options, ",") + "}))"); Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/PipeComboBox.js =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/PipeComboBox.js 2012-05-25 16:16:57 UTC (rev 4051) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcontrols/src/main/resources/mgnl-resources/controls/js/PipeComboBox.js 2012-05-25 16:24:35 UTC (rev 4052) @@ -4,7 +4,14 @@ var v = PipeComboBox.superclass.getValue.call(this); return this.lastSelectionText + '|' + v; }, - + + // Combobox must be patched because of a bug. For reference, see: + // http://www.sencha.com/forum/showthread.php?17465-1.1.1-Local-ComboBox-data-store-filter-not-cleared-on-call-to-setValue%28%29 + setValue: function(v) { + this.store.clearFilter(); + PipeComboBox.superclass.setValue.call(this, v); + }, + findRecord : function(prop, value) { return PipeComboBox.superclass.findRecord.call(this, prop, value.replace(/^.*\|(.*)$/, '$1')); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |