From do-not-reply at jboss.org Wed Jun 1 01:39:20 2011 Content-Type: multipart/mixed; boundary="===============5210382801645313003==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4466 - core/branches/2.3.x/patch/2.3.10/COR-34. Date: Wed, 01 Jun 2011 01:39:20 -0400 Message-ID: <201106010539.p515dKfP026624@svn01.web.mwc.hst.phx2.redhat.com> --===============5210382801645313003== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-01 01:39:20 -0400 (Wed, 01 Jun 2011) New Revision: 4466 Modified: core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch Log: COR-34: patch updated Modified: core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch 2011-05-31 14:59:5= 4 UTC (rev 4465) +++ core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch 2011-06-01 05:39:2= 0 UTC (rev 4466) @@ -1,3 +1,190 @@ +Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/CacheHandler.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/CacheHandler.java (revision 0) ++++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/CacheHandler.java (revision 0) +@@ -0,0 +1,182 @@ ++/* ++ * Copyright (C) 2011 eXo Platform SAS. ++ * ++ * This is free software; you can redistribute it and/or modify it ++ * under the terms of the GNU Lesser General Public License as ++ * published by the Free Software Foundation; either version 2.1 of ++ * the License, or (at your option) any later version. ++ * ++ * This software is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this software; if not, write to the Free ++ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ++ * 02110-1301 USA, or see the FSF site: http://www.fsf.org. ++ */ ++package org.exoplatform.services.organization.ldap; ++ ++import org.exoplatform.services.cache.CacheService; ++import org.exoplatform.services.cache.ExoCache; ++import org.exoplatform.services.organization.Group; ++import org.exoplatform.services.organization.Membership; ++import org.exoplatform.services.organization.MembershipType; ++import org.exoplatform.services.organization.User; ++ ++import java.io.Serializable; ++ ++/** ++ * @author Anatoliy Bazko ++ * @version $Id: CacheHandler.java 34360 2009-07-22 23:58:59Z tolusha $ ++ */ ++public class CacheHandler ++{ ++ public static final String MEMBERSHIPTYPE_PREFIX =3D "mt=3D"; ++ ++ public static final String GROUP_PREFIX =3D "g=3D"; ++ ++ public static final String USER_PREFIX =3D "u=3D"; ++ ++ /** ++ * The cache service. ++ */ ++ private final CacheService cservice; ++ ++ /** ++ * Cache for Users. ++ */ ++ private final ExoCache userCache; ++ ++ /** ++ * Cache for MembershipTypes. ++ */ ++ private final ExoCache membershipTypeCac= he; ++ ++ /** ++ * Cache for Memberships. ++ */ ++ private final ExoCache membershipCache; ++ ++ /** ++ * Cache for Groups. ++ */ ++ private final ExoCache groupCache; ++ ++ /** ++ * Constructor CacheHandler. = ++ * = ++ * @param cservice ++ * The cache handler ++ */ ++ public CacheHandler(CacheService cservice) ++ { ++ this.cservice =3D cservice; ++ this.userCache =3D cservice.getCacheInstance(this.getClass().getNam= e() + "userCache"); ++ this.membershipTypeCache =3D cservice.getCacheInstance(this.getClas= s().getName() + "membershipTypeCache"); ++ this.groupCache =3D cservice.getCacheInstance(this.getClass().getNa= me() + "groupCache"); ++ this.membershipCache =3D cservice.getCacheInstance(this.getClass().= getName() + "membershipCache"); ++ } ++ ++ public void put(Serializable key, Object value, CacheType cacheType) ++ { ++ if (cacheType =3D=3D CacheType.USER) ++ { ++ userCache.put(key, (User)value); ++ } ++ else if (cacheType =3D=3D CacheType.GROUP) ++ { ++ groupCache.put(key, (Group)value); ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIP) ++ { ++ membershipCache.put(key, (Membership)value); ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIPTYPE) ++ { ++ membershipTypeCache.put(key, (MembershipType)value); ++ } ++ } ++ ++ public Object get(Serializable key, CacheType cacheType) ++ { ++ if (cacheType =3D=3D CacheType.USER) ++ { ++ return userCache.get(key); ++ } ++ else if (cacheType =3D=3D CacheType.GROUP) ++ { ++ return groupCache.get(key); ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIP) ++ { ++ return membershipCache.get(key); ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIPTYPE) ++ { ++ return membershipTypeCache.get(key); ++ } ++ ++ return null; ++ } ++ ++ public void remove(Serializable key, CacheType cacheType) ++ { ++ if (cacheType =3D=3D CacheType.USER) ++ { ++ userCache.remove(key); ++ } ++ else if (cacheType =3D=3D CacheType.GROUP) ++ { ++ groupCache.remove(key); ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIP) ++ { ++ try ++ { ++ String tKey =3D ((String)key).toUpperCase(); ++ for (Membership m : membershipCache.getCachedObjects()) ++ { ++ String mkey =3D getMembershipKey(m); ++ if (mkey.toUpperCase().indexOf(tKey) >=3D 0) ++ { ++ membershipCache.remove(mkey); ++ } ++ } ++ } ++ catch (Exception e) ++ { ++ } ++ } ++ else if (cacheType =3D=3D CacheType.MEMBERSHIPTYPE) ++ { ++ membershipTypeCache.remove(key); ++ } ++ } ++ ++ public String getMembershipKey(Membership m) ++ { ++ StringBuilder key =3D new StringBuilder(); ++ key.append(GROUP_PREFIX + m.getGroupId()); ++ key.append(MEMBERSHIPTYPE_PREFIX + m.getMembershipType()); ++ key.append(USER_PREFIX + m.getUserName()); ++ ++ return key.toString(); ++ } ++ ++ public String getMembershipKey(String username, String groupId, String= type) ++ { ++ StringBuilder key =3D new StringBuilder(); ++ key.append(GROUP_PREFIX + groupId); ++ key.append(MEMBERSHIPTYPE_PREFIX + type); ++ key.append(USER_PREFIX + username); ++ ++ return key.toString(); ++ } ++ ++ static enum CacheType ++ { ++ USER, GROUP, MEMBERSHIP, MEMBERSHIPTYPE ++ } ++} Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/MembershipDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipDAOImpl.java (revision 4450) @@ -469,28 +656,6 @@ Attributes attrs =3D sr.getAttributes(); Attribute attr =3D attrs.get("tokenGroups"); for (int x =3D 0; x < attr.size(); x++) -Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/ADGroupDAOImpl.java -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (revision 4450) -+++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (working copy) -@@ -48,12 +48,14 @@ - * items - * @param ldapService {@link LDAPService} - * @param ad See {@link ADSearchBySID} -+ * @param cacheHandler -+ * The Cache Handler - * @throws Exception if any errors occurs - */ -- public ADGroupDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPServic= e ldapService, ADSearchBySID ad) -- throws Exception -+ public ADGroupDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPServic= e ldapService, ADSearchBySID ad, -+ CacheHandler cacheHandler) throws Exception - { -- super(ldapAttrMapping, ldapService); -+ super(ldapAttrMapping, ldapService, cacheHandler); - adSearch =3D ad; - } - = Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/OrganizationServiceImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/OrganizationServiceImpl.java (revision 4450) @@ -530,6 +695,28 @@ = ValueParam param =3D params.getValueParam("ldap.userDN.key"); if (param !=3D null) +Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/ADGroupDAOImpl.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (revision 4450) ++++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (working copy) +@@ -48,12 +48,14 @@ + * items + * @param ldapService {@link LDAPService} + * @param ad See {@link ADSearchBySID} ++ * @param cacheHandler ++ * The Cache Handler + * @throws Exception if any errors occurs + */ +- public ADGroupDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPServic= e ldapService, ADSearchBySID ad) +- throws Exception ++ public ADGroupDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPServic= e ldapService, ADSearchBySID ad, ++ CacheHandler cacheHandler) throws Exception + { +- super(ldapAttrMapping, ldapService); ++ super(ldapAttrMapping, ldapService, cacheHandler); + adSearch =3D ad; + } + = Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/UserDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserDAOImpl.java (revision 4450) --===============5210382801645313003==-- From do-not-reply at jboss.org Wed Jun 1 02:42:07 2011 Content-Type: multipart/mixed; boundary="===============7304546605783014786==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4467 - core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl. Date: Wed, 01 Jun 2011 02:42:07 -0400 Message-ID: <201106010642.p516g7R3006770@svn01.web.mwc.hst.phx2.redhat.com> --===============7304546605783014786== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: areshetnyak Date: 2011-06-01 02:42:07 -0400 (Wed, 01 Jun 2011) New Revision: 4467 Modified: core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatfor= m/services/ldap/impl/LDAPServiceImpl.java Log: EXOJCR-1366 : Changes from patch COR-237.patch was reverted. Modified: core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exo= platform/services/ldap/impl/LDAPServiceImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatfo= rm/services/ldap/impl/LDAPServiceImpl.java 2011-06-01 05:39:20 UTC (rev 446= 6) +++ core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatfo= rm/services/ldap/impl/LDAPServiceImpl.java 2011-06-01 06:42:07 UTC (rev 446= 7) @@ -86,17 +86,6 @@ // TODO move it in configuration ? env.put("com.sun.jndi.ldap.connect.timeout", "60000"); = - if (config.getMinConnection() > 0) - { - env.put("com.sun.jndi.ldap.connect.pool.initsize", Integer.toStri= ng(config.getMinConnection())); - env.put("com.sun.jndi.ldap.connect.pool.prefsize", Integer.toStri= ng(config.getMinConnection())); - } - - if (config.getMaxConnection() > 0) - { - env.put("com.sun.jndi.ldap.connect.pool.maxsize", Integer.toStrin= g(config.getMaxConnection())); - } - env.put("com.sun.jndi.ldap.connect.pool", "true"); env.put("java.naming.ldap.version", config.getVerion()); env.put("java.naming.ldap.attributes.binary", "tokenGroups"); --===============7304546605783014786==-- From do-not-reply at jboss.org Wed Jun 1 03:25:20 2011 Content-Type: multipart/mixed; boundary="===============3293199571485879024==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4468 - in jcr/trunk/exo.jcr.component.webdav/src: test/java/org/exoplatform/services/jcr/webdav/command and 1 other directory. Date: Wed, 01 Jun 2011 03:25:20 -0400 Message-ID: <201106010725.p517PKKq017565@svn01.web.mwc.hst.phx2.redhat.com> --===============3293199571485879024== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-01 03:25:19 -0400 (Wed, 01 Jun 2011) New Revision: 4468 Modified: jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/service= s/jcr/webdav/WebDavServiceImpl.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestCopy.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestLock.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestMkCol.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestMove.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestPropFind.java jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/service= s/jcr/webdav/command/TestPut.java Log: EXOJCR-1358: fixed MOVE, MKCOL, COPY and some other methods responses statu= ses when trying to access non-existing workspaces Modified: jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/= services/jcr/webdav/WebDavServiceImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/servic= es/jcr/webdav/WebDavServiceImpl.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/servic= es/jcr/webdav/WebDavServiceImpl.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -528,14 +528,13 @@ } else { - Session session =3D session(repoName, workspaceName(repoPath),= null); + Session session =3D session(repoName, srcWorkspace, null); = if (session.getRootNode().hasNode(TextUtil.relativizePath(repo= Path))) { return Response.status(HTTPStatus.PRECON_FAILED) .entity("Item exists on destination path, while overwrit= ing is forbidden").build(); } - } = if (depth.getStringValue().equalsIgnoreCase("infinity")) @@ -545,14 +544,12 @@ { Session session =3D session(repoName, destWorkspace, lockTo= kens); return new CopyCommand(uriInfo.getBaseUriBuilder().path(get= Class()).path(repoName), itemExisted).copy( - session, - srcNodePath, destNodePath); + session, srcNodePath, destNodePath); } = Session destSession =3D session(repoName, destWorkspace, lockT= okens); return new CopyCommand(uriInfo.getBaseUriBuilder().path(getCla= ss()).path(repoName), itemExisted).copy( - destSession, - srcWorkspace, srcNodePath, destNodePath); + destSession, srcWorkspace, srcNodePath, destNodePath); = } else if (depth.getIntValue() =3D=3D 0) @@ -577,6 +574,11 @@ { return Response.status(HTTPStatus.BAD_REQUEST).entity(exc.getMess= age()).build(); } + catch (NoSuchWorkspaceException e) + { + log.error("NoSuchWorkspaceException " + e.getMessage(), e); + return Response.status(HTTPStatus.CONFLICT).entity(e.getMessage()= ).build(); + } catch (Exception exc) { log.error(exc.getMessage(), exc); @@ -774,7 +776,7 @@ catch (NoSuchWorkspaceException exc) { log.error("NoSuchWorkspaceException " + exc.getMessage(), exc); - return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessag= e()).build(); + return Response.status(HTTPStatus.CONFLICT).entity(exc.getMessage= ()).build(); = } catch (Exception exc) @@ -864,7 +866,7 @@ catch (NoSuchWorkspaceException exc) { log.error("NoSuchWorkspaceException " + exc.getMessage(), exc); - return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessag= e()).build(); + return Response.status(HTTPStatus.CONFLICT).entity(exc.getMessage= ()).build(); } catch (Exception exc) { @@ -886,7 +888,7 @@ { // to trace if an item on destination path exists boolean itemExisted =3D false; - = + if (log.isDebugEnabled()) { log.debug("MOVE " + repoName + "/" + repoPath); @@ -915,7 +917,7 @@ { return Response.status(HTTPStatus.BAD_GATEWAY).entity("Bad Gat= eway").build(); } - = + destPath =3D normalizePath(repoIndex =3D=3D -1 ? destPath : destP= ath.substring(repoIndex + repoName.length() + 1)); = String destWorkspace =3D workspaceName(destPath); @@ -937,10 +939,9 @@ } else { - Session session =3D session(repoName, workspaceName(repoPath),= null); + Session session =3D session(repoName, srcWorkspace, null); String uri =3D - uriInfo.getBaseUriBuilder().path(getClass()).path(repoName)= .path(workspaceName(repoPath)).build() - .toString(); + uriInfo.getBaseUriBuilder().path(getClass()).path(repoName)= .path(srcWorkspace).build().toString(); Response prpfind =3D new PropFindCommand().propfind(session, d= estNodePath, body, depth.getIntValue(), uri); if (prpfind.getStatus() !=3D HTTPStatus.NOT_FOUND) { @@ -954,14 +955,14 @@ if (srcWorkspace.equals(destWorkspace)) { Session session =3D session(repoName, srcWorkspace, lockTok= ens); - return new MoveCommand(uriInfo.getBaseUriBuilder().path(get= Class()).path(repoName), itemExisted).move(session, - srcNodePath, destNodePath); + return new MoveCommand(uriInfo.getBaseUriBuilder().path(get= Class()).path(repoName), itemExisted).move( + session, srcNodePath, destNodePath); } = Session srcSession =3D session(repoName, srcWorkspace, lockTok= ens); Session destSession =3D session(repoName, destWorkspace, lockT= okens); - return new MoveCommand(uriInfo.getBaseUriBuilder().path(getCla= ss()).path(repoName), itemExisted).move(srcSession, - destSession, srcNodePath, destNodePath); + return new MoveCommand(uriInfo.getBaseUriBuilder().path(getCla= ss()).path(repoName), itemExisted).move( + srcSession, destSession, srcNodePath, destNodePath); } else { @@ -969,6 +970,11 @@ } = } + catch (NoSuchWorkspaceException e) + { + log.error("NoSuchWorkspaceException " + e.getMessage(), e); + return Response.status(HTTPStatus.CONFLICT).entity(e.getMessage()= ).build(); + } catch (Exception exc) { log.error(exc.getMessage(), exc); @@ -1058,7 +1064,7 @@ } catch (NoSuchWorkspaceException exc) { - return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessag= e()).build(); + return Response.status(HTTPStatus.CONFLICT).entity(exc.getMessage= ()).build(); } catch (PreconditionException exc) { @@ -1176,7 +1182,7 @@ catch (NoSuchWorkspaceException exc) { log.error("NoSuchWorkspaceException " + exc.getMessage(), exc); - return Response.status(HTTPStatus.NOT_FOUND).entity(exc.getMessag= e()).build(); + return Response.status(HTTPStatus.CONFLICT).entity(exc.getMessage= ()).build(); = } catch (NoSuchNodeTypeException exc) @@ -1373,7 +1379,8 @@ * @return current session * @throws Exception {@link Exception} */ - protected Session session(String repoName, String wsName, List = lockTokens) throws Exception + protected Session session(String repoName, String wsName, List = lockTokens) throws Exception, + NoSuchWorkspaceException { ManageableRepository repo =3D this.repositoryService.getRepository(r= epoName); SessionProvider sp =3D sessionProviderService.getSessionProvider(nul= l); Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestCopy.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestCopy.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestCopy.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -349,6 +349,66 @@ assertEquals(content, getContentBase); } = + /** + * Here we're testing the case when we are trying to copy a resource C = to a path /A/B/C + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testCopyResourceToNonExistingWorkspace() throws Exception + { + String folderName =3D "new folder"; + session.getRootNode().addNode(folderName, "nt:folder"); + session.save(); + + String content =3D TestUtils.getFileContent(); + String filename =3D TestUtils.getFileName(); + InputStream inputStream =3D new ByteArrayInputStream(content.getByte= s()); + TestUtils.addContent(session, filename, inputStream, defaultFileNode= Type, ""); + String destFilename =3D TextUtil.unescape("/" + folderName + TestUti= ls.getFileName(), '%'); + + MultivaluedMap headers =3D new MultivaluedMapImpl(); + // add destination header with incorrect data + headers.add(ExtHttpHeaders.DESTINATION, WORKSPACE + "_" + destFilena= me); + + ContainerResponse response =3D service(WebDAVMethods.COPY, getPathWS= () + filename, host, headers, null); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + + // add overwrite header to check the behavior + headers.add(ExtHttpHeaders.OVERWRITE, "T"); + response =3D service(WebDAVMethods.COPY, getPathWS() + filename, hos= t, headers, null); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + + // clean up + session.getRootNode().getNode(folderName).remove(); + } + + /** + * Here we're testing the case when we are trying to copy a collection = B to a path /A/B + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testCopyCollectionToNonExistingWorkspace() throws Exception + { + MultivaluedMap headers =3D new MultivaluedMapImpl(); + // add destination header with incorrect data + headers.add(ExtHttpHeaders.DESTINATION, WORKSPACE + "_" + "/" + "tes= t"); + + ContainerResponse response =3D + service(WebDAVMethods.COPY, getPathWS() + TestUtils.getFolderName= (), host, headers, null); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + + // add overwrite header to check the behavior + headers.add(ExtHttpHeaders.OVERWRITE, "T"); + response =3D service(WebDAVMethods.COPY, getPathWS() + TestUtils.get= FolderName(), host, headers, null); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + } + @Override protected String getRepositoryName() { Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestLock.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestLock.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestLock.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -191,6 +191,20 @@ ((Node)session.getItem(path)).unlock(); } = + /** + * Here we're testing the case when we are trying to lock a resource C = at a path /A/B/C + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testLockForNonExistingWorkspace() throws Exception + { + ContainerResponse response =3D + service(WebDAVMethods.LOCK, getPathWS() + "_" + path, "", null, l= ockRequestBody.getBytes()); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + } + @Override protected String getRepositoryName() { Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestMkCol.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestMkCol.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestMkCol.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -81,10 +81,17 @@ = } = - @Override - protected String getRepositoryName() + /** + * Here we're testing the case when we are trying to create a collectio= n B at a path /A/B + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testMkColInNonExistingWorkspace() throws Exception { - return null; + String folder =3D TestUtils.getFolderName(); + ContainerResponse response =3D service(WebDAVMethods.MKCOL, getPathW= S() + "_" + folder, "", null, null); + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); } = public void testConflict() throws Exception @@ -94,4 +101,9 @@ assertEquals(HTTPStatus.CONFLICT, response.getStatus()); } = + @Override + protected String getRepositoryName() + { + return null; + } } Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestMove.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestMove.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestMove.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -304,6 +304,25 @@ assertFalse(session.getRootNode().hasNode(TextUtil.relativizePath(fi= lename))); } = + /** + * Here we're testing the case when we are trying to move a resource C = to a path /A/B/C + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testMoveToNonCollectionToNonExistingWorkspace() throws Exce= ption + { + String filename =3D TestUtils.getFileName(); + String destFilename =3D TestUtils.getFileName(); + + MultivaluedMap headers =3D new MultivaluedMapImpl(); + headers.add(ExtHttpHeaders.DESTINATION, host + getPathWS() + destFil= ename); + + ContainerResponse response =3D service(WebDAVMethods.MOVE, getPathWS= () + "_" + filename, host, headers, null); + + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + } + @Override protected String getRepositoryName() { Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestPropFind.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestPropFind.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestPropFind.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -469,6 +469,21 @@ = } = + /** + * Here we're testing the case when we are trying to get some resource = C property to a path /A/B/C + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testPropFindForNonExistingWorkspace() throws Exception + { + String file =3D TestUtils.getFileName(); + + ContainerResponse response =3D + service(WebDAVMethods.PROPFIND, getPathWS() + "_" + file, "", nul= l, null); + assertEquals(HTTPStatus.CONFLICT, response.getStatus()); + } + @Override protected String getRepositoryName() { Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/= services/jcr/webdav/command/TestPut.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestPut.java 2011-06-01 06:42:07 UTC (rev 4467) +++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/servic= es/jcr/webdav/command/TestPut.java 2011-06-01 07:25:19 UTC (rev 4468) @@ -62,6 +62,22 @@ = } = + /** + * Here we're testing the case when we are trying to put some resource = C to a path /A/B/C + * and a A collection does not exist. According to the + * RFC 4918 section we are to receive 409(conflict) HTTP status. = + * @throws Exception + */ + public void testPutToNonExistingWorkspace() throws Exception + { + String content =3D TestUtils.getFileContent(); + String path =3D TestUtils.getFileName(); + ContainerResponse containerResponse =3D + service(WebDAVMethods.PUT, getPathWS() + "_" + path, "", null, co= ntent.getBytes()); + assertEquals(HTTPStatus.CONFLICT, containerResponse.getStatus()); + + } + public void testPutFileContentTypeHeader() throws Exception { String content =3D TestUtils.getFileContent(); --===============3293199571485879024==-- From do-not-reply at jboss.org Wed Jun 1 03:56:50 2011 Content-Type: multipart/mixed; boundary="===============6901047604726006309==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4469 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation. Date: Wed, 01 Jun 2011 03:56:49 -0400 Message-ID: <201106010756.p517un7C020611@svn01.web.mwc.hst.phx2.redhat.com> --===============6901047604726006309== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sergiykarpenko Date: 2011-06-01 03:56:47 -0400 (Wed, 01 Jun 2011) New Revision: 4469 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java Log: EXOJCR-1103: empty pattern support added Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java 2011-06-01= 07:25:19 UTC (rev 4468) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java 2011-06-01= 07:56:47 UTC (rev 4469) @@ -245,6 +245,12 @@ IllegalStateException { checkIfOpened(); + + if (pattern.isEmpty()) + { + return new ArrayList(); + } + ResultSet resultSet =3D null; try { --===============6901047604726006309==-- From do-not-reply at jboss.org Wed Jun 1 08:12:37 2011 Content-Type: multipart/mixed; boundary="===============3840983631077400209==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4470 - in jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules: faq and 10 other directories. Date: Wed, 01 Jun 2011 08:12:36 -0400 Message-ID: <201106011212.p51CCaL5012890@svn01.web.mwc.hst.phx2.redhat.com> --===============3840983631077400209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-01 08:12:35 -0400 (Wed, 01 Jun 2011) New Revision: 4470 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/conversationstate-when-membership-changed.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/db-configuration-hibernate.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/db-creator-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/db-schema-creator-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/ldap-configuration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/organization-service-initalizer.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/organization-service-listener.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/security-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/spring-security-integration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/core/tika-document-reader-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/faq/jcr-faq.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr-with-gtn/how-to-extend-my-gatein-instance.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr-with-gtn/managed-datasources-under-jboss-as.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/backup/backup-client.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/backup/exojcr-backup-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/cluster-config.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/jcr-extensions.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/jcr-namespace-altering.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/jcr-registry-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/jcr-usage.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/nodetype-registration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/concepts/nodetypes-and-namespaces.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/configuration-persister.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/exo-jcr-configuration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/external-value-storages.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/jdbc-data-container-config.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/multilanguage-support.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/rest-services-on-groovy.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/search-configuration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/workspace-persistence-storage.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/data-container-howto.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/data-container.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/jbosscache-configuration-templates.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/jbossts-transaction-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/lock-manager-config.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/other/acl-ext.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/other/acl.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/other/binary-values-processing.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/other/link-producer.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/performance-tuning-guide.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/protocols/ftp.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/protocols/webdav.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/query-handler-config.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/repository-creation-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/aggregation-rule.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/and-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/child-node-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/date-property-comparison.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/escaping-like-statements.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/exact-path-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-all-descendant-nodes.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-all-nodes.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-nodes-by-mixin-type.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-nodes-by-primary-type.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-nodes-case-insensitive.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/find-similar-nodes.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/fulltext-search-and-settings.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/fulltext-search-by-all-properties.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/fulltext-search-by-property.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/higlight.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/ignore-accent-symbols.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/index-boost-value.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/jcr-query-usecases.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/like-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/multivalue-property-comparison.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/node-name-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/node-scope-index.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/not-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/offset-and-limit.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/or-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/order-by-descendant.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/order-by-property.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/order-by-score.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/property-comparison.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/property-existance-constraint.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/regexp-indexing-rule.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/searching-repository-content.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/spell-checker.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/synonim-provider.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/searching/tip-nodename-with-number.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/statistics.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/transaction-manager-lookup.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/cache.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/component-plugin-priority.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/container-configuration.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/initialcontext-binder-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/inversion-of-control.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/jndi-naming.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/job-scheduler-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/listener-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/logging.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/manageability.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/rpc-service.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/service-configuration-for-beginners.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/service-configuration-in-detail.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/services-wiring.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/kernel/understanding-listnerservice.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/ws/framework-for-cross-domain-ajax.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/ws/groovy-scripts-as-rest-services.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/ws/overwrite-default-providers.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/ws/restservicelist-service.xml Log: EXOJCR-1297: corrected tags to be displayed in proper way in html format Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/conversationstate-when-membership-changed.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/conversationstate-when-membership-changed.xml 2011-06-01 07:5= 6:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/conversationstate-when-membership-changed.xml 2011-06-01 12:1= 2:35 UTC (rev 4470) @@ -16,7 +16,7 @@ = Example of configuration. = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding=3D"IS= O-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd h= ttp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/db-configuration-hibernate.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-configuration-hibernate.xml 2011-06-01 07:56:47 UTC (rev 4= 469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-configuration-hibernate.xml 2011-06-01 12:12:35 UTC (rev 4= 470) @@ -16,7 +16,7 @@ The default DB configuration uses HSQLDB, a Java Database quite useful for demonstrations. = - <component> = + <component> = <key>org.exoplatform.services.database.HibernateService</key&g= t; <jmx-name>exo-service:type=3DHibernateService</jmx-name> <type>org.exoplatform.services.database.impl.HibernateServiceImpl= </type> @@ -57,7 +57,7 @@ = For MySQL = - <component> = + <component> = <key>org.exoplatform.services.database.HibernateService</key&g= t; <jmx-name>database:type=3DHibernateService</jmx-name> <type>org.exoplatform.services.database.impl.HibernateServiceImpl= </type> @@ -92,7 +92,7 @@ so, you just have to add a plugin and indicate the location of your files. = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding=3D"= ISO-8859-1"?> <configuration> <external-component-plugins> <target-component>org.exoplatform.services.database.HibernateSer= vice</target-component> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/db-creator-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-creator-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-creator-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -41,7 +41,7 @@ new database's connection) or throws DBCreatorException exception if any errors occurs in other case. = - public DBConnectionInfo createDatabase(String dbName) = throws DBCreatorException; + public DBConnectionInfo createDataba= se(String dbName) throws DBCreatorException; = For MSSQL and Sybase servers, use autocommit mode to set true for @@ -49,7 +49,7 @@ created database not available for "use" command and therefore you can= 't create new user inside database per one script. = - public DBConnectionInfo getDBConnectionInfo(String dbN= ame) throws DBCreatorException; + public DBConnectionInfo getDBConnect= ionInfo(String dbName) throws DBCreatorException; = Return database connection information without database @@ -61,7 +61,7 @@ = Service's configuration. = - <component> + <component> <key>org.exoplatform.services.database.creator.DBCreator</k= ey> <type>org.exoplatform.services.database.creator.DBCreator</= type> <init-params> @@ -95,13 +95,15 @@ db-connection may contain additonal properties. = For example, next additional proprites allows reconnect to MySQL - database when connection was refused: <prop= erties-param> + database when connection was refused: + = + <properties-param> <name>db-connection</name> ... <property name=3D"validationQuery" value=3D"select 1"/> <property name=3D"testOnReturn" value=3D"true"/> ... - </properties-param> + </properties-param> = db-creation properties section contains paramaters for database creation using DDL script: @@ -128,35 +130,35 @@ = MySQL: = - <property name=3D"driverClassName" value=3D"com.mys= ql.jdbc.Driver" /> + <property name=3D"driverClassName"= value=3D"com.mysql.jdbc.Driver" /> <property name=3D"url" value=3D"jdbc:mysql://localhost/" /> <property name=3D"username" value=3D"root" /> <property name=3D"password" value=3D"admin" /> = PostgreSQL: = - <property name=3D"driverClassName" value=3D"org.pos= tgresql.Driver" /> + <property name=3D"driverClassName"= value=3D"org.postgresql.Driver" /> <property name=3D"url" value=3D"jdbc:postgresql://localhost/" /> <property name=3D"username" value=3D"root" /> <property name=3D"password" value=3D"admin" /> = MSSQL: = - <property name=3D"driverClassName" value=3D"com.mic= rosoft.sqlserver.jdbc.SQLServerDriver"/> + <property name=3D"driverClassName"= value=3D"com.microsoft.sqlserver.jdbc.SQLServerDriver"/> <property name=3D"url" value=3D"jdbc:sqlserver://localhost:1433;"/> <property name=3D"username" value=3D"root"/> <property name=3D"password" value=3D"admin"/> = Sybase: = - <property name=3D"driverClassName" value=3D"com.syb= ase.jdbc3.jdbc.SybDriver" /> + <property name=3D"driverClassName"= value=3D"com.sybase.jdbc3.jdbc.SybDriver" /> <property name=3D"url" value=3D"jdbc:sybase:Tds:localhost:5000/"/> <property name=3D"username" value=3D"root"/> <property name=3D"password" value=3D"admin"/> = Oracle: = - <property name=3D"driverClassName" value=3D"oracle.= jdbc.OracleDriver" /> + <property name=3D"driverClassName"= value=3D"oracle.jdbc.OracleDriver" /> <property name=3D"url" value=3D"jdbc:oracle:thin:@db2.exoua-int:1521:or= clvm" /> <property name=3D"username" value=3D"root" /> <property name=3D"password" value=3D"admin" /> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/db-schema-creator-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-schema-creator-service.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/db-schema-creator-service.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -10,7 +10,7 @@ DDL script inside service configuration or in an external file, calling: = - org.exoplatform.services.database.jdbc.DBSchemaCreator= .createTables(String dsName, String script) + org.exoplatform.services.database.jd= bc.DBSchemaCreator.createTables(String dsName, String script) = via = @@ -18,7 +18,7 @@ = A configuration example: = - <component> + <component> <key>org.exoplatform.services.database.jdbc.DBSchemaCreator</k= ey> <type>org.exoplatform.services.database.jdbc.DBSchemaCreator</= type> <component-plugins> = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/ldap-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/ldap-configuration.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/ldap-configuration.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -34,11 +34,11 @@ = - <import>war:/conf/organization/hibernate-configu= ration.xml</import> + <import>war:/conf/organization/= hibernate-configuration.xml</import> = With = - <import>war:/conf/organization/ldap-configuratio= n.xml</import> + <import>war:/conf/organization/= ldap-configuration.xml</import> = @@ -49,7 +49,7 @@ = - <field name=3D"providerURL"><string>ldap:/= /127.0.0.1:389</string></field> + <field name=3D"providerURL"><= ;string>ldap://127.0.0.1:389</string></field> <field name=3D"rootdn"><string>CN=3DManager,DC=3DMyCompany,DC= =3Dcom</string></field> <field name=3D"password"><string>secret</string></fie= ld> = @@ -96,7 +96,7 @@ parameters. This configuration is activated by the init-param ldap.config of service LDAPServiceImpl. = - <component> + <component> <key>org.exoplatform.services.ldap.LDAPService</key> <type>org.exoplatform.services.ldap.impl.LDAPServiceImpl</type&= gt; <init-params> @@ -177,7 +177,7 @@ ldap-configuration.xml (by default located at portal.war/WEB-INF/conf/organization) = - <component> + <component> <key>org.exoplatform.services.organization.OrganizationService<= /key> <type>org.exoplatform.services.organization.ldap.OrganizationServi= ceImpl</type> [...] @@ -201,7 +201,7 @@ ldap to eXo. At first there are two main parameters to configure in it: = - <field name=3D"baseURL"><string>dc=3Dexo= platform,dc=3Dorg</string></field> + <field name=3D"baseURL"><s= tring>dc=3Dexoplatform,dc=3Dorg</string></field> <field name=3D"ldapDescriptionAttr"><string>description</st= ring></field> = @@ -234,7 +234,7 @@ Here are the main parameters to map eXo users to your directory : = - <field name=3D"userURL"><string>ou= =3Dusers,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string></field> + <field name=3D"userURL">&= lt;string>ou=3Dusers,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string>= ;</field> <field name=3D"userObjectClassFilter"><string>objectClass=3Dpe= rson</string></field> <field name=3D"userLDAPClasses"><string>top,person,organizatio= nalPerson,inetOrgPerson</string></field> = @@ -310,7 +310,7 @@ The following parameters maps ldap attributes to eXo User = java objects attributes. = - <field name=3D"userUsernameAttr"><strin= g>uid</string></field> + <field name=3D"userUsernameA= ttr"><string>uid</string></field> <field name=3D"userPassword"><string>userPassword</string&g= t;</field> <field name=3D"userFirstNameAttr"><string>givenName</string= ></field> <field name=3D"userLastNameAttr"><string>sn</string><= /field> = @@ -368,7 +368,7 @@ eXo groups can be mapped to organizational or applicative gr= oups defined in your directory. = - <field name=3D"groupsURL"><string>ou= =3Dgroups,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string></field> + <field name=3D"groupsURL">&= lt;string>ou=3Dgroups,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string&g= t;</field> <field name=3D"groupLDAPClasses"><string>top,organizationalUni= t</string></field> <field name=3D"groupObjectClassFilter"><string>objectClass=3Do= rganizationalUnit</string></field> = @@ -449,7 +449,7 @@ Membership types are the possible roles that can be assigned= to users in groups. = - <field name=3D"membershipTypeURL"><string= >ou=3Dmemberships,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string>&l= t;/field> = + <field name=3D"membershipTypeU= RL"><string>ou=3Dmemberships,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg= </string></field> = <field name=3D"membershipTypeLDAPClasses"><string>top,organiza= tionalRole</string></field> <field name=3D"membershipTypeNameAttr"><string>cn</string&g= t;</field> = @@ -522,7 +522,7 @@ entry. = Example: To designate tom as the manager of the group - human-resources : + human-resources: = ou=3Dhuman-resources,ou=3Dgroups,ou=3Dportal,dc=3D= exoplatform,dc=3Dorg =E2=80=A6 @@ -530,9 +530,9 @@ member: uid=3Dtom,ou=3Dusers,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg =E2=80=A6 = - The parameters to configure memberships are : + The parameters to configure memberships are: = - <field name=3D"membershipLDAPClasses"><st= ring>top,groupOfNames</string></field> + <field name=3D"membershipLDAPC= lasses"><string>top,groupOfNames</string></field> <field name=3D"membershipTypeMemberValue"><string>member</s= tring></field> = <field name=3D"membershipTypeRoleNameAttr"><string>cn</stri= ng></field> <field name=3D"membershipTypeObjectClassFilter"><string>object= Class=3DorganizationalRole</string></field> @@ -611,7 +611,7 @@ (&amp;(objectClass=3DExoMembership)(membership= URL=3D*)) = = - Note : Pay attention to the xml escaping of the '&' (and) + Note: Pay attention to the xml escaping of the '&' (and) operator = @@ -620,9 +620,9 @@ = eXo User profiles also have entries in the ldap but the actu= al storage is still done with the hibernate service. You will need the - following parameters : + following parameters: = - <field name=3D"profileURL"><string>ou= =3Dprofiles,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</string></field&= gt; + <field name=3D"profileURL">= <string>ou=3Dprofiles,ou=3Dportal,dc=3Dexoplatform,dc=3Dorg</strin= g></field> <field name=3D"profileLDAPClasses"><string>top,organizationalP= erson</string></field> = @@ -734,7 +734,7 @@ = JAVA_OPTS=3D"${JAVA_OPTS} -Djavax.net.ssl.trustStorePassword=3Dchang= eit -Djavax.net.ssl.trustStore=3D/home/user/java/jdk1.6/jre/lib/security/ca= certs" = - [...] + [...] <component> <key>org.exoplatform.services.ldap.LDAPService</key> [..] Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/organization-service-initalizer.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/organization-service-initalizer.xml 2011-06-01 07:56:47 UTC (= rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/organization-service-initalizer.xml 2011-06-01 12:12:35 UTC (= rev 4470) @@ -9,7 +9,7 @@ Use the Organization Service Initializer to create users, groups a= nd membership types by default. = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.organization.Organiza= tionService</target-component> <component-plugin> <name>init.service.listener</name> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/organization-service-listener.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/organization-service-listener.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/organization-service-listener.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -60,7 +60,7 @@ <>org.exoplatform.services.organization.UserEventListener</= > : = - public class MyUserListener extends UserEventListene= r { + public class MyUserListener extend= s UserEventListener { = public void preSave(User user, boolean isNew) throws Exception { System.out.println("Before " + (isNew?"creating":"updating") + " user = " + user.getUserName()); @@ -88,7 +88,7 @@ <>org.exoplatform.services.organization.GroupEventListener<= /> : = - public class MyGroupListener extends GroupEventListe= ner { + public class MyGroupListener exten= ds GroupEventListener { = public void preSave(Group group, boolean isNew) throws Exception { System.out.println("Before " + (isNew?"creating":"updating") + " group= " + group.getName()); @@ -115,7 +115,7 @@ <>org.exoplatform.services.organization.MembershipEventListene= r</> : = - public class MyMembershipListener extends Membership= EventListener { + public class MyMembershipListener = extends MembershipEventListener { = public void preSave(Membership membership, boolean isNew) throws Excepti= on { System.out.println("Before " + (isNew?"creating":"updating") + " membe= rship."); @@ -151,7 +151,7 @@ a .jar and create a configuration file into it under mylisteners.jar!/conf/portal/configuration.xml = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding=3D"= ISO-8859-1"?> <configuration> <external-component-plugins> <target-component>org.exoplatform.services.organization.Organizati= onService</target-component> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/security-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/security-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/security-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -63,7 +63,7 @@ possible to represent it as a context (current user's state). = - ConversationState.setCurrent(conversationState); + ConversationState.setCurrent(conve= rsationState); .... ConversationState.getCurrent(); = @@ -74,7 +74,7 @@ key-value pairs, the session key is an arbitrary String (user name, ticket id, httpSessionId etc). = - conversationRegistry.register("key", conversationSta= te); = + conversationRegistry.register("key= ", conversationState); = ... conversationRegistry.getState("key"); = @@ -82,7 +82,7 @@ ConversationRegistry is a mandatory component deployed into eXo Container as following: = - <component> + <component> <type>org.exoplatform.services.security.ConversationRegistry<= /type> </component> @@ -105,7 +105,7 @@ = - public interface Authenticator { + public interface Authenticator { /** * Authenticate user and return userId which can be different to usernam= e. = * @param credentials - list of users credentials (such as name/password= , X509 certificate etc) @@ -142,7 +142,7 @@ which compares incoming username/password credentials with the ones stored in OrganizationService. Configuration example: = - <component> + <component> <key>org.exoplatform.services.security.Authenticator</key> = <type>org.exoplatform.services.organization.auth.OrganizationAuthe= nticatorImpl</type> </component> @@ -169,7 +169,7 @@ = - Authenticator authenticator =3D (Authenticator) cont= ainer() + Authenticator authenticator =3D (A= uthenticator) container() .getComponentInstanceOfType(Authenticator.class); = // RolesExtractor can be null = RolesExtractor rolesExtractor =3D (RolesExtractor) container(). @@ -195,7 +195,7 @@ registered more than one time. Parameter can be passed in this form singleLogin=3Dyes or singleLogin=3Dtrue. = - IdentityRegistry identityRegistry =3D (IdentityRegis= try) getContainer().getComponentInstanceOfType(IdentityRegistry.class); + IdentityRegistry identityRegistry = =3D (IdentityRegistry) getContainer().getComponentInstanceOfType(IdentityRe= gistry.class); = if (singleLogin && identityRegistry.getIdentity(identity.getUserId= ()) !=3D null) = throw new LoginException("User " + identity.getUserId() + " already logi= ned."); @@ -227,7 +227,7 @@ ConversationRegistry.unregister(sesionId) and calls the method LoginModule.logout(). = - ConversationRegistry conversationRegistry =3D (Conve= rsationRegistry) getContainer().getComponentInstanceOfType(ConversationRegi= stry.class); + ConversationRegistry conversationR= egistry =3D (ConversationRegistry) getContainer().getComponentInstanceOfTyp= e(ConversationRegistry.class); = ConversationState conversationState =3D conversationRegistry.unregister(se= sionId); = @@ -296,7 +296,7 @@ responsible for mapping primary Subject's principals (userId and a s= et of groups) to J2EE Roles: = - public interface RolesExtractor { + public interface RolesExtractor { Set <String> extractRoles(String userId, Set<MembershipEntry>= ; memberships); } = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/spring-security-integration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/spring-security-integration.xml 2011-06-01 07:56:47 UTC (rev = 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/spring-security-integration.xml 2011-06-01 12:12:35 UTC (rev = 4470) @@ -75,7 +75,7 @@ authentication mechanism in exo. Edit 02portal.war web.xml file and comment out the JAAS configuration related lines: = - ... + ... <session-config> <session-timeout>15</session-timeout> </session-config> @@ -119,7 +119,7 @@ To enable spring and set the spring security filter, add the following lines: = - ... + ... <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/security-context.xml</param-value> @@ -139,7 +139,7 @@ just after the filter responsible of exo container initialization. = - ... + ... <filter-mapping> <filter-name>PortalContainerInitializedFilter</filter-name&= gt; <url-pattern>/*</url-pattern> @@ -164,7 +164,7 @@ purposes. Create a file named security-context.xml in 02portal.war WEB-INF directory containing the following lines: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <beans:beans xmlns=3D"http://www.springframework.org/schema/security" xmlns:beans=3D"http://www.springframework.org/schema/beans" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" @@ -260,7 +260,7 @@ the login action triggered when the user clicks the login form submit button. = - package org.exoplatform.loginportlet; + package org.exoplatform.loginportl= et; = import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; @@ -330,7 +330,7 @@ url. Edit the article, go to the default.js tab and apply the follow= ing changes to the code: = - function validateUser() { + function validateUser() { = var user =3D eXo.env.portal.userName; var rootObj =3D document.getElementById("classic-access"); @@ -437,7 +437,7 @@ ApplicationListener interface and listens to the InteractiveAuthenticationSuccessEvent event. = - package org.exoplatform.spring.security.web; + package org.exoplatform.spring.secur= ity.web; = ... = @@ -511,7 +511,7 @@ Registering our bean is done the usual way in security-context.x= ml file: = - ... + ... <beans:bean id=3D"myEventHandler" class=3D"org.exoplatform.spring.secur= ity.web.SpringSecurityEventHandler" /> ... @@ -539,7 +539,7 @@ We will use the spring security extensible filter chain to plu= g in our filter. = - package org.exoplatform.spring.security.web; + package org.exoplatform.spring.sec= urity.web; = ... = @@ -575,7 +575,7 @@ The following lines in the security-context file register our custom filter in the chain at the last position. = - ... + ... <beans:bean id=3D"myCustomFilter" class=3D"org.exoplatform.spring.se= curity.web.PortalSideSecurityContextFilter"> <custom-filter after=3D"LAST" /> </beans:bean> @@ -588,7 +588,7 @@ In the portlet webapp we create a regular filter named PortletSideSecurityContextFilter. = - package org.exoplatform.spring.security.web; + package org.exoplatform.spring.sec= urity.web; = ... = @@ -643,7 +643,7 @@ To register your filter simply add the following lines to your portlet webapp web.xml file. = - ... + ... <filter> <filter-name>portletSideSecurityContextFilter</filter-name&= gt; <filter-class>org.exoplatform.spring.security.web.PortletSideS= ecurityContextFilter</filter-class> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/core/tika-document-reader-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/tika-document-reader-service.xml 2011-06-01 07:56:47 UTC (rev= 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/core/tika-document-reader-service.xml 2011-06-01 12:12:35 UTC (rev= 4470) @@ -41,7 +41,8 @@ Configuration = How TikaDocumentReaderService Impl configuration looks - like:<component> + like: + <component> <key>org.exoplatform.services.document.DocumentReaderService&l= t;/key> <type>org.exoplatform.services.document.impl.tika.TikaDocument= ReaderServiceImpl</type> = @@ -147,9 +148,10 @@ </init-params> = </component> -</configuration> +</configuration> = - tika-config.xml example:<properties> + tika-config.xml example: + <properties> = <mimeTypeRepository magic=3D"false"/> <parsers> @@ -291,7 +293,7 @@ = </parsers> = -</properties> +</properties> =
@@ -318,42 +320,57 @@ You can make you own DocumentReader in two ways. = Old-Style Document - Reader: - - extend BaseDocumentReader public class M= yDocumentReader extends BaseDocumentReader + Reader: + + + extend BaseDocumentReader + = + = + public class MyDocumentReader extends = BaseDocumentReader { public String[] getMimeTypes() { return new String[]{"mymimetype"}; } ... -} +} + = + + + register it as component-plugin - - - register it as component-plugin<compo= nent-plugin> + + <component-plugin> <name>my.DocumentReader</name> <set-method>addDocumentReader</set-method> <type>com.mycompany.document.MyDocumentReader</type> <description>to read my own file format</description> -</component-plugin> - - +</component-plugin> + = + = = - Tika Parser: - - implement Parserpublic class MyParser im= plements Parser + Tika Parser: + + + implement Parser + + + public class MyParser implements P= arser { ... -} +} + = + + + register it in tika-config.xml - - - register it in tika-config.xml <parse= r name=3D"parse-mydocument" class=3D"com.mycompany.document.MyParser"> + + <parser name=3D"parse-mydocument" cla= ss=3D"com.mycompany.document.MyParser"> <mime>mymimetype</mime> - </parser> - - + </parser> + + = + =
= Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/faq/jcr-faq.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/faq/jcr-faq.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/faq/jcr-faq.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -15,7 +15,7 @@ What is the best, standardized way to get the instance of a service ? = - container.getComponentInstanceOfType(ServiceName.cla= ss); + container.getComponentInstanceOfTy= pe(ServiceName.class); = @@ -209,7 +209,7 @@ 'check-sns-new-connection' with 'false' value is required for each workspace data container: = - <container class=3D"org.exoplatform.services.jc= r.impl.storage.jdbc.optimisation.CQJDBCWorkspaceDataContainer"> + <container class=3D"org.exopla= tform.services.jcr.impl.storage.jdbc.optimisation.CQJDBCWorkspaceDataContai= ner"> <properties> <property name=3D"source-name" value=3D"jdbcjcr" /> <property name=3D"dialect" value=3D"auto" /> @@ -226,7 +226,7 @@ How to open and close a session properly to avoid memory leaks? = - Session session =3D repository.login(credentials); + Session session =3D repository.l= ogin(credentials); try { // here your code @@ -274,7 +274,7 @@ Transaction Service and JBossCache Transaction Manager, as shown below. = - <component> + <component> <key>org.jboss.cache.transaction.TransactionManagerLookup</key= > <type>org.jboss.cache.GenericTransactionManagerLookup</type> </component> @@ -303,7 +303,7 @@ <cache> configuration should look like this: = - <cache enabled=3D"true" + <cache enabled=3D"true" class=3D"org.exoplatform.services.jcr.impl.dataflow.persistent.jbossc= ache.JBossCacheWorkspaceStorageCache"> <properties> <property name=3D"jbosscache-configuration" value=3D"test-jboss= cache-data.xml" /> @@ -349,13 +349,13 @@ You must replace or add in <query-handler> blo= ck the "changesfilter-class" parameter equals with: = - <property name=3D"changesfilter-class" = value=3D"org.exoplatform.services.jcr.impl.core.query.jbosscache.JBossCache= IndexChangesFilter"/> + <property name=3D"chan= gesfilter-class" value=3D"org.exoplatform.services.jcr.impl.core.query.jbos= scache.JBossCacheIndexChangesFilter"/> = add JBossCache-oriented configuration: = - <property name=3D"jbosscache-configurat= ion" value=3D"test-jbosscache-indexer.xml" /> + <property name=3D"jbos= scache-configuration" value=3D"test-jbosscache-indexer.xml" /> <property name=3D"jgroups-configuration" value=3D"udp-mux.xml" /> <property name=3D"jgroups-multiplexer-stack" value=3D"true" /> <property name=3D"jbosscache-cluster-name" value=3D"JCR-cluster-indexer= -db1-ws" /> @@ -379,7 +379,7 @@ have to define access to DB where locks will be stored. Replace exsiting lock-manager configuration with shown below. = - + <lock-manager class=3D"org.exoplatform.services.jcr.impl.core.lock.jbos= scache.CacheableLockManagerImpl"> <properties> <property name=3D"time-out" value=3D"15m" /> @@ -476,7 +476,7 @@ Enable lucene spellchecker in jcr QueryHandler configuration: = - <query-handler class=3D"org.exoplatform.ser= vices.jcr.impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"or= g.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"spellchecker-class" value=3D"org.exoplatform.se= rvices.jcr.impl.core.query.lucene.spell.LuceneSpellChecker$FiveSecondsRefre= shInterval" /> @@ -491,7 +491,7 @@ Execute query with rep:spellcheck function and word that= is checked: = - Query query =3D qm.createQuery("select rep:spe= llcheck() from nt:base where " + "jcr:path =3D '/' and spellcheck('word tha= t is checked')", Query.SQL); + Query query =3D qm.createQue= ry("select rep:spellcheck() from nt:base where " + "jcr:path =3D '/' and sp= ellcheck('word that is checked')", Query.SQL); RowIterator rows =3D query.execute().getRows(); @@ -500,7 +500,7 @@ Fetch a result: = - Row r =3D rows.nextRow(); + Row r =3D rows.nextRow(); Value v =3D r.getValue("rep:spellcheck()"); @@ -525,7 +525,7 @@ Search for more popular suggestions; = - <query-handler class=3D"org.exoplatform.ser= vices.jcr.impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"or= g.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"spellchecker-class" value=3D"org.exoplatform.se= rvices.jcr.impl.core.query.lucene.spell.LuceneSpellChecker$FiveSecondsRefre= shInterval" /> @@ -574,39 +574,39 @@ = - Remove existing repository, use : + Remove existing repository, use: = - RepositoryService.removeRepository(String repo= sitoryName) + RepositoryService.removeRepo= sitory(String repositoryName) = Restore repository, use = - BackupManager.restore(RepositoryBackupChainLog= log, RepositoryEntry repositoryEntry, boolean asynchronous) + BackupManager.restore(Reposi= toryBackupChainLog log, RepositoryEntry repositoryEntry, boolean asynchrono= us) =
- How to restore workspace to existing worksapce ? + How to restore workspace to existing worksapce? = - Remove existing workspace, use : + Remove existing workspace, use: = - ManageableRepository.removeWorkspace(String wo= rkspaceName) + ManageableRepository.removeW= orkspace(String workspaceName) = - Restore workspace, use : + Restore workspace, use: = - BackupManager.restore(BackupChainLog log, Stri= ng repositoryName, WorkspaceEntry workspaceEntry, boolean asynchronous) + BackupManager.restore(Backup= ChainLog log, String repositoryName, WorkspaceEntry workspaceEntry, boolean= asynchronous)
=
- Does JCR support hot backup ? + Does JCR support hot backup? = Yes, JCR is support hot backup. Will use org.exoplatform.services.jcr.ext.backup.BackupManager. @@ -641,7 +641,7 @@ files for 5 minutes (300 sec.) and other text/\* files for 10 minu= tes (600 sec.), use the next configuration: = - <component> + <component> <type>org.exoplatform.services.jcr.webdav.WebDavServiceImpl</t= ype> <init-params> <value-param> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/backup/backup-client.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/backup/backup-client.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/backup/backup-client.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -117,7 +117,7 @@ org.exoplatform.services.jcr.ext.backup.server.bean.BackupConfigBe= an : = - {"incrementalRepetitionNumber":<Integer>,"in= crementalBackupJobConfig":<JSON to BackupJobConfig>, + {"incrementalRepetitionNum= ber":<Integer>,"incrementalBackupJobConfig":<JSON to BackupJobConf= ig>, "backupType":<Integer>,"fullBackupJobConfig":<JSON to BackupJobCo= nfig>, "incrementalJobPeriod":<Long>,"backupDir":"<String>"} = @@ -147,7 +147,7 @@ org.exoplatform.services.jcr.ext.backup.server.bean.response.Pair : = - {"name":"<String>","value":"<String>"}= + {"name":"<String>","value"= :"<String>"} = Where: = @@ -915,7 +915,7 @@ org.exoplatform.services.jcr.ext.backup.BackupManager to services configuration : = - <component> + <component> <type>org.exoplatform.services.jcr.ext.backup.server.HTTPBackupAge= nt</type> </component> = @@ -942,7 +942,7 @@ RepositoryServiceConfiguration in order to save the changes of the repository configuration. For example = - <component> + <component> <key>org.exoplatform.services.jcr.config.RepositoryServiceConfigur= ation</key> <type>org.exoplatform.services.jcr.impl.config.RepositoryServiceCo= nfigurationImpl</type> <init-params> @@ -1563,7 +1563,10 @@ status code =3D 200The /home/rainf0x/java/exo-working/JCR-839/exo-jcr-config_backup.xml content the configuration for restored workspace "backup" :<repositor= y-service default-repository=3D"repository"> + role=3D"bold">"backup": + + = + <repository-service default-= repository=3D"repository"> <repositories> <repository name=3D"repository" system-workspace=3D"production" def= ault-workspace=3D"production"> <security-domain>exo-domain</security-domain> @@ -1612,9 +1615,8 @@ </workspaces> </repository> </repositories> -</repository-service> - - +</repository-service> +
=
@@ -1647,9 +1649,11 @@ = This usecase needs RestRepositoryService enabled. (Deleting the - repository needs it)<component> + repository needs it) + = + <component> <type>org.exoplatform.services.jcr.ext.repository.RestRepositoryS= ervice</type> -</component> +</component> =
Creating backup @@ -1709,7 +1713,7 @@ Delete/clean the database for workspace "repository" : When we use "single-db",= then + role=3D"bold">"repository": When we use "single-db", = then we will run the SQL queries for clean database := drop table JCR_SREF; drop table JCR_SVALUE; drop table JCR_SITEM; @@ -1731,7 +1735,11 @@ status code =3D 200The /home/rainf0x/exo-jcr-config_backup.xml content the configuration for restored repository "repository" :<repos= itory-service default-repository=3D"repository"> + role=3D"bold">"repository": + + + = + <repository-service default-= repository=3D"repository"> <repositories> <repository name=3D"repository" system-workspace=3D"production" d= efault-workspace=3D"production"> <security-domain>exo-domain</security-domain> @@ -1864,9 +1872,8 @@ </repository> </repositories> </repository-service> - - - + + =
=
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/backup/exojcr-backup-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/backup/exojcr-backup-service.xml 2011-06-01 07:56:47 UTC (rev = 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/backup/exojcr-backup-service.xml 2011-06-01 12:12:35 UTC (rev = 4470) @@ -202,9 +202,9 @@ configuration. = The following is an example configuration compatible with JCR 1.= 9.3 - and later : + and later: = - <component> + <component> <key>org.exoplatform.services.jcr.ext.backup.BackupManager</key= > <type>org.exoplatform.services.jcr.ext.backup.impl.BackupManagerIm= pl</type> <init-params> @@ -255,7 +255,7 @@ Full + Incrementals mode, then we ask the BackupManager to start the backup process. = - // Obtaining the backup service from the eXo contain= er. + // Obtaining the backup service fr= om the eXo container. BackupManager backup =3D (BackupManager) container.getComponentInstanceOfT= ype(BackupManager.class); = // And prepare the BackupConfig instance with custom parameters. = @@ -278,7 +278,7 @@ To stop the backup operation, you have to use the BackupChain instance. = - // stop backup + // stop backup backup.stopBackup(chain);
= @@ -290,7 +290,7 @@ following snippet shows the typical sequence for restoring a workspa= ce : = - // find BackupChain using the repository and workspa= ce names (return null if not found) + // find BackupChain using the repo= sitory and workspace names (return null if not found) BackupChain chain =3D backup.findBackup("db1", "ws1"); = // Get the RepositoryEntry and WorkspaceEntry @@ -318,13 +318,16 @@ = To restore a backup over an existing workspace, you are requ= ired - to clear its data. Your backup process should follow these steps : - + to clear its data. Your backup process should follow these steps:<= /para> + - Remove workspaceManageableRepository r= epo =3D repositoryService.getRepository(repository); -repo.removeWorkspace(workspace); + Remove workspace - + + ManageableRepository repo =3D re= positoryService.getRepository(repository); +repo.removeWorkspace(workspace); + = + Clean database, value storage, index @@ -332,7 +335,7 @@ Restore (see snippet above) - +
=
@@ -346,7 +349,7 @@ Restoring the JCR System workspace requires to shutdown the system and use of a special initializer. = - Follow these steps (this will also work for normal workspace= s) : + Follow these steps (this will also work for normal workspace= s): Stop repository (or portal) @@ -359,8 +362,10 @@ In configuration, the workspace set BackupWorkspaceInitializer to refer to your backup. - - For example :<workspaces> + = + + For example: + <workspaces> <workspace name=3D"production" ... > <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> ... @@ -371,13 +376,14 @@ </properties> </initializer> ... -</workspace> - - +</workspace> + + = + = Start repository (or portal). - +
= @@ -399,7 +405,7 @@ Restoring the repository or workspace requires to shutdown the repository. = - Follow these steps : + Follow these steps: Stop repository (will be skipped this step if repository= or workace is not exists) @@ -425,7 +431,7 @@ Example of configuration initializer to restore workspace "bac= kup" over BackupWorkspaceInitializer: = - <workspaces> + <workspaces> <workspace name=3D"backup" ... > <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> ... @@ -442,7 +448,8 @@ Restore the Workspace over BackupWorksaceInitializer = Example of configuration initializer to resore the workspace - "backup" over BackupWorkspaceInitializer : + "backup" over BackupWorkspaceInitializer: + Stop repository (will be skipped this step if workspac= e is not exists) @@ -452,11 +459,13 @@ Clean database, value storage, index; (will be skipped this step if workspace is new) - - + + = In configuration, the workspace/-s set BackupWorkspaceInitializer to refer to your - backup<workspaces> + backup. + = + <workspaces> <workspace name=3D"backup" ... > <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> ... @@ -467,20 +476,21 @@ </properties> </initializer> ... -</workspace> -
- - - Start repository - - +</workspace>
+ = + + Start repository + + = =
Restore the Repository over BackupWorksaceInitializer</titl= e> = <para>Example of configuration initializers to restore the reposit= ory - "repository" over BackupWorkspaceInitializer : <itemizedlist> + "repository" over BackupWorkspaceInitializer:</para> + = + <itemizedlist> <listitem> <para>Stop repository (will be skipped this step if reposito= ry is not exists)</para> @@ -490,12 +500,15 @@ <para>Clean database, value storage, index; (will be skipped this step if repository is new)</para> </listitem> - - <listitem> + </itemizedlist> + = <para>In configuration of repository will be configured initializers of workspace to refer to your backup.</para> + = = - <para>For example :<programlisting>... + <para>For example:</para> + = + <programlisting language=3D"xml">... <workspaces> <workspace name=3D"system" ... > <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer"> @@ -533,13 +546,14 @@ </initializer> ... </workspace> -</workspaces></programlisting></para> - </listitem> +</workspaces> +</programlisting> = + <itemizedlist> <listitem> <para>Start repository.</para> </listitem> - </itemizedlist></para> + </itemizedlist> </section> </section> </section> @@ -590,7 +604,7 @@ </listitem> </itemizedlist> = - <programlisting>// geting the scheduler from the BackupManager + <programlisting language=3D"java">// geting the scheduler from the Bac= kupManager BackupScheduler scheduler =3D backup.getScheduler(); = // schedule backup using a ready configuration (Full + Incrementals) to ru= n from startTime @@ -649,7 +663,7 @@ = <para>For restore will be used spacial methods:</para> = - <programlisting> /** + <programlisting language=3D"java"> /** * Restore existing workspace. Previous data will be deleted. * For getting status of workspace restore can use = * BackupManager.getLastRestore(String repositoryName, String workspace= Name) method = @@ -755,7 +769,7 @@ <para>The Backup manager allows you to restore a repository or a works= pace using the original configuration stored into the backup log:</para> = - <programlisting>/** + <programlisting language=3D"java">/** * Restore existing workspace. Previous data will be deleted. * For getting status of workspace restore can use = * BackupManager.getLastRestore(String repositoryName, String workspace= Name) method @@ -934,7 +948,7 @@ </listitem> </itemizedlist>Configuration:</para> = - <para><programlisting><component> + <programlisting language=3D"xml"><component> <key>org.exoplatform.services.jcr.ext.backup.BackupManager</key= > <type>org.exoplatform.services.jcr.ext.backup.impl.BackupManagerIm= pl</type> <init-params> @@ -947,6 +961,6 @@ </properties-param> </init-params> </component> -</programlisting></para> +</programlisting> </section> </chapter> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/cluster-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/cluster-config.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/cluster-config.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -22,7 +22,8 @@ <listitem> <para>Configure JAAS by inserting XML fragment shown below into <%jboss_home%/server/default/conf/login-config.xml></para> - <programlisting><application-policy name=3D"exo-domain&q= uot;> + = + <programlisting language=3D"xml"><application-policy name=3D&= quot;exo-domain"> <authentication> <login-module code=3D"org.exoplatform.services.security.j2ee= .JbossLoginModule" flag=3D"required"></login-module> </authentication> @@ -32,7 +33,8 @@ <para>Ensure that you use JBossTS <link linkend=3D"Kernel.Transa= ctionService">Transaction Service</link> and JBossCache <link linkend=3D"JCR.JBossTransactionsService">Transa= ction Manager</link>. Your exo-configuration.xml must contain such parts:</para> - <programlisting><component> + = + <programlisting language=3D"xml"><component> <key>org.jboss.cache.transaction.TransactionManagerLookup</key= > <type>org.jboss.cache.GenericTransactionManagerLookup</type>= ;^ </component> @@ -73,7 +75,8 @@ <para>To manually configure repository, create a new configurati= on file (e.g., exo-jcr-configuration.xml). For details, see <link l= inkend=3D"JCR.eXoJCRconfiguration">JCR Configuration</link>. Your configuration must look like:</para> - <programlisting><repository-service default-repository=3D&quo= t;repository1"> + = + <programlisting language=3D"xml"><repository-service default-= repository=3D"repository1"> <repositories> <repository name=3D"repository1" system-workspace=3D&qu= ot;ws1" default-workspace=3D"ws1"> <security-domain>exo-domain</security-domain> @@ -122,7 +125,9 @@ </listitem> <listitem> <para>Then, update RepositoryServiceConfiguration configuration= in - exo-configuration.xml to use this file:<programlisting><compo= nent> + exo-configuration.xml to use this file:</para> + = + <programlisting language=3D"xml"><component> <key>org.exoplatform.services.jcr.config.RepositoryServiceConfigu= ration</key> <type>org.exoplatform.services.jcr.impl.config.RepositoryServiceC= onfigurationImpl</type> <init-params> @@ -132,7 +137,7 @@ <value>exo-jcr-configuration.xml</value> </value-param> </init-params> -</component></programlisting></para> +</component></programlisting> </listitem> </itemizedlist> </section> @@ -167,7 +172,8 @@ <itemizedlist> <listitem id=3D"conf_value_storage"> <para>Value Storage configuration:</para> - <programlisting><value-storages> + = + <programlisting language=3D"xml"><value-storages> <value-storage id=3D"system" class=3D"org.exoplatform= .services.jcr.impl.storage.value.fs.TreeFileValueStorage"> <properties> <property name=3D"path" value=3D"/mnt/tornado/t= emp/values/production" /> <!--path within NFS where ValueStor= age will hold it's data--> @@ -180,7 +186,8 @@ </listitem> <listitem id=3D"conf_cache"> <para>Cache configuration:</para> - <programlisting><cache enabled=3D"true" class=3D&qu= ot;org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCa= cheWorkspaceStorageCache"> + = + <programlisting language=3D"xml"><cache enabled=3D"true&= quot; class=3D"org.exoplatform.services.jcr.impl.dataflow.persistent.j= bosscache.JBossCacheWorkspaceStorageCache"> <properties> <property name=3D"jbosscache-configuration" value=3D&qu= ot;jar:/conf/portal/test-jbosscache-data.xml" /> <!-- pat= h to JBoss Cache configuration for data storage --> <property name=3D"jgroups-configuration" value=3D"= jar:/conf/portal/udp-mux.xml" /> <!-- pat= h to JGroups configuration --> @@ -191,7 +198,8 @@ </listitem> <listitem id=3D"conf_indexer"> <para>Indexer configuration:</para> - <programlisting><query-handler class=3D"org.exoplatform.= services.jcr.impl.core.query.lucene.SearchIndex"> + = + <programlisting language=3D"xml"><query-handler class=3D"= ;org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> <property name=3D"changesfilter-class" value=3D"or= g.exoplatform.services.jcr.impl.core.query.jbosscache.JBossCacheIndexChange= sFilter" /> <property name=3D"index-dir" value=3D"/mnt/tornado= /temp/jcrlucenedb/production" /> <!-- p= ath within NFS where ValueStorage will hold it's data --> @@ -204,7 +212,8 @@ </listitem> <listitem id=3D"conf_lock_manager"> <para>Lock Manager configuration:</para> - <programlisting><lock-manager class=3D"org.exoplatform.s= ervices.jcr.impl.core.lock.jbosscache.CacheableLockManagerImpl"> + = + <programlisting language=3D"xml"><lock-manager class=3D"= org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager= Impl"> <properties> <property name=3D"time-out" value=3D"15m" /&g= t; <property name=3D"jbosscache-configuration" value=3D&qu= ot;jar:/conf/portal/test-jbosscache-lock.xml" /> <!-- p= ath to JBoss Cache configuration for lock manager --> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/jcr-extensions.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-extensions.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-extensions.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -121,7 +121,7 @@ addProperty, changeProperty, removeProperty, removeNode, addMixin, removeMixin, lock, unlock, checkin, checkout, read.</emphasis></para> = - <programlisting><component> + <programlisting language=3D"xml"><component> <type>org.exoplatform.services.jcr.impl.ext.action.SessionActionC= atalog</type> <component-plugins> <component-plugin> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/jcr-namespace-altering.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-namespace-altering.xml 2011-06-01 07:56:47 UTC (r= ev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-namespace-altering.xml 2011-06-01 12:12:35 UTC (r= ev 4470) @@ -5,18 +5,18 @@ <para>Since version 1.11, eXo JCR implementation supports namespaces alt= ering.</para> <section> <title>Adding new namespace - ExtendedNamespaceRegistry namespaceRegistry =3D (Exten= dedNamespaceRegistry) workspace.getNamespaceRegistry(); + ExtendedNamespaceRegistry namespaceR= egistry =3D (ExtendedNamespaceRegistry) workspace.getNamespaceRegistry(); namespaceRegistry.registerNamespace("newMapping", "http://d= umb.uri/jcr");
Changing existing namespace - ExtendedNamespaceRegistry namespaceRegistry =3D (Exten= dedNamespaceRegistry) workspace.getNamespaceRegistry(); + ExtendedNamespaceRegistry namespaceR= egistry =3D (ExtendedNamespaceRegistry) workspace.getNamespaceRegistry(); namespaceRegistry.registerNamespace("newMapping", "http://d= umb.uri/jcr"); namespaceRegistry.registerNamespace("newMapping2", "http://= dumb.uri/jcr");
Removing existing namespace - ExtendedNamespaceRegistry namespaceRegistry =3D (Exten= dedNamespaceRegistry) workspace.getNamespaceRegistry(); + ExtendedNamespaceRegistry namespaceR= egistry =3D (ExtendedNamespaceRegistry) workspace.getNamespaceRegistry(); namespaceRegistry.registerNamespace("newMapping", "http://d= umb.uri/jcr"); namespaceRegistry.unregisterNamespace("newMapping");
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/jcr-registry-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-registry-service.xml 2011-06-01 07:56:47 UTC (rev= 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-registry-service.xml 2011-06-01 12:12:35 UTC (rev= 4470) @@ -48,7 +48,7 @@ parameter to component to ignore reading parameters initialization from RegistryService and to use file instead: = - <value-param> + <value-param> <name>force-xml-configuration</name> <value>true</value> </value-param> @@ -61,7 +61,7 @@ straightforward, it is described in the Registry abstract class as the following: = - public abstract class Registry { + public abstract class Registry { = /** * Returns the Registry object which wraps the Node of the "exo:registry= " type @@ -107,7 +107,7 @@ = Example of RegistryService using: = - RegistryService regService =3D (RegistryService) c= ontainer + RegistryService regService =3D (= RegistryService) container .getComponentInstanceOfType(RegistryService.class); = RegistryEntry registryEntry =3D regService.getEntry(sessionProvider, @@ -128,7 +128,7 @@ a repository name and its value as a workspace name (a system workspac= e by default). = - <component> + <component> <type>org.exoplatform.services.jcr.ext.registry.RegistryService&l= t;/type> <init-params> <properties-param> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/jcr-usage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-usage.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/jcr-usage.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -12,35 +12,51 @@
Obtaining a Repository object = - A javax.jcr.Repository object can be obtained by: + A javax.jcr.Repository object can be obtained by: + Using the eXo Container "native" mechanism. All Reposito= ries are kept with a single RepositoryService component. So it can = be obtained from eXo Container, described as the - following: RepositoryService repositoryServic= e =3D (RepositoryService) container.getComponentInstanceOfType(RepositorySe= rvice.class); - Repository repository =3D repositoryService.getRepository("repositoryNam= e"); + following: - + + = + + RepositoryService repositoryService =3D (RepositoryService) co= ntainer.getComponentInstanceOfType(RepositoryService.class); + Repository repository =3D repositoryService.getRepository("repositoryNam= e"); = + + = + = Using the eXo Container "native" mechanism with a thread local saved "current" repository (especially if you plan to us= e a single repository which covers more than 90% of use - cases) // set current repository at initial t= ime + cases) + + = + = + // set current repository = at initial time RepositoryService repositoryService =3D (RepositoryService) container.ge= tComponentInstanceOfType(RepositoryService.class); repositoryService.setCurrentRepositoryName("repositoryName"); .... // retrieve and use this repository - Repository repository =3D repositoryService.getCurrentRepository(); - - + Repository repository =3D repositoryService.getCurrentRepository(); + + = + Using JNDI as specified in JSR-170. This way you have to configure the reference (see eXo JNDI Naming configuration - ) Context ctx =3D new InitialContext(); - Repository repository =3D(Repository) ctx.lookup("repositoryName"); + ) - + = + = + Context ctx =3D new Initia= lContext(); + Repository repository =3D(Repository) ctx.lookup("repositoryName"); + = + =
=
@@ -93,7 +109,7 @@ is responsible for caching/obtaining your JCR Sessions and closing a= ll opened sessions at once. = - public class SessionProvider { + public class SessionProvider { = /** * Creates a SessionProvider for a certain identity @@ -131,7 +147,7 @@ operations, use it to obtain the Sessions and close at the end of an application session(request). See the following example: = - // (1) obtain current javax.jcr.Credentials, for exa= mple get it from AuthenticationService + // (1) obtain current javax.jcr.= Credentials, for example get it from AuthenticationService Credentials cred =3D .... = // (2) create SessionProvider for current user @@ -164,7 +180,7 @@ The org.exoplatform.services.jcr.ext.app.SessionProviderService interface is defined as follows: = - public interface SessionProviderService { + public interface SessionProviderSe= rvice { void setSessionProvider(Object key, SessionProvider sessionProvider); SessionProvider getSessionProvider(Object key); void removeSessionProvider(Object key); Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/nodetype-registration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/nodetype-registration.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/nodetype-registration.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -18,7 +18,7 @@ ExtendedNodeTypeManager The ExtendedNodeTypeManager (from JCR 1.11) interface provides= the following methods related to registering node types: - public static final int IGNORE_IF_EXISTS =3D 0; + public static final int IGNORE_IF_= EXISTS =3D 0; = public static final int FAIL_IF_EXISTS =3D 2; = @@ -71,7 +71,7 @@ structure used to define node types which are then registered through the ExtendedNodeTypeManager.registerNodeType method. The implementat= ion of this interface does not contain any validation logic. - /** + /** * @return Returns the declaredSupertypeNames. */ public List<String> getDeclaredSupertypeNames(); @@ -154,7 +154,7 @@ the addition of writing methods, enabling the characteristics of a c= hild node definition to be set, after that the NodeDefinitionValue is ad= ded to a NodeTypeValue. - /** + /** * @return Returns the declaredSupertypeNames. */ public List<String> getDeclaredSupertypeNames(); @@ -239,7 +239,7 @@ with the addition of writing methods, enabling the characteristics o= f a child property definition to be set, after that the PropertyDefinitionValue is added to a NodeTypeValue. - /** + /** * @return Returns the defaultValues. */ public List<String> getDefaultValueStrings(); @@ -281,7 +281,7 @@
ItemDefinitionValue - /** + /** * @return Returns the autoCreate. */ public boolean isAutoCreate(); @@ -338,14 +338,14 @@ registration.
Run time registration from xml file. - ExtendedNodeTypeManager nodeTypeManager =3D (Extende= dNodeTypeManager) session.getWorkspace() + ExtendedNodeTypeManager nodeTypeMa= nager =3D (ExtendedNodeTypeManager) session.getWorkspace() .getNodeTypeM= anager(); InputStream is =3D MyClass.class.getResourceAsStream("mynodetypes.xml= "); nodeTypeManager.registerNodeTypes(is,ExtendedNodeTypeManager.IGNORE_IF_EXI= STS );
Run time registration using NodeTypeValue. - ExtendedNodeTypeManager nodeTypeManager =3D (Extende= dNodeTypeManager) session.getWorkspace() + ExtendedNodeTypeManager nodeTypeMa= nager =3D (ExtendedNodeTypeManager) session.getWorkspace() .getNodeTypeM= anager(); NodeTypeValue testNValue =3D new NodeTypeValue(); = @@ -374,7 +374,7 @@ If you want to replace existing node type definition, you should pass ExtendedNodeTypeManager.REPLACE_IF_EXISTS as a second parameter f= or the method ExtendedNodeTypeManager.registerNodeType. - ExtendedNodeTypeManager nodeTypeManager =3D (ExtendedN= odeTypeManager) session.getWorkspace() + ExtendedNodeTypeManager nodeTypeMana= ger =3D (ExtendedNodeTypeManager) session.getWorkspace() = .getNodeTypeManager(); InputStream is =3D MyClass.class.getResourceAsStream("mynodetypes.xml= "); ..... @@ -386,13 +386,13 @@ Node type is only possibly removed when the repository does not contain this node type. - nodeTypeManager.unregisterNodeType("myNodeType&qu= ot;); + nodeTypeManager.unregisterNodeType(&= quot;myNodeType");
Practical How to
Adding new PropertyDefinition - + NodeTypeValue myNodeTypeValue =3D nodeTypeManager.getNodeTypeValue(myNodeT= ypeName); List<PropertyDefinitionValue> props =3D new ArrayList<PropertyDef= initionValue>(); props.add(new PropertyDefinitionValue("tt", @@ -410,7 +410,7 @@
Adding new child NodeDefinition - NodeTypeValue myNodeTypeValue =3D nodeTypeManager.ge= tNodeTypeValue(myNodeTypeName); + NodeTypeValue myNodeTypeValue =3D = nodeTypeManager.getNodeTypeValue(myNodeTypeName); = List<NodeDefinitionValue> nodes =3D new ArrayList<NodeDefinitionV= alue>(); nodes.add(new NodeDefinitionValue("child", @@ -467,7 +467,7 @@
Changing the list of super types - NodeTypeValue testNValue =3D nodeTypeManager.getNode= TypeValue("exo:myNodeType"); + NodeTypeValue testNValue =3D nodeT= ypeManager.getNodeTypeValue("exo:myNodeType"); = List<String> superType =3D testNValue.getDeclaredSupertypeNames(); superType.add("mix:versionable"); Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/concepts/nodetypes-and-namespaces.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/nodetypes-and-namespaces.xml 2011-06-01 07:56:47 UTC = (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/concepts/nodetypes-and-namespaces.xml 2011-06-01 12:12:35 UTC = (rev 4470) @@ -30,7 +30,7 @@ configuration file thanks to eXo component plugin mechanism, described= as follows: = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.jcr.RepositoryService&l= t;/target-component> <component-plugin> <name>add.nodeType</name> @@ -65,7 +65,7 @@ = Node type definition file format: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <!DOCTYPE nodeTypes [ <!ELEMENT nodeTypes (nodeType)*> <!ELEMENT nodeType (supertypes?|propertyDefinitions?|childNodeDef= initions?)> @@ -127,7 +127,7 @@ application specific ones, declaring it in service's configuration file thanks to eXo component plugin mechanism, described as follows: = - <component-plugin> = + <component-plugin> = <name>add.namespaces</name> <set-method>addPlugin</set-method> <type>org.exoplatform.services.jcr.impl.AddNamespacesPlugi= n</type> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/configuration-persister.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/configuration-persister.xml 2011-06-01 07:56:47 = UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/configuration-persister.xml 2011-06-01 12:12:35 = UTC (rev 4470) @@ -13,7 +13,7 @@ org.exoplatform.services.jcr.config.RepositoryServiceConfig= uration component to read its configuration. = - <component> + <component> <key>org.exoplatform.services.jcr.config.RepositoryServiceConfig= uration</key> <type>org.exoplatform.services.jcr.impl.config.RepositoryService= ConfigurationImpl</type> <init-params> @@ -44,7 +44,9 @@ case, it uses the provided ConfigurationPersister implementation class to instantiate the persister object. = - Configuration with persister:<component> + Configuration with persister: + = + <component> <key>org.exoplatform.services.jcr.config.RepositoryServiceConfig= uration</key> <type>org.exoplatform.services.jcr.impl.config.RepositoryService= ConfigurationImpl</type> <init-params> @@ -61,7 +63,8 @@ <property name=3D"persister-class-name" value=3D"org.exoplatfor= m.services.jcr.impl.config.JDBCConfigurationPersister" /> </properties-param> </init-params> - </component> + </component> + = Where: @@ -87,7 +90,9 @@ = - ConfigurationPersister interface:/** + ConfigurationPersister interface: + = + /** * Init persister. * Used by RepositoryServiceConfiguration on init. = * @return - config data stream @@ -110,7 +115,8 @@ * Tell if the config exists. * @return - flag */ - boolean hasConfig() throws RepositoryConfigurationException; + boolean hasConfig() throws RepositoryConfigurationException; + = JCR Core implementation contains a persister which stores the repository configuration in the relational database using JDBC calls - Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/exo-jcr-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/exo-jcr-configuration.xml 2011-06-01 07:56:47 UT= C (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/exo-jcr-configuration.xml 2011-06-01 12:12:35 UT= C (rev 4470) @@ -87,7 +87,7 @@ = JCR service configuration looks like: = - <component> + <component> <key>org.exoplatform.services.jcr.RepositoryService</key> <type>org.exoplatform.services.jcr.impl.RepositoryServiceImpl</= type> </component> @@ -408,7 +408,7 @@ configuration parameter. = - <!ELEMENT repository-service (repositories)> + <!ELEMENT repository-service (repo= sitories)> <!ATTLIST repository-service default-repository NMTOKEN #REQUIRED> <!ELEMENT repositories (repository)> <!ELEMENT repository (security-domain,access-control,session-max-age,au= thentication-policy,workspaces)> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/external-value-storages.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/external-value-storages.xml 2011-06-01 07:56:47 = UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/external-value-storages.xml 2011-06-01 12:12:35 = UTC (rev 4470) @@ -38,7 +38,7 @@ A disadvantage is that it's a higher time on Value deletion due = to unused tree-nodes remove. = - <value-storage id=3D"Storage #1" class=3D"org.exopl= atform.services.jcr.impl.storage.value.fs.TreeFileValueStorage"> + <value-storage id=3D"Storage #1" c= lass=3D"org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueSto= rage"> <properties> <property name=3D"path" value=3D"data/values"/> </properties> @@ -73,7 +73,7 @@ min-value-size and will be stored in the path "data/20Mvalues", all other in "data/values". = - <value-storages> + <value-storages> <value-storage id=3D"Storage #1" class=3D"org.exoplatform.services.jc= r.impl.storage.value.fs.TreeFileValueStorage"> <properties> <property name=3D"path" value=3D"data/20Mvalues"/> @@ -107,7 +107,7 @@ Hold Values in flat FileSystem files. path property points to root directory in order to store files = - <value-storage id=3D"Storage #1" class=3D"org.exopl= atform.services.jcr.impl.storage.value.fs.SimpleFileValueStorage"> + <value-storage id=3D"Storage #1" c= lass=3D"org.exoplatform.services.jcr.impl.storage.value.fs.SimpleFileValueS= torage"> <properties> <property name=3D"path" value=3D"data/values"/> </properties> @@ -170,7 +170,7 @@ To enable CAS support, just configure it in JCR Repositories configuration as we do for other Value Storages. = - <workspaces> + <workspaces> <workspace name=3D"ws"> <container class=3D"org.exoplatform.services.jcr.impl.storage= .jdbc.JDBCWorkspaceDataContainer"> <properties> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/jdbc-data-container-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-01 07:56:= 47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-01 12:12:= 35 UTC (rev 4470) @@ -105,7 +105,9 @@ = For example (standalone mode, two data containers jdbcjcr - local HSQLDB, - jdbcjcr1 - remote MySQL):<co= mponent> + jdbcjcr1 - remote MySQL): + = + <component> <key>org.exoplatform.services.naming.InitialContextInitializer&l= t;/key> <type>org.exoplatform.services.naming.InitialContextInitializer&= lt;/type> <component-plugins> @@ -173,7 +175,8 @@ <value>org.exoplatform.services.naming.SimpleContextFactory&= lt;/value> </value-param> </init-params> - </component> + </component> + = We configure the database connection parameters: @@ -222,8 +225,11 @@ repository service. Each workspace will be configured for its own data container. = - For example (two workspaces ws - jdbcjcr, - ws1 - jdbcjcr1):<workspaces&= gt; + For example (two workspaces = + ws - jdbcjcr, + ws1 - jdbcjcr1): + = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> <properties> @@ -284,7 +290,10 @@ </persister> </lock-manager> </workspace> -</workspaces> +</workspaces> + + + source-name: A javax.sql.DataSource name configured in InitialContextInitializer component (was @@ -313,7 +322,7 @@ swap-directory: A path in the file system used to swap the pending changes. - + = In this way, we have configured two workspace which will be persisted in two different databases (ws in HSQLDB, ws1 in MySQL). @@ -333,7 +342,9 @@ have to configure one naming resource. = For example (embedded mode for jdbcjcr da= ta - container):<external-component-plugins> + container): + = + <external-component-plugins> <target-component>org.exoplatform.services.naming.InitialContext= Initializer</target-component> <component-plugin> <name>bind.datasource</name> @@ -365,14 +376,17 @@ </properties-param> </init-params> </component-plugin> - </external-component-plugins> + </external-component-plugins> + = And configure repository workspaces in repositories configuration with this one database. Parameter "multi-db" must be switched off (set value "false"). = For example (two workspaces ws - jdbcjcr, - ws1 - jdbcjcr):<workspaces&g= t; + ws1 - jdbcjcr): + = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> <properties> @@ -428,7 +442,8 @@ </persister> </lock-manager> </workspace> -</workspaces> +</workspaces> + = In this way, we have configured two workspaces which will be persisted in one database (PostgreSQL). @@ -462,7 +477,7 @@ use with JCR to prevent a database overload. = - <workspace name=3D"ws" auto-init-root-nodetype=3D= "nt:unstructured"> + <workspace name=3D"ws" auto-init= -root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer"> <properties> <property name=3D"dialect" value=3D"hsqldb"/> @@ -504,20 +519,25 @@ for reducing amount of database callings. = Simple queries will be used if you chose - org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspac= eDataContainer:<workspaces> + org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspac= eDataContainer: + = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> ... </workspace> -</worksapces> +</worksapces> + = Complex queries will be used if you chose - org.exoplatform.services.jcr.impl.storage.jdbc.optimisation= .CQJDBCWorkspaceDataContainer:<workspaces> + org.exoplatform.services.jcr.impl.storage.jdbc.optimisation= .CQJDBCWorkspaceDataContainer: + = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= optimisation.CQJDBCWorkspaceDataContainer"> ... </workspace> -</worksapces> +</worksapces> = Why we should use a Complex Queries? They are optimised to reduce amount of requests to @@ -540,12 +560,14 @@ important queries. = To enable this option put next configuration - property:<workspace name=3D"ws" auto-init-root-node= type=3D"nt:unstructured"> + property: + = + <workspace name=3D"ws" auto-init-r= oot-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer"> <properties> <property name=3D"dialect" value=3D"oracle"/> <property name=3D"force.query.hints" value=3D"true" /> - ...... + ...... = Query hints enabled by default. = @@ -583,10 +605,12 @@ = - A sample registry file is below:Windows Registry= Editor Version 5.00 + A sample registry file is below: + = + Windows Registry Editor Version 5.00 = [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] "MaxUserPort"=3Ddword:00001b58 -"TcpTimedWaitDelay"=3Ddword:0000001e +"TcpTimedWaitDelay"=3Ddword:0000001e
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/multilanguage-support.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/multilanguage-support.xml 2011-06-01 07:56:47 UT= C (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/multilanguage-support.xml 2011-06-01 12:12:35 UT= C (rev 4470) @@ -65,7 +65,7 @@ Create database with Unicode encoding and use Oracle dialect for= the Workspace Container: = - <workspace name=3D"collaboration"> + <workspace name=3D"collaboration"&= gt; <container class=3D"org.exoplatform.services.jcr.impl.storage= .jdbc.JDBCWorkspaceDataContainer"> <properties> <property name=3D"source-name" value=3D"jdbcjcr" /> @@ -89,7 +89,9 @@ Example of UTF-8 database creation:DB2 CREATE DA= TABASE dbname USING CODESET UTF-8 TERRITORY US = Create database with UTF-8 encoding and use db2 dialect for - Workspace Container on DB2 v.9 and higher:<workspac= e name=3D"collaboration"> + Workspace Container on DB2 v.9 and higher: + = + <workspace name=3D"collaboration"&= gt; <container class=3D"org.exoplatform.services.jcr.impl.storage= .jdbc.JDBCWorkspaceDataContainer"> <properties> <property name=3D"source-name" value=3D"jdbcjcr" /> @@ -98,7 +100,7 @@ <property name=3D"max-buffer-size" value=3D"200k" /> <property name=3D"swap-directory" value=3D"target/temp/sw= ap/ws" /> </properties> - ..... + ..... = For DB2 v.8.x support change the property "dialect" to @@ -120,7 +122,9 @@ tested it only on latin1 database default charset. = Repository configuration, workspace container entry - example:<workspace name=3D"collaboration"> + example: + = + <workspace name=3D"collaboration"&= gt; <container class=3D"org.exoplatform.services.jcr.impl.storage= .jdbc.JDBCWorkspaceDataContainer"> <properties> <property name=3D"source-name" value=3D"jdbcjcr" /> @@ -129,7 +133,7 @@ <property name=3D"max-buffer-size" value=3D"200k" /> <property name=3D"swap-directory" value=3D"target/temp/sw= ap/ws" /> </properties> - ..... + .....
=
@@ -156,7 +160,9 @@ = Create database with UTF-8 encoding and use PgSQL dialect for - Workspace Container:<workspace name=3D"collaboratio= n"> + Workspace Container: + = + <workspace name=3D"collaboration"= > <container class=3D"org.exoplatform.services.jcr.impl.storage= .jdbc.JDBCWorkspaceDataContainer"> <properties> <property name=3D"source-name" value=3D"jdbcjcr" /> @@ -165,6 +171,6 @@ <property name=3D"max-buffer-size" value=3D"200k" /> <property name=3D"swap-directory" value=3D"target/temp/sw= ap/ws" /> </properties> - ..... + .....
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/rest-services-on-groovy.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/rest-services-on-groovy.xml 2011-06-01 07:56:47 = UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/rest-services-on-groovy.xml 2011-06-01 12:12:35 = UTC (rev 4470) @@ -29,7 +29,7 @@ = Component configuration enables Groovy services loader: = - <component> + <component> <type>org.exoplatform.services.jcr.ext.script.groovy.GroovyScript2= RestLoader</type> <init-params> <object-param> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/search-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/search-configuration.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/search-configuration.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -12,7 +12,7 @@ JCR index configuration. You can find this file here: .../portal/WEB-INF/conf/jcr/repository-configuration.xml = - <repository-service default-repository=3D"db1"> + <repository-service default-reposi= tory=3D"db1"> <repositories> <repository name=3D"db1" system-workspace=3D"ws" default-workspace= =3D"ws"> .... @@ -382,7 +382,7 @@ (portal/WEB-INF/conf/jcr/repository-configuration.xml) in the tag "query-handler". = - <query-handler class=3D"org.exoplatform.services.= jcr.impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"org.exop= latform.services.jcr.impl.core.query.lucene.SearchIndex"> = In fact, when using Lucene, you should always use the same analyzer for indexing and for querying, otherwise the results are @@ -399,14 +399,18 @@ = By default Exo JCR uses the Lucene standard Analyzer to index contents. This analyzer uses some standard filters in the method that - analyzes the content:public TokenStream tokenStream(= String fieldName, Reader reader) { + analyzes the content: + = + public TokenStream tokenStream(Str= ing fieldName, Reader reader) { StandardTokenizer tokenStream =3D new StandardTokenizer(reader, replac= eInvalidAcronym); tokenStream.setMaxTokenLength(maxTokenLength); TokenStream result =3D new StandardFilter(tokenStream); result =3D new LowerCaseFilter(result); result =3D new StopFilter(result, stopSet); return result; - } + } + = + The first one (StandardFilter) removes 's (as 's in "Peter's") from the end of words and removes dots from @@ -422,7 +426,7 @@ The last one (StopFilter) removes stop words from a token stream. The stop set is defined in the analyzer. - + = For specific cases, you may wish to use additional filters like ISOLatin1AccentFilter, which replaces accented @@ -438,8 +442,10 @@ = The ISOLatin1AccentFilter is not present in the current Luce= ne version used by eXo. You can use the attached file. You can also - create your own filter, the relevant method ispubl= ic final Token next(final Token reusableToken) throws java.io.IOExceptionwhich - defines how chars are read and used by the filter. + create your own filter, the relevant method is + = + public final Token next(final To= ken reusableToken) throws java.io.IOException = + which defines how chars are read and used by the filter.
=
@@ -447,9 +453,10 @@ = The analyzer has to extends org.apache.lucene.analysis.standard.StandardAnalyzer, and overload= the - methodpublic TokenStream tokenStream(String fieldN= ame, Reader reader)to - put your own filters. You can have a glance at the example analyzer - attached to this article. + method + + public TokenStream tokenStream(S= tring fieldName, Reader reader) + to put your own filters. You can have a glance at the exampl= e analyzer attached to this article.
=
@@ -459,9 +466,11 @@ which will use the analyzer. Your have to extends org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex. Y= ou have to write the constructor, to set the right analyzer, and the - methodpublic Analyzer getAnalyzer() { + method + public Analyzer getAnalyzer() { return MyAnalyzer; - }to return your analyzer. You can see the attached + } = + to return your analyzer. You can see the attached SearchIndex. = @@ -476,8 +485,14 @@ = In portal/WEB-INF/conf/jcr/repository-configuration.xml, - you have to replace each<query-handler class=3D= "org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">by - your own class<query-handler class=3D"mypackage= .indexation.MySearchIndex"> + you have to replace each + = + <query-handler class=3D"org.ex= oplatform.services.jcr.impl.core.query.lucene.SearchIndex"> + + by your own class + = + <query-handler class=3D"mypack= age.indexation.MySearchIndex"> +
=
@@ -486,13 +501,16 @@ In portal/WEB-INF/conf/jcr/repository-configuration.xml, you have to add parameter "analyzer" to each query-handler - config:<query-handler class=3D"org.exoplatform.= services.jcr.impl.core.query.lucene.SearchIndex"> + config: + = + <query-handler class=3D"org.ex= oplatform.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"analyzer" value=3D"org.exoplatform.services.jcr= .impl.core.MyAnalyzer"/> ... </properties> -</query-handler> +</query-handler> + = When you start exo, your SearchIndex will start to index contents with the specified filters. @@ -518,7 +536,7 @@ parameter to the query-handler element in your configuration file. = - <param name=3D"indexing-configuration-path" value= =3D"/indexing_configuration.xml"/> + <param name=3D"indexing-configur= ation-path" value=3D"/indexing_configuration.xml"/>
=
@@ -535,7 +553,7 @@ indexed for nodes of type nt:unstructured. This configuration also applies to all nodes whose type extends from nt:unstructured. = - <?xml version=3D"1.0"?> + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured"> @@ -556,7 +574,7 @@ 1.0. Higher boost values (a reasonable range is 1.0 - 5.0) will yi= eld a higher score value and appear as more relevant. = - <?xml version=3D"1.0"?> + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured" @@ -567,14 +585,17 @@ = If you do not wish to boost the complete node but only certa= in properties, you can also provide a boost value for the listed - properties:<?xml version=3D"1.0"?> + properties: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured"> <property boost=3D"3.0">Title</property> <property boost=3D"1.5">Text</property> </index-rule> -</configuration> +</configuration> +
=
@@ -583,7 +604,9 @@ You may also add a condition to the index r= ule and have multiple rules with the same nodeType. The first index ru= le that matches will apply and all remain ones are - ignored:<?xml version=3D"1.0"?> + ignored: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured" @@ -594,7 +617,8 @@ <index-rule nodeType=3D"nt:unstructured"> <property>Text</property> </index-rule> -</configuration> +</configuration> + = In the above example, the first rule only applies if the nt:unstructured node has a priority property with a value 'high'. = The @@ -602,7 +626,9 @@ literal. = You may also refer properties in the condition that are not = on - the current node:<?xml version=3D"1.0"?> + the current node: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured" @@ -623,14 +649,15 @@ <index-rule nodeType=3D"nt:unstructured"> <property>Text</property> </index-rule> -</configuration> +</configuration> + = The indexing configuration also allows you to specify the ty= pe of a node in the condition. Please note however that the type match must be exact. It does not consider sub types of the specified node type. = - <?xml version=3D"1.0"?> + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured" @@ -649,13 +676,16 @@ scope search finds normally all nodes of an index. That is, the se= lect jcr:contains(., 'foo') returns all nodes that have a string proper= ty containing the word 'foo'. You can exclude explicitly a property f= rom - the node scope index:<?xml version=3D"1.0"?> + the node scope index: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <index-rule nodeType=3D"nt:unstructured"> <property nodeScopeIndex=3D"false">Text</property> </index-rule> -</configuration> +</configuration> +
= @@ -670,38 +700,48 @@ path patterns and primary node types. = The following example creates an indexed aggregate on nt:file = that - includes the content of the jcr:content node:<?xm= l version=3D"1.0"?> + includes the content of the jcr:content node: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:jcr=3D"http://www.jcp.org/jcr/1.0" xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <aggregate primaryType=3D"nt:file"> <include>jcr:content</include> </aggregate> -</configuration> +</configuration> +
= You can also restrict the included nodes to a certain - type:<?xml version=3D"1.0"?> + type: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:jcr=3D"http://www.jcp.org/jcr/1.0" xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <aggregate primaryType=3D"nt:file"> <include primaryType=3D"nt:resource">jcr:content</include> </aggregate> -</configuration> +</configuration>
= - You may also use the * to match all child nodes:<?xml version=3D"1.0"?> + You may also use the * to match all child nodes: + + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:jcr=3D"http://www.jcp.org/jcr/1.0" xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <aggregate primaryType=3D"nt:file">http://wiki.exoplatform.com/xwi= ki/bin/edit/JCR/Search+Configuration <include primaryType=3D"nt:resource">*</include> </aggregate> -</configuration> +</configuration>
= If you wish to include nodes up to a certain depth below the current node, you can add multiple include elements. E.g. the nt:file node may contain a complete XML document under - jcr:content:<?xml version=3D"1.0"?> + jcr:content: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:jcr=3D"http://www.jcp.org/jcr/1.0" xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> @@ -710,7 +750,8 @@ <include>*/*</include> <include>*/*/*</include> </aggregate> -</configuration> +</configuration> +
=
@@ -722,7 +763,9 @@ In this configuration section, you define how a property has= to be analyzed. If there is an analyzer configuration for a property, this analyzer is used for indexing and searching of this property.= For - example:<?xml version=3D"1.0"?> + example: + = + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.0.dtd"> <configuration xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> <analyzers> = @@ -733,7 +776,7 @@ <property>mytext2</property> </analyzer> </analyzers> = -</configuration> +</configuration> = The configuration above means that the property "mytext" for= the entire workspace is indexed (and searched) with the Lucene @@ -758,28 +801,43 @@ for the property "mytext" (and not changed the default analyzer in SearchIndex). = - If your query is for example:xpath =3D "//*[= jcr:contains(mytext,'analyzer')]" + If your query is for example: + = + xpath =3D "//*[jcr:contains(mytext,'analyzer')]" + = This xpath does not return a hit in the node with the proper= ty above and default analyzers. = - Also a search on the node scopexpath =3D "//= *[jcr:contains(.,'analyzer')]"won't - give a hit. Realize that you can only set specific analyzers on a = node - property, and that the node scope indexing/analyzing is always done - with the globally defined analyzer in the SearchIndex element. + Also a search on the node scope + = + xpath =3D "//*[jcr:contains(.,'analyzer')]" + = + won't give a hit. Realize that you can only set specific ana= lyzers = + on a node property, and that the node scope indexing/analyzing is = always = + done with the globally defined analyzer in the SearchIndex element= . = Now, if you change the analyzer used to index the "mytext" - property above to<analyzer class=3D"org.apache.= lucene.analysis.Analyzer.GermanAnalyzer"> + property above to + = + <analyzer class=3D"org.apache.= lucene.analysis.Analyzer.GermanAnalyzer"> <property>mytext</property> -</analyzer>and you do the same search again, then - forxpath =3D "//*[jcr:contains(mytext,'analyzer')]= "you +</analyzer> + + + and you do the same search again, then for = + xpath =3D "//*[jcr:contains(mytext,'analyzer')]"you would get a hit because of the word stemming (analyzers - analyzer). = - The other search,xpath =3D "//*[jcr:contains= (.,'analyzer')]"still - would not give a result, since the node scope is indexed with the - global analyzer, which in this case does not take into account any - word stemming. + The other search, + = + xpath =3D "//*[jcr:contains(.,'analyzer')]" + + = + still would not give a result, since the node scope is index= ed = + with the global analyzer, which in this case does not take into = + account any word stemming. = In conclusion, be aware that when using analyzers for specif= ic properties, you might find a hit in a property for some search tex= t, Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/workspace-persistence-storage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/workspace-persistence-storage.xml 2011-06-01 07:= 56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/workspace-persistence-storage.xml 2011-06-01 12:= 12:35 UTC (rev 4470) @@ -16,7 +16,7 @@ org.exoplatform.services.jcr.storage.WorkspaceDataContainer subclass like = - <container class=3D"org.exoplatform.services.jcr.impl= .storage.jdbc.JDBCWorkspaceDataContainer"> + <container class=3D"org.exoplatform.= services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer"> <properties> <property name=3D"source-name" value=3D"jdbcjcr1"/> <property name=3D"dialect" value=3D"hsqldb"/> @@ -55,7 +55,7 @@ Container will try to read or write Value using underlying value storage plugin if the filter criteria (see below) match the current property. = - <value-storages> + <value-storages> <value-storage id=3D"Storage #1" class=3D"org.exoplatform.services.jc= r.impl.storage.value.fs.TreeFileValueStorage"> <properties> <property name=3D"path" value=3D"data/values"/> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/data-container-howto.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/data-container-howto.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/data-container-howto.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -89,7 +89,7 @@ Assuming that our new implementation class name is org.project.jcr.impl.storage.MyWorkspaceDataContainer. = - <repository-service default-repository=3D"reposit= ory"> + <repository-service default-repo= sitory=3D"repository"> <repositories> <repository name=3D"repository" system-workspace=3D"production" def= ault-workspace=3D"production"> ............. @@ -123,7 +123,7 @@ role=3D"bold">ValueStoragePluginProvider (e.g. via construc= tor), it's just a few methods to manipulate external Values data. = - // get channel for ValueData write (add or update) + // get channel for ValueData write (= add or update) ValueIOChannel channel =3D valueStorageProvider.getApplicableChannel(data,= i); if (channel =3D=3D null) { // write Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/data-container.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/data-container.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/data-container.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -49,7 +49,7 @@ = - WorkspaceStorageConnection openConnection() throws R= epositoryException; + WorkspaceStorageConnection openCon= nection() throws RepositoryException; = @@ -59,7 +59,7 @@ = - WorkspaceStorageConnection openConnection(boolean re= adOnly) throws RepositoryException; + WorkspaceStorageConnection openCon= nection(boolean readOnly) throws RepositoryException; = @@ -81,7 +81,7 @@ = - WorkspaceStorageConnection reuseConnection(Workspace= StorageConnection original) throws RepositoryException; + WorkspaceStorageConnection reuseCo= nnection(WorkspaceStorageConnection original) throws RepositoryException; = @@ -93,7 +93,7 @@ = - boolean isCheckSNSNewConnection(); + boolean isCheckSNSNewConnection(); = Container initialization is only based on a configuration. Aft= er @@ -163,7 +163,7 @@ = - ItemData getItemData(String identifier) throws Repos= itoryException, IllegalStateException; + ItemData getItemData(String identi= fier) throws RepositoryException, IllegalStateException; = @@ -173,7 +173,7 @@ = - ItemData getItemData(NodeData parentData, QPathEntry= name) throws RepositoryException,IllegalStateException; + ItemData getItemData(NodeData pare= ntData, QPathEntry name) throws RepositoryException,IllegalStateException; = @@ -183,7 +183,7 @@ = - List<NodeData> getChildNodesData(NodeData pare= nt) throws RepositoryException, IllegalStateException; + List<NodeData> getChildNodes= Data(NodeData parent) throws RepositoryException, IllegalStateException; = @@ -193,7 +193,7 @@ = - List<PropertyData> getChildPropertiesData(Node= Data parent) throws RepositoryException, IllegalStateException; + List<PropertyData> getChildP= ropertiesData(NodeData parent) throws RepositoryException, IllegalStateExce= ption; = @@ -206,7 +206,7 @@ This methiod specially dedicated for non-content modification operations (e.g. Items delete). = - List<PropertyData> listChildPropertiesData(Nod= eData parent) throws RepositoryException, IllegalStateException; + List<PropertyData> listChild= PropertiesData(NodeData parent) throws RepositoryException, IllegalStateExc= eption; = @@ -219,7 +219,7 @@ It's REFERENCE type: Properties referencing Node with given nodeIdentifier. See more in javax.jcr.Node.getReferences() = - List<PropertyData> getReferencesData(String no= deIdentifier) throws RepositoryException,IllegalStateException,UnsupportedO= perationException; + List<PropertyData> getRefere= ncesData(String nodeIdentifier) throws RepositoryException,IllegalStateExce= ption,UnsupportedOperationException;
= @@ -232,7 +232,7 @@ = - void add(NodeData data) throws RepositoryException,U= nsupportedOperationException,InvalidItemStateException,IllegalStateExceptio= n; + void add(NodeData data) throws Rep= ositoryException,UnsupportedOperationException,InvalidItemStateException,Il= legalStateException; = @@ -241,7 +241,7 @@ = - void add(PropertyData data) throws RepositoryExcepti= on,UnsupportedOperationException,InvalidItemStateException,IllegalStateExce= ption; + void add(PropertyData data) throws= RepositoryException,UnsupportedOperationException,InvalidItemStateExceptio= n,IllegalStateException; = @@ -250,7 +250,7 @@ = - void update(NodeData data) throws RepositoryExceptio= n,UnsupportedOperationException,InvalidItemStateException,IllegalStateExcep= tion; + void update(NodeData data) throws = RepositoryException,UnsupportedOperationException,InvalidItemStateException= ,IllegalStateException; = @@ -259,7 +259,7 @@ = - void update(PropertyData data) throws RepositoryExce= ption,UnsupportedOperationException,InvalidItemStateException,IllegalStateE= xception; + void update(PropertyData data) thr= ows RepositoryException,UnsupportedOperationException,InvalidItemStateExcep= tion,IllegalStateException; = @@ -269,7 +269,7 @@ = - void rename(NodeData data) throws RepositoryExceptio= n,UnsupportedOperationException,InvalidItemStateException,IllegalStateExcep= tion; + void rename(NodeData data) throws = RepositoryException,UnsupportedOperationException,InvalidItemStateException= ,IllegalStateException; = @@ -278,7 +278,7 @@ = - void delete(NodeData data) throws RepositoryExceptio= n,UnsupportedOperationException,InvalidItemStateException,IllegalStateExcep= tion; + void delete(NodeData data) throws = RepositoryException,UnsupportedOperationException,InvalidItemStateException= ,IllegalStateException; = @@ -287,7 +287,7 @@ = - void delete(PropertyData data) throws RepositoryExce= ption,UnsupportedOperationException,InvalidItemStateException,IllegalStateE= xception; + void delete(PropertyData data) thr= ows RepositoryException,UnsupportedOperationException,InvalidItemStateExcep= tion,IllegalStateException; = @@ -297,7 +297,7 @@ = - void commit() throws IllegalStateException, Reposito= ryException; + void commit() throws IllegalStateE= xception, RepositoryException; = @@ -307,7 +307,7 @@ = - void rollback() throws IllegalStateException, Reposi= toryException; + void rollback() throws IllegalStat= eException, RepositoryException; = All methods throw IllegalStateException if connection is close= d. @@ -325,7 +325,7 @@ = - boolean isOpened(); + boolean isOpened(); = @@ -427,7 +427,7 @@ = - ValueIOChannel getApplicableChannel(PropertyData pro= perty, int valueOrderNumer) throws IOException; + ValueIOChannel getApplicableChanne= l(PropertyData property, int valueOrderNumer) throws IOException; = @@ -436,7 +436,7 @@ = - ValueIOChannel getChannel(String storageId) throws I= OException, ValueStorageNotFoundException; + ValueIOChannel getChannel(String s= torageId) throws IOException, ValueStorageNotFoundException; = There is also method for consistency check, but this method @@ -458,7 +458,7 @@ = - public abstract void init(Properties props, ValueDat= aResourceHolder resources) throws RepositoryConfigurationException, IOExcep= tion; + public abstract void init(Properti= es props, ValueDataResourceHolder resources) throws RepositoryConfiguration= Exception, IOException; = @@ -469,7 +469,7 @@ = - public abstract ValueIOChannel openIOChannel() throw= s IOException; + public abstract ValueIOChannel ope= nIOChannel() throws IOException; = @@ -478,7 +478,7 @@ = - public abstract boolean isSame(String valueDataDescr= iptor); + public abstract boolean isSame(Str= ing valueDataDescriptor); = @@ -494,7 +494,7 @@ = - ValueData read(String propertyId, int orderNumber, i= nt maxBufferSize) throws IOException; + ValueData read(String propertyId, = int orderNumber, int maxBufferSize) throws IOException; = @@ -503,7 +503,7 @@ = - void write(String propertyId, ValueData data) throws= IOException; + void write(String propertyId, Valu= eData data) throws IOException; = @@ -512,7 +512,7 @@ = - void delete(String propertyId) throws IOException; + void delete(String propertyId) thr= ows IOException; = @@ -528,7 +528,7 @@ = - void commit() throws IOException; + void commit() throws IOException; = @@ -537,7 +537,7 @@ = - void rollback() throws IOException; + void rollback() throws IOException; Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/jbosscache-configuration-templates.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/jbosscache-configuration-templates.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/jbosscache-configuration-templates.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -17,7 +17,7 @@ other parameters. The simplest way to configure them is to define their own configuration files for each component in each workspace: = - <property name=3D"jbosscache-configuration" value= =3D"conf/standalone/test-jbosscache-lock-db1-ws1.xml" /> + <property name=3D"jbosscache-confi= guration" value=3D"conf/standalone/test-jbosscache-lock-db1-ws1.xml" /><= /programlisting> = But if there are few workspaces, configuring them in such a way = can be painful and hard-manageable. eXo JCR offers a template-based @@ -30,14 +30,14 @@ = Template: = - ... + ... <clustering mode=3D"replication" clusterName=3D"${jbosscache-cluster-na= me}"> <stateRetrieval timeout=3D"20000" fetchInMemoryState=3D"false" /> ... = and JCR configuration file: = - ... + ... <property name=3D"jbosscache-configuration" value=3D"jar:/conf/portal/j= bosscache-lock.xml" /> <property name=3D"jbosscache-cluster-name" value=3D"JCR-cluster-locks-d= b1-ws" /> ... @@ -51,7 +51,7 @@ is defined in component configuration, it will be injected into the JB= oss Cache instance on startup. = - <property name=3D"jgroups-configuration" value=3D"y= our/path/to/modified-udp.xml" /> + <property name=3D"jgroups-configur= ation" value=3D"your/path/to/modified-udp.xml" /> = As mentioned above, each component (lock manager, data container= and query handler) for each workspace requires its own clustered environme= nt. @@ -65,7 +65,7 @@ pre-shipped one with eXo JCR) and set "jgroups-multiplexer-stack" into "true". = - <property name=3D"jgroups-configuration" value=3D"j= ar:/conf/portal/udp-mux.xml" /> + <property name=3D"jgroups-configur= ation" value=3D"jar:/conf/portal/udp-mux.xml" /> <property name=3D"jgroups-multiplexer-stack" value=3D"true" /> = @@ -83,7 +83,7 @@ container configuration) by setting the property "jbosscache-shareable= " to true as below: = - <property name=3D"jbosscache-shareable" value=3D"tr= ue" /> + <property name=3D"jbosscache-share= able" value=3D"true" /> = Once enabled this feature will allow the JBoss Cache instance us= ed by the component to be re-used by another components of the same type @@ -111,7 +111,7 @@ = Data container template is "jbosscache-data.xml": = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xml= ns=3D"urn:jboss:jbosscache-core:config:3.1"> = <locking useLockStriping=3D"false" concurrencyLevel=3D"50000" lockPa= rentForChildInsertRemove=3D"false" @@ -160,7 +160,7 @@ = It's template name is "jbosscache-lock.xml" = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xml= ns=3D"urn:jboss:jbosscache-core:config:3.1"> = <locking useLockStriping=3D"false" concurrencyLevel=3D"50000" lockPa= rentForChildInsertRemove=3D"false" @@ -256,7 +256,7 @@ = Have a look at "jbosscache-indexer.xml" = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xml= ns=3D"urn:jboss:jbosscache-core:config:3.1"> <locking useLockStriping=3D"false" concurrencyLevel=3D"50000" lockPa= rentForChildInsertRemove=3D"false" lockAcquisitionTimeout=3D"20000" /> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/jbossts-transaction-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/jbossts-transaction-service.xml 2011-06-01 07:56:47 UTC (rev 4= 469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/jbossts-transaction-service.xml 2011-06-01 12:12:35 UTC (rev 4= 470) @@ -26,7 +26,7 @@ = Example configuration: = - <component> + <component> <key>org.exoplatform.services.transaction.TransactionService<= /key> <type>org.exoplatform.services.transaction.jbosscache.JBossTrans= actionsService</type> <init-params> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/lock-manager-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/lock-manager-config.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/lock-manager-config.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -23,7 +23,7 @@ You can enable LockManager by adding lock-manager-configuration = to workspace-configuration. For example: - <workspace name=3D"ws"> + <workspace name=3D"ws"&g= t; ... <lock-manager class=3D"org.exoplatform.services.jcr.impl.core.l= ock.jbosscache.CacheableLockManagerImpl"> <properties> @@ -51,7 +51,7 @@ Both of the implementations support to remove Expired Locks. Loc= kRemover separates threads, that periodically ask LockManager to remove Loc= ks that live so long. So, the timeout for LockRemover may be set as follows, the default value is 30m. - <properties> + <properties> <property name=3D"time-out" value=3D"10m" /> ... </properties> @@ -92,13 +92,15 @@ configuration. Configuration is as follows: - <lock-manager class=3D"org.exoplatform.servi= ces.jcr.impl.core.lock.jbosscache.CacheableLockManagerImpl"> + <lock-manager class=3D"org.= exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManagerImpl= "> <properties> <property name=3D"time-out" value=3D"15m" /> <property name=3D"jbosscache-configuration" value=3D&quo= t;conf/standalone/cluster/test-jbosscache-lock-config.xml" /> </properties> </lock-manager> - test-jbosscache-lock-config.xml<?xml version=3D"1.0" encoding=3D"UTF-8"?> + test-jbosscache-lock-config.xml + = + <?xml version=3D"1.0" = encoding=3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance= " xmlns=3D"urn:jboss:jbosscache-core:config:3.2"> = <locking useLockStriping=3D"false" concurrencyLevel=3D"= 50000" lockParentForChildInsertRemove=3D"false" lockAcquisit= ionTimeout=3D"20000" /> @@ -154,7 +156,8 @@ = </loaders> = -</jbosscache> +</jbosscache> + Configuration requirements: @@ -179,7 +182,7 @@ LockManagers. Lock template configuration test-jbosscache-lock.xml - <?xml version=3D"1.0" encoding=3D"= UTF-8"?> + <?xml version=3D"1.0" = encoding=3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance= " xmlns=3D"urn:jboss:jbosscache-core:config:3.1"> = <locking useLockStriping=3D"false" concurrencyLevel=3D&quo= t;50000" lockParentForChildInsertRemove=3D"false" @@ -219,7 +222,7 @@ </jbosscache> As you see, all configurable parameters are filled by templates and will be replaced by LockManagers configuration parameters: - <lock-manager class=3D"org.exoplatform.servi= ces.jcr.impl.core.lock.jbosscache.CacheableLockManagerImpl"> + <lock-manager class=3D"org.= exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManagerImpl= "> <properties> <property name=3D"time-out" value=3D"15m" /&g= t; <property name=3D"jbosscache-configuration" value=3D&qu= ot;test-jbosscache-lock.xml" /> @@ -254,7 +257,9 @@ we can still create our own configuration. - our-udp-mux.xml<protoc= ol_stacks> + our-udp-mux.xml + = + <protocol_stacks> <stack name=3D"jcr.stack"> <config> <UDP mcast_addr=3D"228.10.10.10" mcast_port=3D"= 45588" tos=3D"8" ucast_recv_buf_size=3D"20000000" @@ -286,7 +291,7 @@ <!-- pbcast.FLUSH /--> </config> </stack> -</protocol_stacks> +</protocol_stacks>
Data Types in Different Databases</tit= le> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/other/acl-ext.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/acl-ext.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/acl-ext.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -56,7 +56,7 @@ = <para>Action's Configuration may look like as the following:</para> = - <programlisting><value> + <programlisting language=3D"xml"><value> <object type=3D"org.exoplatform.services.jcr.impl.ext.action.ActionCo= nfiguration"> <field name=3D"eventTypes"><string>addNode,read</strin= g></field> <field name=3D"workspace"><string>production</string&g= t;</field > @@ -72,7 +72,7 @@ current Item, the current ExoContainer and the current EventType is li= ke below:</para> = - <programlisting>public interface InvocationContext extends ContextBase= { + <programlisting language=3D"java">public interface InvocationContext e= xtends ContextBase { = Item getCurrentItem(); = @@ -93,7 +93,7 @@ role=3D"bold">access-manager</emphasis> element inside <emphasis role=3D"bold">workspace</emphasis> as follows:</para> = - <programlisting><workspace name=3D"ws"> = + <programlisting language=3D"xml"><workspace name=3D"ws"> = ... <!-- after query-handler element --> <access-manager class=3D"org.exoplatform.services.jcr.CustomAccessMa= nagerImpl"> @@ -135,7 +135,7 @@ SetAccessContextAction should be configured in the way mentioned in <emphasis role=3D"bold">Access Context Action.</emphasis></para> = - <programlisting>public class CustomAccessManagerImpl extends AccessMan= ager { + <programlisting language=3D"java">public class CustomAccessManagerImpl= extends AccessManager { = private String property; private DecisionMakingService theService; Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/other/acl.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/acl.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/acl.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -123,7 +123,7 @@ <para>A privilegeable node defines the permissions required for actions on this node. For this purpose, it contains an ACL.</para> <para>At JCR level, this is implemented by an <emphasis role=3D"bo= ld">exo:privilegeable</emphasis> mixin.</para> - <programlisting><nodeType name=3D"exo:privilegeable" = isMixin=3D"true" hasOrderableChildNodes=3D"false" prima= ryItemName=3D""> + <programlisting language=3D"xml"><nodeType name=3D"exo:pri= vilegeable" isMixin=3D"true" hasOrderableChildNodes=3D"= false" primaryItemName=3D""> <propertyDefinitions> <propertyDefinition name=3D"exo:permissions" requiredTy= pe=3D"Permission" autoCreated=3D"true" mandatory=3D&quo= t;true" onParentVersion=3D"COPY" protected=3D&= quot;true" multiple=3D"true"> @@ -161,7 +161,7 @@ permissions set by exo:permissions. At JCR level, the ownership is implemented by an <emphasis role=3D"bold">exo:owneable</emphasis> = mixin. This mixin holds an owner property.</para> - <programlisting><nodeType name=3D"exo:owneable" isMix= in=3D"true" hasOrderableChildNodes=3D"false" primaryIte= mName=3D""> + <programlisting language=3D"xml"><nodeType name=3D"exo:own= eable" isMixin=3D"true" hasOrderableChildNodes=3D"false= " primaryItemName=3D""> <propertyDefinitions> <propertyDefinition name=3D"exo:owner" requiredType=3D&= quot;String" autoCreated=3D"true" mandatory=3D"true&quo= t; onParentVersion=3D"COPY" protected=3D"true" multiple=3D"fa= lse"> @@ -242,7 +242,7 @@ separated by a whitespace, each whitespace is escaped by <emphasis>x0020</emphasis>.</para> </note> - <programlisting><Politics jcr:primaryType=3D"nt:unstructu= red" jcr:mixinTypes=3D"exo:owneable exo:datetime exo:privilegeabl= e" exo:dateCreated=3D"2009-10-08T18:02:43.687+02:00" = + <programlisting language=3D"xml"><Politics jcr:primaryType=3D&= quot;nt:unstructured" jcr:mixinTypes=3D"exo:owneable exo:datetime= exo:privilegeable" exo:dateCreated=3D"2009-10-08T18:02:43.687+02= :00" = exo:dateModified=3D"2009-10-08T18:02:43.703+02:00" = exo:owner=3D"root" = exo:permissions=3D"any_x0020_read *:/platform/administrators_x0020_re= ad *:/platform/administrators_x0020_add_node *:/platform/administrators_x00= 20_set_property *:/platform/administrators_x0020_remove"> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/other/binary-values-processing.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/binary-values-processing.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/binary-values-processing.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -51,7 +51,7 @@ = <para>An example of a specification usage.</para> = - <programlisting>// Set the property value with given stream content. = + <programlisting language=3D"java">// Set the property value with given= stream content. = Property binProp =3D node.setProperty("BinData", myDataStream); // Get the property value stream. = InputStream binStream =3D binProp.getStream(); @@ -88,7 +88,7 @@ <para>ReadableBinaryValue value can be casted from any value, i.e. Str= ing, Binary, Date etc.</para> = - <programlisting>// get the property value of type PropertyType.STRING = + <programlisting language=3D"java">// get the property value of type Pr= opertyType.STRING = ReadableBinaryValue extValue =3D (ReadableBinaryValue) node.getProperty("L= argeText").getValue(); // read 200 bytes to a destStream from the position 1024 in the value cont= ent OutputStream destStream =3D new FileOutputStream("MyTextFile.txt"); @@ -110,7 +110,7 @@ and return (set) the value to the property after the content will be done.</para> = - <programlisting>// get the property value for PropertyType.BINARY Prop= erty + <programlisting language=3D"java">// get the property value for Proper= tyType.BINARY Property EditableBinaryValue extValue =3D (EditableBinaryValue) node.getProperty("B= inData").getValue(); = // update length bytes from the stream starting from the position 1024 in = existing Value data @@ -127,7 +127,7 @@ update is done, the value will be applied to the property and be visib= le during the session.</para> = - <programlisting>// update length bytes from the stream starting from t= he particular = + <programlisting language=3D"java">// update length bytes from the stre= am starting from the particular = // position in the existing Value data int dpos =3D 1024; while (source.dataAvailable()) { @@ -153,7 +153,7 @@ <para>Read length bytes is counted from the binary value to the given position into the stream.</para> = - <programlisting>long read(OutputStream stream, long length, long posit= ion) throws IOException, RepositoryException ;</programlisting> + <programlisting language=3D"java">long read(OutputStream stream, long = length, long position) throws IOException, RepositoryException ;</programli= sting> = <para>EditableBinaryValue has two methods to edit value.</para> = @@ -163,7 +163,7 @@ length, the Value length will be increased at first to the size of position and length bytes will be added after the position.</para> = - <programlisting>void update(InputStream stream, long length, long posi= tion) throws IOException;</programlisting> + <programlisting language=3D"java">void update(InputStream stream, long= length, long position) throws IOException;</programlisting> = <para>Set the length of the Value in bytes to the specified size. If t= he size is lower than 0, the IOException exception will be thrown. This @@ -171,7 +171,7 @@ used internally in the update operation in case of extending the size = to the given position.</para> = - <programlisting>void setLength(long size) throws IOException;</program= listing> + <programlisting language=3D"java">void setLength(long size) throws IOE= xception;</programlisting> = <para>An application can perform JCR binary operations more flexibly a= nd will have less I/O and CPU usage using these methods.</para> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/other/link-producer.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/link-producer.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/other/link-producer.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -14,7 +14,7 @@ = <para>Link Producer has a simple configuration like described below:</pa= ra> = - <programlisting><component> + <programlisting language=3D"xml"><component> <key>org.exoplatform.services.webdav.lnkproducer.LnkProducer</k= ey> <type>org.exoplatform.services.webdav.lnkproducer.LnkProducer</= type> </component></programlisting> @@ -78,7 +78,7 @@ <para>Also the Link Producer can be referenced to from an HTML page. If = page contains code like</para> = - <programlisting><a href=3D"http://localhost:8080/rest/lnkproducer/ope= nit.lnk?path=3D/repository/workspace/somenode/somefile.extention">somefi= le.extention</a></programlisting> + <programlisting language=3D"html"><a href=3D"http://localhost:8080/re= st/lnkproducer/openit.lnk?path=3D/repository/workspace/somenode/somefile.ex= tention">somefile.extention</a></programlisting> = <para>the file "somefile.extention" will open directly.</para> </chapter> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/performance-tuning-guide.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/performance-tuning-guide.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/performance-tuning-guide.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -314,10 +314,14 @@ = <para>Some operations may take too much time. So if you get <exceptionname>ReplicationTimeoutException</exceptionname> try - increasing replication timeout:<programlisting> <clustering mod= e=3D"replication" clusterName=3D"${jbosscache-cluster-name}"> + increasing replication timeout:</para> + = + <programlisting language=3D"xml"> <clustering mode=3D"replicati= on" clusterName=3D"${jbosscache-cluster-name}"> ... <sync replTimeout=3D"60000" /> - </clustering></programlisting>value is set in miliseconds.</para> + </clustering> + </programlisting> + <para>value is set in miliseconds.</para> </section> = <section> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/protocols/ftp.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/protocols/ftp.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/protocols/ftp.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -23,7 +23,7 @@ <section> <title>command-port: = - <value-param> + <value-param> <name>command-port</name> <value>21</value> </value-param> @@ -39,12 +39,12 @@
data-min-port & data-max-port = - <value-param> + <value-param> <name>data-min-port</name> <value>52000</value> </value-param> = - <value-param> + <value-param> <name>data-max-port</name> <value>53000</value> </value-param> @@ -59,7 +59,7 @@
system = - <value-param> + <value-param> <name>system</name> = <value>Windows_NT</value> @@ -74,7 +74,7 @@
client-side-encoding = - <value-param> + <value-param> <name>client-side-encoding</name> = <value>windows-1251</value> @@ -90,7 +90,7 @@
def-folder-node-type = - <value-param> + <value-param> <name>def-folder-node-type</name> <value>nt:folder</value> </value-param> @@ -102,7 +102,7 @@
def-file-node-type = - <value-param> + <value-param> <name>def-file-node-type</name> <value>nt:file</value> </value-param> @@ -114,7 +114,7 @@
def-file-mime-type = - <value-param> + <value-param> <name>def-file-mime-type</name> = <value>application/zip</value> </value-param> @@ -127,7 +127,7 @@
cache-folder-name = - <value-param> + <value-param> <name>cache-folder-name</name> <value>../temp/ftp_cache</value> </value-param> @@ -138,7 +138,7 @@
upload-speed-limit = - <value-param> + <value-param> <name>upload-speed-limit</name> = <value>20480</value> </value-param> @@ -149,7 +149,7 @@
download-speed-limit = - <value-param> + <value-param> <name>download-speed-limit</name> <value>20480</value> = </value-param> @@ -160,7 +160,7 @@
timeout = - <value-param> + <value-param> <name>timeout</name> <value>60</value> </value-param> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/protocols/webdav.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/protocols/webdav.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/protocols/webdav.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -53,7 +53,7 @@
Configuration - <component> + <component> <key>org.exoplatform.services.webdav.WebDavServiceImpl</key> <type>org.exoplatform.services.webdav.WebDavServiceImpl</type&g= t; <init-params> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/query-handler-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/query-handler-config.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/query-handler-config.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -92,7 +92,9 @@
Query-handler configuration overview = - Configuration example:<workspace name=3D"ws= "> + Configuration example: + = + <workspace name=3D"ws"> <query-handler class=3D"org.exoplatform.services.jcr.impl.core.query= .lucene.SearchIndex"> <properties> <property name=3D"index-dir" value=3D"shareddir/index/db1/ws" = /> @@ -108,7 +110,9 @@ <property name=3D"index-recovery-mode" value=3D"from-coordinat= or" /> </properties> </query-handler> -</workspace> +</workspace> + +
Config properties description = @@ -194,7 +198,7 @@ -
+
=
@@ -203,7 +207,9 @@ When running JCR in standalone usually standalone indexing is = used also. Such parameters as "changesfilter-class", "jgroups-configurati= on" and all the "jbosscache-*" must be skipped and not defined. Like the - configuration below.<workspace name=3D"ws"> + configuration below. + = + <workspace name=3D"ws"> <query-handler class=3D"org.exoplatform.services.jcr.impl.core.query= .lucene.SearchIndex"> <properties> <property name=3D"index-dir" value=3D"shareddir/index/db1/ws" = /> @@ -213,7 +219,7 @@ <property name=3D"index-recovery-mode" value=3D"from-coordinat= or" /> </properties> </query-handler> -</workspace> +</workspace> =
=
@@ -225,7 +231,9 @@ SMB or etc). Indexing directory ("indexDir" value) must point to it. Setting "changesfilter-class" to "org.exoplatform.services.jcr.impl.core.query.jbosscache.JBossCacheI= ndexChangesFilter" - will enable shared index implementation.<workspac= e name=3D"ws"> + will enable shared index implementation. + = + <workspace name=3D"ws"> <query-handler class=3D"org.exoplatform.services.jcr.impl.core.query= .lucene.SearchIndex"> <properties> <property name=3D"index-dir" value=3D"/mnt/nfs_drive/index/db1= /ws" /> @@ -241,14 +249,16 @@ <property name=3D"index-recovery-mode" value=3D"from-coordinat= or" /> </properties> </query-handler> -</workspace> In order to use cluster-ready strategy +</workspace> + + In order to use cluster-ready strategy based on local indexes, when each node has own copy of index on local file system, the following configuration must be applied. Indexing directory must point to any folder on local file system and "changesfilter-class" must be set to "org.exoplatform.services.jcr.impl.core.query.jbosscache.LocalIndexC= hangesFilter". = - <workspace name=3D"ws"> + <workspace name=3D"ws"> <query-handler class=3D"org.exoplatform.services.jcr.impl.core.query= .lucene.SearchIndex"> <properties> <property name=3D"index-dir" value=3D"/mnt/nfs_drive/index/db1= /ws" /> @@ -264,7 +274,8 @@ <property name=3D"index-recovery-mode" value=3D"from-coordinat= or" /> </properties> </query-handler> -</workspace> +</workspace> +
=
@@ -273,7 +284,9 @@ JBoss-Cache template configuration for query handler is about = the same for both clustered strategies. = - jbosscache-indexer.xml<?xml version=3D"1.0"= encoding=3D"UTF-8"?> + jbosscache-indexer.xml + = + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <jbosscache xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xml= ns=3D"urn:jboss:jbosscache-core:config:3.1"> = <locking useLockStriping=3D"false" concurrencyLevel=3D"50000" lockPa= rentForChildInsertRemove=3D"false" @@ -294,7 +307,7 @@ </default> </eviction> = -</jbosscache> +</jbosscache> = See more about template configurations here. Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/repository-creation-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/repository-creation-service.xml 2011-06-01 07:56:47 UTC (rev 4= 469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/repository-creation-service.xml 2011-06-01 12:12:35 UTC (rev 4= 470) @@ -80,7 +80,7 @@ = RepositoryCreationService configuration = - <component> + <component> <key>org.exoplatform.services.jcr.ext.backup.BackupManager</ke= y> <type>org.exoplatform.services.jcr.ext.backup.impl.BackupManagerI= mpl</type> <init-params> @@ -146,7 +146,7 @@
Repsitory Interface = - public interface RepositoryCreationService + public interface RepositoryCreationS= ervice { /** * Reserves, validates and creates repository in a simplified form. = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/aggregation-rule.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/aggregation-rule.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/aggregation-rule.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -18,7 +18,7 @@ = So, change indexing-configuration.xml: = - <?xml version=3D"1.0"?> + <?xml version=3D"1.0"?> <!DOCTYPE configuration SYSTEM "http://www.exoplatform.org/dtd/indexing= -configuration-1.2.dtd"> <configuration xmlns:jcr=3D"http://www.jcp.org/jcr/1.0" xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> @@ -86,7 +86,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:file WHERE CONTAINS(*,'cats')"; @@ -96,7 +96,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:file)[jcr:contains(.,'cats')]"; @@ -110,7 +110,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -121,7 +121,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/and-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/and-constraint.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/and-constraint.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -50,7 +50,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE jcr:description =3D= 'fairytale' AND prop_pagecount > 90"; @@ -60,7 +60,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[@jcr:description=3D'fair= ytale' and @prop_pagecount > 90]"; @@ -74,7 +74,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -85,7 +85,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/child-node-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/child-node-constraint.xml 2011-06-01 07:56:47 UTC (r= ev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/child-node-constraint.xml 2011-06-01 12:12:35 UTC (r= ev 4470) @@ -62,7 +62,7 @@ "/". This way child nodes are included but descendant nodes are excluded. = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:folder WHERE jcr:path LIKE '/fol= der1/folder2/%' AND NOT jcr:path LIKE '/folder1/folder2/%/%'"; @@ -72,7 +72,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "/jcr:root/folder1[1]/folder2[1]/element(*,nt:fo= lder)"; @@ -86,7 +86,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -97,7 +97,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/date-property-comparison.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/date-property-comparison.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/date-property-comparison.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -72,7 +72,7 @@ You will see that it can be a date only (YYYY-MM-DD) but also a complete date and time with a timezone designator (TZD). = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query StringBuffer sb =3D new StringBuffer(); @@ -96,7 +96,7 @@ brackets: xs:dateTime('datetime'). The actual format of the datetime a= lso conforms with the ISO date standard. = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query StringBuffer sb =3D new StringBuffer(); @@ -117,7 +117,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -128,7 +128,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/escaping-like-statements.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/escaping-like-statements.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/escaping-like-statements.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -56,7 +56,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE jcr:title LIKE 'P#%= ri%' ESCAPE '#'"; @@ -66,7 +66,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[jcr:like(@jcr:title, 'P\= \%ri%')]"; @@ -80,7 +80,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -91,7 +91,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/exact-path-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/exact-path-constraint.xml 2011-06-01 07:56:47 UTC (r= ev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/exact-path-constraint.xml 2011-06-01 12:12:35 UTC (r= ev 4470) @@ -54,7 +54,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // we want find 'document1' String sqlStatement =3D "SELECT * FROM nt:file WHERE jcr:path =3D '/folder= 1/folder2/document1'"; @@ -65,7 +65,7 @@ = XPath = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // we want to find 'document1' String xpathStatement =3D "/jcr:root/folder1[1]/folder2[1]/element(documen= t1,nt:file)[1]"; @@ -84,7 +84,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -95,7 +95,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-all-descendant-nodes.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-all-descendant-nodes.xml 2011-06-01 07:56:47 UT= C (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-all-descendant-nodes.xml 2011-06-01 12:12:35 UT= C (rev 4470) @@ -56,7 +56,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:folder WHERE jcr:path LIKE '/fol= der1/folder2/%'"; @@ -66,7 +66,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "/jcr:root/folder1[1]/folder2[1]//element(*,nt:f= older)"; @@ -80,7 +80,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -92,7 +92,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-all-nodes.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-all-nodes.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-all-nodes.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -51,7 +51,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:base"; @@ -61,7 +61,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:base)"; @@ -75,7 +75,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -88,7 +88,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-nodes-by-mixin-type.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-by-mixin-type.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-by-mixin-type.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -42,7 +42,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title"; @@ -52,7 +52,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)"; @@ -66,7 +66,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -77,7 +77,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-nodes-by-primary-type.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-by-primary-type.xml 2011-06-01 07:56:47 U= TC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-by-primary-type.xml 2011-06-01 12:12:35 U= TC (rev 4470) @@ -41,7 +41,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:file"; @@ -51,7 +51,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:file)"; @@ -65,7 +65,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -76,7 +76,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-nodes-case-insensitive.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-case-insensitive.xml 2011-06-01 07:56:47 = UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-nodes-case-insensitive.xml 2011-06-01 12:12:35 = UTC (rev 4470) @@ -45,7 +45,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE UPPER(jcr:title) = =3D 'CASESENSITIVE'"; @@ -55,7 +55,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[fn:upper-case(@jcr:title= )=3D'CASESENSITIVE']"; @@ -71,7 +71,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE LOWER(jcr:title) = =3D 'casesensitive'"; @@ -81,7 +81,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[fn:lower-case(@jcr:title= )=3D'casesensitive']"; @@ -95,7 +95,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -107,7 +107,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/find-similar-nodes.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-similar-nodes.xml 2011-06-01 07:56:47 UTC (rev = 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/find-similar-nodes.xml 2011-06-01 12:12:35 UTC (rev = 4470) @@ -19,7 +19,7 @@ Higlighting support must be added to configuration. test-jcr-config.xml: = - <query-handler class=3D"org.exoplatform.services.jcr.= impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"org.exoplat= form.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"support-highlighting" value=3D"true" /> @@ -101,7 +101,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:resource WHERE SIMILAR(.,'/baseF= ile/jcr:content')"; @@ -111,7 +111,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*, nt:resource)[rep:similar(., '/test= root/baseFile/jcr:content')]"; @@ -125,7 +125,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -140,7 +140,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/fulltext-search-and-settings.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-and-settings.xml 2011-06-01 07:56:47= UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-and-settings.xml 2011-06-01 12:12:35= UTC (rev 4470) @@ -263,7 +263,7 @@ the lazy dogs" will be transformed to set {[the] [quick] [brown] [fox] [jumped] [over] [the] [lazy] [dogs] } = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); String sqlStatement =3D "SELECT * FROM mix:title WHERE CONTAINS(jcr:descri= ption, 'the')"; // create query Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/fulltext-search-by-all-properties.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-by-all-properties.xml 2011-06-01 07:= 56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-by-all-properties.xml 2011-06-01 12:= 12:35 UTC (rev 4470) @@ -44,7 +44,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); String sqlStatement =3D "SELECT * FROM mix:title WHERE CONTAINS(*,'break')= "; // create query @@ -54,7 +54,7 @@ = XPath = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // we want find 'document1' String xpathStatement =3D "//element(*,mix:title)[jcr:contains(.,'break')]= "; @@ -69,7 +69,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = while(it.hasNext()) { @@ -80,7 +80,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/fulltext-search-by-property.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-by-property.xml 2011-06-01 07:56:47 = UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/fulltext-search-by-property.xml 2011-06-01 12:12:35 = UTC (rev 4470) @@ -48,7 +48,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // we want find document which contains "forest" word String sqlStatement =3D "SELECT \* FROM mix:title WHERE CONTAINS(jcr:descr= iption, 'forest')"; @@ -59,7 +59,7 @@ = XPath = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // we want find document which contains "forest" word String xpathStatement =3D "//element(*,mix:title)[jcr:contains(@jcr:descri= ption, 'forest')]"; @@ -74,7 +74,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -85,7 +85,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/higlight.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/higlight.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/higlight.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -18,7 +18,7 @@ High-lighting is not default feature so we must set it in jcr-config.xml, also excerpt provider must be defined: = - <query-handler class=3D"org.exoplatform.services.jc= r.impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"org.exopla= tform.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"support-highlighting" value=3D"true" /> @@ -36,7 +36,7 @@ property as highlightable. Indexing-configuration.xml must containt the next rule: = - <index-rule nodeType=3D"nt:unstructured" condition= =3D"@rule=3D'excerpt'"> + <index-rule nodeType=3D"nt:unstruc= tured" condition=3D"@rule=3D'excerpt'"> <property useInExcerpt=3D"false">title</property> <property>text</property> </index-rule> @@ -73,7 +73,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT rep:excerpt() FROM nt:unstructured WHERE C= ONTAINS(*, 'eXo implementation')"; @@ -83,7 +83,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:unstructured)[jcr:contains(., 'e= Xo implementation')]/rep:excerpt(.)"; @@ -97,7 +97,7 @@ = Now let's see on the result table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { @@ -140,7 +140,7 @@ = Also, we can get exactly "rep:excerpt" value: = - RowIterator rows =3D result.getRows(); + RowIterator rows =3D result.getRows(= ); Value excerpt =3D rows.nextRow().getValue("rep:excerpt(.)"); // excerpt will be equal to "<div><span\><strong>eXo<= /strong> is a JCR <strong>implementation</strong></span&g= t;</div>"
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/ignore-accent-symbols.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/ignore-accent-symbols.xml 2011-06-01 07:56:47 UTC (r= ev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/ignore-accent-symbols.xml 2011-06-01 12:12:35 UTC (r= ev 4470) @@ -40,7 +40,7 @@ = - public class MyAnalyzer extends Analyzer + public class MyAnalyzer extends Analyz= er { @Override public TokenStream tokenStream(String fieldName, Reader reader) @@ -64,7 +64,7 @@ = - <workspace name=3D"ws"> + <workspace name=3D"ws"> ... <query-handler class=3D"org.exoplatform.services.jcr.impl.core.query= .lucene.SearchIndex"> <properties> @@ -109,7 +109,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE CONTAINS(jcr:title,= 'tr\u00E8ma na\u00EFve')"; @@ -119,7 +119,7 @@ = XPath = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[jcr:contains(@jcr:title,= 'tr\u00E8ma na\u00EFve')]"; @@ -133,7 +133,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -146,7 +146,7 @@ = Also, we can get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/index-boost-value.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/index-boost-value.xml 2011-06-01 07:56:47 UTC (rev 4= 469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/index-boost-value.xml 2011-06-01 12:12:35 UTC (rev 4= 470) @@ -25,7 +25,7 @@ = indexing-config.xml: = - <!-- = + <!-- = This rule actualy do nothing. 'text' property has default boost value. --> <index-rule nodeType=3D"nt:unstructured" condition=3D"@rule=3D'boost1'"= > @@ -86,7 +86,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:unstructured WHERE CONTAINS(text= , 'quick') ORDER BY jcr:score() DESC"; @@ -96,7 +96,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:unstructured)[jcr:contains(@text= , 'quick')] order by @jcr:score descending"; @@ -110,7 +110,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/jcr-query-usecases.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/jcr-query-usecases.xml 2011-06-01 07:56:47 UTC (rev = 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/jcr-query-usecases.xml 2011-06-01 12:12:35 UTC (rev = 4470) @@ -23,7 +23,7 @@ = SQL = - // get QueryManager + // get QueryManager QueryManager queryManager =3D workspace.getQueryManager();=C2=A0 // make SQL query Query query =3D queryManager.createQuery("SELECT * FROM nt:base ", Query.S= QL); @@ -32,7 +32,7 @@ = XPath = - // get QueryManager + // get QueryManager QueryManager queryManager =3D workspace.getQueryManager(); = // make XPath query Query query =3D queryManager.createQuery("//element(*,nt:base)", Query.XPA= TH); @@ -43,16 +43,16 @@
Query Result Processing = - // fetch query result + // fetch query result QueryResult result =3D query.execute(); = Now we can get result in an iterator of nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNode= s(); = or we get the result in a table: = - // get column names + // get column names String[] columnNames =3D result.getColumnNames(); // get column rows RowIterator rowIterator =3D result.getRows(); Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/like-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/like-constraint.xml 2011-06-01 07:56:47 UTC (rev 446= 9) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/like-constraint.xml 2011-06-01 12:12:35 UTC (rev 447= 0) @@ -47,7 +47,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE jcr:title LIKE 'P%'= "; @@ -57,7 +57,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[jcr:like(@jcr:title, 'P%= ')]"; @@ -71,7 +71,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -82,7 +82,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/multivalue-property-comparison.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/multivalue-property-comparison.xml 2011-06-01 07:56:= 47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/multivalue-property-comparison.xml 2011-06-01 12:12:= 35 UTC (rev 4470) @@ -40,7 +40,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:unstructured WHERE multiprop =3D= 'one' AND multiprop =3D 'two'"; @@ -50,7 +50,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:unstructured)[@multiprop =3D 'on= e' and @multiprop =3D 'two']"; @@ -64,7 +64,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -75,7 +75,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/node-name-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/node-name-constraint.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/node-name-constraint.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -43,7 +43,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:file WHERE fn:name() =3D 'docume= nt'"; @@ -53,7 +53,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:file)[fn:name() =3D 'document']"; @@ -67,7 +67,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -79,7 +79,7 @@ = Also we can get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/node-scope-index.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/node-scope-index.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/node-scope-index.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -10,7 +10,7 @@ = First of all, add rules to indexing-configuration.xml: = - <index-rule nodeType=3D"nt:unstructured" condition=3D= "@rule=3D'nsiTrue'"> + <index-rule nodeType=3D"nt:unstructu= red" condition=3D"@rule=3D'nsiTrue'"> <!-- default value for nodeScopeIndex is true --> <property>text</property> </index-rule> @@ -60,7 +60,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:unstructured WHERE CONTAINS(*,'q= uick')"; @@ -70,7 +70,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:unstructured)[jcr:contains(., 'q= uick')]"; @@ -84,7 +84,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -96,7 +96,7 @@ = Also, we can get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/not-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/not-constraint.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/not-constraint.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -42,7 +42,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE NOT jcr:title LIKE = 'P%'"; @@ -52,7 +52,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[not(jcr:like(@jcr:title,= 'P%'))]"; @@ -66,7 +66,7 @@ = Let's get the nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -77,7 +77,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/offset-and-limit.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/offset-and-limit.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/offset-and-limit.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -71,7 +71,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:unstructured"; @@ -89,7 +89,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/or-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/or-constraint.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/or-constraint.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -46,7 +46,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE jcr:title =3D 'Cind= erella' OR jcr:description =3D 'novel'"; @@ -56,7 +56,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[@jcr:title=3D'Cinderella= ' or @jcr:description =3D 'novel']"; @@ -70,7 +70,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -81,7 +81,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/order-by-descendant.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-descendant.xml 2011-06-01 07:56:47 UTC (rev= 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-descendant.xml 2011-06-01 12:12:35 UTC (rev= 4470) @@ -89,7 +89,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "/jcr:root/* order by a/b/c/@prop descending; @@ -103,7 +103,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -115,7 +115,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/order-by-property.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-property.xml 2011-06-01 07:56:47 UTC (rev 4= 469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-property.xml 2011-06-01 12:12:35 UTC (rev 4= 470) @@ -42,7 +42,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title ORDER BY prop_pagecount A= SC"; @@ -52,7 +52,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title) order by @prop_pagecount= ascending"; @@ -66,7 +66,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -78,7 +78,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/order-by-score.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-score.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/order-by-score.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -66,7 +66,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE CONTAINS(*, 'brown = OR fox OR jumps') ORDER BY jcr:score() ASC"; @@ -76,7 +76,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[jcr:contains(., 'brown O= R fox OR jumps')] order by jcr:score()"; @@ -90,7 +90,7 @@ = Let's get nodes = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -102,7 +102,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/property-comparison.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/property-comparison.xml 2011-06-01 07:56:47 UTC (rev= 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/property-comparison.xml 2011-06-01 12:12:35 UTC (rev= 4470) @@ -43,7 +43,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT jcr:title FROM mix:title WHERE prop_pageco= unt < 90"; @@ -53,7 +53,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[@prop_pagecount < 90]= /@jcr:title"; @@ -67,7 +67,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -78,7 +78,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/property-existance-constraint.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/property-existance-constraint.xml 2011-06-01 07:56:4= 7 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/property-existance-constraint.xml 2011-06-01 12:12:3= 5 UTC (rev 4470) @@ -42,7 +42,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE jcr:description IS = NULL"; @@ -52,7 +52,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D ""//element(*,mix:title)[not(@jcr:description)]"= "; @@ -66,7 +66,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -77,7 +77,7 @@ = We can also get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/regexp-indexing-rule.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/regexp-indexing-rule.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/regexp-indexing-rule.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -9,7 +9,7 @@ properties whoes names ends with 'Text' string. First of all, add rules = to indexing-configuration.xml: = - <index-rule nodeType=3D"nt:unstructured""> + <index-rule nodeType=3D"nt:unstructu= red""> <property isRegexp=3D"true">.*Text</property> </index-rule> = @@ -57,7 +57,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM nt:unstructured WHERE CONTAINS(*,'q= uick')"; @@ -67,7 +67,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,nt:unstructured)[jcr:contains(., 'q= uick')]"; @@ -81,7 +81,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { @@ -93,7 +93,7 @@ = Also, we can get a table: = - String[] columnNames =3D result.getColumnNames(); + String[] columnNames =3D result.getC= olumnNames(); RowIterator rit =3D result.getRows(); while (rit.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/searching-repository-content.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/searching-repository-content.xml 2011-06-01 07:56:47= UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/searching-repository-content.xml 2011-06-01 12:12:35= UTC (rev 4470) @@ -38,7 +38,7 @@ = TwoWayRangeIterator interface: = - /** + /** * Skip a number of elements in the iterator. * = * @param skipNum the non-negative number of elements to skip @@ -49,7 +49,7 @@ = Usage: = - NodeIterator iter =3D queryResult.getNodes(); + NodeIterator iter =3D queryResult.ge= tNodes(); while (iter.hasNext()) { if (skipForward) { iter.skip(10); // Skip 10 nodes in forward direction @@ -71,7 +71,7 @@ To use it, you have to form a query like the one described below: = - QueryManager qman =3D session.getWorkspace().getQueryM= anager(); + QueryManager qman =3D session.getWor= kspace().getQueryManager(); Query q =3D qman.createQuery("select * from nt:base where contains(field, = 'ccccc~')", Query.SQL); QueryResult res =3D q.execute();
@@ -92,10 +92,10 @@ configuration parameter to the query-handler element in your jcr configuration file to enable it. = - <param name=3D"synonymprovider-config-path" value= =3D"..you path to configuration file....."/> + <param name=3D"synonymprovider-co= nfig-path" value=3D"..you path to configuration file....."/> <param name=3D"synonymprovider-class" value=3D"org.exoplatform.service= s.jcr.impl.core.query.lucene.PropertiesSynonymProvider"/> = - /** + /** * <code>SynonymProvider</code> defines an interface for a com= ponent that * returns synonyms for a given term. */ @@ -139,14 +139,14 @@ to the query-handler element in your jcr configuration file to enable it. = - <param name=3D"support-highlighting" value=3D"true"= /> + <param name=3D"support-highlightin= g" value=3D"true"/> = Additionally, there is a parameter that controls the format of t= he excerpt created. In JCR 1.9, the default is set to org.exoplatform.services.jcr.impl.core.query.lucene.DefaultHTMLExcerpt. The configuration parameter for this setting is: = - <param name=3D"excerptprovider-class" value=3D"org.= exoplatform.services.jcr.impl.core.query.lucene.DefaultXMLExcerpt"/> + <param name=3D"excerptprovider-cla= ss" value=3D"org.exoplatform.services.jcr.impl.core.query.lucene.DefaultXML= Excerpt"/> =
DefaultXMLExcerpt @@ -154,7 +154,7 @@ This excerpt provider creates an XML fragment of the following form: = - <excerpt> + <excerpt> <fragment> <highlight>exoplatform</highlight> implements both the= mandatory XPath and optional SQL <highlight>query</highlight> sy= ntax. @@ -172,7 +172,7 @@ This excerpt provider creates an HTML fragment of the following form: = - <div> + <div> <span> <strong>exoplatform</strong> implements both the manda= tory XPath and optional SQL <strong>query</strong> syntax. @@ -190,7 +190,7 @@ If you are using XPath, you must use the rep:excerpt() functio= n in the last location step, just like you would select properties: = - QueryManager qm =3D session.getWorkspace().getQueryM= anager(); + QueryManager qm =3D session.getWor= kspace().getQueryManager(); Query q =3D qm.createQuery("//*[jcr:contains(., 'exoplatform')]/(@Title|re= p:excerpt(.))", Query.XPATH); QueryResult result =3D q.execute(); for (RowIterator it =3D result.getRows(); it.hasNext(); ) { @@ -215,7 +215,7 @@ but the column in the RowIterator will nonetheless be labled rep:excerpt(.)! = - QueryManager qm =3D session.getWorkspace().getQueryM= anager(); + QueryManager qm =3D session.getWor= kspace().getQueryManager(); Query q =3D qm.createQuery("select excerpt(.) from nt:resource where conta= ins(., 'exoplatform')", Query.SQL); QueryResult result =3D q.execute(); for (RowIterator it =3D result.getRows(); it.hasNext(); ) { @@ -288,7 +288,7 @@ You can spell check a fulltext statement either with an XPath = or a SQL query: = - // rep:spellcheck('explatform') will always evaluate= to true + // rep:spellcheck('explatform') wi= ll always evaluate to true Query query =3D qm.createQuery("/jcr:root[rep:spellcheck('explatform')]/(r= ep:spellcheck())", Query.XPATH); RowIterator rows =3D query.execute().getRows(); // the above query will always return the root node no matter what string = we check @@ -304,7 +304,7 @@ = And the same using SQL: = - // SPELLCHECK('exoplatform') will always evaluate to= true + // SPELLCHECK('exoplatform') will = always evaluate to true Query query =3D qm.createQuery("SELECT rep:spellcheck() FROM nt:base WHERE= jcr:path =3D '/' AND SPELLCHECK('explatform')", Query.SQL); RowIterator rows =3D query.execute().getRows(); // the above query will always return the root node no matter what string = we check @@ -350,7 +350,7 @@ Hightlighting is enabled. Please make sure that you have the following parameter set for the query handler in your workspace.xml. = - <param name=3D"support-highlighting" value=3D"true"= /> + <param name=3D"support-highlightin= g" value=3D"true"/> = The functions are called rep:similar() (in XPath) and similar() = (in SQL) and have two arguments: Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/spell-checker.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/spell-checker.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/spell-checker.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -17,7 +17,7 @@ = test-jcr-config.xml: = - <query-handler class=3D"org.exoplatform.services.jcr.= impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"org.exoplatf= orm.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"spellchecker-class" value=3D"org.exoplatform.servi= ces.jcr.impl.core.query.lucene.spell.LuceneSpellChecker$FiveSecondsRefreshI= nterval" /> @@ -53,7 +53,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT rep:spellcheck() FROM nt:base WHERE jcr:pa= th =3D '/' AND SPELLCHECK('quik OR (-foo bar)')"; @@ -63,7 +63,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "/jcr:root[rep:spellcheck('quik OR (-foo bar)')]= /(rep:spellcheck())"; @@ -77,7 +77,7 @@ = Get suggestion of coorect spelling our phrase: = - RowIterator it =3D result.getRows(); + RowIterator it =3D result.getRows(); Row r =3D rows.nextRow(); Value v =3D r.getValue("rep:spellcheck()"); String correctPhrase =3D v.getString(); Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/synonim-provider.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/synonim-provider.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/synonim-provider.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -16,7 +16,7 @@ Synonim provider must be configured in indexing-configuration.xml : = - <query-handler class=3D"org.exoplatform.services.jcr.= impl.core.query.lucene.SearchIndex"> + <query-handler class=3D"org.exoplatf= orm.services.jcr.impl.core.query.lucene.SearchIndex"> <properties> ... <property name=3D"synonymprovider-class" value=3D"org.exoplatform= .services.jcr.impl.core.query.lucene.PropertiesSynonymProvider" /> @@ -56,7 +56,7 @@ = SQL = - // make SQL query + // make SQL query QueryManager queryManager =3D workspace.getQueryManager(); // create query String sqlStatement =3D "SELECT * FROM mix:title WHERE CONTAINS(jcr:title,= '~fast')"; @@ -66,7 +66,7 @@ = XPath = - // make XPath query + // make XPath query QueryManager queryManager =3D workspace.getQueryManager(); // create query String xpathStatement =3D "//element(*,mix:title)[jcr:contains(@jcr:title,= '~fast')]"; @@ -80,7 +80,7 @@ = Let's get nodes: = - NodeIterator it =3D result.getNodes(); + NodeIterator it =3D result.getNodes(= ); = if(it.hasNext()) { Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/searching/tip-nodename-with-number.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/tip-nodename-with-number.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/searching/tip-nodename-with-number.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -8,7 +8,7 @@ = XPath = - // get QueryManager + // get QueryManager QueryManager queryManager =3D workspace.getQueryManager(); = // make XPath query Query query =3D queryManager.createQuery("/jcr:root/Documents/Publie/2010/= /element(*, exo:article)", Query.XPATH); @@ -35,7 +35,7 @@ = XPath = - // get QueryManager + // get QueryManager QueryManager queryManager =3D workspace.getQueryManager(); = // make XPath query Query query =3D queryManager.createQuery("/jcr:root/Documents/Publie/_x003= 2_010//element(*, exo:article)", Query.XPATH); Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/statistics.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/statistics.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/statistics.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -269,7 +269,7 @@ into the list of parameter values of the init param called targetInterfaces. = - <configuration xmlns:xsi=3D"http://www.w3.org/2001/= XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/= kernel_1_0.xsd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd" + <configuration xmlns:xsi=3D"http:/= /www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exopl= aform.org/xml/ns/kernel_1_0.xsd http://www.exoplaform.org/xml/ns/kernel_1_0= .xsd" xmlns=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"> = <component> @@ -293,7 +293,7 @@ JCR API calls from the exoplatform packages are took into account, don= 't hesistate to modify this filter to add your own package names. = - <aspectj> + <aspectj> <aspects> <concrete-aspect name=3D"org.exoplatform.services.jcr.statistics.JC= RAPIAspectImpl" extends=3D"org.exoplatform.services.jcr.statistics.JCRAPIAs= pect"> <pointcut name=3D"JCRAPIPointcut" Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/transaction-manager-lookup.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/transaction-manager-lookup.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/transaction-manager-lookup.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -12,7 +12,7 @@ It's JBossCache class registered as eXo container component in configuration.xml file. = - <component> + <component> <key>org.jboss.cache.transaction.TransactionManagerLookup</k= ey> <type>org.jboss.cache.transaction.JBossStandaloneJTAManagerLook= up</type> </component> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr-with-gtn/how-to-extend-my-gatein-instance.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr-with-gtn/how-to-extend-my-gatein-instance.xml 2011-06-01 07:56= :47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr-with-gtn/how-to-extend-my-gatein-instance.xml 2011-06-01 12:12= :35 UTC (rev 4470) @@ -267,12 +267,12 @@ = - A init task is defined as below: + An init task is defined as below: = PortalContainerPreInitTask = - /** + /** * This interface is used to define a task that needs to be launched at= a given state during the * initialization of a portal container */ @@ -346,7 +346,7 @@ Old GadgetRegister.java = - ... + ... public class GadgetRegister implements ServletContextListener { ... @@ -369,7 +369,7 @@ New GadgetRegister.java = - ... + ... public class GadgetRegister implements ServletContextListener { ... public void contextInitialized(ServletContextEvent event) @@ -591,7 +591,7 @@ file that define and register a PortalContainerDefinition: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -757,7 +757,7 @@ = See below an example = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -944,7 +944,7 @@ = See an example of a web.xml below: = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?&g= t; + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1" ?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Applicatio= n 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> @@ -1018,7 +1018,7 @@ file that add the portal extension "portal-ext" to the dependency li= st of the portal "portal": = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1197,7 +1197,7 @@ = See an example below:<= /para> = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1333,7 +1333,7 @@ WEB-INF/conf/configuration.xml of the product "sample-ext". = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1358,7 +1358,7 @@ \-$portal.container.name. See an example below: = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd h= ttp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1416,7 +1416,7 @@ See an example of jcr-configurati= on.xml below: = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1444,7 +1444,7 @@ = See an example of repository-configuration.xml below: = - <repository-service default-repository=3D"reposit= ory"> + <repository-service default-repo= sitory=3D"repository"> <repositories> <repository name=3D"repository" system-workspace=3D"system" default= -workspace=3D"portal-system"> <security-domain>exo-domain</security-domain> @@ -1526,7 +1526,7 @@ = See an example below:<= /para> = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1648,7 +1648,7 @@ = See an example below:<= /para> = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1740,7 +1740,7 @@ See an example of configuration below: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1782,7 +1782,7 @@ SampleFilter.java = - ... + ... import org.exoplatform.web.filter.Filter; = import java.io.IOException; @@ -1864,7 +1864,7 @@ See an example of configuration below: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd ht= tp://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -1912,7 +1912,7 @@ SampleHttpSessionCreatedListener.java = - .. + .. import org.exoplatform.container.PortalContainer; import org.exoplatform.services.listener.Event; import org.exoplatform.services.listener.Listener; @@ -1935,7 +1935,7 @@ SampleContextInitializedListener.java = - .. + .. import org.exoplatform.container.PortalContainer; import org.exoplatform.services.listener.Event; import org.exoplatform.services.listener.Listener; @@ -2211,7 +2211,7 @@ = - <application-policy name=3D"exo-domain-sample= -portal"> + <application-policy name=3D"= exo-domain-sample-portal"> <authentication> <login-module code=3D"org.exoplatform.web.security.PortalLoginMod= ule" flag=3D"required"> <module-option name=3D"portalContainerName">sample-portal<= ;/module-option> @@ -2337,7 +2337,7 @@ tomcat/conf/Catalina/localhost/sample-portal.xml = - <Context path=3D'/sample-portal' docBase=3D's= ample-portal' debug=3D'0' reloadable=3D'true' crossContext=3D'true' privile= ged=3D'true'> + <Context path=3D'/sample-por= tal' docBase=3D'sample-portal' debug=3D'0' reloadable=3D'true' crossContext= =3D'true' privileged=3D'true'> <Logger className=3D'org.apache.catalina.logger.SystemOutLogger' prefix=3D'localhost_portal_log.' suffix=3D'.txt' timestamp=3D'tr= ue'/> <Manager className=3D'org.apache.catalina.session.PersistentManager' = saveOnRestart=3D'false'/> @@ -2362,7 +2362,7 @@ tomcat/conf/Catalina/localhost/rest-sample-portal.xml</ti= tle> = - <programlisting><Context path=3D"/rest-sample-portal" docBase= =3D"rest-sample-portal" reloadable=3D"true" crossContext=3D"false"> + <programlisting language=3D"xml"><Context path=3D"/rest-sampl= e-portal" docBase=3D"rest-sample-portal" reloadable=3D"true" crossContext= =3D"false"> = <Logger className=3D'org.apache.catalina.logger.SystemOutLogger' prefix=3D'localhost_portal_log.' suffix=3D'.txt' timestamp=3D'= true'/> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr-with-gtn/managed-datasources-under-jboss-as.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr-with-gtn/managed-datasources-under-jboss-as.xml 2011-06-01 07:= 56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr-with-gtn/managed-datasources-under-jboss-as.xml 2011-06-01 12:= 12:35 UTC (rev 4470) @@ -26,7 +26,8 @@ jdbcjcr_portal, jdbcjcr_portal-sample, jdbcidm_portal & jdbcidm_sample-portal).</para> = - <para>Example:<programlisting><?xml version=3D"1.0" encoding=3D"U= TF-8"?> + <para>Example:</para> + <programlisting language=3D"xml"><?xml version=3D"1.0" encoding= =3D"UTF-8"?> <datasources> <no-tx-datasource> <jndi-name>jdbcjcr_portal</jndi-name> @@ -59,7 +60,7 @@ <user-name>sa</user-name> <password></password> </no-tx-datasource> -</datasources></programlisting></para> +</datasources></programlisting> = <para>Which properties can be set for datasource can be found here: <ulink @@ -89,7 +90,7 @@ <para>In jcr-configuration.xml and idm-configuration.xml comment out= the plugin InitialContextInitializer.</para> = - <programlisting><!-- Commented because, Datasources are declared = and bound by AS, not in eXo --> + <programlisting language=3D"xml"><!-- Commented because, Datasour= ces are declared and bound by AS, not in eXo --> <!-- <external-component-plugins> [...] Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/cache.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/cache.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/cache.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -19,7 +19,9 @@ <envar>org.exoplatform.services.cache.ExoCacheConfig</envar> in order = to create new <envar>ExoCache</envar> instances. See the below example of <envar>org.exoplatform.services.cache.CacheService</envar> - definition:<programlisting> <component> + definition:</para> + = + <programlisting language=3D"xml"> <component> <key>org.exoplatform.services.cache.CacheService</key> <jmx-name>cache:type=3DCacheService</jmx-name> <type>org.exoplatform.services.cache.impl.CacheServiceImpl</t= ype> @@ -36,16 +38,19 @@ </object> </object-param> </init-params> - </component></programlisting></para> + </component></programlisting> = - <para><note> + <note> <para>The <envar>ExoCacheConfig</envar> which name is <envar>default</envar>, will be the default configuration of all t= he <envar>ExoCache</envar> instances that don't have dedicated configuration.</para> - </note>See the below example about how to define a new + </note> + <para> See the below example about how to define a new <envar>ExoCacheConfig</envar> thanks to a - <emphasis>external-component-plugin</emphasis>:<programlisting> <e= xternal-component-plugins> + <emphasis>external-component-plugin</emphasis>:</para> + = + <programlisting language=3D"xml"> <external-component-plugins> <target-component>org.exoplatform.services.cache.CacheService<= ;/target-component> <component-plugin> <name>addExoCacheConfig</name> @@ -66,7 +71,7 @@ </object-param> </init-params> </component-plugin> - </external-component-plugins></programlisting></para> + </external-component-plugins></programlisting> = <table> <title>Descriptions of the fields of @@ -152,7 +157,9 @@ eXo Products.</para> = <para>You just need to implement your own <envar>ExoCacheFactory</enva= r> - and register it in an eXo container, as described below:<programlistin= g>package org.exoplatform.services.cache; + and register it in an eXo container, as described below:</para> + = + <programlisting language=3D"java">package org.exoplatform.services.cac= he; ... public interface ExoCacheFactory { = @@ -163,27 +170,32 @@ * @exception ExoCacheInitException if an exception happens while initia= lizing the cache */ public ExoCache createCache(ExoCacheConfig config) throws ExoCacheInitEx= ception; = -}</programlisting></para> +}</programlisting> = <para>As you can see, there is only one method to implement which can = be seen as a converter of an <envar>ExoCacheConfig</envar> to get an inst= ance of <envar>ExoCache</envar>. Once, you created your own implementation,= you can simply register your factory by adding a file <emphasis>conf/portal/configuration.xml</emphasis> with a content of t= he - following type:<programlisting><configuration> + following type:</para> + = + <programlisting language=3D"xml"><configuration> <component> <key>org.exoplatform.services.cache.ExoCacheFactory</key> <type>org.exoplatform.tutorial.MyExoCacheFactoryImpl</type> ... </component> = -</configuration></programlisting><note> +</configuration> +</programlisting> + +<note> <para>Since kernel 2.3.0-CR1, if the configuration is not a sub cl= ass of <envar>ExoCacheConfig</envar> and the implementation given in t= he configuration is the full qualified name of an existing implementa= tion of eXo Cache, we will assume that the user expects to have an inst= ance of this eXo Cache type so we won't use the configured cache factory.</para> - </note></para> + </note> </section> = <section> @@ -197,7 +209,9 @@ itself but of course you can still redefined the configuration if you wish as you can do with any components.</para> = - <para>The default configuration of the factory is:<programlisting>&l= t;configuration> = + <para>The default configuration of the factory is:</para> + = + <programlisting language=3D"xml"><configuration> = <component> <key>org.exoplatform.services.cache.ExoCacheFactory</key> <type>org.exoplatform.services.cache.impl.jboss.ExoCacheFactoryI= mpl</type> @@ -212,7 +226,7 @@ </value-param> </init-params> </component> = -</configuration></programlisting></para> +</configuration></programlisting> = <table> <title>Fields description @@ -263,7 +277,9 @@ = If for a given reason, you need to use a specific configuration for a cache, you can register one thanks to an "external - plugin", see an example below:<configu= ration> + plugin", see an example below: + = + <configuration> ... <external-component-plugins> <target-component>org.exoplatform.services.cache.ExoCacheFactory= </target-component> @@ -281,7 +297,7 @@ </component-plugin> = </external-component-plugins> = ... = -</configuration> +</configuration> = In the example above, I call the method addConfig(ExoCacheFactoryConfigPlugin plugin) on @@ -308,7 +324,9 @@ = The factory for jboss cache, delegates the cache creation to ExoCacheCreator that is defined as - below:package org.exoplatform.services.cache.impl.= jboss; + below: + = + package org.exoplatform.services= .cache.impl.jboss; ... public interface ExoCacheCreator { = @@ -331,7 +349,7 @@ * @return the expected by the creator */ public String getExpectedImplementation(); -} +} = The ExoCacheCreator allows you to define any = kind of jboss cache instance that you would like to have. It has been @@ -349,7 +367,7 @@ = - getExpectedConfigType : this method= is + getExpectedConfigType: this method = is used to indicate the factory the subtype of ExoCacheConfig supported by the creator. @@ -370,7 +388,9 @@ = You can register any cache creator that you want thanks to an "external plugin", see an example - below: <external-component-plugins> + below: + = + <external-component-plugins&= gt; <target-component>org.exoplatform.services.cache.ExoCacheFactory= </target-component> <component-plugin> <name>addCreator</name> @@ -388,7 +408,7 @@ </object-param> = </init-params> </component-plugin> - </external-component-plugins> + </external-component-plugins> = In the example above, I call the method addCreator(ExoCacheCreatorPlugin plugin) on t= he @@ -413,7 +433,7 @@
LRU Cache Creator - Least Recently Used = - .. + .. <object-param> <name>LRU</name> <description>The lru cache creator</description> @@ -456,31 +476,33 @@
FIFO Cache Creator - First In, First Out = - ... + ... <object-param> <name>FIFO</name> <description>The fifo cache creator</description> <object type=3D"org.exoplatform.services.cache.impl.jboss.fifo.FIFOExo= CacheCreator"></object> </object-param> ... +
=
MRU Cache Creator - Most Recently Used = - ... + ... <object-param> <name>MRU</name> <description>The mru cache creator</description> <object type=3D"org.exoplatform.services.cache.impl.jboss.mru.MRUExoC= acheCreator"></object> </object-param> ... +
=
LFU Cache Creator - Least Frequently Used = - ... + ... <object-param> <name>LFU</name> <description>The lfu cache creator</description> @@ -512,7 +534,7 @@
EA Cache Creator - Expiration Algorithm = - ... + ... <object-param> <name>EA</name> <description>The ea cache creator</description> @@ -564,7 +586,7 @@
At <envar>CacheService</envar> initialization = - ... + ... <component> <key>org.exoplatform.services.cache.CacheService</key> <type>org.exoplatform.services.cache.impl.CacheServiceImpl</t= ype> @@ -593,7 +615,7 @@
With an <emphasis>"external plugin"</emphasis> = - ... + ... <external-component-plugins> <target-component>org.exoplatform.services.cache.CacheService<= ;/target-component> <component-plugin> @@ -668,8 +690,10 @@ New configuration + + = - ... + ... <object-param> <name>lru</name> <description>The lru cache configuration</description> @@ -681,7 +705,9 @@ <field name=3D"timeToLive"><long>${my-value}</lon= g></field> </object> </object-param> = -... +... + +
Fields description = @@ -721,13 +747,16 @@ -
- + + = + = Old configuration + + = - ... + ... <object-param> <name>lru-with-old-config</name> <description>The lru cache configuration</description> @@ -765,13 +794,13 @@ = - + For the fields maxAge and timeToLive needed by JBoss cache, we = will use the default values provided by the creator. - - - + + = + =
=
@@ -779,7 +808,11 @@ = - New configuration... + New configuration + + + = + ... <object-param> <name>fifo</name> <description>The fifo cache configuration</description> @@ -789,7 +822,7 @@ <field name=3D"minTimeToLive"><long>${my-value}</= long></field> </object> </object-param> -... +... = Fields description @@ -816,10 +849,13 @@
- - - - Old configuration... + + + Old configuration + + + = + ... <object-param> <name>fifo-with-old-config</name> <description>The fifo cache configuration</description> @@ -830,7 +866,7 @@ <field name=3D"implementation"><string>FIFO</stri= ng></field> </object> </object-param> -... +... = Fields description @@ -856,8 +892,6 @@
-
-
=
@@ -865,7 +899,11 @@ = - New configuration... + New configuration + + + = + ... <object-param> <name>mru</name> <description>The mru cache configuration</description> @@ -875,7 +913,7 @@ <field name=3D"minTimeToLive"><long>${my-value}</= long></field> </object> </object-param> = -... +... = Fields description @@ -902,10 +940,14 @@
+ = + + + Old configuration - - - Old configuration... + + = + ... <object-param> <name>mru-with-old-config</name> <description>The mru cache configuration</description> @@ -916,7 +958,7 @@ <field name=3D"implementation"><string>MRU</strin= g></field> </object> </object-param> = -... +... = Fields description @@ -942,8 +984,6 @@
- -
=
@@ -951,7 +991,11 @@ = - New configuration... + New configuration + + + = + ... <object-param> <name>lfu</name> <description>The lfu cache configuration</description> @@ -962,7 +1006,7 @@ <field name=3D"minTimeToLive"><long>${my-value}</= long></field> </object> </object-param> = -... +... = Fields description @@ -1000,10 +1044,13 @@
- - - - Old configuration... + = + + Old configuration + + + = + ... <object-param> <name>lfu-with-old-config</name> <description>The lfu cache configuration</description> @@ -1014,7 +1061,7 @@ <field name=3D"implementation"><string>LFU</strin= g></field> </object> </object-param> = -... +... = Fields description @@ -1047,8 +1094,6 @@ timeToLive needed by JBoss cache, we = will use the default values provided by the creator. - - =
@@ -1056,7 +1101,11 @@ = - New configuration... + New configuration + + + = + ... <object-param> <name>ea</name> <description>The ea cache configuration</description> @@ -1067,7 +1116,7 @@ <field name=3D"expirationTimeout"><long>${my-value}&= lt;/long></field> </object> </object-param> = -... +... =
Fields description @@ -1101,10 +1150,14 @@
+ = + + + Old configuration - - - Old configuration... + + = + ... <object-param> <name>ea-with-old-config</name> <description>The ea cache configuration</description> @@ -1115,7 +1168,7 @@ <field name=3D"implementation"><string>EA</string= ></field> </object> </object-param> = -... +... = Fields description @@ -1148,8 +1201,7 @@ needed by JBoss cache, we will use the default values prov= ided by the creator. - - + = @@ -1165,7 +1217,9 @@ library itself but of course you can still redefined the configurati= on if you wish as you can do with any components. = - The default configuration of the factory is:&l= t;configuration> = + The default configuration of the factory is: + = + <configuration> = <component> <key>org.exoplatform.services.cache.ExoCacheFactory</key> <type>org.exoplatform.services.cache.impl.infinispan.ExoCacheFac= toryImpl</type> @@ -1176,7 +1230,7 @@ </value-param> </init-params> </component> = -</configuration> +</configuration> = As you can see the factory requires one single parameter which= is cache.config.template, this parameter allows yo= u to @@ -1187,11 +1241,12 @@ = The default configuration template aims to be the skeleton from which we will create any type of infinispan cache instance, thus it = must - be very generic. + be very generic. = + All the cache instances that will rely on this cache configuration will share the same EmbeddedCacheManager. - + =
@@ -1199,7 +1254,9 @@ = If for a given reason, you need to use a specific configuration for a cache, you can register one thanks to an "external - plugin", see an example below:<configu= ration> + plugin", see an example below: + = + <configuration> ... <external-component-plugins> <target-component>org.exoplatform.services.cache.ExoCacheFactory= </target-component> @@ -1217,7 +1274,7 @@ </component-plugin> = </external-component-plugins> = ... = -</configuration> +</configuration> = In the example above, I call the method addConfig(ExoCacheFactoryConfigPlugin plugin) on @@ -1250,7 +1307,9 @@ = The factory for infinispan, delegates the cache creation to ExoCacheCreator that is defined as - below:package org.exoplatform.services.cache.impl.= infinispan; + below: + = + package org.exoplatform.services= .cache.impl.infinispan; ... public interface ExoCacheCreator { = @@ -1274,7 +1333,7 @@ * @return the expected by the creator */ public Set<String> getExpectedImplementations(); -} +} = The ExoCacheCreator allows you to define any = kind of infinispan cache instance that you would like to have. It has b= een @@ -1316,7 +1375,9 @@ = You can register any cache creator you want thanks to an "external plugin", see an example - below: <external-component-plugins> + below: + = + <external-component-plugins&= gt; <target-component>org.exoplatform.services.cache.ExoCacheFactory= </target-component> <component-plugin> <name>addCreator</name> @@ -1331,7 +1392,7 @@ </object-param> = </init-params> </component-plugin> - </external-component-plugins> + </external-component-plugins> = In the example above, I call the method addCreator(ExoCacheCreatorPlugin plugin) on t= he @@ -1359,7 +1420,7 @@ This is the generic cache creator that allows you to use a= ny eviction strategies defined by default in Infinispan. = - .. + .. <object-param> <name>GENERIC</name> <description>The generic cache creator</description> @@ -1472,8 +1533,10 @@ New configuration - - ... + + + = + ... <object-param> <name>myCache</name> <description>My cache configuration</description> @@ -1486,7 +1549,8 @@ <field name=3D"wakeUpInterval"><long>${my-value}<= /long></field> </object> </object-param> = -...
+... +
Fields description = @@ -1538,13 +1602,15 @@ -
-
- + + = + Old configuration + + = - ... + ... <object-param> <name>myCache</name> <description>My cache configuration</description> @@ -1597,8 +1663,7 @@ wakeUpInterval needed by infinispan, = we will use the default values provided by the creator. - - + =
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/component-plugin-priority.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/component-plugin-priority.xml 2011-06-01 07:56:47 UTC (rev = 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/component-plugin-priority.xml 2011-06-01 12:12:35 UTC (rev = 4470) @@ -18,7 +18,7 @@ Simple example of fragment of a configuration.xml. = - ... + ... <component> <type>org.exoplatform.services.Component1</type> </component> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/container-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/container-configuration.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/container-configuration.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -33,7 +33,7 @@ http://www.exoplaform.org/xml/ns/kernel_1_2.xsd must be tar= get namespace of the XML configuration file. = - <configuration xmlns:xsi=3D"http://www.w3.org/2001/= XMLSchema-instance" = + <configuration xmlns:xsi=3D"http:/= /www.w3.org/2001/XMLSchema-instance" = xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kern= el_1_2.xsd http://www.exoplaform.org/xml/ns/kernel_1_2.xsd" xmlns=3D"http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"&g= t; = @@ -46,7 +46,7 @@ variables since the eXo kernel resolves them, for example the follow= ing configuration will be well interpreted: = - <configuration + <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_2.xsd h= ttp://www.exoplaform.org/xml/ns/kernel_1_2.xsd" xmlns=3D"http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"> @@ -162,8 +162,10 @@ if configuration URL was initialized to be added to - services defaults, as below:// add configu= ration to the default services configurations from JARs/WARs -StandaloneContainer.addConfigurationURL(containerConf); + services defaults, as below: + = + // add configuration to = the default services configurations from JARs/WARs +StandaloneContainer.addConfigurationURL(containerConf); = Configuration from added URL containerConf will override only serv= ices @@ -366,7 +368,7 @@ PortalContainer simply add the following lines in y= our web.xml file. = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?= > + <?xml version=3D"1.0" encoding= =3D"ISO-8859-1" ?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Applicatio= n 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> @@ -416,7 +418,7 @@ PortalContainerConfig has been defined at the RootContainer level, see an example below: = - <component> + <component> <!-- The full qualified name of the PortalContainerConfig --> <type>org.exoplatform.container.definition.PortalContainerConfig= </type> <init-params> @@ -571,7 +573,9 @@ = A new PortalContainerDefinition can be define= d at the RootContainer level thanks to an external plugi= n, - see an example below: <external-component-plug= ins> + see an example below: + = + <external-component-plugins&= gt; <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalCon= tainerConfig</target-component> <component-plugin> @@ -664,7 +668,7 @@ </object-param> </init-params> </component-plugin> - </external-component-plugins> + </external-component-plugins> = Descriptions of the fields of a @@ -1053,7 +1057,9 @@ </table> = <para>You can find below an example of how to use the - variables:<programlisting><configuration xmlns:xsi=3D"http://ww= w.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplafo= rm.org/xml/ns/kernel_1_1.xsd http://www.exoplaform.org/xml/ns/kernel_1_1.xs= d" + variables:</para> + = + <programlisting language=3D"xml"><configuration xmlns:xsi=3D"ht= tp://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.e= xoplaform.org/xml/ns/kernel_1_1.xsd http://www.exoplaform.org/xml/ns/kernel= _1_1.xsd" xmlns=3D"http://www.exoplaform.org/xml/ns/kernel_1_1.xsd"> <component> <type>org.exoplatform.container.TestPortalContainer$MyComponent&= lt;/type> @@ -1083,7 +1089,7 @@ </value-param> </init-params> </component> -</configuration></programlisting></para> +</configuration></programlisting> = <para>In the properties file corresponding to the external setting= s, you can reuse variables previously defined (in the external settin= gs @@ -1126,7 +1132,7 @@ portal container and to the portal containers called <envar>foo1</envar> and <envar>foo2</envar>:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugins> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1305,7 +1311,7 @@ the end of the dependency list of the default portal container:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugin= s> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1381,7 +1387,7 @@ before <envar>foo2</envar> in the dependency list of the defau= lt portal container:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugin= s> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1461,7 +1467,7 @@ <envar>foo2</envar> in the dependency list of the default port= al container:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugin= s> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1528,7 +1534,7 @@ <envar>string</envar> and <envar>stringX</envar> to the settin= gs of the default portal container:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugin= s> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1584,7 +1590,7 @@ the example below, we disable the portal container named <envar>foo</envar>:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugins> <!-- The full qualified name of the PortalContainerConfig --> <target-component>org.exoplatform.container.definition.PortalConta= inerConfig</target-component> <component-plugin> @@ -1634,7 +1640,7 @@ make sure that the following Http Filter (or a sub class of it) has been added to your web.xml in first position as below:</para> = - <programlisting><filter> + <programlisting language=3D"xml"><filter> <filter-name>PortalContainerFilter</filter-name> <filter-class>org.exoplatform.container.web.PortalContainerFilter&= lt;/filter-class> </filter> = @@ -1669,7 +1675,7 @@ <para>The properties init param takes a property declared to configu= re various properties.</para> = - <programlisting><component> + <programlisting language=3D"xml"><component> <key>PropertyManagerConfigurator</key> <type>org.exoplatform.container.PropertyConfigurator</type> <init-params> @@ -1691,7 +1697,7 @@ property declarations are loaded in the order in which the properties are declared sequentially in the file.</para> = - <programlisting><component> + <programlisting language=3D"xml"><component> <key>PropertyManagerConfigurator</key> <type>org.exoplatform.container.PropertyConfigurator</type> <init-params> @@ -1809,7 +1815,7 @@ will shadow any element with the same key declared before in the same configuration file:</para> = - <programlisting><component> + <programlisting language=3D"xml"><component> <key>Component</key> <type>Component</type> </component> @@ -1827,7 +1833,7 @@ configuration of a given component. Thanks to the profiles the component-plugins could be enabled or disabled:</para> = - <programlisting><external-component-plugins> + <programlisting language=3D"xml"><external-component-plugins&= gt; <target-component>Component</target-component> <component-plugin profiles=3D"foo"> <name>foo</name> @@ -1849,7 +1855,7 @@ <para>The import element imports a referenced configuration file when activated:</para> = - <programlisting><import>empty</import> + <programlisting language=3D"xml"><import>empty</import&= gt; <import profiles=3D"foo">foo</import> <import profiles=3D"bar">bar</import></programlisting> </section> @@ -1860,7 +1866,7 @@ <para>The init param element configures the parameter argument of the construction of a component service:</para> = - <programlisting><component> + <programlisting language=3D"xml"><component> <key>Component</key> <type>ComponentImpl</type> <init-params> @@ -1886,7 +1892,7 @@ <para>The value collection element configures one of the value of collection data:</para> = - <programlisting><object type=3D"org.exoplatform.container.con= figuration.ConfigParam"> + <programlisting language=3D"xml"><object type=3D"org.exoplatf= orm.container.configuration.ConfigParam"> <field name=3D"role"> <collection type=3D"java.util.ArrayList"> <value><string>manager</string></value> @@ -1903,7 +1909,7 @@ <para>The field configuration element configures the field of an object:</para> = - <programlisting><object-param> + <programlisting language=3D"xml"><object-param> <name>test.configuration</name> <object type=3D"org.exoplatform.container.configuration.ConfigParam"&= gt; <field name=3D"role"> @@ -1936,7 +1942,9 @@ = <para>The component request life cycle is an interface that defines a contract for a component for being involved into a - request:<programlisting>public interface ComponentRequestLifecycle + request:</para> + = + <programlisting language=3D"java">public interface ComponentRequestL= ifecycle { /** * Start a request. @@ -1949,7 +1957,7 @@ * @param container the related container */ void endRequest(ExoContainer container); -}</programlisting></para> +}</programlisting> = <para>The container passed is the container to which the component is related. This contract is often used to setup a thread local based @@ -1973,7 +1981,7 @@ <section> <title>Scheduling a component request life cycle = - RequestLifeCycle.begin(component); + RequestLifeCycle.begin(component= ); try { // Do something @@ -1994,7 +2002,8 @@ scheduled again. When the local value is true, then the looked components will be those of the container, when it is false then t= he scheduler will also look at the components in the ancestor - containers.RequestLifeCycle.begin(container, local= ); + containers. + RequestLifeCycle.begin(container= , local); try { // Do something @@ -2002,7 +2011,7 @@ finally { RequestLifeCycle.end(); -} +} = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/initialcontext-binder-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/initialcontext-binder-service.xml 2011-06-01 07:56:47 UTC (= rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/initialcontext-binder-service.xml 2011-06-01 12:12:35 UTC (= rev 4470) @@ -18,7 +18,7 @@ = Service provide methods for binding reference. = - public void bind(String bindName, String className, St= ring factory, String factoryLocation, Map<String, String> refAddr) th= rows NamingException, FileNotFoundException, XMLStreamExcept + public void bind(String bindName, St= ring className, String factory, String factoryLocation, Map<String, Stri= ng> refAddr) throws NamingException, FileNotFoundException, XMLStreamExc= ept = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/inversion-of-control.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/inversion-of-control.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/inversion-of-control.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -54,16 +54,16 @@ = Using a constructor: = - public ServiceA(ServiceB serviceB) + public ServiceA(ServiceB serviceB) = Using setter methods: = - public void setServiceB(ServiceB serviceB) + public void setServiceB(ServiceB ser= viceB) = When a client service can not be stored in the container then the service locator pattern is used: = - public ServiceA(){ + public ServiceA(){ this.serviceB =3DContainer.getSInstance().getService(ServiceB.class); } Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/jndi-naming.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/jndi-naming.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/jndi-naming.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -118,7 +118,7 @@ The InitialContextInitializer configuration example: = - <component> + <component> <type>org.exoplatform.services.naming.InitialContextInitializer&= lt;/type> <init-params> <properties-param> @@ -136,7 +136,7 @@ <value>bind-references.xml</value>. </value-param>. </init-params> - </component> + </component> = where = @@ -146,7 +146,7 @@ The BindReferencePlugin component plugin configuration example (for JDBC datasource): = - <component-plugins> = + <component-plugins> = <component-plugin> = <name>bind.datasource</name> <set-method>addPlugin</set-method> @@ -173,7 +173,7 @@ <property name=3D"password" value=3D""/> </properties-param> = </init-params> = - </component-plugin> + </component-plugin> =
@@ -201,7 +201,7 @@ = Service provides methods for binding reference. = - + public void bind(String bindName, = String className, = String factory, = @@ -237,7 +237,7 @@ = Example of usage: = - + // obtain InitialContextInitializer instance from ExoContainer (e.g.= PortalContainer) InitialContextInitializer initContext =3D (InitialContextInitializer= )container.getComponentInstanceOfType(InitialContextInitializer.class); = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/job-scheduler-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/job-scheduler-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/job-scheduler-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -100,7 +100,7 @@ QuartzSheduler and QueueTasks, you also have to configure these = two components. - <?xml version=3D"1.0" encoding=3D"= UTF-8"?> + <?xml version=3D"1.0" = encoding=3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.x= sd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -149,7 +149,7 @@ Edit the pom.xml as follows: - <project + <project xmlns=3D"http://maven.apache.org/POM/4.0.0" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://mave= n.apache.org/maven-v4_0_0.xsd"> @@ -175,7 +175,7 @@ Define a job To define a job, do as follows: Define your job to be performed. For example, the job DumbJob is defined as follows: - package org.exoplatform.samples.scheduler.jobs; + package org.exoplatform.samples.= scheduler.jobs; = import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; @@ -208,9 +208,9 @@
Job configuration After defining the "job", the only next step is to= configure it by using external-component-plugin<= /emphasis> configuration for org.exoplatform.serv= ices.scheduler.JobSchedulerService. You can use these methods be= low for setting component plugin: - public void addPeriodJob(ComponentPlugin plugin) t= hrows Exception; + public void addPeriodJob(Compone= ntPlugin plugin) throws Exception; The component plugin for this method must be the type of org.exoplatform.services.scheduler.PeriodJob. This type of job is used to perform actions that are executed in a per= iod of time. You have to define when this job is performed, when it ends, w= hen it performs the first action, how many times it is executed and the per= iod of time to perform the action. See the configuration sample below to un= derstand more clearly: - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.scheduler.JobScheduler= Service</target-component> <component-plugin> <name>PeriodJob Plugin</name> @@ -232,9 +232,9 @@ </init-params> </component-plugin> </external-component-plugins> - public void addCronJob(ComponentPlugin plugin) thr= ows Exception; + public void addCronJob(Component= Plugin plugin) throws Exception; The component plugin for this method must be the type of org.exoplatform.services.scheduler.CronJob. This type of job is used to perform actions at specified time with Unix = 'cron-like' definitions. The plugin uses "expression" f= ield for specifying the 'cron-like' definitions to execute the jo= b. This is considered as the most powerful and flexible job to define when = it will execute. For example, at 12pm every day =3D> "0 0 12 * * ?&= quot;; or at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday = =3D> "0 15 10 ? * MON-FRI". To see more about Cron expression,= please refer to this article: CRON expression.See the configuration = sample below to understand more clearly: - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.scheduler.JobSchedule= rService</target-component> <component-plugin> <name>CronJob Plugin</name> @@ -254,17 +254,17 @@ </init-params> </component-plugin> </external-component-plugins> - public void addGlobalJobListener(ComponentPlugin p= lugin) throws Exception; - public void addJobListener(ComponentPlugin plugin)= throws Exception; + public void addGlobalJobListener= (ComponentPlugin plugin) throws Exception; + public void addJobListener(Compo= nentPlugin plugin) throws Exception; The component plugin for two methods above must be the type = of org.quartz.JobListener. This job li= stener is used so that it will be informed when a org.quartz.JobDetail executes. - public void addGlobalTriggerListener(ComponentPlug= in plugin) throws Exception; - public void addTriggerListener(ComponentPlugin plu= gin) throws Exception; + public void addGlobalTriggerList= ener(ComponentPlugin plugin) throws Exception; + public void addTriggerListener(C= omponentPlugin plugin) throws Exception; The component plugin for two methods above must be the type = of org.quartz.TriggerListener. This tr= igger listener is used so that it will be informed when a org.quartz.Trigger fires.
Run the project Create conf.portal pack= age in your sample project. Add the configuration.xml file with the content= as follows: - <?xml version=3D"1.0" encoding=3D&quo= t;UTF-8"?> + <?xml version=3D"1.0"= ; encoding=3D"UTF-8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.x= sd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd" Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/listener-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/listener-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/listener-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -25,7 +25,7 @@ - It's very simple, just mark your Listener implementation as @Asynchronous. = - @Asynchronous + @Asynchronous class AsynchListenerWithException<S,D> extends Listener<S,D> { @Override @@ -39,7 +39,9 @@ ExecutorService. = By default, ExecutoreService configured w= ith - thread pool size 1, you can change it in configuration: <component> + thread pool size 1, you can change it in configuration: + = + <component> <key>org.exoplatform.services.listener.ListenerService</key= > <type>org.exoplatform.services.listener.ListenerService</ty= pe> = @@ -50,6 +52,6 @@ </value-param> </init-params> = - </component> + </component>
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/logging.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/logging.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/logging.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -81,7 +81,8 @@ = Log4J = is a very popular and flexible logging system. It is a good option for - JBoss. <component> + JBoss. + <component> <type>org.exoplatform.services.log.LogConfigurationInitializer&l= t;/type> <init-params> <value-param> @@ -105,33 +106,48 @@ <property name=3D"log4j.appender.file.layout.ConversionPattern"= value=3D"%d{dd.MM.yyyy HH:mm:ss} %m (%F, line %L) %n"/> </properties-param > </init-params> - </component> + </component>
=
Assigning logger level for classes or components = You can set logger level for class or group of classes by - setting next property:<property name=3D"log4j.c= ategory.{component or class name}" value=3D"DEBUG"/> + setting next property: + = + <property name=3D"log4j.catego= ry.{component or class name}" value=3D"DEBUG"/> = - For example: + For example: + We want to log all debug messages for class org.exoplatform.services.jcr.impl.core.SessionDat= aManager, that lies in exo.jcr.component.core - component<property name=3D"log4j.category= .exo.jcr.component.core.SessionDataManager" value=3D"DEBUG"/> + component - + + = + <property name=3D"log4j.= category.exo.jcr.component.core.SessionDataManager" value=3D"DEBUG"/> + = + - Or we want to log all debug messages for all classes i= n in + Or we want to log all debug messages for all classes in exo.jcr.component.core - component<property name=3D"log4j.category= .exo.jcr.component.core" value=3D"DEBUG"/> + component - + = + = + <property name=3D"log4j.= category.exo.jcr.component.core" value=3D"DEBUG"/> + = + Or we want to log all messages for all kernel - components<property name=3D"log4j.categor= y.exo.kernel" value=3D"DEBUG"/> + components - + = + = + <property name=3D"log4j.catego= ry.exo.kernel" value=3D"DEBUG"/> + = + =
= @@ -139,16 +155,22 @@ JDK Logging = JDK logging (aka JUL) is the builtin logging framework introdu= ced - in JDK 1.4. It is a good option for Tomcat AS. + in JDK 1.4. It is a good option for Tomcat AS. + Edit the variable LOG_OPTS in your eXo.sh or eXo.bat - :LOG_OPTS=3D"-Dorg.apache.commons.logging.Log= =3Dorg.apache.commons.logging.impl.Jdk14Logger" + : - + + LOG_OPTS=3D"-Dorg.apache.commons.logging.Log=3Dorg= .apache.commons.logging.impl.Jdk14Logger" + = + - Edit your logs-configuration.xml - :<component> + Edit your logs-configuration.xml: + + + <component> <type>org.exoplatform.services.log.LogConfigurationInitializer&l= t;/type> <init-params> <value-param> @@ -167,9 +189,8 @@ <property name=3D"java.util.logging.ConsoleHandler.level" value= =3D"FINE"/> </properties-param> </init-params> - </component> -
-
+ </component>
+ = =
@@ -177,7 +198,8 @@ = SimpleLog is a minimal logging system distributed with Commons Logging. To be used when nothing else is available or when you seek - simplicity. <component> + simplicity. + <component> <type>org.exoplatform.services.log.LogConfigurationInitializer&l= t;/type> <init-params> <value-param> @@ -195,7 +217,7 @@ <property name=3D"org.apache.commons.logging.simplelog.showdate= time" value=3D"true"/> </properties-param> </init-params> - </component> + </component>
= @@ -206,21 +228,26 @@ JBoss tips = If you use log4j configuration, you can change the log - configuration directly at runtime in: - JBOSS_HOME/server/default/conf/jboss-log4j.xml.= + configuration directly at runtime in: + JBOSS_HOME/server/default/conf/jboss-log4j.xml. + + + To enable debug logs: + + = + <param name=3D"Threshold" value= =3D"DEBUG"/> + = + - To enable debug logs : <param name=3D= "Threshold" value=3D"DEBUG"/> - - - To exclude messages from unnecessary classes (server's internal) modify the threshold of these classes to "FATAL". - + + If you see only ERROR level logs while starting ear on jbo= ss (4.2.2), you have to remove log4j*.jar from your ear and application.xml. - + =
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/manageability.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/manageability.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/manageability.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -111,7 +111,7 @@ registration time of a managed object to create the JMX object nam= e. The template is formed of properties. = - @NameTemplate({ + @NameTemplate({ @Property(key=3D"container", value=3D"workspace"), @Property(key=3D"name", value=3D"{Name}")})
@@ -127,7 +127,7 @@ different instances of the same class that would have the same obj= ect name otherwise. = - @NamingContext(@Property(key=3D"workspace", value= =3D"{Name}")) + @NamingContext(@Property(key=3D"= workspace", value=3D"{Name}")) @@ -143,7 +143,7 @@ when a new cache is created, it calls the CacheServiceManaged class = in order to let the CacheServiceManaged object register the cache. = - @ManagedBy(CacheServiceManaged.class) + @ManagedBy(CacheServiceManaged.cla= ss) public class CacheServiceImpl implements CacheService { = CacheServiceManaged managed; @@ -161,7 +161,7 @@ The @NameTemplate is used to produce object name values when ExoCache instance are registered. = - @Managed + @Managed @NameTemplate({@Property(key=3D"service", value=3D"cache"), @Property(key= =3D"name", value=3D"{Name}")}) @ManagedDescription("Exo Cache") public interface ExoCache { @@ -192,7 +192,7 @@ receive a context to perform further registration of managed objects. = - @Managed + @Managed public class CacheServiceManaged implements ManagementAware { = /** . */ Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/rpc-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/rpc-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/rpc-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -64,7 +64,7 @@ = See an example below: = - public class MyService implements Startable + public class MyService implements St= artable { private RPCService rpcService; private RemoteCommand sayHelloCommand; @@ -131,7 +131,7 @@ added only in a cluster environment. See below an example of configuration = - <configuration> + <configuration> .... = <component> <key>org.exoplatform.services.rpc.RPCService</key> @@ -230,7 +230,7 @@ proposed by default. This command will dynamically execute a method on= a given object. = - // Register the command first (to be done before that = the RPCService has been started) + // Register the command first (to be= done before that the RPCService has been started) RemoteCommand commandGetName =3D rpcService.registerCommand(new SingleMeth= odCallCommand(myService, "getName")); ... // Execute the command on the coordinator (can be done only after having s= tarted the RPCService) Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/service-configuration-for-beginners.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/service-configuration-for-beginners.xml 2011-06-01 07:56:47= UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/service-configuration-for-beginners.xml 2011-06-01 12:12:35= UTC (rev 4470) @@ -150,7 +150,7 @@ exo.kernel.component.cache-2.0.5.jar file and inside this jar open /conf/portal/configuration.xml. You will see: = - = + = <component> <key>org.exoplatform.services.cache.CacheService</key> = <type>org.exoplatform.services.cache.impl.CacheServiceImpl</type&= gt; = @@ -264,14 +264,16 @@ for a service can be defined as you see in the next chapter. = - "In your java code you have to use ExoContaine= r myContainer =3D ExoContainerContext.getCurrentContainer() - in order to access to the current container. It doesn't greatly matt= er + "In your java code you have to use + + ExoContainer myContainer =3D ExoCo= ntainerContext.getCurrentContainer(); + in order to access to the current container. It doesn't greatl= y matter to your application if the current container is a PortalContainer or a StandaloneContainer. Once you have your conta= iner - you may access to any service registered in this container using - MyService myService =3D (MyService) myContainer.getC= omponentInstance(MyService.class) - You easily realize that MyService.class is the + you may access to any service registered in this container using = + MyService myService =3D (MyService= ) myContainer.getComponentInstance(MyService.class); + You easily realize that MyService.class is the name of the service interface. @@ -464,7 +466,7 @@ empty hashtable and not any bit of previous configuration is use= d. Apply the following code to do this: = - StandaloneContainer.setConfigurationURL(containe= rConf); + StandaloneContainer.setConfigu= rationURL(containerConf); = @@ -474,7 +476,7 @@ configuration file that is provided by the URL is used to replace some of the service configurations.The code looks like this: = - StandaloneContainer.addConfigurationURL(containe= rConf); + StandaloneContainer.addConfigu= rationURL(containerConf); = @@ -554,7 +556,7 @@ This JDBC implementation of BaseOrganizationService interface has only one constructor: = - public OrganizationServiceImpl(ListenerService l= istenerService, DatabaseService dbService) + public OrganizationServiceImpl(Liste= nerService listenerService, DatabaseService dbService); = You see this service depends on two other services. In order to = be able to call this constructor the container first needs a @@ -685,7 +687,7 @@ create an interface. In this case the configuration looks like this: = - <key>org.exoplatform.services.database.jdbc.DB= SchemaCreator</key> + <key>org.exoplatform.services= .database.jdbc.DBSchemaCreator</key> <type>org.exoplatform.services.database.jdbc.DBSchemaCreator</typ= e> = The key and type tags contain equally the qualified class @@ -700,7 +702,7 @@ it is possible to resolve properties at runtime instead of providing= a value at packaging time. = - <component> + <component> ... <init-params> <value-param> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/service-configuration-in-detail.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/service-configuration-in-detail.xml 2011-06-01 07:56:47 UTC= (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/service-configuration-in-detail.xml 2011-06-01 12:12:35 UTC= (rev 4470) @@ -67,14 +67,14 @@ your service, so that you should define an interface that defines your service. = - package com.laverdad.services; = + package com.laverdad.services; = public interface ArticleStatsService { public abstract int calcSentences(String article); } = A very simple implementation: = - public class ArticleStatsServiceImpl implements Arti= cleStatsService { + public class ArticleStatsServiceIm= pl implements ArticleStatsService { public int calcSentences(String article) { throw new RuntimeException("Not implemented"); = } @@ -99,7 +99,7 @@ of your service base folder. As you already know the container looks= for a "/conf/configuration.xml" file in each jar-file. = - <?xml version=3D"1.0" encoding=3D"UTF8"?> + <?xml version=3D"1.0" encoding= =3D"UTF8"?> <configuration xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://www.exoplaform.org/xml/ns/kernel_1_0.xsd = http://www.exoplaform.org/xml/ns/kernel_1_0.xsd" @@ -136,7 +136,7 @@ For the exact method, you wish to configure more details for the service. Let's enhance the word service configuration file: = - <component> + <component> <key>com.laverdad.services.ArticleStatsService</key> <type>com.laverdad.services.ArticleStatsServiceImpl</type> <init-params> @@ -168,7 +168,7 @@ example. It's up to your imagination to implement the exact method. = - public class ArticleStatsServiceImpl implements Arti= cleStatsService { + public class ArticleStatsServiceIm= pl implements ArticleStatsService { = private String calcMethod =3D "fast"; private String variant =3D "French"; @@ -250,7 +250,7 @@ = Recapitulation: = - package com.laverdad.common; + package com.laverdad.common; = import org.exoplatform.container.ExoContainer; import org.exoplatform.container.ExoContainerContext; @@ -289,7 +289,7 @@ = There is an value-param example: = - <component> + <component> <key>org.exoplatform.portal.config.UserACL</key> <type>org.exoplatform.portal.config.UserACL</type> = <init-params> = @@ -305,7 +305,7 @@ The UserACL class accesses to the value-param in its constructor. = - package org.exoplatform.portal.config; + package org.exoplatform.portal.con= fig; public class UserACL { = public UserACL(InitParams params) { @@ -323,7 +323,7 @@ = Here you see the hibernate configuration example: = - <component> + <component> <key>org.exoplatform.services.database.HibernateService</key&= gt; <type>org.exoplatform.services.database.impl.HibernateServiceImp= l</type> <init-params> @@ -343,7 +343,7 @@ you will find that the name "hibernate.properties" of the properties-param is used to access the properties. = - package org.exoplatform.services.database.impl; + package org.exoplatform.services.d= atabase.impl; = public class HibernateServiceImpl implements HibernateService, ComponentRe= questLifecycle { public HibernateServiceImpl(InitParams initParams, CacheService cacheSer= vice) { @@ -358,7 +358,7 @@ Let's have a look at the configuration of the LDAPService. It's not important to know LDAP, we only discuss the parameters. = - <component> + <component> <key>org.exoplatform.services.ldap.LDAPService</key> <type>org.exoplatform.services.ldap.impl.LDAPServiceImpl</typ= e> <init-params> @@ -389,7 +389,7 @@ = Here you see how the service accesses the object: = - package org.exoplatform.services.ldap.impl; + package org.exoplatform.services.l= dap.impl; = public class LDAPServiceImpl implements LDAPService { ... @@ -405,7 +405,7 @@ bean and calls all setters whose values are configured in the configuration file. = - package org.exoplatform.services.ldap.impl; + package org.exoplatform.services.l= dap.impl; = public class LDAPConnectionConfig { private String providerURL =3D "ldap://127.0.0.1:389"; @@ -452,7 +452,7 @@ The second collection is a HashSet that is a set of strings. = - <component-plugin> + <component-plugin> <name>new.user.event.listener</name> <set-method>addListenerPlugin</set-method> <type>org.exoplatform.services.organization.impl.NewUserEventL= istener</type> @@ -489,7 +489,7 @@ Let's look at the org.exoplatform.services.organization.impl.NewUserConfig bean: = - public class NewUserConfig { + public class NewUserConfig { private List role; private List group; private HashSet ignoredUser; @@ -538,7 +538,7 @@ Let's have a look at the configuration of the TaxonomyPlugin of = the CategoriesService: = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.cms.categories.Catego= riesService</target-component> = <component-plugin> <name>predefinedTaxonomyPlugin</name> @@ -653,12 +653,14 @@ = If you open the "portal/trunk/web/portal/src/main/webapp/WEB-INF/conf.configuration.xm= l" - you will see that it consists only of imports: <imp= ort>war:/conf/common/common-configuration.xml</import> + you will see that it consists only of imports: + = + <import>war:/conf/common/common= -configuration.xml</import> <import>war:/conf/common/logs-configuration.xml</import> <import>war:/conf/database/database-configuration.xml</import> <import>war:/conf/jcr/jcr-configuration.xml</import> <import>war:/conf/common/portlet-container-configuration.xml</imp= ort> -... +... =
@@ -673,7 +675,7 @@ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database= -configuration.tmpl.xml you find an example for system properties: = - <component> + <component> <key>org.exoplatform.services.database.HibernateService</key&= gt; <jmx-name>database:type=3DHibernateService</jmx-name> <type>org.exoplatform.services.database.impl.HibernateServiceImp= l</type> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/services-wiring.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/services-wiring.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/services-wiring.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -57,7 +57,7 @@ implementation. Note that the key tag is not mandatory, but it improves performance. = - <!-- Portlet container hooks --> + <!-- Portlet container hooks --> <component> <key>org.exoplatform.services.portletcontainer.persistence.Portl= etPreferencesPersister</key> <type>org.exoplatform.services.portal.impl.PortletPreferencesPer= sisterImpl</type> @@ -68,7 +68,7 @@ hibernate service to which we can add hbm mapping files even if those = are deployed in an other maven artifact. = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.database.HibernateServi= ce</target-component> <component-plugin> = <name>add.hibernate.mapping</name> @@ -96,7 +96,7 @@ code where a listener is added to the OrganisationService and will be called each time a new user is created: = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.organization.Organizati= onService</target-component> <component-plugin> <name>portal.new.user.event.listener</name> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/kernel/understanding-listnerservice.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/understanding-listnerservice.xml 2011-06-01 07:56:47 UTC (r= ev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/kernel/understanding-listnerservice.xml 2011-06-01 12:12:35 UTC (r= ev 4470) @@ -53,7 +53,7 @@ To register a listener, you need to call the addListener() method. = - /** + /** * This method is used to register a listener with the service. The method * should: 1. Check to see if there is a list of listener with the listener * name, create one if the listener list doesn't exit 2. Add the new liste= ner @@ -75,7 +75,7 @@ To trigger an event, an application can call one of the broadcast() methods of ListenerService. = - /** + /** * This method is used to broadcast an event. This method should: 1. Check= if * there is a list of listener that listen to the event name. 2. If there = is a * list of listener, create the event object with the given name , source = and @@ -116,7 +116,7 @@ Each listener is a class that extends org.exoplatform.services.listener.Listener, as you can see below: = - public abstract class Listener<S, D> extends B= aseComponentPlugin { + public abstract class Listener<= S, D> extends BaseComponentPlugin { = /** * This method should be invoked when an event with the same name is @@ -137,7 +137,7 @@ given in the configuration file, for more details see the next section. = - public interface ComponentPlugin { + public interface ComponentPlugin { public String getName(); = public void setName(String name); @@ -155,7 +155,7 @@ All listeners are in fact a ComponentPlugin so it must be config= ured as below: = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding=3D"= ISO-8859-1"?> <configuration> ... <external-component-plugins> @@ -183,7 +183,7 @@ application. For example, when a new user signs in, the following code= is called: = - listenerService.broadcast("exo.core.security.Conversat= ionRegistry.register", this, state); + listenerService.broadcast("exo.core.= security.ConversationRegistry.register", this, state); = This code will in fact create a new Event which name is "exo.core.security.ConversationRegistry.register", which source is the @@ -196,7 +196,7 @@ In the example below, we define a Listener that will listen the event "exo.core.security.ConversationRegistry.register". = - <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> + <?xml version=3D"1.0" encoding=3D"= ISO-8859-1"?> <configuration> ... <external-component-plugins> Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/ws/framework-for-cross-domain-ajax.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/framework-for-cross-domain-ajax.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/framework-for-cross-domain-ajax.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -92,12 +92,12 @@ = 3). Declare xda.js in the main page. = - <script type=3D"text/javascript" src=3D"xda.js">= </script> + <script type=3D"text/javascript" = src=3D"xda.js"></script> = 4). Create JS function which performs cross domain call as in the following example: = - <script type=3D"text/javascript"> = = = = = + <script type=3D"text/javasc= ript"> = = = = function test(){ = = = var facade =3D xdaInit(); = = = facade.clientURI =3D "http://localhost/cross-domain-ajax/c= lient/client.html"; = = @@ -115,6 +115,6 @@ 5). Use this function (here it is bound to a button's onclick event). = - <button onclick=3D'test()'>test cross-domain<= /button> + <button onclick=3D'test()'>tes= t cross-domain</button>
Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/ws/groovy-scripts-as-rest-services.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/groovy-scripts-as-rest-services.xml 2011-06-01 07:56:47 UTC (re= v 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/groovy-scripts-as-rest-services.xml 2011-06-01 12:12:35 UTC (re= v 4470) @@ -54,7 +54,7 @@ org.exoplatform.services.jcr.ext.script.groovy.GroovyScript2RestLoader= Plugin. This is simple configuration example. = - <external-component-plugins> + <external-component-plugins> <target-component>org.exoplatform.services.jcr.ext.script.groovy.G= roovyScript2RestLoader</target-component> <component-plugin> <name>test</name> @@ -124,7 +124,7 @@ source code. It has possibility inject component from Container in Gro= ovy Class constructor. Configuration example: = - <component> + <component> <type>org.exoplatform.services.script.groovy.GroovyScriptInstantia= tor</type> </component> @@ -140,7 +140,7 @@ = Example of configuration. = - <component> + <component> <type>org.exoplatform.services.jcr.ext.script.groovy.GroovyScrip= t2RestLoader</type> <init-params> <object-param> @@ -248,7 +248,7 @@ Then, configure GroovyScript2RestLoaderPlugin as described in section = Load script at startup time. = - import javax.jcr.Node + import javax.jcr.Node import javax.jcr.Session import javax.ws.rs.GET import javax.ws.rs.Path @@ -308,7 +308,7 @@ Open script from local source code /home/andrew/JcrGroovyTest.groovy, = add following code and save file. = - @POST + @POST @Path("{path:.*}") public void addReferenceableMixin(@PathParam("repository") String reposito= ry, @PathParam("workspace") String workspace, Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/ws/overwrite-default-providers.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/overwrite-default-providers.xml 2011-06-01 07:56:47 UTC (rev 44= 69) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/overwrite-default-providers.xml 2011-06-01 12:12:35 UTC (rev 44= 70) @@ -176,7 +176,7 @@ Create subclass of javax.ws.rs.core.Application with code as bel= low and add it to the eXo Container configuration. = - package org.exoplatform.test.jackson; + package org.exoplatform.test.jackson; = import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider; = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/ws/restservicelist-service.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/restservicelist-service.xml 2011-06-01 07:56:47 UTC (rev 4469) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/ws/restservicelist-service.xml 2011-06-01 12:12:35 UTC (rev 4470) @@ -45,7 +45,7 @@ To get the list of services in HTML format use listHTML() method: = - @GET + @GET @Produces({MediaType.TEXT_HTML}) public byte[] listHTML() { @@ -58,7 +58,7 @@ f.e. curl -u root:exo http://localhost:8080/rest/ will return = such HTML code: = - <?xml version=3D"1.0" encoding=3D"UTF-8"?><= !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/= TR/xhtml1/DTD/xhtml1-strict.dtd"> + <?xml version=3D"1.0" encoding= =3D"UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head> <title>eXo JAXRS Implementation</title> @@ -168,7 +168,7 @@ To get the list of services in HTML format use listJSON() method: = - @GET + @GET @Produces({MediaType.APPLICATION_JSON}) public RootResourcesList listJSON() { --===============3840983631077400209==-- From do-not-reply at jboss.org Thu Jun 2 10:24:29 2011 Content-Type: multipart/mixed; boundary="===============8095025967019682067==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4471 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/backup/rdbms. Date: Thu, 02 Jun 2011 10:24:29 -0400 Message-ID: <201106021424.p52EOTrJ002482@svn01.web.mwc.hst.phx2.redhat.com> --===============8095025967019682067== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-02 10:24:29 -0400 (Thu, 02 Jun 2011) New Revision: 4471 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/backup/rdbms/DBRestore.java Log: EXOJCR-1371: Properties can lose their "isMultivalued" flag after backup/re= store operation. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/backup/rdbms/DBRestore.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/backup/rdbms/DBRestore.java 2011-06-01 12:12:35 UTC (rev 4470) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/backup/rdbms/DBRestore.java 2011-06-02 14:24:29 UTC (rev 4471) @@ -510,7 +510,7 @@ ba.read(readBuffer); = String value =3D new String(readBuffer); - insertNode.setBoolean(targetIndex + 1, value.equals("= true")); + insertNode.setBoolean(targetIndex + 1, value.equalsIg= noreCase("true")); } else if (columnType.get(i) =3D=3D Types.VARBINARY || col= umnType.get(i) =3D=3D Types.LONGVARBINARY || columnType.get(i) =3D=3D Types.BLOB || columnType.= get(i) =3D=3D Types.BINARY --===============8095025967019682067==-- From do-not-reply at jboss.org Fri Jun 3 02:17:08 2011 Content-Type: multipart/mixed; boundary="===============3774339233948176271==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4472 - jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl. Date: Fri, 03 Jun 2011 02:17:08 -0400 Message-ID: <201106030617.p536H8U7031715@svn01.web.mwc.hst.phx2.redhat.com> --===============3774339233948176271== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-03 02:17:06 -0400 (Fri, 03 Jun 2011) New Revision: 4472 Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/j= cr/ext/backup/impl/BackupManagerImpl.java jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/j= cr/ext/backup/impl/BackupScheduler.java Log: EXOJCR-1354: added thread stopping methods to BackupManager stop method Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/ser= vices/jcr/ext/backup/impl/BackupManagerImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/impl/BackupManagerImpl.java 2011-06-02 14:24:29 UTC (rev 447= 1) +++ jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/impl/BackupManagerImpl.java 2011-06-03 06:17:06 UTC (rev 447= 2) @@ -310,6 +310,8 @@ class WorkspaceBackupAutoStopper extends Thread { = + private boolean isToBeStopped =3D false; + WorkspaceBackupAutoStopper(ExoContainerContext ctx) { super("WorkspaceBackupAutoStopper" + (ctx =3D=3D null ? "" : " " = + ctx.getName())); @@ -321,7 +323,7 @@ @Override public void run() { - while (true) + while (!isToBeStopped) { try { @@ -360,10 +362,16 @@ } } } + + public void close() + { + isToBeStopped =3D true; + } } = class RepositoryBackupAutoStopper extends Thread { + boolean isToBeStopped =3D false; = RepositoryBackupAutoStopper(ExoContainerContext ctx) { @@ -376,7 +384,7 @@ @Override public void run() { - while (true) + while (!isToBeStopped) { try { @@ -409,6 +417,11 @@ } } } + + public void close() + { + isToBeStopped =3D true; + } } = /** @@ -921,6 +934,10 @@ */ public void stop() { + workspaceBackupStopper.close(); + repositoryBackupStopper.close(); + scheduler.cancelTimer(); + // 1. stop current backup chains // for (Iterator iterator =3D currentBackups.iterator(); iterator.ha= sNext();) { // BackupChain bc =3D (BackupChain) iterator.next(); Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/ser= vices/jcr/ext/backup/impl/BackupScheduler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/impl/BackupScheduler.java 2011-06-02 14:24:29 UTC (rev 4471) +++ jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/impl/BackupScheduler.java 2011-06-03 06:17:06 UTC (rev 4472) @@ -1135,4 +1135,12 @@ = return false; } + + /** + * Simple method to release the thread used by timer used in scheduler + */ + public void cancelTimer() + { + timer.cancel(); + } } --===============3774339233948176271==-- From do-not-reply at jboss.org Fri Jun 3 08:44:26 2011 Content-Type: multipart/mixed; boundary="===============8940724663378984978==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4473 - in jcr/trunk/exo.jcr.component.core: src/test/java/org/exoplatform/services/jcr/impl/core and 1 other directory. Date: Fri, 03 Jun 2011 08:44:26 -0400 Message-ID: <201106031244.p53CiQK1009918@svn01.web.mwc.hst.phx2.redhat.com> --===============8940724663378984978== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-03 08:44:26 -0400 (Fri, 03 Jun 2011) New Revision: 4473 Removed: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestSaveConfiguration.java Modified: jcr/trunk/exo.jcr.component.core/pom.xml Log: EXOJCR-1364: remove unnecessary test Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 06:17:06 UTC (rev 4= 472) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 12:44:26 UTC (rev 4= 473) @@ -752,7 +752,6 @@ org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceManagement.java org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceRestore.java = org/exoplatform/services/jcr/**/impl/**/T= estRepositoryManagement.java - org/exoplatform/services/jcr/**/impl/**/T= estSaveConfiguration.java org/exoplatform/services/jcr/**/impl/**/V= alueStoragePluginTest.java org/exoplatform/services/jcr/**/impl/**/T= estSessionCleaner.java org/exoplatform/services/jcr/**/impl/**/B= ase*.java Deleted: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/ser= vices/jcr/impl/core/TestSaveConfiguration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestSaveConfiguration.java 2011-06-03 06:17:06 UTC (rev 4472) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestSaveConfiguration.java 2011-06-03 12:44:26 UTC (rev 4473) @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2009 eXo Platform SAS. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ -package org.exoplatform.services.jcr.impl.core; - -import org.exoplatform.services.jcr.JcrImplBaseTest; -import org.exoplatform.services.jcr.RepositoryService; -import org.exoplatform.services.jcr.config.RepositoryEntry; -import org.exoplatform.services.jcr.config.RepositoryServiceConfiguration; -import org.exoplatform.services.jcr.config.WorkspaceEntry; -import org.exoplatform.services.log.ExoLogger; -import org.exoplatform.services.log.Log; - -/** - * @author Sergey Kabashn= yuk - * @version $Id: TestSaveConfiguration.java 11907 2008-03-13 15:36:21Z ksm= $ - */ -public class TestSaveConfiguration extends JcrImplBaseTest -{ - protected static Log log =3D ExoLogger.getLogger("exo.jcr.component.cor= e.SessionDataManager"); - - private final TestRepositoryManagement rpm =3D new TestRepositoryManage= ment(); - - public void testSaveConfiguration() throws Exception - { - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - for (RepositoryEntry rEntry : service.getConfig().getRepositoryConfi= gurations()) - { - if (log.isDebugEnabled()) - log.debug("=3DRepository " + rEntry.getName()); - for (WorkspaceEntry wsEntry : rEntry.getWorkspaceEntries()) - { - if (log.isDebugEnabled()) - log.debug("=3D=3D=3DWorkspace " + wsEntry.getName()); - } - } - - rpm.createDafaultRepository("repository4TestRepositoryManagement1", = "wsTestRepositoryManagement1"); - rpm.createDafaultRepository("repository4TestRepositoryManagement2", = "wsTestRepositoryManagement2"); - rpm.createDafaultRepository("repository4TestRepositoryManagement3", = "wsTestRepositoryManagement3"); - - RepositoryServiceConfiguration repoConfig =3D - (RepositoryServiceConfiguration)container.getComponentInstanceOfT= ype(RepositoryServiceConfiguration.class); - - assertTrue(repoConfig.isRetainable()); - repoConfig.retain(); - Thread.sleep(10 * 1000); - } - - public void testZZ() throws Exception - { - System.out.println("testZZ"); - root.addNode("testZZ"); - root.save(); - session.save(); - Thread.sleep(10 * 1000); - } - - @Override - public void setUp() throws Exception - { - rpm.setUp(); - super.setUp(); - - } -} --===============8940724663378984978==-- From do-not-reply at jboss.org Fri Jun 3 10:24:20 2011 Content-Type: multipart/mixed; boundary="===============4913150296733570693==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4474 - in jcr/trunk/exo.jcr.component.core: src/main/java/org/exoplatform/services/jcr/impl/core and 1 other directories. Date: Fri, 03 Jun 2011 10:24:20 -0400 Message-ID: <201106031424.p53EOKBW031911@svn01.web.mwc.hst.phx2.redhat.com> --===============4913150296733570693== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-03 10:24:20 -0400 (Fri, 03 Jun 2011) New Revision: 4474 Modified: jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/SessionRegistry.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestSessionCleaner.java Log: EXOJCR-1364: test cleanup Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 12:44:26 UTC (rev 4= 473) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 14:24:20 UTC (rev 4= 474) @@ -402,7 +402,6 @@ org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceManagement.java org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceRestore.java org/exoplatform/services/jcr/**/impl/**/TestRep= ositoryManagement.java - org/exoplatform/services/jcr/**/impl/**/TestSes= sionCleaner.java org/exoplatform/services/jcr/**/impl/**/Base*.j= ava org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationStream.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationVersionRestore.java @@ -740,30 +739,20 @@ org/apache/jackrabbit/test/api/version/*T= est.java - org/exoplatform/services/jcr/**/TestQuery= Usecases.java - org/exoplatform/services/jcr/**/TestRollb= ackBigFiles.java - org/exoplatform/services/jcr/**/TestImpor= t.java - org/exoplatform/services/jcr/**/TestRollb= ackBigFiles.java - org/exoplatform/services/jcr/**/TestError= Multithreading.java org/exoplatform/services/jcr/**/api/TestA= ll.java - org/exoplatform/services/jcr/**/api/**/Te= stSameNameItems.java - org/exoplatform/services/jcr/**/api/**/Te= stSameNameItems.java + org/exoplatform/services/jcr/**/TestError= Multithreading.java + org/exoplatform/services/jcr/**/TestRollb= ackBigFiles.java org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceManagement.java - org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceRestore.java = + org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceRestore.java org/exoplatform/services/jcr/**/impl/**/T= estRepositoryManagement.java - org/exoplatform/services/jcr/**/impl/**/V= alueStoragePluginTest.java - org/exoplatform/services/jcr/**/impl/**/T= estSessionCleaner.java org/exoplatform/services/jcr/**/impl/**/B= ase*.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationStream.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationVersionRestore.java org/exoplatform/services/jcr/**/usecases/= **/RemoveSameNameSiblingTest.java org/exoplatform/services/jcr/**/usecases/= **/TestQueryWithNumberAndSpace.java org/exoplatform/services/jcr/**/usecases/= BaseUsecasesTest.java - org/exoplatform/services/jcr/**/usecases/= **/ExportWorkspaceSystemViewTest.java - org/exoplatform/services/jcr/**/impl/**/T= estLinkedWorkspaceStorageCacheMetrics.java org/exoplatform/services/jcr/**/impl/**/S= QLBenchmarkTest.java - org/exoplatform/services/jcr/**/impl/**/T= estCleanableFileStreamValueData.java org/apache/jackrabbit/test/api/TestAll.ja= va org/apache/jackrabbit/test/api/**/Abstrac= t*.java Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/SessionRegistry.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/SessionRegistry.java 2011-06-03 12:44:26 UTC (rev 4473) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/SessionRegistry.java 2011-06-03 14:24:20 UTC (rev 4474) @@ -74,12 +74,19 @@ @ManagedDescription("Set the session time out in seconds") public void setTimeOut(long timeout) { + if (this.timeOut =3D=3D timeout) + { + return; + } + + // disable the cleaner + this.sessionCleaner.halt(); + this.sessionCleaner =3D null; + this.timeOut =3D timeout <=3D 0 ? 0 : timeout * 1000; if (timeOut =3D=3D 0 && sessionCleaner !=3D null) { - // We set a time out to 0 so we disable the cleaner - this.sessionCleaner.halt(); - this.sessionCleaner =3D null; + // We set a time out to 0, no need to create new cleaner if (log.isDebugEnabled()) { log.debug("Stop the previous session cleaner"); @@ -87,7 +94,7 @@ } else if (timeOut > 0 && sessionCleaner =3D=3D null) { - // We set a time out greater than 0, so we enable the cleaner + // We set a time out greater than 0, so we create new cleaner this.sessionCleaner =3D new SessionCleaner(repositoryId, DEFAULT_= CLEANER_TIMEOUT, timeOut); = if (log.isDebugEnabled()) { Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestSessionCleaner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestSessionCleaner.java 2011-06-03 12:44:26 UTC (rev 4473) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestSessionCleaner.java 2011-06-03 14:24:20 UTC (rev 4474) @@ -21,17 +21,10 @@ import org.exoplatform.services.jcr.JcrImplBaseTest; = import java.lang.ref.WeakReference; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Random; -import java.util.WeakHashMap; = import javax.jcr.LoginException; import javax.jcr.NoSuchWorkspaceException; -import javax.jcr.Node; import javax.jcr.RepositoryException; -import javax.jcr.Session; = /** * @author Sergey Kabashn= yuk @@ -41,48 +34,42 @@ { private final static int AGENT_COUNT =3D 10; = + private final static int TEST_SESSION_TIMEOUT =3D 1; // seconds + private SessionRegistry sessionRegistry; = private long oldTimeOut; = - private final static long TEST_SESSION_TIMEOUT =3D 20000; - @Override public void setUp() throws Exception { super.setUp(); sessionRegistry =3D (SessionRegistry)session.getContainer().getCompo= nentInstanceOfType(SessionRegistry.class); - oldTimeOut =3D sessionRegistry.timeOut; - sessionRegistry.timeOut =3D TEST_SESSION_TIMEOUT; - sessionRegistry.stop(); - Thread.yield(); - sessionRegistry.start(); + oldTimeOut =3D sessionRegistry.getTimeOut(); + sessionRegistry.setTimeOut(TEST_SESSION_TIMEOUT); } = @Override protected void tearDown() throws Exception { super.tearDown(); - sessionRegistry.stop(); - sessionRegistry.timeOut =3D oldTimeOut; - Thread.yield(); - sessionRegistry.start(); + sessionRegistry.setTimeOut(oldTimeOut); } = public void testSessionRemove() throws LoginException, NoSuchWorkspaceE= xception, RepositoryException, InterruptedException { SessionImpl session2 =3D (SessionImpl)repository.login(credentials, = "ws"); + assertTrue(session2.isLive()); = // Create a weak reference to the session WeakReference ref =3D new WeakReference(se= ssion2); = - assertTrue(session2.isLive()); + Thread.sleep(5000); = - assertNotNull(sessionRegistry); + System.out.println(session2.getLastAccessTime()); + sessionRegistry.runCleanup(); = - Thread.sleep(SessionRegistry.DEFAULT_CLEANER_TIMEOUT + 1000); - assertFalse(session2.isLive()); = // Dereference the session explicitely @@ -95,353 +82,4 @@ assertNull(ref.get()); = } - - public void testSessionLoginLogoutSimultaneouslyMultiThread() throws Ex= ception - { - assertNotNull(sessionRegistry); - - class AgentLogin extends Thread - { - - Random random =3D new Random(); - - SessionImpl workSession; - - boolean sessionStarted =3D false; - - public AgentLogin() - { - } - - @Override - public void run() - { - try - { - Thread.sleep(SessionRegistry.DEFAULT_CLEANER_TIMEOUT - rand= om.nextInt(200) + 200); - - workSession =3D (SessionImpl)repository.login(credentials, = "ws"); - sessionStarted =3D true; - - } - catch (Exception e) - { - e.printStackTrace(); - fail("Exception should not be thrown"); - } - } - } - - class AgentLogout extends Thread - { - AgentLogin agentLogin; - - public AgentLogout(AgentLogin agentLogin) - { - this.agentLogin =3D agentLogin; - } - - @Override - public void run() - { - try - { - while (!agentLogin.sessionStarted) - { - Thread.sleep(50); - } - - if (agentLogin.workSession.isLive()) - { - agentLogin.workSession.logout(); - } - - } - catch (Exception e) - { - e.printStackTrace(); - fail("Exception should not be thrown"); - } - } - } - - Session workSession =3D (SessionImpl)repository.login(credentials, "= ws"); - while (workSession.isLive()) - { - Thread.sleep(100); - } - - // start - List agents =3D new ArrayList(); - - for (int i =3D 0; i < AGENT_COUNT; i++) - { - AgentLogin agentLogin =3D new AgentLogin(); - agents.add(agentLogin); - agentLogin.start(); - - AgentLogout agentLogout =3D new AgentLogout(agentLogin); - agents.add(agentLogout); - agentLogout.start(); - } - - // wait to stop all threads - boolean isNeedWait =3D true; - while (isNeedWait) - { - isNeedWait =3D false; - for (int i =3D 0; i < AGENT_COUNT * 2; i++) - { - Thread agent =3D (Thread)agents.get(i); - if (agent.isAlive()) - { - isNeedWait =3D true; - break; - } - } - Thread.sleep(1000); - } - - assertFalse(sessionRegistry.isInUse("ws")); - } - - public void testSessionLoginLogoutMultiThread() throws InterruptedExcep= tion - { - assertNotNull(sessionRegistry); - - class AgentLogin extends Thread - { - - SessionImpl workSession; - - int sleepTime; - - boolean sessionStarted =3D false; - - public AgentLogin(int sleepTime) - { - this.sleepTime =3D sleepTime; - } - - @Override - public void run() - { - try - { - Thread.sleep(sleepTime); - workSession =3D (SessionImpl)repository.login(credentials, = "ws"); - sessionStarted =3D true; - - } - catch (Exception e) - { - e.printStackTrace(); - fail("Exception should not be thrown"); - } - } - } - - class AgentLogout extends Thread - { - AgentLogin agentLogin; - - public AgentLogout(AgentLogin agentLogin) - { - this.agentLogin =3D agentLogin; - } - - @Override - public void run() - { - try - { - while (!agentLogin.sessionStarted) - { - Thread.sleep(1000); - } - - Thread.sleep(SessionRegistry.DEFAULT_CLEANER_TIMEOUT / 2); - - if (agentLogin.workSession.isLive()) - { - agentLogin.workSession.logout(); - } - - } - catch (Exception e) - { - e.printStackTrace(); - fail("Exception should not be thrown"); - } - } - } - - // start - List agents =3D new ArrayList(); - - int sleepTime =3D 0; - for (int i =3D 0; i < AGENT_COUNT; i++) - { - AgentLogin agentLogin =3D new AgentLogin(sleepTime); - agents.add(agentLogin); - agentLogin.start(); - - AgentLogout agentLogout =3D new AgentLogout(agentLogin); - agents.add(agentLogout); - agentLogout.start(); - - sleepTime =3D - SessionRegistry.DEFAULT_CLEANER_TIMEOUT / 10 - + (sleepTime >=3D 2 * SessionRegistry.DEFAULT_CLEANER_TIMEO= UT ? 0 : sleepTime); - } - - // wait to stop all threads - boolean isNeedWait =3D true; - while (isNeedWait) - { - isNeedWait =3D false; - for (int i =3D 0; i < AGENT_COUNT * 2; i++) - { - Thread agent =3D (Thread)agents.get(i); - if (agent.isAlive()) - { - isNeedWait =3D true; - break; - } - } - Thread.sleep(100); - } - - assertFalse(sessionRegistry.isInUse("ws")); - } - - public void testSessionRemoveMultiThread() throws InterruptedException - { - assertNotNull(sessionRegistry); - final Random random =3D new Random(); - class Agent extends Thread - { - boolean result =3D false; - - boolean active =3D false; - - public Agent() - { - active =3D random.nextBoolean(); - } - - @Override - public void run() - { - try - { - SessionImpl session2 =3D (SessionImpl)repository.login(cred= entials, "ws"); - Node rootNode =3D session2.getRootNode(); - rootNode.addNode("test"); - assertTrue(session2.isLive()); - - if (active) - { - log.info("start active session"); - long startTime =3D System.currentTimeMillis(); - while (startTime + sessionRegistry.timeOut * 2 < System.= currentTimeMillis()) - { - Node root2 =3D session2.getRootNode(); - Node testNode =3D root2.getNode("test"); - testNode.setProperty("prop1", "value"); - Thread.sleep(sessionRegistry.timeOut / 2); - } - result =3D session2.isLive(); - } - else - { - log.info("start pasive session"); - Thread.sleep(SessionRegistry.DEFAULT_CLEANER_TIMEOUT + 1= 000); - result =3D !session2.isLive(); - } - - } - catch (InterruptedException e) - { - } - catch (LoginException e) - { - } - catch (NoSuchWorkspaceException e) - { - } - catch (RepositoryException e) - { - } - } - - } - List agents =3D new ArrayList(); - for (int i =3D 0; i < AGENT_COUNT; i++) - { - agents.add(new Agent()); - } - for (Agent agent : agents) - { - agent.start(); - } - boolean isNeedWait =3D true; - while (isNeedWait) - { - isNeedWait =3D false; - for (int i =3D 0; i < AGENT_COUNT; i++) - { - Agent curClient =3D agents.get(i); - if (curClient.isAlive()) - { - isNeedWait =3D true; - break; - } - } - Thread.sleep(100); - } - for (Agent agent2 : agents) - { - assertTrue(agent2.result); - } - } - - public void testManySessionRemove() throws LoginException, NoSuchWorksp= aceException, RepositoryException, - InterruptedException - { - int sessionCount =3D 100000; - WeakReference refSessions[] =3D new WeakReference[10000= 0]; - SessionImpl sessions[] =3D new SessionImpl[100000]; - - for (int i =3D 0; i < sessionCount; i++) - { - sessions[i] =3D (SessionImpl)repository.login(credentials, "ws"); - refSessions[i] =3D new WeakReference(sessions[i]); - } - - assertNotNull(sessionRegistry); - - Thread.sleep(SessionRegistry.DEFAULT_CLEANER_TIMEOUT + 120000); - - for (SessionImpl session : sessions) - { - assertFalse(session.isLive()); - } - - // Dereference the session explicitely - for (int i =3D 0; i < sessionCount; i++) - { - sessions[i] =3D null; - } - - // Make a GC - forceGC(); - - // The weak reference must now be null - for (WeakReference ref : refSessions) - { - assertNull(ref.get()); - } - - } } --===============4913150296733570693==-- From do-not-reply at jboss.org Fri Jun 3 17:16:43 2011 Content-Type: multipart/mixed; boundary="===============0579273953009754677==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4475 - in kernel/trunk: exo.kernel.component.ext.cache.impl.infinispan.v4 and 1 other directories. Date: Fri, 03 Jun 2011 17:16:43 -0400 Message-ID: <201106032116.p53LGhSr018234@svn01.web.mwc.hst.phx2.redhat.com> --===============0579273953009754677== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nfilotto Date: 2011-06-03 17:16:43 -0400 (Fri, 03 Jun 2011) New Revision: 4475 Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml kernel/trunk/pom.xml Log: EXOJCR-1372: Align dependencies with EAP 5.1 (kernel) Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-03 14:24:20 UTC (rev 4474) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-03 21:16:43 UTC (rev 4475) @@ -33,7 +33,12 @@ org.infinispan infinispan-core - + + org.jgroups + jgroups + 2.11.1.Final + + org.slf4j slf4j-log4j12 Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-03 14:24:20 UTC (rev 4474) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-03 21:16:43 UTC (rev 4475) @@ -56,7 +56,11 @@ org.slf4j slf4j-log4j12 - = + + + org.jgroups + jgroups + = Modified: kernel/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/pom.xml 2011-06-03 14:24:20 UTC (rev 4474) +++ kernel/trunk/pom.xml 2011-06-03 21:16:43 UTC (rev 4475) @@ -181,12 +181,18 @@ org.jgroups jgroups - 2.11.1.Final + 2.6.20.Final org.jboss.cache jbosscache-core - 3.2.6.GA = + 3.2.7.GA + + + jgroups + jgroups + + = = org.infinispan --===============0579273953009754677==-- From do-not-reply at jboss.org Fri Jun 3 17:18:49 2011 Content-Type: multipart/mixed; boundary="===============7596595934199591889==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4476 - in jcr/trunk: applications/exo.jcr.applications.config and 4 other directories. Date: Fri, 03 Jun 2011 17:18:48 -0400 Message-ID: <201106032118.p53LImB6018250@svn01.web.mwc.hst.phx2.redhat.com> --===============7596595934199591889== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nfilotto Date: 2011-06-03 17:18:48 -0400 (Fri, 03 Jun 2011) New Revision: 4476 Modified: jcr/trunk/applications/exo.jcr.applications.config/pom.xml jcr/trunk/applications/exo.jcr.ear/pom.xml jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.ext/pom.xml jcr/trunk/packaging/module/src/main/javascript/jcr.packaging.module.js jcr/trunk/pom.xml Log: EXOJCR-1372: Align dependencies with EAP 5.1 (jcr) Modified: jcr/trunk/applications/exo.jcr.applications.config/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-03 2= 1:16:43 UTC (rev 4475) +++ jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-03 2= 1:18:48 UTC (rev 4476) @@ -89,5 +89,18 @@ jaxb-impl runtime + + org.jgroups + jgroups + 2.11.1.Final + + + org.infinispan + infinispan-core + + + org.infinispan + infinispan-cachestore-jdbc + = Modified: jcr/trunk/applications/exo.jcr.ear/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-03 21:16:43 UTC (rev= 4475) +++ jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-03 21:18:48 UTC (rev= 4476) @@ -112,6 +112,19 @@ exo.jcr.component.webdav runtime + + org.jgroups + jgroups + 2.11.1.Final + + + org.infinispan + infinispan-core + + + org.infinispan + infinispan-cachestore-jdbc + = exo-jcr-ear Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 21:16:43 UTC (rev 4= 475) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-03 21:18:48 UTC (rev 4= 476) @@ -30,8 +30,14 @@ eXo JCR :: Component :: Core Service eXo JCR Service core component - /conf/standalone/test-configuration.xml= + /conf/standalone/test-configuration-jbc= .xml true + **/jbc/** + **/jbosscache/** + **/ispn/** + **/infinispan/** + ${ispn.specific.1} + ${ispn.specific.2} @@ -162,6 +168,7 @@ org.jgroups jgroups + 2.6.20.Final commons-logging @@ -201,10 +208,12 @@ org.infinispan infinispan-core + provided org.infinispan infinispan-cachestore-jdbc + provided org.apache.jackrabbit @@ -701,7 +710,8 @@ org.apache.jackrabbit.test.api.nodetype.Pred= efinedNodeTypeTest#testConfiguration org.apache.jackrabbit.test.api.nodetype.Pred= efinedNodeTypeTest#testVersionable org.apache.jackrabbit.test.api.nodetype.Pred= efinedNodeTypeTest#testVersion - org.apache.jackrabbit.test.api.NamespaceRegi= stryTest#testRegisterNamespace + org.apache.jackrabbit.test.api.NamespaceRegi= stryTest#testRegisterNamespace + + ${impl.specific.exclude.1} + ${impl.specific.exclude.2} @@ -823,5 +836,62 @@ + + sjdbc + + /conf/standalone/test-configurati= on-sjdbc-jbc.xml + + = + + cluster + + /conf/standalone/cluster/test-con= figuration-jbc.xml + + = + + ispn + + /conf/standalone/test-configurati= on.xml + ${jbc.specific.1} + ${jbc.specific.2} + + + + org.jgroups + jgroups + 2.11.1.Final + + + = + + ispn-sjdbc + + /conf/standalone/test-configurati= on-sjdbc.xml + ${jbc.specific.1} + ${jbc.specific.2} + + + + org.jgroups + jgroups + 2.11.1.Final + + + = + + ispn-cluster + + /conf/standalone/cluster/test-con= figuration.xml + ${jbc.specific.1} + ${jbc.specific.2} + + + + org.jgroups + jgroups + 2.11.1.Final + + + = Modified: jcr/trunk/exo.jcr.component.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-03 21:16:43 UTC (rev 44= 75) +++ jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-03 21:18:48 UTC (rev 44= 76) @@ -109,10 +109,6 @@ commons-chain - org.jgroups - jgroups - - javax.ws.rs jsr311-api Modified: jcr/trunk/packaging/module/src/main/javascript/jcr.packaging.modu= le.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/packaging/module/src/main/javascript/jcr.packaging.module.js = 2011-06-03 21:16:43 UTC (rev 4475) +++ jcr/trunk/packaging/module/src/main/javascript/jcr.packaging.module.js = 2011-06-03 21:18:48 UTC (rev 4476) @@ -21,9 +21,9 @@ addDependency(core.component.documents) . addDependency(new Project("jcr", "jcr", "jar", "1.0")). addDependency(new Project("concurrent", "concurrent", "jar", "1.3.4")). - addDependency(new Project("org.jgroups", "jgroups", "jar", "2.11.1.Fin= al")). + addDependency(new Project("org.jgroups", "jgroups", "jar", "2.6.20.Fin= al")). addDependency(new Project("commons-io", "commons-io", "jar", "1.3.2")). - addDependency(new Project("org.jboss.cache","jbosscache-core","jar","3= .2.6.GA")). + addDependency(new Project("org.jboss.cache","jbosscache-core","jar","3= .2.7.GA")). addDependency(new Project("jboss.jbossts","jbossjts","jar","4.6.1.GA")= ). addDependency(new Project("jboss.jbossts","jbossts-common","jar","4.6.= 1.GA")). addDependency(new Project("org.apache.ws.commons","ws-commons-util","j= ar","1.0.1")). Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-03 21:16:43 UTC (rev 4475) +++ jcr/trunk/pom.xml 2011-06-03 21:18:48 UTC (rev 4476) @@ -344,11 +344,6 @@ 2.0.0 - org.jgroups - jgroups - 2.11.1.Final - - commons-fileupload commons-fileupload 1.2.1 @@ -371,7 +366,7 @@ org.jboss.cache jbosscache-core - 3.2.6.GA + 3.2.7.GA jgroups --===============7596595934199591889==-- From do-not-reply at jboss.org Mon Jun 6 04:48:55 2011 Content-Type: multipart/mixed; boundary="===============2593124212734564732==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4478 - kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils. Date: Mon, 06 Jun 2011 04:48:55 -0400 Message-ID: <201106060848.p568mtq7016380@svn01.web.mwc.hst.phx2.redhat.com> --===============2593124212734564732== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-06 04:48:55 -0400 (Mon, 06 Jun 2011) New Revision: 4478 Modified: kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/ut= ils/SecurityHelper.java Log: EXOJCR-1365: commented out code: use privileged action only when SecurityMa= nager is installed. Modified: kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/com= mons/utils/SecurityHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/SecurityHelper.java 2011-06-06 08:10:53 UTC (rev 4477) +++ kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/SecurityHelper.java 2011-06-06 08:48:55 UTC (rev 4478) @@ -281,12 +281,12 @@ */ public static E doPrivilegedAction(PrivilegedAction action) { -// if (System.getSecurityManager() !=3D null) + if (System.getSecurityManager() !=3D null) { // A security manager has been established return AccessController.doPrivileged(action); } -// return action.run(); + return action.run(); } = /** @@ -299,18 +299,18 @@ public static E doPrivilegedExceptionAction(PrivilegedExceptionActi= on action) throws PrivilegedActionException { -// if (System.getSecurityManager() !=3D null) + if (System.getSecurityManager() !=3D null) { // A security manager has been established return AccessController.doPrivileged(action); } -/* try + try { return action.run(); } catch (Exception e) { throw new PrivilegedActionException(e); - }*/ + } } } --===============2593124212734564732==-- From do-not-reply at jboss.org Mon Jun 6 07:52:07 2011 Content-Type: multipart/mixed; boundary="===============5579116226759384821==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4480 - in core/trunk/exo.core.component.document/src: test/java/org/exoplatform/services/document/test and 1 other directories. Date: Mon, 06 Jun 2011 07:52:06 -0400 Message-ID: <201106061152.p56Bq6UD020550@svn01.web.mwc.hst.phx2.redhat.com> --===============5579116226759384821== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sergiykarpenko Date: 2011-06-06 07:52:05 -0400 (Mon, 06 Jun 2011) New Revision: 4480 Added: core/trunk/exo.core.component.document/src/test/resources/Trait_union.06= .Mai_2009.pdf Modified: core/trunk/exo.core.component.document/src/main/java/org/exoplatform/ser= vices/document/impl/PDFDocumentReader.java core/trunk/exo.core.component.document/src/test/java/org/exoplatform/ser= vices/document/test/TestPropertiesExtracting.java Log: EXOJCR-1373: pdf documents metadata UTF-16 encoding support added Modified: core/trunk/exo.core.component.document/src/main/java/org/exoplatf= orm/services/document/impl/PDFDocumentReader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.document/src/main/java/org/exoplatform/se= rvices/document/impl/PDFDocumentReader.java 2011-06-06 10:00:20 UTC (rev 44= 79) +++ core/trunk/exo.core.component.document/src/main/java/org/exoplatform/se= rvices/document/impl/PDFDocumentReader.java 2011-06-06 11:52:05 UTC (rev 44= 80) @@ -37,6 +37,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; +import java.io.UnsupportedEncodingException; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.util.Calendar; @@ -204,7 +205,7 @@ try { if (dc.getTitle() !=3D null) - props.put(DCMetaData.TITLE, dc.getTitle()); + props.put(DCMetaData.TITLE, fixEncoding(dc.g= etTitle())); } catch (Exception e) { @@ -213,7 +214,7 @@ try { if (dc.getDescription() !=3D null) - props.put(DCMetaData.DESCRIPTION, dc.getDesc= ription()); + props.put(DCMetaData.DESCRIPTION, fixEncodin= g(dc.getDescription())); } catch (Exception e) { @@ -226,7 +227,7 @@ { for (String creator : dc.getCreators()) { - props.put(DCMetaData.CREATOR, creator); + props.put(DCMetaData.CREATOR, fixEncoding= (creator)); } } } @@ -257,7 +258,7 @@ try { if (pdf.getKeywords() !=3D null) - props.put(DCMetaData.SUBJECT, pdf.getKeyword= s()); + props.put(DCMetaData.SUBJECT, fixEncoding(pd= f.getKeywords())); } catch (Exception e) { @@ -267,7 +268,7 @@ try { if (pdf.getProducer() !=3D null) - props.put(DCMetaData.PUBLISHER, pdf.getProdu= cer()); + props.put(DCMetaData.PUBLISHER, fixEncoding(= pdf.getProducer())); } catch (Exception e) { @@ -296,18 +297,12 @@ { log.warn("getModificationDate failed: " + e); } - // try - // { - // if (basic.getCreatorTool() !=3D null) - // props.put(DCMetaData.PUBLISHER, basic.getCreato= rTool()); - // } - // catch (Exception e) - // { - // log.warn("getCreatorTool failed: " + e); - // } + + // DCMetaData.PUBLISHER - basic.getCreatorTool() } } - else + + if (props.isEmpty()) { // The pdf doesn't contain any metadata, try to use t= he document // information instead @@ -434,4 +429,87 @@ } } = + private String fixEncoding(String str) + { + try + { + String encoding =3D null; + int orderMaskOffset =3D 0; + + if (str.startsWith("\\000\\000\\376\\377")) + { + encoding =3D "UTF-32BE"; + orderMaskOffset =3D 16; + } + else if (str.startsWith("\\377\\376\\000\\000")) + { + encoding =3D "UTF-32LE"; + orderMaskOffset =3D 16; + } + else if (str.startsWith("\\376\\377")) + { + encoding =3D "UTF-16BE"; + orderMaskOffset =3D 8; + } + else if (str.startsWith("\\377\\376")) + { + encoding =3D "UTF-16LE"; + orderMaskOffset =3D 8; + } + + if (encoding =3D=3D null) + { + // return default + return str; + } + else + { + int i =3D orderMaskOffset, len =3D str.length(); + char c; + StringBuilder sb =3D new StringBuilder(len); + while (i < len) + { + c =3D str.charAt(i++); + if (c =3D=3D '\\') + { + if (i + 3 <=3D len) + { + //extract octal-code + try + { + c =3D (char)Integer.parseInt(str.substring(i, i + = 3), 8); + i +=3D 3; + } + catch (NumberFormatException e) + { + if (log.isDebugEnabled()) + { + log.debug( + "PDF metadata exctraction warning: can not d= ecode octal code - " + + str.substring(i - 1, i + 3) + ".", e); + } + } + } + else + { + if (log.isDebugEnabled()) + { + log.debug("PDF metadata exctraction warning: octal= code is not complete - " + + str.substring(i - 1, len)); + } + } + } + sb.append(c); + } + + byte[] bytes =3D sb.toString().getBytes(); + return new String(bytes, encoding); + } + } + catch (UnsupportedEncodingException e) + { + log.warn("PDF metadata exctraction warning: can not convert metad= ata string " + str, e); + return ""; + } + } } Modified: core/trunk/exo.core.component.document/src/test/java/org/exoplatf= orm/services/document/test/TestPropertiesExtracting.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.document/src/test/java/org/exoplatform/se= rvices/document/test/TestPropertiesExtracting.java 2011-06-06 10:00:20 UTC = (rev 4479) +++ core/trunk/exo.core.component.document/src/test/java/org/exoplatform/se= rvices/document/test/TestPropertiesExtracting.java 2011-06-06 11:52:05 UTC = (rev 4480) @@ -107,6 +107,24 @@ } } = + public void testPDFDocumentReaderServiceXMPUsecase1() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/Trait_union.06.Mai_2009.pdf"); + try + { + DocumentReader rdr =3D service.getDocumentReader("application/pdf= "); + Properties testprops =3D rdr.getProperties(is); + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "journal interne mai 2009.qxp"); + etalon.put(DCMetaData.CREATOR, "presse"); + evalProps(etalon, testprops, false); + } + finally + { + is.close(); + } + } + public void testWordDocumentReaderService() throws Exception { InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.doc"); Added: core/trunk/exo.core.component.document/src/test/resources/Trait_unio= n.06.Mai_2009.pdf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: core/trunk/exo.core.component.document/src/test/resour= ces/Trait_union.06.Mai_2009.pdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream --===============5579116226759384821==-- From do-not-reply at jboss.org Tue Jun 7 02:15:09 2011 Content-Type: multipart/mixed; boundary="===============7866255946339797799==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4481 - in jcr/trunk/exo.jcr.component.core/src: main/java/org/exoplatform/services/jcr/impl/storage/value/fs and 2 other directories. Date: Tue, 07 Jun 2011 02:15:09 -0400 Message-ID: <201106070615.p576F9r6018624@svn01.web.mwc.hst.phx2.redhat.com> --===============7866255946339797799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-07 02:15:08 -0400 (Tue, 07 Jun 2011) New Revision: 4481 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/FileDigestOutputStream.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/FileValueStorage.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/SimpleFileIOChannel.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/TreeFile.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/TreeFileIOChannel.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/CASableWriteValue.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/DeleteValues.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/ValueFileOperation.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/WriteValue.java jcr/trunk/exo.jcr.component.core/src/test/resources/tsm-excludes.propert= ies Log: EXOJCR-1365: reduce privileged blocks Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java 2011-06-06= 11:52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java 2011-06-07= 06:15:08 UTC (rev 4481) @@ -480,7 +480,7 @@ * {@inheritDoc} */ @Override - public int getChildNodesCount(NodeData parent) throws RepositoryExcepti= on + public int getChildNodesCount(final NodeData parent) throws RepositoryE= xception { if (cache.isEnabled()) { @@ -490,8 +490,13 @@ return childCount; } } - - return super.getChildNodesCount(parent); + return executeAction(new PrivilegedExceptionAction() + { + public Integer run() throws RepositoryException + { + return CacheableWorkspaceDataManager.super.getChildNodesCount(= parent); + } + }); } = /** @@ -606,7 +611,13 @@ } else { - return super.getItemData(parentData, name, itemType); + return executeAction(new PrivilegedExceptionAction() + { + public ItemData run() throws RepositoryException + { + return CacheableWorkspaceDataManager.super.getItemData(pare= ntData, name, itemType); + } + }); } } = @@ -663,7 +674,13 @@ } else { - return super.getItemData(identifier); + return executeAction(new PrivilegedExceptionAction() + { + public ItemData run() throws RepositoryException + { + return CacheableWorkspaceDataManager.super.getItemData(iden= tifier); + } + }); } } = @@ -999,12 +1016,18 @@ } } = - protected List getChildNodesDataByPattern(NodeData parentData= , List patternFilters) + protected List getChildNodesDataByPattern(final NodeData pare= ntData, final List patternFilters) throws RepositoryException { if (!cache.isEnabled()) { - return super.getChildNodesData(parentData, patternFilters); + return executeAction(new PrivilegedExceptionAction= >() + { + public List run() throws RepositoryException + { + return CacheableWorkspaceDataManager.super.getChildNodesDat= a(parentData, patternFilters); + } + }); } = if (!cache.isPatternSupported()) @@ -1020,9 +1043,9 @@ return childNodesList; } = - Map childNodesMap =3D new HashMap(); + final Map childNodesMap =3D new HashMap(); = - Set uncachedPatterns =3D new HashSet(); + final Set uncachedPatterns =3D new HashSet(); for (int i =3D 0; i < patternFilters.size(); i++) { if (patternFilters.get(i).isExactName()) @@ -1116,42 +1139,50 @@ // execute all patterns and put result in cache if (!uncachedPatterns.isEmpty()) { - List persistedItemList =3D - super.getChildNodesData(parentData, new ArrayList(uncachedPatterns)); - - if (persistedItemList.size() > 0) + executeAction(new PrivilegedExceptionAction() { - NodeData parent =3D (NodeData)getItemData(parentData.get= Identifier()); - if (parent !=3D null) + public Void run() throws RepositoryException { - // filter nodes list for each exact name - patternIterator =3D uncachedPatterns.iterator(); - while (patternIterator.hasNext()) + List persistedItemList =3D + CacheableWorkspaceDataManager.super.getChildNodesD= ata(parentData, + new ArrayList(uncachedPattern= s)); + + if (persistedItemList.size() > 0) { - QPathEntryFilter pattern =3D patternIterator.next(= ); - List persistedNodeData =3D (List)pattern.accept(persistedItemList); - if (pattern.isExactName()) + NodeData parent =3D (NodeData)getItemData(parentDa= ta.getIdentifier()); + if (parent !=3D null) { - if (persistedNodeData.isEmpty()) + // filter nodes list for each exact name + Iterator patternIterator =3D = uncachedPatterns.iterator(); + while (patternIterator.hasNext()) { - cache.put(new NullNodeData(parentData, patte= rn.getQPathEntry())); + QPathEntryFilter pattern =3D patternIterator= .next(); + List persistedNodeData =3D (List)pattern.accept(persistedItemList); + if (pattern.isExactName()) + { + if (persistedNodeData.isEmpty()) + { + cache.put(new NullNodeData(parentData,= pattern.getQPathEntry())); + } + else + { + cache.put(persistedNodeData.get(0)); + } + } + else + { + cache.addChildNodes(parent, pattern, pers= istedNodeData); + } + for (NodeData node : persistedItemList) + { + childNodesMap.put(node.getIdentifier(), n= ode); + } } - else - { - cache.put(persistedNodeData.get(0)); - } } - else - { - cache.addChildNodes(parent, pattern, persistedN= odeData); - } - for (NodeData node : persistedItemList) - { - childNodesMap.put(node.getIdentifier(), node); - } } + return null; } - } + }); } } finally @@ -1286,12 +1317,18 @@ } } = - protected List getChildPropertiesDataByPattern(NodeData n= odeData, List patternFilters) + protected List getChildPropertiesDataByPattern(final Node= Data nodeData, final List patternFilters) throws RepositoryException { if (!cache.isEnabled()) { - return super.getChildPropertiesData(nodeData, patternFilters); + return executeAction(new PrivilegedExceptionAction>() + { + public List run() throws RepositoryException + { + return CacheableWorkspaceDataManager.super.getChildProperti= esData(nodeData, patternFilters); + } + }); } = if (!cache.isPatternSupported()) @@ -1306,9 +1343,9 @@ return childPropsList; } = - Map childPropsMap =3D new HashMap(); + final Map childPropsMap =3D new HashMap(); = - Set uncachedPatterns =3D new HashSet(); + final Set uncachedPatterns =3D new HashSet(); for (int i =3D 0; i < patternFilters.size(); i++) { if (patternFilters.get(i).isExactName()) @@ -1405,43 +1442,52 @@ // execute all patterns and put result in cache if (!uncachedPatterns.isEmpty()) { - List persistedItemList =3D - super.getChildPropertiesData(nodeData, new ArrayList(uncachedPatterns)); - - if (persistedItemList.size() > 0) + executeAction(new PrivilegedExceptionAction() { - NodeData parent =3D (NodeData)getItemData(nodeData.getId= entifier()); - if (parent !=3D null) + public Void run() throws RepositoryException { - // filter properties list for each exact name - patternIterator =3D uncachedPatterns.iterator(); - while (patternIterator.hasNext()) + List persistedItemList =3D + CacheableWorkspaceDataManager.super.getChildProper= tiesData(nodeData, + new ArrayList(uncachedPattern= s)); + + if (persistedItemList.size() > 0) { - QPathEntryFilter pattern =3D patternIterator.next(= ); - List persistedPropData =3D (List)pattern.accept(persistedItemList); - if (pattern.isExactName()) + NodeData parent =3D (NodeData)getItemData(nodeData= .getIdentifier()); + if (parent !=3D null) { - if (persistedPropData.isEmpty()) + // filter properties list for each exact name + Iterator patternIterator =3D = uncachedPatterns.iterator(); + while (patternIterator.hasNext()) { - cache.put(new NullPropertyData(parent, patte= rn.getQPathEntry())); + QPathEntryFilter pattern =3D patternIterator= .next(); + List persistedPropData =3D + (List)pattern.accept(persis= tedItemList); + if (pattern.isExactName()) + { + if (persistedPropData.isEmpty()) + { + cache.put(new NullPropertyData(parent,= pattern.getQPathEntry())); + } + else + { + cache.put(persistedPropData.get(0)); + } + } + else + { + cache.addChildProperties(parent, pattern,= persistedPropData); + } + + for (PropertyData node : persistedItemList) + { + childPropsMap.put(node.getIdentifier(), n= ode); + } } - else - { - cache.put(persistedPropData.get(0)); - } } - else - { - cache.addChildProperties(parent, pattern, persi= stedPropData); - } - - for (PropertyData node : persistedItemList) - { - childPropsMap.put(node.getIdentifier(), node); - } } + return null; } - } + }); } } finally @@ -1531,7 +1577,7 @@ * @throws RepositoryException * Repository error */ - protected List listChildPropertiesData(NodeData nodeData,= boolean forcePersistentRead) + protected List listChildPropertiesData(final NodeData nod= eData, boolean forcePersistentRead) throws RepositoryException { = @@ -1559,18 +1605,25 @@ return propertiesList; } } - propertiesList =3D super.listChildPropertiesData(nodeData); - // TODO propertiesList.size() > 0 for SDB - if (propertiesList.size() > 0 && cache.isEnabled()) + return executeAction(new PrivilegedExceptionAction>() { - NodeData parentData =3D (NodeData)getItemData(nodeData.getIden= tifier()); + public List run() throws RepositoryException + { + List propertiesList =3D + CacheableWorkspaceDataManager.super.listChildPropertiesD= ata(nodeData); + // TODO propertiesList.size() > 0 for SDB + if (propertiesList.size() > 0 && cache.isEnabled()) + { + NodeData parentData =3D (NodeData)getItemData(nodeData.g= etIdentifier()); = - if (parentData !=3D null) - { - cache.addChildPropertiesList(parentData, propertiesList); + if (parentData !=3D null) + { + cache.addChildPropertiesList(parentData, propertiesLi= st); + } + } + return propertiesList; } - } - return propertiesList; + }); } finally { Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/FileDigestOutputStream.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/FileDigestOutputStream.java 2011-06-06 11:52:05 = UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/FileDigestOutputStream.java 2011-06-07 06:15:08 = UTC (rev 4481) @@ -18,9 +18,8 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; - import java.io.File; +import java.io.FileOutputStream; import java.io.IOException; import java.security.DigestOutputStream; import java.security.MessageDigest; @@ -44,7 +43,7 @@ = FileDigestOutputStream(File file, MessageDigest digest) throws IOExcept= ion { - super(PrivilegedFileHelper.fileOutputStream(file), digest); + super(new FileOutputStream(file), digest); this.file =3D file; } = Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/FileValueStorage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/FileValueStorage.java 2011-06-06 11:52:05 UTC (r= ev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/FileValueStorage.java 2011-06-07 06:15:08 UTC (r= ev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; @@ -46,7 +45,7 @@ public final static String PATH =3D "path"; = /** - * Temporary directory name under storage root dir. + * Temporarory directopry name under stoprage root dir. */ public static final String TEMP_DIR_NAME =3D "temp"; = @@ -58,6 +57,7 @@ = /** * FileValueStorage constructor. + * = */ public FileValueStorage(FileCleaner cleaner) { @@ -67,7 +67,6 @@ /** * {@inheritDoc} */ - @Override public void init(Properties props, ValueDataResourceHolder resources) t= hrows IOException, RepositoryConfigurationException { @@ -78,7 +77,6 @@ /** * {@inheritDoc} */ - @Override public void checkConsistency(WorkspaceStorageConnection dataConnection) { = @@ -107,23 +105,22 @@ { this.rootDir =3D new File(rootDirPath); = - if (!PrivilegedFileHelper.exists(rootDir)) + if (!rootDir.exists()) { - if (PrivilegedFileHelper.mkdirs(rootDir)) + if (rootDir.mkdirs()) { - log.info("Directory created: " + PrivilegedFileHelper.getAbsol= utePath(rootDir)); + log.info("Directory created: " + rootDir.getAbsolutePath()); = // create internal temp dir File tempDir =3D new File(rootDir, TEMP_DIR_NAME); - PrivilegedFileHelper.mkdirs(tempDir); + tempDir.mkdirs(); = - if (PrivilegedFileHelper.exists(tempDir) && PrivilegedFileHelp= er.isDirectory(tempDir)) + if (tempDir.exists() && tempDir.isDirectory()) { // care about storage temp dir cleanup - for (File tmpf : PrivilegedFileHelper.listFiles(tempDir)) - if (!PrivilegedFileHelper.delete(tmpf)) - log.warn("Storage temporary directory contains un-del= etable file " - + PrivilegedFileHelper.getAbsolutePath(tmpf) + for (File tmpf : tempDir.listFiles()) + if (!tmpf.delete()) + log.warn("Storage temporary directory contains un-del= etable file " + tmpf.getAbsolutePath() + ". It's recommended to leave this directory for = JCR External Values Storage private use."); } else @@ -132,12 +129,12 @@ } else { - log.warn("Directory IS NOT created: " + PrivilegedFileHelper.g= etAbsolutePath(rootDir)); + log.warn("Directory IS NOT created: " + rootDir.getAbsolutePat= h()); } } else { - if (!PrivilegedFileHelper.isDirectory(rootDir)) + if (!rootDir.isDirectory()) { throw new RepositoryConfigurationException("File exists but is= not a directory " + rootDirPath); } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/SimpleFileIOChannel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/SimpleFileIOChannel.java 2011-06-06 11:52:05 UTC= (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/SimpleFileIOChannel.java 2011-06-07 06:15:08 UTC= (rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; = @@ -72,6 +71,6 @@ @Override protected File[] getFiles(String propertyId) throws IOException { - return PrivilegedFileHelper.listFiles(rootDir, new PropertyIDFilter(= propertyId)); + return rootDir.listFiles(new PropertyIDFilter(propertyId)); } } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/TreeFile.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/TreeFile.java 2011-06-06 11:52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/TreeFile.java 2011-06-07 06:15:08 UTC (rev 4481) @@ -18,14 +18,11 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; -import org.exoplatform.commons.utils.SecurityHelper; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = import java.io.File; -import java.security.PrivilegedAction; = /** * Created by The eXo Platform SAS @@ -57,16 +54,7 @@ @Override public boolean delete() { - - PrivilegedAction action =3D new PrivilegedAction() - { - public Boolean run() - { - return TreeFile.super.delete(); - } - }; - boolean res =3D SecurityHelper.doPrivilegedAction(action); - + boolean res =3D super.delete(); if (res) deleteParent(new File(getParent())); = @@ -76,28 +64,27 @@ protected boolean deleteParent(File fp) { boolean res =3D false; - String fpPath =3D PrivilegedFileHelper.getAbsolutePath(fp); - String rootPath =3D PrivilegedFileHelper.getAbsolutePath(rootDir); + String fpPath =3D fp.getAbsolutePath(); + String rootPath =3D rootDir.getAbsolutePath(); if (fpPath.startsWith(rootPath) && fpPath.length() > rootPath.length= ()) if (fp.isDirectory()) { - String[] ls =3D PrivilegedFileHelper.list(fp);; + String[] ls =3D fp.list(); if (ls !=3D null && ls.length <=3D 0) { - if (res =3D PrivilegedFileHelper.delete(fp)) + if (res =3D fp.delete()) { res =3D deleteParent(new File(fp.getParent())); } else { - fLog.warn("Parent directory can not be deleted now. " + = PrivilegedFileHelper.getAbsolutePath(fp)); - cleaner.addFile(new TreeFile(PrivilegedFileHelper.getAbs= olutePath(fp), cleaner, rootDir)); + fLog.warn("Parent directory can not be deleted now. " + = fp.getAbsolutePath()); + cleaner.addFile(new TreeFile(fp.getAbsolutePath(), clean= er, rootDir)); } } } else - fLog.warn("Parent can not be a file but found " + PrivilegedFi= leHelper.getAbsolutePath(fp)); + fLog.warn("Parent can not be a file but found " + fp.getAbsolu= tePath()); return res; } - } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/TreeFileIOChannel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/TreeFileIOChannel.java 2011-06-06 11:52:05 UTC (= rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/TreeFileIOChannel.java 2011-06-07 06:15:08 UTC (= rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; = @@ -53,26 +52,21 @@ @Override protected File getFile(final String propertyId, final int orderNumber) = throws IOException { - final TreeFile tfile =3D - new TreeFile(PrivilegedFileHelper.getAbsolutePath(rootDir) + make= FilePath(propertyId, orderNumber), cleaner, - rootDir); - - PrivilegedFileHelper.mkdirs(tfile.getParentFile()); - + new TreeFile(rootDir.getAbsolutePath() + makeFilePath(propertyId,= orderNumber), cleaner, rootDir); + mkdirs(tfile.getParentFile()); // make dirs on path return tfile; } = @Override protected File[] getFiles(final String propertyId) throws IOException { - final File dir =3D new File(PrivilegedFileHelper.getAbsolutePath(roo= tDir) + buildPath(propertyId)); - String[] fileNames =3D PrivilegedFileHelper.list(dir); + final File dir =3D new File(rootDir.getAbsolutePath() + buildPath(pr= opertyId)); + String[] fileNames =3D dir.list(); File[] files =3D new File[fileNames.length]; for (int i =3D 0; i < fileNames.length; i++) { - files[i] =3D - new TreeFile(PrivilegedFileHelper.getAbsolutePath(dir) + File.= separator + fileNames[i], cleaner, rootDir); + files[i] =3D new TreeFile(dir.getAbsolutePath() + File.separator = + fileNames[i], cleaner, rootDir); } return files; } @@ -164,14 +158,13 @@ try { mkdirsLock.acquire(); - return PrivilegedFileHelper.mkdirs(dir); + return dir.mkdirs(); } catch (InterruptedException e) { // chLog.error("mkdirs error on " + dir.getAbsolutePath() + ". " = + e, e); // return false; - throw new IllegalStateException("mkdirs error on " + PrivilegedFi= leHelper.getAbsolutePath(dir) + " due to " - + e, e); + throw new IllegalStateException("mkdirs error on " + dir.getAbsol= utePath() + " due to " + e, e); } finally { Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/CASableWriteValue.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/CASableWriteValue.java 2011-06-06 11:= 52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/CASableWriteValue.java 2011-06-07 06:= 15:08 UTC (rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs.operations; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.datamodel.ValueData; import org.exoplatform.services.jcr.impl.dataflow.persistent.StreamPersist= edValueData; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; @@ -161,27 +160,26 @@ } catch (RecordAlreadyExistsException e) { - if (tempFile !=3D null && PrivilegedFileHelper.exists(tempF= ile) && !PrivilegedFileHelper.delete(tempFile)) + if (tempFile !=3D null && tempFile.exists() && !tempFile.de= lete()) { - LOG.warn("Can't delete CAS temp file. Added to file clea= ner. " - + PrivilegedFileHelper.getAbsolutePath(tempFile)); + LOG.warn("Can't delete CAS temp file. Added to file clea= ner. " + tempFile.getAbsolutePath()); cleaner.addFile(tempFile); } throw new RecordAlreadyExistsException("Write error: " + e,= e); } = - if (!PrivilegedFileHelper.exists(vcasFile)) + if (!vcasFile.exists()) { // it's new CAS Value, we have to move temp to vcas location // use RENAME only, don't copy - as copy will means that de= stination already exists etc. = // make sure parent dir exists - PrivilegedFileHelper.mkdirs(vcasFile.getParentFile()); + vcasFile.getParentFile().mkdirs(); // rename propetynamed file to hashnamed one - if (!PrivilegedFileHelper.renameTo(tempFile, vcasFile)) + if (!tempFile.renameTo(vcasFile)) { - throw new VCASException("File " + PrivilegedFileHelper.g= etAbsolutePath(tempFile) - + " can't be renamed to VCAS-named " + PrivilegedFile= Helper.getAbsolutePath(vcasFile)); + throw new VCASException("File " + tempFile.getAbsolutePa= th() + " can't be renamed to VCAS-named " + + vcasFile.getAbsolutePath()); } } // else - CASed Value already exists = @@ -195,7 +193,7 @@ finally { // remove temp file - PrivilegedFileHelper.delete(tempFile); // should be ok without= file cleaner + tempFile.delete(); // should be ok without file cleaner = fileLock.unlock(); } @@ -211,7 +209,7 @@ try { // delete temp file - it's new file add - PrivilegedFileHelper.delete(tempFile); // should be ok without= file cleaner + tempFile.delete(); // should be ok without file cleaner } finally { Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/DeleteValues.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/DeleteValues.java 2011-06-06 11:52:05= UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/DeleteValues.java 2011-06-07 06:15:08= UTC (rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs.operations; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; = @@ -101,7 +100,7 @@ { for (File f : files) { - if (!PrivilegedFileHelper.delete(f)) + if (!f.delete()) // TODO possible place of error: FileNotFoundException w= hen we delete/update existing // Value and then add/update again. // After the time the Cleaner will delete the file which= is mapped to the Value. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java 2011-06-06 11:= 52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java 2011-06-07 06:= 15:08 UTC (rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs.operations; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.datamodel.ValueData; import org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPers= istedValueData; import org.exoplatform.services.jcr.impl.dataflow.persistent.FilePersisted= ValueData; @@ -73,17 +72,18 @@ * @throws IOException * if error */ - protected ValueData readValue(final File file, final int orderNum, fina= l int maxBufferSize) throws IOException + protected ValueData readValue(File file, int orderNum, int maxBufferSiz= e) throws IOException { - long fileSize =3D PrivilegedFileHelper.length(file); = + long fileSize =3D file.length(); + if (fileSize > maxBufferSize) { return new FilePersistedValueData(orderNum, file); } else { - FileInputStream is =3D PrivilegedFileHelper.fileInputStream(file); + FileInputStream is =3D new FileInputStream(file); try { int buffSize =3D (int)fileSize; @@ -137,9 +137,9 @@ * @throws IOException * if error occurs */ - protected void writeByteArrayValue(final File file, final ValueData val= ue) throws IOException + protected void writeByteArrayValue(File file, ValueData value) throws I= OException { - OutputStream out =3D PrivilegedFileHelper.fileOutputStream(file); + OutputStream out =3D new FileOutputStream(file); try { out.write(value.getAsByteArray()); @@ -160,9 +160,8 @@ * @throws IOException * if error occurs */ - protected void writeStreamedValue(final File file, final ValueData valu= e) throws IOException + protected void writeStreamedValue(File file, ValueData value) throws IO= Exception { - // do what you want // stream Value if (value instanceof StreamPersistedValueData) { @@ -171,7 +170,7 @@ if (streamed.isPersisted()) { // already persisted in another Value, copy it to this Value - copyClose(streamed.getAsStream(), PrivilegedFileHelper.fileOut= putStream(file)); + copyClose(streamed.getAsStream(), new FileOutputStream(file)); } else { @@ -180,23 +179,23 @@ if ((tempFile =3D streamed.getTempFile()) !=3D null) { // it's spooled Value, try move its file to VS - if (!PrivilegedFileHelper.renameTo(tempFile, file)) + if (!tempFile.renameTo(file)) { // not succeeded - copy bytes, temp file will be deleted= by transient ValueData if (LOG.isDebugEnabled()) { - LOG.debug("Value spool file move (rename) to Values S= torage is not succeeded. " - + "Trying bytes copy. Spool file: " + Privil= egedFileHelper.getAbsolutePath(tempFile) - + ". Destination: " + PrivilegedFileHelper.g= etAbsolutePath(file)); + LOG + .debug("Value spool file move (rename) to Values S= torage is not succeeded. Trying bytes copy. Spool file: " + + tempFile.getAbsolutePath() + ". Destination: = " + file.getAbsolutePath()); } = - copyClose(PrivilegedFileHelper.fileInputStream(tempFile)= , PrivilegedFileHelper.fileOutputStream(file)); + copyClose(new FileInputStream(tempFile), new FileOutputS= tream(file)); } } else { // not spooled, use client InputStream - copyClose(streamed.getStream(), PrivilegedFileHelper.fileOu= tputStream(file)); + copyClose(streamed.getStream(), new FileOutputStream(file)); } = // link this Value to file in VS @@ -206,7 +205,7 @@ else { // copy from Value stream to the file, e.g. from FilePersistedVal= ueData to this Value - copyClose(value.getAsStream(), PrivilegedFileHelper.fileOutputStr= eam(file)); + copyClose(value.getAsStream(), new FileOutputStream(file)); } } = @@ -244,7 +243,7 @@ in =3D streamed.getStream(); if (in =3D=3D null) { - in =3D PrivilegedFileHelper.fileInputStream(streamed.get= TempFile()); + in =3D new FileInputStream(streamed.getTempFile()); } } } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/ValueFileOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileOperation.java 2011-06-06 11= :52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileOperation.java 2011-06-07 06= :15:08 UTC (rev 4481) @@ -18,8 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs.operations; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; -import org.exoplatform.commons.utils.SecurityHelper; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.storage.value.ValueOperation; import org.exoplatform.services.jcr.impl.storage.value.fs.FileLockExceptio= n; @@ -32,8 +30,6 @@ import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; -import java.security.PrivilegedActionException; -import java.security.PrivilegedExceptionAction; = /** * Created by The eXo Platform SAS. @@ -63,6 +59,26 @@ protected static final Log LOG =3D ExoLogger.getLogger("exo.jcr.compone= nt.core.ValueFileOperation"); = /** + * The local internet address + */ + private static String LOCAL_ADDRESS; + static + { + // TODO this info may be is not necessary + try + { + // get the inet address + InetAddress local =3D InetAddress.getLocalHost(); + LOCAL_ADDRESS =3D local.getHostAddress() + " (" + local.getHostNa= me() + ")"; + } + catch (UnknownHostException e) + { + LOG.warn("Cannot read host address " + e); + LOCAL_ADDRESS =3D "no address, " + e; + } = + } + + /** * File cleaner. */ protected final FileCleaner cleaner; @@ -128,7 +144,7 @@ // lock file in temp directory lockFile =3D new File(tempDir, targetFile.getName() + LOCK_FILE_E= XTENSION); = - FileOutputStream lout =3D PrivilegedFileHelper.fileOutputStream(l= ockFile, true); + FileOutputStream lout =3D new FileOutputStream(lockFile, true); lout.write(operationInfo.getBytes()); // TODO write info lout.getChannel().lock(); // wait for unlock (on Windows will wai= t for this JVM too) = @@ -158,13 +174,13 @@ if (lockFileStream !=3D null) lockFileStream.close(); = - if (!PrivilegedFileHelper.delete(lockFile)) + if (!lockFile.delete()) { // TODO don't use FileCleaner, delete should be enough - LOG.warn("Cannot delete lock file " + PrivilegedFileHelper.get= AbsolutePath(lockFile) - + ". Add to the FileCleaner"); + LOG.warn("Cannot delete lock file " + lockFile.getAbsolutePath= () + ". Add to the FileCleaner"); cleaner.addFile(lockFile); } } + } = /** @@ -202,11 +218,11 @@ // lock in JVM (wait for unlock if required) try { - return resources.aquire(PrivilegedFileHelper.getAbsolutePath(f= ile), new ValueFileLockHolder(file)); + return resources.aquire(file.getAbsolutePath(), new ValueFileL= ockHolder(file)); } catch (InterruptedException e) { - throw new FileLockException("Lock error on " + PrivilegedFileH= elper.getAbsolutePath(file), e); + throw new FileLockException("Lock error on " + file.getAbsolut= ePath(), e); } } = @@ -219,7 +235,7 @@ */ public boolean unlock() throws IOException { - return resources.release(PrivilegedFileHelper.getAbsolutePath(fil= e)); + return resources.release(file.getAbsolutePath()); } } = @@ -241,48 +257,7 @@ = this.tempDir =3D tempDir; = - // TODO this info may be is not neccesary - String localAddr; - try - { - // get the inet address - InetAddress local =3D null; - PrivilegedExceptionAction action =3D new PrivilegedE= xceptionAction() - { - public InetAddress run() throws Exception - { - return InetAddress.getLocalHost(); - } - }; - try - { - local =3D SecurityHelper.doPrivilegedExceptionAction(action); - } - catch (PrivilegedActionException pae) - { - Throwable cause =3D pae.getCause(); - if (cause instanceof UnknownHostException) - { - throw (UnknownHostException)cause; - } - else if (cause instanceof RuntimeException) - { - throw (RuntimeException)cause; - } - else - { - throw new RuntimeException(cause); - } - } - - localAddr =3D local.getHostAddress() + " (" + local.getHostName()= + ")"; - } - catch (UnknownHostException e) - { - LOG.warn("Cannot read host address " + e); - localAddr =3D "no address, " + e; - } - operationInfo =3D System.currentTimeMillis() + " " + localAddr; + operationInfo =3D System.currentTimeMillis() + " " + LOCAL_ADDRESS; } = /** Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/WriteValue.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/WriteValue.java 2011-06-06 11:52:05 U= TC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/WriteValue.java 2011-06-07 06:15:08 U= TC (rev 4481) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.jcr.impl.storage.value.fs.operations; = -import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.services.jcr.datamodel.ValueData; import org.exoplatform.services.jcr.impl.storage.value.ValueDataResourceHo= lder; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; @@ -99,7 +98,7 @@ try { // be sure the destination dir exists (case for Tree-style sto= rage) - PrivilegedFileHelper.mkdirs(file.getParentFile()); + file.getParentFile().mkdirs(); = // write value to the file writeValue(file, value); Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/tsm-excludes.= properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/tsm-excludes.proper= ties 2011-06-06 11:52:05 UTC (rev 4480) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/tsm-excludes.proper= ties 2011-06-07 06:15:08 UTC (rev 4481) @@ -5,4 +5,25 @@ org.exoplatform.services.jcr.api.xa.TestXATransaction.testSimpleGlobalTran= saction=3Dbegin,commit org.exoplatform.services.jcr.api.xa.TestXATransaction.test2GlobalTransacti= ons=3Dbegin,commit,suspend,resume org.exoplatform.services.jcr.api.xa.TestXATransaction.test2GlobalTransacti= ons2=3Dbegin,commit,suspend,resume,rollback -org.exoplatform.services.jcr.api.xa.TestXATransaction.testLockInTransactio= ns=3Dbegin,commit \ No newline at end of file +org.exoplatform.services.jcr.api.xa.TestXATransaction.testLockInTransactio= ns=3Dbegin,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.write=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeRead=3Dwrite,commit,read +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeDelete=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeSameMultivalued=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeUniqueMultivalued=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeSameProperties=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeUniqueProperties=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.deleteSameProperty=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.deleteUniqueProperty=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.addDeleteSharedMultivalued=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.CASableFileIOChannelTes= tBase.writeExisting=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testD= elete=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testR= ead=3Dread,delete,commit +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testW= riteAdd=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testW= riteUpdate=3DwriteUpdate +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testC= oncurrentRead=3Dwrite,commit,delete +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileIOChannel.testD= eleteLockedFile=3Dwrite,commit +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileValueIO.testRea= dByteArrayValueData=3DtestReadValue +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileValueIO.testRea= dFileValueData=3DtestReadValue +org.exoplatform.services.jcr.impl.storage.value.fs.TestFileValueIO.testWri= teFileValueData=3DtestWriteValue,testReadValue +org.exoplatform.services.jcr.impl.storage.value.fs.TestRemoveFromValueStor= age.testRemoveValue=3Dread,getFile \ No newline at end of file --===============7866255946339797799==-- From do-not-reply at jboss.org Tue Jun 7 05:06:07 2011 Content-Type: multipart/mixed; boundary="===============5741527751850885940==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4483 - core/branches/2.3.x/patch/2.3.8/COR-228. Date: Tue, 07 Jun 2011 05:06:07 -0400 Message-ID: <201106070906.p579675W021971@svn01.web.mwc.hst.phx2.redhat.com> --===============5741527751850885940== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-07 05:06:06 -0400 (Tue, 07 Jun 2011) New Revision: 4483 Modified: core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch Log: COR-228: patch updated Modified: core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch 2011-06-07 08:29:= 22 UTC (rev 4482) +++ core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch 2011-06-07 09:06:= 06 UTC (rev 4483) @@ -40527,7 +40527,7 @@ = Index: exo.core.component.document/src/main/java/org/exoplatform/services/= document/impl/PDFDocumentReader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.document/src/main/java/org/exoplatform/services/doc= ument/impl/PDFDocumentReader.java (revision 4476) +--- exo.core.component.document/src/main/java/org/exoplatform/services/doc= ument/impl/PDFDocumentReader.java (revision 4481) +++ exo.core.component.document/src/main/java/org/exoplatform/services/doc= ument/impl/PDFDocumentReader.java (working copy) @@ -18,37 +18,31 @@ */ @@ -40576,7 +40576,7 @@ /** * Created by The eXo Platform SAS A parser of Adobe PDF files. * = -@@ -168,204 +162,264 @@ +@@ -168,204 +162,269 @@ */ public Properties getProperties(InputStream is) throws IOException, Do= cumentReadException { @@ -40589,28 +40589,25 @@ - byte[] metadata =3D reader.getMetadata(); - - if (metadata !=3D null) -- { ++ PDDocument pdDocument =3D PDDocument.load(is); ++ Properties props =3D new Properties(); ++ try + { - // there is XMP metadata try exctract it - props =3D getPropertiesFromMetadata(metadata); - } - - if (props =3D=3D null) -+ PDDocument pdDocument =3D PDDocument.load(is); -+ Properties props =3D new Properties(); -+ try - { +- { - // it's old pdf document version - props =3D getPropertiesFromInfo(reader.getInfo()); - } - reader.close(); - if (is !=3D null) - try -- { -- is.close(); -- } -- catch (IOException e) + if (pdDocument.isEncrypted()) { +- is.close(); + try + { + pdDocument.decrypt(""); @@ -40624,8 +40621,16 @@ + throw new DocumentReadException(e.getMessage(), e); + } } +- catch (IOException e) ++ ++ PDDocumentCatalog catalog =3D pdDocument.getDocumentCatalog(); ++ PDMetadata meta =3D catalog.getMetadata(); ++ if (meta !=3D null) + { +- } - return props; - } ++ XMPMetadata metadata =3D meta.exportXMPMetadata(); = - /** - * Extract properties from XMP xml. @@ -40637,45 +40642,6 @@ - */ - protected Properties getPropertiesFromMetadata(byte[] metadata) throws= IOException, DocumentReadException - { -- -- Properties props =3D null; -- -- // parse xml -- -- Document doc; -- try -- { -- DocumentBuilderFactory dbf =3D DocumentBuilderFactory.newInstanc= e(); -- DocumentBuilder docBuilder =3D dbf.newDocumentBuilder(); -- doc =3D docBuilder.parse(new ByteArrayInputStream(metadata)); -- } -- catch (SAXException e) -- { -- throw new DocumentReadException(e.getMessage(), e); -- } -- catch (ParserConfigurationException e) -- { -- throw new DocumentReadException(e.getMessage(), e); -- } -- -- // Check is there PDF/A-1 XMP -- String version =3D ""; -- NodeList list =3D doc.getElementsByTagName("pdfaid:conformance"); -- if (list !=3D null && list.item(0) !=3D null) -- { -- version +=3D list.item(0).getTextContent() + "-"; -- } -+ PDDocumentCatalog catalog =3D pdDocument.getDocumentCatalog(); -+ PDMetadata meta =3D catalog.getMetadata(); -+ if (meta !=3D null) -+ { -+ XMPMetadata metadata =3D meta.exportXMPMetadata(); - = -- list =3D doc.getElementsByTagName("pdfaid:part"); -- if (list !=3D null && list.item(0) !=3D null) -- { -- version +=3D list.item(0).getTextContent(); -- } + XMPSchemaDublinCore dc =3D metadata.getDublinCoreSchema(); + if (dc !=3D null) + { @@ -40698,11 +40664,7 @@ + log.warn("getSubject failed: " + e); + } = -- // PDF/A-1a or PDF/A-1b -- if (version.equalsIgnoreCase("A-1")) -- { -- props =3D getPropsFromPDFAMetadata(doc); -- } +- Properties props =3D null; + try + { + if (dc.getCreators() !=3D null) @@ -40719,25 +40681,28 @@ + log.warn("getCreator failed: " + e); + } = -- return props; -- } +- // parse xml + try + { + if (dc.getDates() !=3D null) + { + List list =3D dc.getDates(); = -- /** -- * Extracts properties from PDF Info hash set. -- * = -- * @param Pdf Info hash set -- * @return Extracted properties -- * @throws Exception if extracting fails -- */ -- @SuppressWarnings("unchecked") -- protected Properties getPropertiesFromInfo(HashMap info) throws IOExce= ption -- { -- Properties props =3D new Properties(); +- Document doc; +- try +- { +- DocumentBuilderFactory dbf =3D DocumentBuilderFactory.newInstanc= e(); +- DocumentBuilder docBuilder =3D dbf.newDocumentBuilder(); +- doc =3D docBuilder.parse(new ByteArrayInputStream(metadata)); +- } +- catch (SAXException e) +- { +- throw new DocumentReadException(e.getMessage(), e); +- } +- catch (ParserConfigurationException e) +- { +- throw new DocumentReadException(e.getMessage(), e); +- } + for (Calendar date : list) + { + props.put(DCMetaData.DATE, date); @@ -40750,10 +40715,12 @@ + } + } = -- String title =3D (String)info.get("Title"); -- if (title !=3D null) +- // Check is there PDF/A-1 XMP +- String version =3D ""; +- NodeList list =3D doc.getElementsByTagName("pdfaid:conformance"); +- if (list !=3D null && list.item(0) !=3D null) - { -- props.put(DCMetaData.TITLE, title); +- version +=3D list.item(0).getTextContent() + "-"; - } + XMPSchemaBasic basic =3D metadata.getBasicSchema(); + if (basic !=3D null) @@ -40779,10 +40746,10 @@ + } + } = -- String author =3D (String)info.get("Author"); -- if (author !=3D null) +- list =3D doc.getElementsByTagName("pdfaid:part"); +- if (list !=3D null && list.item(0) !=3D null) - { -- props.put(DCMetaData.CREATOR, author); +- version +=3D list.item(0).getTextContent(); - } + if (props.isEmpty()) + { @@ -40790,10 +40757,10 @@ + // usefull data, try to use the document information instead + PDDocumentInformation docInfo =3D pdDocument.getDocumentInfor= mation(); = -- String subject =3D (String)info.get("Subject"); -- if (subject !=3D null) +- // PDF/A-1a or PDF/A-1b +- if (version.equalsIgnoreCase("A-1")) - { -- props.put(DCMetaData.SUBJECT, subject); +- props =3D getPropsFromPDFAMetadata(doc); - } + if (docInfo !=3D null) + { @@ -40818,10 +40785,25 @@ + try + { = -- String creationDate =3D (String)info.get("CreationDate"); -- if (creationDate !=3D null) +- return props; +- } +- +- /** +- * Extracts properties from PDF Info hash set. +- * = +- * @param Pdf Info hash set +- * @return Extracted properties +- * @throws Exception if extracting fails +- */ +- @SuppressWarnings("unchecked") +- protected Properties getPropertiesFromInfo(HashMap info) throws IOExce= ption +- { +- Properties props =3D new Properties(); +- +- String title =3D (String)info.get("Title"); +- if (title !=3D null) - { -- props.put(DCMetaData.DATE, PdfDate.decode(creationDate)); +- props.put(DCMetaData.TITLE, title); + if (docInfo.getKeywords() !=3D null) + props.put(DCMetaData.SUBJECT, docInfo.getKeywords()); + } @@ -40860,22 +40842,40 @@ + } } - -- String modDate =3D (String)info.get("ModDate"); -- if (modDate !=3D null) +- String author =3D (String)info.get("Author"); +- if (author !=3D null) + finally { -- props.put(DCMetaData.DATE, PdfDate.decode(modDate)); +- props.put(DCMetaData.CREATOR, author); + if (pdDocument !=3D null) + { + pdDocument.close(); + } } = +- String subject =3D (String)info.get("Subject"); +- if (subject !=3D null) +- { +- props.put(DCMetaData.SUBJECT, subject); +- } +- +- String creationDate =3D (String)info.get("CreationDate"); +- if (creationDate !=3D null) +- { +- props.put(DCMetaData.DATE, PdfDate.decode(creationDate)); +- } +- +- String modDate =3D (String)info.get("ModDate"); +- if (modDate !=3D null) +- { +- props.put(DCMetaData.DATE, PdfDate.decode(modDate)); +- } +- return props; } = - private Properties getPropsFromPDFAMetadata(Document doc) throws IOExc= eption, DocumentReadException -+ private String fixEncoding(String str) ++ private String fixEncoding(String str) throws DocumentReadException { - Properties props =3D new Properties(); - // get properties @@ -40884,7 +40884,11 @@ + try { - for (int i =3D 0; i < list.getLength(); i++) -- { ++ String encoding =3D null; ++ int orderMaskOffset =3D 0; ++ ++ if (str.startsWith("\\000\\000\\376\\377")) + { - - Node n =3D list.item(i); - // dc:title - TITLE @@ -40893,9 +40897,7 @@ - String title =3D n.getLastChild().getTextContent(); - props.put(DCMetaData.TITLE, title); - } -+ String encoding =3D null; -+ int orderMaskOffset =3D 0; - = +- - // dc:creator - CREATOR - if (n.getParentNode().getParentNode().getNodeName().equals("d= c:creator")) - { @@ -40910,8 +40912,6 @@ - props.put(DCMetaData.SUBJECT, description); - // props.put(DCMetaData.DESCRIPTION, description); - } -+ if (str.startsWith("\\000\\000\\376\\377")) -+ { + encoding =3D "UTF-32BE"; + orderMaskOffset =3D 16; } @@ -40933,7 +40933,7 @@ - } + encoding =3D "UTF-32LE"; + orderMaskOffset =3D 16; -+ } + } + else if (str.startsWith("\\376\\377")) + { + encoding =3D "UTF-16BE"; @@ -40943,7 +40943,7 @@ + { + encoding =3D "UTF-16LE"; + orderMaskOffset =3D 8; - } ++ } = - // xmp:ModifyDate - DATE - list =3D doc.getElementsByTagName("xmp:ModifyDate"); @@ -40978,15 +40978,21 @@ + } + catch (NumberFormatException e) + { -+ log.warn( -+ "PDF metadata exctraction warning: can not dec= ode octal code - " -+ + str.substring(i - 1, i + 3) + ".", e); ++ if (log.isDebugEnabled()) ++ { ++ log.debug( ++ "PDF metadata exctraction warning: can not = decode octal code - " ++ + str.substring(i - 1, i + 3) + ".", e); ++ } + } + } + else + { -+ log.warn("PDF metadata exctraction warning: octal co= de is not complete - " -+ + str.substring(i - 1, len)); ++ if (log.isDebugEnabled()) ++ { ++ log.debug("PDF metadata exctraction warning: octa= l code is not complete - " ++ + str.substring(i - 1, len)); ++ } + } + } + sb.append(c); @@ -40999,9 +41005,7 @@ - catch (ParseException e) + catch (UnsupportedEncodingException e) { -- throw new DocumentReadException(e.getMessage(), e); -+ log.warn("PDF metadata exctraction warning: can not convert meta= data string " + str, e); -+ return ""; + throw new DocumentReadException(e.getMessage(), e); } - return props; } --===============5741527751850885940==-- From do-not-reply at jboss.org Tue Jun 7 14:31:03 2011 Content-Type: multipart/mixed; boundary="===============3997069058189537148==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4484 - in jcr/trunk/exo.jcr.component.core: src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent and 4 other directories. Date: Tue, 07 Jun 2011 14:31:03 -0400 Message-ID: <201106071831.p57IV3Xu003424@svn01.web.mwc.hst.phx2.redhat.com> --===============3997069058189537148== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nfilotto Date: 2011-06-07 14:31:03 -0400 (Tue, 07 Jun 2011) New Revision: 4484 Modified: jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/dataflow/persistent/WorkspacePersistentDataManager.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/dataflow/session/TransactionableResourceManager.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/api/xa/TestUserTransaction.java jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clus= ter/test-configuration-jbc.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clus= ter/test-configuration.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/test= -configuration-jbc.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/test= -configuration-sjdbc-jbc.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/test= -configuration-sjdbc.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/test= -configuration.xml Log: EXOJCR-1359: PROBLEMS during functional testing: test TestUserTransaction i= s in failure. 1. The unit has been modified in order to suspend the current Tx before cal= ling session.save for the parent remove in order to prevent being enlisted = to the global tx 2. To be able to fails even with MyISAM, the parent node is removed before = before commit 3. TransactionableResourceManager.isGlobalTxActive returned true even if th= e tx was suspended which is a wrong behavior 4. MVCC has been enabled in the config to prevent any deadlocks on global Tx 5. The resource-connector has been added to the dependencies with the scope= set to test since it is necessary when we want to test the JCR with JOTM 6. Removed Incorrect Override annotation Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-07 09:06:06 UTC (rev 4= 483) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-07 18:31:03 UTC (rev 4= 484) @@ -228,6 +228,11 @@ + javax.resource + connector-api + test + = + org.slf4j slf4j-log4j12 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/dataflow/persistent/WorkspacePersistentDataManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/WorkspacePersistentDataManager.java 2011-06-0= 7 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/WorkspacePersistentDataManager.java 2011-06-0= 7 18:31:03 UTC (rev 4484) @@ -644,7 +644,6 @@ /** * {@inheritDoc} */ - @Override public int getLastOrderNumber(final NodeData nodeData) throws Repositor= yException { final WorkspaceStorageConnection con =3D dataContainer.openConnectio= n(); Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/dataflow/session/TransactionableResourceManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/session/TransactionableResourceManager.java 2011-06-07 0= 9:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/session/TransactionableResourceManager.java 2011-06-07 1= 8:31:03 UTC (rev 4484) @@ -144,7 +144,16 @@ public boolean isGlobalTxActive() { TransactionContext ctx; - return (ctx =3D contexts.get()) !=3D null && ctx.getXidContext() != =3D null; + try + { + // We need to check the status also to be able to manage properly= suspend and resume + return (ctx =3D contexts.get()) !=3D null && ctx.getXidContext() = !=3D null && tm.getStatus() !=3D Status.STATUS_NO_TRANSACTION; + } + catch (SystemException e) + { + log.warn("Could not check if a global Tx has been started", e); + } + return false; } = /** Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/api/xa/TestUserTransaction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/api/xa/TestUserTransaction.java 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/api/xa/TestUserTransaction.java 2011-06-07 18:31:03 UTC (rev 4484) @@ -30,6 +30,7 @@ import javax.jcr.Session; import javax.jcr.SimpleCredentials; import javax.naming.InitialContext; +import javax.transaction.Transaction; import javax.transaction.UserTransaction; = /** @@ -231,13 +232,18 @@ repository.login(new SimpleCredentials("admin", "admin".toCharArr= ay()), session.getWorkspace().getName()); = Node tx1 =3D s1.getRootNode().getNode("pretx").addNode("tx1"); - s1.save(); = Node tx2 =3D s2.getRootNode().getNode("pretx").addNode("tx2"); - s2.save(); = + // keep this change out of the current Tx, this is necessary since + // we have now auto-enlistment mechanism that is triggered at sessio= n save + Transaction tx =3D txService.getTransactionManager().suspend(); s0.save(); // save that parent of tx1 removed + txService.getTransactionManager().resume(tx); = + s1.save(); + s2.save(); + = try { ut.commit(); Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/cluster/test-configuration-jbc.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-configuration-jbc.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-configuration-jbc.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -267,7 +267,8 @@ ref-addresses ref-addresses - + + Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/cluster/test-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-configuration.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-configuration.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -267,7 +267,8 @@ ref-addresses ref-addresses - + + Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/test-configuration-jbc.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-jbc.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-jbc.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -249,7 +249,8 @@ ref-addresses ref-addresses - + + Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/test-configuration-sjdbc-jbc.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-sjdbc-jbc.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-sjdbc-jbc.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -249,7 +249,8 @@ ref-addresses ref-addresses - + + Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/test-configuration-sjdbc.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-sjdbc.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration-sjdbc.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -249,7 +249,8 @@ ref-addresses ref-addresses - + + Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/test-configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration.xml 2011-06-07 09:06:06 UTC (rev 4483) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-configuration.xml 2011-06-07 18:31:03 UTC (rev 4484) @@ -249,7 +249,8 @@ ref-addresses ref-addresses - + + --===============3997069058189537148==-- From do-not-reply at jboss.org Wed Jun 8 02:59:37 2011 Content-Type: multipart/mixed; boundary="===============8198872803666392305==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4485 - jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core. Date: Wed, 08 Jun 2011 02:59:36 -0400 Message-ID: <201106080659.p586xaoS020853@svn01.web.mwc.hst.phx2.redhat.com> --===============8198872803666392305== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-08 02:59:34 -0400 (Wed, 08 Jun 2011) New Revision: 4485 Modified: jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform= /services/jcr/impl/core/XASessionImpl.java Log: JCR-1631 log error messages in ERROR more rather than DEBUG Modified: jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exop= latform/services/jcr/impl/core/XASessionImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatfor= m/services/jcr/impl/core/XASessionImpl.java 2011-06-07 18:31:03 UTC (rev 44= 84) +++ jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatfor= m/services/jcr/impl/core/XASessionImpl.java 2011-06-08 06:59:34 UTC (rev 44= 85) @@ -208,9 +208,9 @@ catch (TransactionException e) { commitException =3D e; - if (LOG.isDebugEnabled()) + if (LOG.isErrorEnabled()) { - LOG.debug("Commit Error. Xid:" + xid + ", session: " + getSess= ionInfo() + ", " + this, e); + LOG.error("Commit Error. Xid:" + xid + ", session: " + getSess= ionInfo() + ", " + this, e); } = throw new XASessionException(e.toString(), e.getErrorCode()); --===============8198872803666392305==-- From do-not-reply at jboss.org Wed Jun 8 04:16:21 2011 Content-Type: multipart/mixed; boundary="===============7377834099995808370==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4486 - in jcr/trunk/exo.jcr.component.core: src/test/java/org/exoplatform/services/jcr/impl/core and 4 other directories. Date: Wed, 08 Jun 2011 04:16:21 -0400 Message-ID: <201106080816.p588GLbp008406@svn01.web.mwc.hst.phx2.redhat.com> --===============7377834099995808370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sergiykarpenko Date: 2011-06-08 04:16:20 -0400 (Wed, 08 Jun 2011) New Revision: 4486 Added: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/lab/query/ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/lab/query/TestErrorMultithreading.java Removed: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/query/TestErrorMultithreading.java Modified: jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestWorkspaceManagement.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/usecases/common/RemoveSameNameSiblingTest.java Log: EXOJCR-1364: fix some tests and remove from excluded Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-08 06:59:34 UTC (rev 4= 485) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-08 08:16:20 UTC (rev 4= 486) @@ -409,19 +409,14 @@ org/exoplatform/services/jcr/impl/**/Test*.java= - org/exoplatform/services/jcr/**/TestQueryUsecas= es.java org/exoplatform/services/jcr/**/api/TestAll.jav= a - org/exoplatform/services/jcr/**/TestErrorMultit= hreading.java - org/exoplatform/services/jcr/**/TestRollbackBig= Files.java - org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceManagement.java - org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceRestore.java - org/exoplatform/services/jcr/**/impl/**/TestRep= ositoryManagement.java org/exoplatform/services/jcr/**/impl/**/Base*.j= ava + org/exoplatform/services/jcr/**/usecases/BaseUs= ecasesTest.java + org/exoplatform/services/jcr/**/impl/**/TestRep= ositoryManagement.java + org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceRestore.java + org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceManagement.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationStream.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationVersionRestore.java - org/exoplatform/services/jcr/**/usecases/**/Rem= oveSameNameSiblingTest.java - org/exoplatform/services/jcr/**/usecases/**/Tes= tQueryWithNumberAndSpace.java - org/exoplatform/services/jcr/**/usecases/BaseUs= ecasesTest.java org/exoplatform/services/jcr/**/impl/**/SQLBenc= hmarkTest.java @@ -754,19 +749,14 @@ org/apache/jackrabbit/test/api/version/*T= est.java - org/exoplatform/services/jcr/**/TestQuery= Usecases.java org/exoplatform/services/jcr/**/api/TestA= ll.java - org/exoplatform/services/jcr/**/TestError= Multithreading.java - org/exoplatform/services/jcr/**/TestRollb= ackBigFiles.java + org/exoplatform/services/jcr/**/impl/**/B= ase*.java + org/exoplatform/services/jcr/**/usecases/= BaseUsecasesTest.java org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceManagement.java org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceRestore.java org/exoplatform/services/jcr/**/impl/**/T= estRepositoryManagement.java - org/exoplatform/services/jcr/**/impl/**/B= ase*.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationStream.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationVersionRestore.java - org/exoplatform/services/jcr/**/usecases/= **/RemoveSameNameSiblingTest.java - org/exoplatform/services/jcr/**/usecases/= **/TestQueryWithNumberAndSpace.java - org/exoplatform/services/jcr/**/usecases/= BaseUsecasesTest.java org/exoplatform/services/jcr/**/impl/**/S= QLBenchmarkTest.java org/apache/jackrabbit/test/api/TestAll.ja= va Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestWorkspaceManagement.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceManagement.java 2011-06-08 06:59:34 UTC (rev 44= 85) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceManagement.java 2011-06-08 08:16:20 UTC (rev 44= 86) @@ -251,6 +251,23 @@ // e.printStackTrace(); // ok; } + catch (Throwable e) + { + boolean isRepoConfEx =3D false; + Throwable tempe =3D e; + do + { + if (tempe instanceof RepositoryConfigurationException) + { + isRepoConfEx =3D true; + break; + } + tempe =3D tempe.getCause(); + } + while ((tempe !=3D null)); + + assertTrue(isRepoConfEx); + } } = public void testRemoveSystemWorkspace() throws Exception Deleted: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/ser= vices/jcr/impl/core/query/TestErrorMultithreading.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/query/TestErrorMultithreading.java 2011-06-08 06:59:34 UTC (= rev 4485) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/query/TestErrorMultithreading.java 2011-06-08 08:16:20 UTC (= rev 4486) @@ -1,281 +0,0 @@ -/* - * Copyright (C) 2003-2007 eXo Platform SAS. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see. - */ - -package org.exoplatform.services.jcr.impl.core.query; - -import org.exoplatform.services.jcr.core.CredentialsImpl; -import org.exoplatform.services.jcr.impl.core.NodeImpl; -import org.exoplatform.services.jcr.impl.core.SessionImpl; -import org.exoplatform.services.jcr.util.IdGenerator; - -import java.io.File; -import java.io.FileInputStream; -import java.util.Calendar; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Set; - -import javax.jcr.Credentials; -import javax.jcr.Node; -import javax.jcr.NodeIterator; -import javax.jcr.Session; -import javax.jcr.query.Query; -import javax.jcr.query.QueryManager; -import javax.jcr.query.QueryResult; - -/** - * Created by The eXo Platform SAS Author : Sergey Karpenko - * = - * @version $Id: $ - */ - -public class TestErrorMultithreading extends BaseQueryTest -{ - public static final int COUNT =3D 5; - - public static final int NODE_COUNT =3D 10; - - public static final int THREADS_COUNT =3D 10; - - public static final String THREAD_NAME =3D "name"; - - public void tearDown() - { - - } - - public void testRunActions() throws Exception - { - // fillRepo(); - // checkRepo(); - // checkRepoByContent(); - loadLargeFiles(); - } - - private void loadLargeFiles() throws Exception - { - class Writer extends Thread - { - public String name; - - public Session sess; - - File file =3D new File("src/test/resources/LARGE.txt"); - - public FileInputStream fis =3D null; - - Writer(String name, Session s) - { - this.name =3D name; - this.sess =3D s; - } - - public void run() - { - System.out.println(name + " - START"); - try - { - Node root =3D sess.getRootNode(); - for (int i =3D 0; i < 100000; i++) - { - - IdGenerator obj; - String fileName =3D IdGenerator.generate();// + "_" + i; - NodeImpl node =3D (NodeImpl)root.addNode(fileName, "nt:f= ile"); - NodeImpl cont =3D (NodeImpl)node.addNode("jcr:content", = "nt:resource"); - cont.setProperty("jcr:mimeType", "text/plain"); - cont.setProperty("jcr:lastModified", Calendar.getInstanc= e()); - fis =3D new FileInputStream(file); - cont.setProperty("jcr:data", fis); - root.save(); - System.out.println(fileName + " saved"); - fis.close(); - } - } - catch (Exception e) - { - e.printStackTrace(); - } - System.out.println(name + " - STOP"); - } - } - - Set writers =3D new HashSet(); - - // create - for (int t =3D 0; t < 10; t++) - { - Credentials credentials =3D new CredentialsImpl("admin", "admin".= toCharArray()); - - Session ss =3D (SessionImpl)repository.login(credentials, "ws"); - Writer wr =3D new Writer(THREAD_NAME + t, ss); - writers.add(wr); - } - - // start - Iterator it =3D writers.iterator(); - while (it.hasNext()) - { - it.next().start(); - } - - // join - it =3D writers.iterator(); - while (it.hasNext()) - { - it.next().join(); - } - - } - - private void fillRepo() throws Exception - { - - class Writer extends Thread - { - public String name; - - public Session sess; - - Writer(String name, Session s) - { - this.name =3D name; - this.sess =3D s; - - super.setName(this.name); // super.getName() + ", " + - } - - public void run() - { - System.out.println(name + " - START"); - try - { - Node root =3D sess.getRootNode(); - - for (int i =3D 0; i < COUNT; i++) - { - for (int j =3D 0; j < NODE_COUNT; j++) - { - int num =3D i * NODE_COUNT * 10 + j; - String n =3D name + "_" + num; - root.addNode(n); - System.out.println("ADD " + n); - } - root.save(); - System.out.println(name + " - SAVE"); - } - } - catch (Exception e) - { - System.out.println(); - System.out.println(name + "-thread error"); - e.printStackTrace(); - } - System.out.println(name + " - FINISH"); - } - } - - Set writers =3D new HashSet(); - - // create - for (int t =3D 0; t < THREADS_COUNT; t++) - { - Credentials credentials =3D new CredentialsImpl("admin", "admin".= toCharArray()); - - Session ss =3D (SessionImpl)repository.login(credentials, "ws"); - Writer wr =3D new Writer(THREAD_NAME + t, ss); - writers.add(wr); - } - - // start - Iterator it =3D writers.iterator(); - while (it.hasNext()) - { - it.next().start(); - } - - // join - it =3D writers.iterator(); - while (it.hasNext()) - { - it.next().join(); - } - - System.out.println("FINISH!"); - Object obj =3D new Object(); - synchronized (obj) - { - try - { - obj.wait(10000); - } - catch (Exception e) - { - - } - } - } - - private void checkRepo() throws Exception - { - QueryManager qman =3D this.workspace.getQueryManager(); - - for (int t =3D 0; t < THREADS_COUNT; t++) - { - String name =3D THREAD_NAME + t; - - for (int i =3D 0; i < COUNT; i++) - { - for (int j =3D 0; j < NODE_COUNT; j++) - { - int num =3D i * NODE_COUNT * 10 + j; - String n =3D name + "_" + num; - Query q =3D qman.createQuery("SELECT * FROM nt:unstructured= WHERE jcr:path LIKE '/" + n + "'", Query.SQL); - QueryResult res =3D q.execute(); - - if (res.getNodes().getSize() !=3D 1) - { - System.out.println("Thread " + t + " " + n + " NO"); - } - } - } - } - } - - private void checkRepoByContent() throws Exception - { - QueryManager qman =3D this.workspace.getQueryManager(); - Node root =3D session.getRootNode(); - NodeIterator it =3D root.getNodes(); - System.out.append("SEARCH START"); - System.out.println("Nodes: " + it.getSize()); - while (it.hasNext()) - { - Node node =3D it.nextNode(); - String name =3D node.getName(); - Query q =3D qman.createQuery("SELECT * FROM nt:unstructured WHERE= jcr:path LIKE '/" + name + "'", Query.SQL); - QueryResult res =3D q.execute(); - - if (res.getNodes().getSize() !=3D 1) - { - System.out.println(name + " NO"); - } - } - System.out.append("SEARCH STOP"); - - } -} Added: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/servi= ces/jcr/lab/query/TestErrorMultithreading.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/lab/query/TestErrorMultithreading.java (rev 0) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/lab/query/TestErrorMultithreading.java 2011-06-08 08:16:20 UTC (rev 44= 86) @@ -0,0 +1,282 @@ +/* + * Copyright (C) 2003-2007 eXo Platform SAS. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either version 3 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see. + */ + +package org.exoplatform.services.jcr.lab.query; + +import org.exoplatform.services.jcr.core.CredentialsImpl; +import org.exoplatform.services.jcr.impl.core.NodeImpl; +import org.exoplatform.services.jcr.impl.core.SessionImpl; +import org.exoplatform.services.jcr.impl.core.query.BaseQueryTest; +import org.exoplatform.services.jcr.util.IdGenerator; + +import java.io.File; +import java.io.FileInputStream; +import java.util.Calendar; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Set; + +import javax.jcr.Credentials; +import javax.jcr.Node; +import javax.jcr.NodeIterator; +import javax.jcr.Session; +import javax.jcr.query.Query; +import javax.jcr.query.QueryManager; +import javax.jcr.query.QueryResult; + +/** + * Created by The eXo Platform SAS Author : Sergey Karpenko + * = + * @version $Id: $ + */ + +public class TestErrorMultithreading extends BaseQueryTest +{ + public static final int COUNT =3D 5; + + public static final int NODE_COUNT =3D 10; + + public static final int THREADS_COUNT =3D 10; + + public static final String THREAD_NAME =3D "name"; + + public void tearDown() + { + + } + + public void testRunActions() throws Exception + { + // fillRepo(); + // checkRepo(); + // checkRepoByContent(); + loadLargeFiles(); + } + + private void loadLargeFiles() throws Exception + { + class Writer extends Thread + { + public String name; + + public Session sess; + + File file =3D new File("src/test/resources/LARGE.txt"); + + public FileInputStream fis =3D null; + + Writer(String name, Session s) + { + this.name =3D name; + this.sess =3D s; + } + + public void run() + { + System.out.println(name + " - START"); + try + { + Node root =3D sess.getRootNode(); + for (int i =3D 0; i < 100000; i++) + { + + IdGenerator obj; + String fileName =3D IdGenerator.generate();// + "_" + i; + NodeImpl node =3D (NodeImpl)root.addNode(fileName, "nt:f= ile"); + NodeImpl cont =3D (NodeImpl)node.addNode("jcr:content", = "nt:resource"); + cont.setProperty("jcr:mimeType", "text/plain"); + cont.setProperty("jcr:lastModified", Calendar.getInstanc= e()); + fis =3D new FileInputStream(file); + cont.setProperty("jcr:data", fis); + root.save(); + System.out.println(fileName + " saved"); + fis.close(); + } + } + catch (Exception e) + { + e.printStackTrace(); + } + System.out.println(name + " - STOP"); + } + } + + Set writers =3D new HashSet(); + + // create + for (int t =3D 0; t < 10; t++) + { + Credentials credentials =3D new CredentialsImpl("admin", "admin".= toCharArray()); + + Session ss =3D (SessionImpl)repository.login(credentials, "ws"); + Writer wr =3D new Writer(THREAD_NAME + t, ss); + writers.add(wr); + } + + // start + Iterator it =3D writers.iterator(); + while (it.hasNext()) + { + it.next().start(); + } + + // join + it =3D writers.iterator(); + while (it.hasNext()) + { + it.next().join(); + } + + } + + private void fillRepo() throws Exception + { + + class Writer extends Thread + { + public String name; + + public Session sess; + + Writer(String name, Session s) + { + this.name =3D name; + this.sess =3D s; + + super.setName(this.name); // super.getName() + ", " + + } + + public void run() + { + System.out.println(name + " - START"); + try + { + Node root =3D sess.getRootNode(); + + for (int i =3D 0; i < COUNT; i++) + { + for (int j =3D 0; j < NODE_COUNT; j++) + { + int num =3D i * NODE_COUNT * 10 + j; + String n =3D name + "_" + num; + root.addNode(n); + System.out.println("ADD " + n); + } + root.save(); + System.out.println(name + " - SAVE"); + } + } + catch (Exception e) + { + System.out.println(); + System.out.println(name + "-thread error"); + e.printStackTrace(); + } + System.out.println(name + " - FINISH"); + } + } + + Set writers =3D new HashSet(); + + // create + for (int t =3D 0; t < THREADS_COUNT; t++) + { + Credentials credentials =3D new CredentialsImpl("admin", "admin".= toCharArray()); + + Session ss =3D (SessionImpl)repository.login(credentials, "ws"); + Writer wr =3D new Writer(THREAD_NAME + t, ss); + writers.add(wr); + } + + // start + Iterator it =3D writers.iterator(); + while (it.hasNext()) + { + it.next().start(); + } + + // join + it =3D writers.iterator(); + while (it.hasNext()) + { + it.next().join(); + } + + System.out.println("FINISH!"); + Object obj =3D new Object(); + synchronized (obj) + { + try + { + obj.wait(10000); + } + catch (Exception e) + { + + } + } + } + + private void checkRepo() throws Exception + { + QueryManager qman =3D this.workspace.getQueryManager(); + + for (int t =3D 0; t < THREADS_COUNT; t++) + { + String name =3D THREAD_NAME + t; + + for (int i =3D 0; i < COUNT; i++) + { + for (int j =3D 0; j < NODE_COUNT; j++) + { + int num =3D i * NODE_COUNT * 10 + j; + String n =3D name + "_" + num; + Query q =3D qman.createQuery("SELECT * FROM nt:unstructured= WHERE jcr:path LIKE '/" + n + "'", Query.SQL); + QueryResult res =3D q.execute(); + + if (res.getNodes().getSize() !=3D 1) + { + System.out.println("Thread " + t + " " + n + " NO"); + } + } + } + } + } + + private void checkRepoByContent() throws Exception + { + QueryManager qman =3D this.workspace.getQueryManager(); + Node root =3D session.getRootNode(); + NodeIterator it =3D root.getNodes(); + System.out.append("SEARCH START"); + System.out.println("Nodes: " + it.getSize()); + while (it.hasNext()) + { + Node node =3D it.nextNode(); + String name =3D node.getName(); + Query q =3D qman.createQuery("SELECT * FROM nt:unstructured WHERE= jcr:path LIKE '/" + name + "'", Query.SQL); + QueryResult res =3D q.execute(); + + if (res.getNodes().getSize() !=3D 1) + { + System.out.println(name + " NO"); + } + } + System.out.append("SEARCH STOP"); + + } +} Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/usecases/common/RemoveSameNameSiblingTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingTest.java 2011-06-08 06:59:34 UTC= (rev 4485) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingTest.java 2011-06-08 08:16:20 UTC= (rev 4486) @@ -132,10 +132,16 @@ n2 =3D subRoot.getNode("child[2]"); log.debug(">>>> SAME NAME start " + n2.getPath() + " " + n2.getIndex= ()); n2.remove(); // reindex child[3] --> child[2] - // root.save(); + session.save(); = + assertEquals("Same-name siblings path must be reindexed", "/u1/child= [2]", n3.getPath()); + assertEquals("Same-name siblings path must be reindexed", "/u1/child= [3]/n1/n2", n3_n1n2.getPath()); + session.refresh(true); assertEquals("Same-name siblings path must be reindexed", "/u1/child= [2]/n1/n2", n3_n1n2.getPath()); = + n3_n1n2 =3D n3.getNode("n1").getNode("n2"); + assertEquals("Same-name siblings path must be reindexed", "/u1/child= [2]/n1/n2", n3_n1n2.getPath()); + try { NodeIterator chns =3D n3_n1n2.getNodes(); @@ -390,7 +396,8 @@ // TODO there is a problem, we can't see deep subtree of reind= exed same-name-siblings now. // after save it will be ok. // See http://jira.exoplatform.org/browse/JCR-340 - assertEquals("/snsRemoveTest/_node/node3", node2.getNode("node= 3").getPath()); + //assertEquals("/snsRemoveTest/_node/node3", node2.getNode("no= de3").getPath()); + assertEquals("/snsRemoveTest/_node[2]/node3", node2.getNode("n= ode3").getPath()); = } catch (RepositoryException e) --===============7377834099995808370==-- From do-not-reply at jboss.org Wed Jun 8 08:40:18 2011 Content-Type: multipart/mixed; boundary="===============2604938968752080545==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4487 - core/branches/2.3.x/patch/2.3.8/COR-228. Date: Wed, 08 Jun 2011 08:40:18 -0400 Message-ID: <201106081240.p58CeIhm027033@svn01.web.mwc.hst.phx2.redhat.com> --===============2604938968752080545== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-08 08:40:18 -0400 (Wed, 08 Jun 2011) New Revision: 4487 Modified: core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch Log: COR-228: patch updated Modified: core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch 2011-06-08 08:16:= 20 UTC (rev 4486) +++ core/branches/2.3.x/patch/2.3.8/COR-228/COR-228.patch 2011-06-08 12:40:= 18 UTC (rev 4487) @@ -1,353 +1,3 @@ -Index: exo.core.component.document/src/test/java/org/exoplatform/services/= document/test/TestPropertiesExtracting.java -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.document/src/test/java/org/exoplatform/services/doc= ument/test/TestPropertiesExtracting.java (revision 4476) -+++ exo.core.component.document/src/test/java/org/exoplatform/services/doc= ument/test/TestPropertiesExtracting.java (working copy) -@@ -18,7 +18,6 @@ - */ - package org.exoplatform.services.document.test; - = --import org.exoplatform.commons.utils.ISO8601; - import org.exoplatform.services.document.DCMetaData; - import org.exoplatform.services.document.DocumentReader; - import org.exoplatform.services.document.DocumentReaderService; -@@ -34,6 +33,22 @@ - { - DocumentReaderService service; - = -+ private void evalProps(Properties etalon, Properties testedProps, bool= ean testSize) -+ { -+ Iterator it =3D etalon.entrySet().iterator(); -+ while (it.hasNext()) -+ { -+ Map.Entry prop =3D (Map.Entry)it.next(); -+ Object tval =3D testedProps.get(prop.getKey()); -+ assertNotNull(prop.getKey() + " property not founded. ", tval); -+ assertEquals(prop.getKey() + " property value is incorrect", pro= p.getValue(), tval); -+ } -+ if (testSize) -+ { -+ assertEquals("size is incorrect", etalon.size(), testedProps.siz= e()); -+ } -+ } -+ - @Override - public void setUp() throws Exception - { -@@ -41,20 +56,21 @@ - service =3D (DocumentReaderService)getComponentInstanceOfType(Docum= entReaderService.class); - } - = -- public void testPDFDocumentReaderServiceXMPMetadata() throws Exception -+ public void testExcelDocumentReaderService() throws Exception - { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/MyTest.pdf"); -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xls"); - try - { -- DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); -- Properties testprops =3D rdr.getProperties(is); -+ Properties props =3D service.getDocumentReader("application/exce= l").getProperties(is); - Properties etalon =3D new Properties(); -- etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"= ); -- etalon.put(DCMetaData.CREATOR, "Christian Klaus"); -- etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"= ); -- Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); -- etalon.put(DCMetaData.DATE, c); -- evalProps(etalon, testprops); -+ etalon.put(DCMetaData.TITLE, "test-Title"); -+ etalon.put(DCMetaData.DATE, new Date(1283247293000L)); -+ etalon.put(DCMetaData.SUBJECT, "test-Subject"); -+ etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); -+ etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); -+ etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); -+ -+ evalProps(etalon, props, true); - } - finally - { -@@ -62,20 +78,111 @@ - } - } - = -- public void testWordDocumentReaderService() throws Exception -+ public void testOODocumentReaderService() throws Exception - { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.doc"); -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.odt"); - try - { -- Properties props =3D service.getDocumentReader("application/mswo= rd").getProperties(is); -+ Properties props =3D service.getDocumentReader("application/vnd.= oasis.opendocument.text").getProperties(is); - Properties etalon =3D new Properties(); -+ Calendar date =3D Calendar.getInstance(); -+ date.setTimeInMillis(0); -+ date.set(2010, 7, 31, 14, 13, 23); -+ - etalon.put(DCMetaData.TITLE, "test-Title"); -- etalon.put(DCMetaData.DATE, new Date(1283247060000L)); -+ etalon.put(DCMetaData.LANGUAGE, "ru-RU"); -+ etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); - etalon.put(DCMetaData.SUBJECT, "test-Subject"); -- etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); -- etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); -+ etalon.put(DCMetaData.CREATOR, "nikolaz "); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); -- evalProps(etalon, props); -+ -+ evalProps(etalon, props, true); -+ } -+ finally -+ { -+ is.close(); -+ } -+ } -+ -+ public void testPDFDocumentReaderService() throws Exception -+ { -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.pdf"); -+ DocumentReader rdr =3D service.getDocumentReader("application/pdf"); -+ Properties props =3D rdr.getProperties(is); -+ assertTrue(props.isEmpty()); -+ -+ // Properties etalon =3D new Properties(); -+ // etalon.put(DCMetaData.PUBLISHER, "FOP 0.20.4"); -+ // evalProps(etalon, props, false); -+ } -+ -+ public void testPDFDocumentReaderServiceBrokenFile() throws Exception -+ { -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/pfs_accapp.pdf"); -+ try -+ { -+ -+ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); -+ Properties testprops =3D rdr.getProperties(is); -+ Properties etalon =3D new Properties(); -+ etalon.put(DCMetaData.TITLE, "Personal Account Opening Form VN"); -+ etalon.put(DCMetaData.CREATOR, "mr"); -+ evalProps(etalon, testprops, false); -+ } -+ finally -+ { -+ is.close(); -+ } -+ } -+ -+ public void testPDFDocumentReaderServiceMetro() throws Exception -+ { -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/metro.pdf"); -+ try -+ { -+ -+ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); -+ Properties testprops =3D rdr.getProperties(is); -+ Properties etalon =3D new Properties(); -+ etalon.put(DCMetaData.TITLE, "metro"); -+ etalon.put(DCMetaData.CREATOR, "Preview"); -+ evalProps(etalon, testprops, false); -+ } -+ finally -+ { -+ is.close(); -+ } -+ } -+ -+ public void testPDFDocumentReaderServiceXMPUsecase1() throws Exception -+ { -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/MyTest.pdf"); -+ DocumentReader rdr =3D service.getDocumentReader("application/pdf"); -+ -+ Properties testprops =3D rdr.getProperties(is); -+ // printProps(testprops); -+ -+ Properties etalon =3D new Properties(); -+ etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"); -+ etalon.put(DCMetaData.CREATOR, "Christian Klaus"); -+ etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"); -+ // Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); -+ // etalon.put(DCMetaData.DATE, c); -+ -+ evalProps(etalon, testprops, false); -+ } -+ -+ public void testPDFDocumentReaderServiceXMPUsecase2() throws Exception -+ { -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/Trait_union.06.Mai_2009.pdf"); -+ try -+ { -+ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); -+ Properties testprops =3D rdr.getProperties(is); -+ Properties etalon =3D new Properties(); -+ etalon.put(DCMetaData.TITLE, "journal interne mai 2009.qxp"); -+ etalon.put(DCMetaData.CREATOR, "presse"); -+ evalProps(etalon, testprops, false); - } - finally - { -@@ -96,7 +203,7 @@ - etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); -- evalProps(etalon, props); -+ evalProps(etalon, props, true); - } - finally - { -@@ -104,21 +211,20 @@ - } - } - = -- public void testExcelDocumentReaderService() throws Exception -+ public void testWordDocumentReaderService() throws Exception - { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xls"); -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.doc"); - try - { -- Properties props =3D service.getDocumentReader("application/exce= l").getProperties(is); -+ Properties props =3D service.getDocumentReader("application/mswo= rd").getProperties(is); - Properties etalon =3D new Properties(); - etalon.put(DCMetaData.TITLE, "test-Title"); -- etalon.put(DCMetaData.DATE, new Date(1283247293000L)); -+ etalon.put(DCMetaData.DATE, new Date(1283247060000L)); - etalon.put(DCMetaData.SUBJECT, "test-Subject"); -- etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); -+ etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); -- -- evalProps(etalon, props); -+ evalProps(etalon, props, true); - } - finally - { -@@ -126,27 +232,27 @@ - } - } - = -- public void testXWordDocumentReaderService() throws Exception -+ public void testXExcelDocumentReaderService() throws Exception - { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.docx"); -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xlsx"); - try - { - Properties props =3D -- service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.wordprocessingml.document") -+ service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.spreadsheetml.sheet") - .getProperties(is); - Properties etalon =3D new Properties(); - Calendar date =3D Calendar.getInstance(); - date.setTimeInMillis(0); -- date.set(2010, 7, 31, 7, 53, 0); -+ date.set(2010, 7, 31, 8, 7, 25); - = - etalon.put(DCMetaData.TITLE, "test-Title"); - etalon.put(DCMetaData.DATE, date.getTime()); -- etalon.put(DCMetaData.SUBJECT, "Subject"); -- etalon.put(DCMetaData.CREATOR, "nikolaz"); -+ etalon.put(DCMetaData.SUBJECT, "test-Subject"); -+ etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - = -- evalProps(etalon, props); -+ evalProps(etalon, props, true); - } - finally - { -@@ -174,7 +280,7 @@ - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - = -- evalProps(etalon, props); -+ evalProps(etalon, props, true); - } - finally - { -@@ -182,27 +288,27 @@ - } - } - = -- public void testXExcelDocumentReaderService() throws Exception -+ public void testXWordDocumentReaderService() throws Exception - { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xlsx"); -+ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.docx"); - try - { - Properties props =3D -- service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.spreadsheetml.sheet") -+ service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.wordprocessingml.document") - .getProperties(is); - Properties etalon =3D new Properties(); - Calendar date =3D Calendar.getInstance(); - date.setTimeInMillis(0); -- date.set(2010, 7, 31, 8, 7, 25); -+ date.set(2010, 7, 31, 7, 53, 0); - = - etalon.put(DCMetaData.TITLE, "test-Title"); - etalon.put(DCMetaData.DATE, date.getTime()); -- etalon.put(DCMetaData.SUBJECT, "test-Subject"); -- etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); -+ etalon.put(DCMetaData.SUBJECT, "Subject"); -+ etalon.put(DCMetaData.CREATOR, "nikolaz"); - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - = -- evalProps(etalon, props); -+ evalProps(etalon, props, true); - } - finally - { -@@ -210,47 +316,4 @@ - } - } - = -- public void testOODocumentReaderService() throws Exception -- { -- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.odt"); -- try -- { -- Properties props =3D service.getDocumentReader("application/vnd.= oasis.opendocument.text").getProperties(is); -- Properties etalon =3D new Properties(); -- Calendar date =3D Calendar.getInstance(); -- date.setTimeInMillis(0); -- date.set(2010, 7, 31, 14, 13, 23); -- -- etalon.put(DCMetaData.TITLE, "test-Title"); -- etalon.put(DCMetaData.LANGUAGE, "ru-RU"); -- etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); -- etalon.put(DCMetaData.SUBJECT, "test-Subject"); -- etalon.put(DCMetaData.CREATOR, "nikolaz "); -- etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); -- -- evalProps(etalon, props); -- } -- finally -- { -- is.close(); -- } -- } -- -- private void evalProps(Properties etalon, Properties testedProps) -- { -- Iterator it =3D etalon.entrySet().iterator(); -- while (it.hasNext()) -- { -- Map.Entry prop =3D (Map.Entry)it.next(); -- Object tval =3D testedProps.get(prop.getKey()); -- assertNotNull(prop.getKey() + " property not founded. ", tval); -- if (tval instanceof Date) -- { -- System.out.println("was:" + ((Date)tval).getTime() + " expect= ed: " + ((Date)prop.getValue()).getTime()); -- } -- assertEquals(prop.getKey() + " property value is incorrect", pro= p.getValue(), tval); -- } -- assertEquals("size is incorrect", etalon.size(), testedProps.size()= ); -- } -- - } Index: exo.core.component.document/src/test/resources/Trait_union.06.Mai_2= 009.pdf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.document/src/test/resources/Trait_union.06.Mai_2009= .pdf (revision 0) @@ -40525,11 +40175,368 @@ Added: svn:mime-type + application/octet-stream = +Index: exo.core.component.document/src/test/java/org/exoplatform/services/= document/test/TestPropertiesExtracting.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.document/src/test/java/org/exoplatform/services/doc= ument/test/TestPropertiesExtracting.java (revision 4481) ++++ exo.core.component.document/src/test/java/org/exoplatform/services/doc= ument/test/TestPropertiesExtracting.java (working copy) +@@ -18,7 +18,6 @@ + */ + package org.exoplatform.services.document.test; + = +-import org.exoplatform.commons.utils.ISO8601; + import org.exoplatform.services.document.DCMetaData; + import org.exoplatform.services.document.DocumentReader; + import org.exoplatform.services.document.DocumentReaderService; +@@ -34,6 +33,22 @@ + { + DocumentReaderService service; + = ++ private void evalProps(Properties etalon, Properties testedProps, bool= ean testSize) ++ { ++ Iterator it =3D etalon.entrySet().iterator(); ++ while (it.hasNext()) ++ { ++ Map.Entry prop =3D (Map.Entry)it.next(); ++ Object tval =3D testedProps.get(prop.getKey()); ++ assertNotNull(prop.getKey() + " property not founded. ", tval); ++ assertEquals(prop.getKey() + " property value is incorrect", pro= p.getValue(), tval); ++ } ++ if (testSize) ++ { ++ assertEquals("size is incorrect", etalon.size(), testedProps.siz= e()); ++ } ++ } ++ + @Override + public void setUp() throws Exception + { +@@ -41,20 +56,21 @@ + service =3D (DocumentReaderService)getComponentInstanceOfType(Docum= entReaderService.class); + } + = +- public void testPDFDocumentReaderServiceXMPMetadata() throws Exception ++ public void testExcelDocumentReaderService() throws Exception + { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/MyTest.pdf"); ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xls"); + try + { +- DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); +- Properties testprops =3D rdr.getProperties(is); ++ Properties props =3D service.getDocumentReader("application/exce= l").getProperties(is); + Properties etalon =3D new Properties(); +- etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"= ); +- etalon.put(DCMetaData.CREATOR, "Christian Klaus"); +- etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"= ); +- Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); +- etalon.put(DCMetaData.DATE, c); +- evalProps(etalon, testprops); ++ etalon.put(DCMetaData.TITLE, "test-Title"); ++ etalon.put(DCMetaData.DATE, new Date(1283247293000L)); ++ etalon.put(DCMetaData.SUBJECT, "test-Subject"); ++ etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); ++ etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); ++ etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); ++ ++ evalProps(etalon, props, true); + } + finally + { +@@ -62,20 +78,25 @@ + } + } + = +- public void testWordDocumentReaderService() throws Exception ++ public void testOODocumentReaderService() throws Exception + { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.doc"); ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.odt"); + try + { +- Properties props =3D service.getDocumentReader("application/mswo= rd").getProperties(is); ++ Properties props =3D service.getDocumentReader("application/vnd.= oasis.opendocument.text").getProperties(is); + Properties etalon =3D new Properties(); ++ Calendar date =3D Calendar.getInstance(); ++ date.setTimeInMillis(0); ++ date.set(2010, 7, 31, 14, 13, 23); ++ + etalon.put(DCMetaData.TITLE, "test-Title"); +- etalon.put(DCMetaData.DATE, new Date(1283247060000L)); ++ etalon.put(DCMetaData.LANGUAGE, "ru-RU"); ++ etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); + etalon.put(DCMetaData.SUBJECT, "test-Subject"); +- etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); +- etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); ++ etalon.put(DCMetaData.CREATOR, "nikolaz "); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); +- evalProps(etalon, props); ++ ++ evalProps(etalon, props, true); + } + finally + { +@@ -83,6 +104,92 @@ + } + } + = ++ public void testPDFDocumentReaderService() throws Exception ++ { ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.pdf"); ++ DocumentReader rdr =3D service.getDocumentReader("application/pdf"); ++ Properties props =3D rdr.getProperties(is); ++ assertTrue(props.isEmpty()); ++ ++ // Properties etalon =3D new Properties(); ++ // etalon.put(DCMetaData.PUBLISHER, "FOP 0.20.4"); ++ // evalProps(etalon, props, false); ++ } ++ ++ public void testPDFDocumentReaderServiceBrokenFile() throws Exception ++ { ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/pfs_accapp.pdf"); ++ try ++ { ++ ++ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); ++ Properties testprops =3D rdr.getProperties(is); ++ Properties etalon =3D new Properties(); ++ etalon.put(DCMetaData.TITLE, "Personal Account Opening Form VN"); ++ etalon.put(DCMetaData.CREATOR, "mr"); ++ evalProps(etalon, testprops, false); ++ } ++ finally ++ { ++ is.close(); ++ } ++ } ++ ++ public void testPDFDocumentReaderServiceMetro() throws Exception ++ { ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/metro.pdf"); ++ try ++ { ++ ++ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); ++ Properties testprops =3D rdr.getProperties(is); ++ Properties etalon =3D new Properties(); ++ etalon.put(DCMetaData.TITLE, "metro"); ++ etalon.put(DCMetaData.CREATOR, "Preview"); ++ evalProps(etalon, testprops, false); ++ } ++ finally ++ { ++ is.close(); ++ } ++ } ++ ++ public void testPDFDocumentReaderServiceXMPUsecase1() throws Exception ++ { ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/MyTest.pdf"); ++ DocumentReader rdr =3D service.getDocumentReader("application/pdf"); ++ ++ Properties testprops =3D rdr.getProperties(is); ++ // printProps(testprops); ++ ++ Properties etalon =3D new Properties(); ++ etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"); ++ etalon.put(DCMetaData.CREATOR, "Christian Klaus"); ++ etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"); ++ // Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); ++ // etalon.put(DCMetaData.DATE, c); ++ ++ evalProps(etalon, testprops, false); ++ } ++ ++ public void testPDFDocumentReaderServiceXMPUsecase2() throws Exception ++ { ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/Trait_union.06.Mai_2009.pdf"); ++ try ++ { ++ DocumentReader rdr =3D service.getDocumentReader("application/pd= f"); ++ Properties testprops =3D rdr.getProperties(is); ++ Properties etalon =3D new Properties(); ++ etalon.put(DCMetaData.TITLE, "journal interne mai 2009.qxp"); ++ etalon.put(DCMetaData.CREATOR, "presse"); ++ evalProps(etalon, testprops, false); ++ } ++ finally ++ { ++ is.close(); ++ } ++ } ++ + public void testPPTDocumentReaderService() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.ppt"); +@@ -96,7 +203,7 @@ + etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); +- evalProps(etalon, props); ++ evalProps(etalon, props, true); + } + finally + { +@@ -104,21 +211,20 @@ + } + } + = +- public void testExcelDocumentReaderService() throws Exception ++ public void testWordDocumentReaderService() throws Exception + { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xls"); ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.doc"); + try + { +- Properties props =3D service.getDocumentReader("application/exce= l").getProperties(is); ++ Properties props =3D service.getDocumentReader("application/mswo= rd").getProperties(is); + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "test-Title"); +- etalon.put(DCMetaData.DATE, new Date(1283247293000L)); ++ etalon.put(DCMetaData.DATE, new Date(1283247060000L)); + etalon.put(DCMetaData.SUBJECT, "test-Subject"); +- etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); ++ etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); +- +- evalProps(etalon, props); ++ evalProps(etalon, props, true); + } + finally + { +@@ -126,27 +232,27 @@ + } + } + = +- public void testXWordDocumentReaderService() throws Exception ++ public void testXExcelDocumentReaderService() throws Exception + { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.docx"); ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xlsx"); + try + { + Properties props =3D +- service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.wordprocessingml.document") ++ service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.spreadsheetml.sheet") + .getProperties(is); + Properties etalon =3D new Properties(); + Calendar date =3D Calendar.getInstance(); + date.setTimeInMillis(0); +- date.set(2010, 7, 31, 7, 53, 0); ++ date.set(2010, 7, 31, 8, 7, 25); + = + etalon.put(DCMetaData.TITLE, "test-Title"); + etalon.put(DCMetaData.DATE, date.getTime()); +- etalon.put(DCMetaData.SUBJECT, "Subject"); +- etalon.put(DCMetaData.CREATOR, "nikolaz"); ++ etalon.put(DCMetaData.SUBJECT, "test-Subject"); ++ etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); + = +- evalProps(etalon, props); ++ evalProps(etalon, props, true); + } + finally + { +@@ -174,7 +280,7 @@ + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); + = +- evalProps(etalon, props); ++ evalProps(etalon, props, true); + } + finally + { +@@ -182,27 +288,27 @@ + } + } + = +- public void testXExcelDocumentReaderService() throws Exception ++ public void testXWordDocumentReaderService() throws Exception + { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.xlsx"); ++ InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.docx"); + try + { + Properties props =3D +- service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.spreadsheetml.sheet") ++ service.getDocumentReader("application/vnd.openxmlformats-off= icedocument.wordprocessingml.document") + .getProperties(is); + Properties etalon =3D new Properties(); + Calendar date =3D Calendar.getInstance(); + date.setTimeInMillis(0); +- date.set(2010, 7, 31, 8, 7, 25); ++ date.set(2010, 7, 31, 7, 53, 0); + = + etalon.put(DCMetaData.TITLE, "test-Title"); + etalon.put(DCMetaData.DATE, date.getTime()); +- etalon.put(DCMetaData.SUBJECT, "test-Subject"); +- etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); ++ etalon.put(DCMetaData.SUBJECT, "Subject"); ++ etalon.put(DCMetaData.CREATOR, "nikolaz"); + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); + = +- evalProps(etalon, props); ++ evalProps(etalon, props, true); + } + finally + { +@@ -210,47 +316,4 @@ + } + } + = +- public void testOODocumentReaderService() throws Exception +- { +- InputStream is =3D TestPropertiesExtracting.class.getResourceAsStre= am("/test.odt"); +- try +- { +- Properties props =3D service.getDocumentReader("application/vnd.= oasis.opendocument.text").getProperties(is); +- Properties etalon =3D new Properties(); +- Calendar date =3D Calendar.getInstance(); +- date.setTimeInMillis(0); +- date.set(2010, 7, 31, 14, 13, 23); +- +- etalon.put(DCMetaData.TITLE, "test-Title"); +- etalon.put(DCMetaData.LANGUAGE, "ru-RU"); +- etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); +- etalon.put(DCMetaData.SUBJECT, "test-Subject"); +- etalon.put(DCMetaData.CREATOR, "nikolaz "); +- etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); +- +- evalProps(etalon, props); +- } +- finally +- { +- is.close(); +- } +- } +- +- private void evalProps(Properties etalon, Properties testedProps) +- { +- Iterator it =3D etalon.entrySet().iterator(); +- while (it.hasNext()) +- { +- Map.Entry prop =3D (Map.Entry)it.next(); +- Object tval =3D testedProps.get(prop.getKey()); +- assertNotNull(prop.getKey() + " property not founded. ", tval); +- if (tval instanceof Date) +- { +- System.out.println("was:" + ((Date)tval).getTime() + " expect= ed: " + ((Date)prop.getValue()).getTime()); +- } +- assertEquals(prop.getKey() + " property value is incorrect", pro= p.getValue(), tval); +- } +- assertEquals("size is incorrect", etalon.size(), testedProps.size()= ); +- } +- + } Index: exo.core.component.document/src/main/java/org/exoplatform/services/= document/impl/PDFDocumentReader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.document/src/main/java/org/exoplatform/services/doc= ument/impl/PDFDocumentReader.java (revision 4481) +++ exo.core.component.document/src/main/java/org/exoplatform/services/doc= ument/impl/PDFDocumentReader.java (working copy) -@@ -18,37 +18,31 @@ +@@ -18,37 +18,28 @@ */ package org.exoplatform.services.document.impl; = @@ -40559,11 +40566,11 @@ import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; +-import java.security.AccessController; +-import java.security.PrivilegedActionException; +-import java.security.PrivilegedExceptionAction; +-import java.text.ParseException; +import java.io.UnsupportedEncodingException; - import java.security.AccessController; - import java.security.PrivilegedActionException; - import java.security.PrivilegedExceptionAction; --import java.text.ParseException; import java.util.Calendar; -import java.util.HashMap; +import java.util.List; @@ -40576,8 +40583,125 @@ /** * Created by The eXo Platform SAS A parser of Adobe PDF files. * = -@@ -168,204 +162,269 @@ +@@ -79,79 +70,51 @@ */ + public String getContentAsText(final InputStream is) throws IOExceptio= n, DocumentReadException + { +- ++ if (is =3D=3D null) ++ { ++ throw new NullPointerException("InputStream is null."); ++ } ++ PDDocument pdDocument =3D null; ++ StringWriter sw =3D new StringWriter(); + try + { +- return (String)AccessController.doPrivileged(new PrivilegedExcep= tionAction() +- { +- public Object run() throws Exception +- { +- if (is =3D=3D null) +- { +- throw new NullPointerException("InputStream is null."); +- } +- PDDocument pdDocument =3D null; +- StringWriter sw =3D new StringWriter(); +- try +- { +- if (is.available() =3D=3D 0) +- return ""; ++ if (is.available() =3D=3D 0) ++ return ""; + = +- try +- { +- pdDocument =3D PDDocument.load(is); +- } +- catch (IOException e) +- { +- throw new DocumentReadException("Can not load PDF do= cument.", e); +- } +- +- PDFTextStripper stripper =3D new PDFTextStripper(); +- stripper.setStartPage(1); +- stripper.setEndPage(Integer.MAX_VALUE); +- stripper.writeText(pdDocument, sw); +- } +- finally +- { +- if (pdDocument !=3D null) +- try +- { +- pdDocument.close(); +- } +- catch (IOException e) +- { +- } +- if (is !=3D null) +- try +- { +- is.close(); +- } +- catch (IOException e) +- { +- } +- } +- return sw.toString(); +- } +- }); +- +- } +- catch (PrivilegedActionException pae) +- { +- Throwable cause =3D pae.getCause(); +- if (cause instanceof IOException) ++ try + { +- throw (IOException)cause; ++ pdDocument =3D PDDocument.load(is); + } +- else if (cause instanceof RuntimeException) ++ catch (IOException e) + { +- throw (RuntimeException)cause; ++ throw new DocumentReadException("Can not load PDF document.",= e); + } +- else +- { +- throw new RuntimeException(cause); +- } ++ ++ PDFTextStripper stripper =3D new PDFTextStripper(); ++ stripper.setStartPage(1); ++ stripper.setEndPage(Integer.MAX_VALUE); ++ stripper.writeText(pdDocument, sw); + } +- ++ finally ++ { ++ if (pdDocument !=3D null) ++ try ++ { ++ pdDocument.close(); ++ } ++ catch (IOException e) ++ { ++ } ++ if (is !=3D null) ++ try ++ { ++ is.close(); ++ } ++ catch (IOException e) ++ { ++ } ++ } ++ return sw.toString(); + } + = + public String getContentAsText(InputStream is, String encoding) throws= IOException, DocumentReadException +@@ -168,204 +131,269 @@ + */ public Properties getProperties(InputStream is) throws IOException, Do= cumentReadException { - @@ -41013,7 +41137,7 @@ } Index: packaging/module/src/main/javascript/core.packaging.module.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- packaging/module/src/main/javascript/core.packaging.module.js (revisio= n 4476) +--- packaging/module/src/main/javascript/core.packaging.module.js (revisio= n 4481) +++ packaging/module/src/main/javascript/core.packaging.module.js (working= copy) @@ -39,6 +39,7 @@ module.component.documents =3D --===============2604938968752080545==-- From do-not-reply at jboss.org Thu Jun 9 02:12:59 2011 Content-Type: multipart/mixed; boundary="===============4227290708585391984==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4488 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: storage/value/fs/operations and 1 other directory. Date: Thu, 09 Jun 2011 02:12:59 -0400 Message-ID: <201106090612.p596CxER013368@svn01.web.mwc.hst.phx2.redhat.com> --===============4227290708585391984== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-09 02:12:58 -0400 (Thu, 09 Jun 2011) New Revision: 4488 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java Log: EXOJCR-1346: fix violations Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java 2011-06-08= 12:40:18 UTC (rev 4487) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/persistent/CacheableWorkspaceDataManager.java 2011-06-09= 06:12:58 UTC (rev 4488) @@ -1317,8 +1317,8 @@ } } = - protected List getChildPropertiesDataByPattern(final Node= Data nodeData, final List patternFilters) - throws RepositoryException + protected List getChildPropertiesDataByPattern(final Node= Data nodeData, + final List patternFilters) throws RepositoryExcept= ion { if (!cache.isEnabled()) { Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java 2011-06-08 12:= 40:18 UTC (rev 4487) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/fs/operations/ValueFileIOHelper.java 2011-06-09 06:= 12:58 UTC (rev 4488) @@ -184,9 +184,8 @@ // not succeeded - copy bytes, temp file will be deleted= by transient ValueData if (LOG.isDebugEnabled()) { - LOG - .debug("Value spool file move (rename) to Values S= torage is not succeeded. Trying bytes copy. Spool file: " - + tempFile.getAbsolutePath() + ". Destination: = " + file.getAbsolutePath()); + LOG.debug("Value spool file move (rename) to Values S= torage is not succeeded. Trying bytes copy. Spool file: " + + tempFile.getAbsolutePath() + ". Destination: " += file.getAbsolutePath()); } = copyClose(new FileInputStream(tempFile), new FileOutputS= tream(file)); --===============4227290708585391984==-- From do-not-reply at jboss.org Thu Jun 9 03:45:06 2011 Content-Type: multipart/mixed; boundary="===============0874822762767879386==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4489 - core/trunk. Date: Thu, 09 Jun 2011 03:45:05 -0400 Message-ID: <201106090745.p597j5hd028540@svn01.web.mwc.hst.phx2.redhat.com> --===============0874822762767879386== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-09 03:45:04 -0400 (Thu, 09 Jun 2011) New Revision: 4489 Modified: core/trunk/pom.xml Log: EXOJCR-1255: downgraded commons-dbcp Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-09 06:12:58 UTC (rev 4488) +++ core/trunk/pom.xml 2011-06-09 07:45:04 UTC (rev 4489) @@ -315,7 +315,7 @@ commons-dbcp commons-dbcp - 1.4 + 1.2.2 commons-pool --===============0874822762767879386==-- From do-not-reply at jboss.org Thu Jun 9 03:45:53 2011 Content-Type: multipart/mixed; boundary="===============3041949470625265833==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4490 - jcr/trunk. Date: Thu, 09 Jun 2011 03:45:52 -0400 Message-ID: <201106090745.p597jqda028795@svn01.web.mwc.hst.phx2.redhat.com> --===============3041949470625265833== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-09 03:45:52 -0400 (Thu, 09 Jun 2011) New Revision: 4490 Modified: jcr/trunk/pom.xml Log: EXOJCR-1255: downgraded commons-dbcp Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-09 07:45:04 UTC (rev 4489) +++ jcr/trunk/pom.xml 2011-06-09 07:45:52 UTC (rev 4490) @@ -289,7 +289,7 @@ commons-dbcp commons-dbcp - 1.4 + 1.2.2 commons-pool --===============3041949470625265833==-- From do-not-reply at jboss.org Thu Jun 9 04:25:41 2011 Content-Type: multipart/mixed; boundary="===============0687609207306245555==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4491 - ws/branches/2.1.x/exo.ws.rest.core. Date: Thu, 09 Jun 2011 04:25:41 -0400 Message-ID: <201106090825.p598Pf8Q006607@svn01.web.mwc.hst.phx2.redhat.com> --===============0687609207306245555== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-09 04:25:41 -0400 (Thu, 09 Jun 2011) New Revision: 4491 Modified: ws/branches/2.1.x/exo.ws.rest.core/pom.xml Log: WS-266 use maven build helper plugin to use generated sources from target Modified: ws/branches/2.1.x/exo.ws.rest.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-09 07:45:52 UTC (rev= 4490) +++ ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-09 08:25:41 UTC (rev= 4491) @@ -105,6 +105,25 @@ + org.codehaus.mojo + build-helper-maven-plugin + 1.5 + + + add-test-sources + generate-test-sources + + add-test-source + + + + target/generated-test-sources + + + + + + org.jvnet.jaxb2.maven2 maven-jaxb2-plugin @@ -148,29 +167,6 @@ - - org.apache.maven.plugins - maven-antrun-plugin - - - 0 - - run - - generate-test-sources - - - copy files gnerated by JAXB to test source d= irectory - - - - - - - - - - --===============0687609207306245555==-- From do-not-reply at jboss.org Thu Jun 9 05:40:03 2011 Content-Type: multipart/mixed; boundary="===============3001312747463432729==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4492 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query: jbosscache and 1 other directory. Date: Thu, 09 Jun 2011 05:40:02 -0400 Message-ID: <201106090940.p599e2NG019615@svn01.web.mwc.hst.phx2.redhat.com> --===============3001312747463432729== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-09 05:40:02 -0400 (Thu, 09 Jun 2011) New Revision: 4492 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/query/ispn/IndexerCacheStore.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java Log: EXOJCR-1345 : dispatching ViewChanged in JBC and ISPN asynchronously Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/query/ispn/IndexerCacheStore.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/ispn/IndexerCacheStore.java 2011-06-09 08:25:41 UTC (r= ev 4491) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/ispn/IndexerCacheStore.java 2011-06-09 09:40:02 UTC (r= ev 4492) @@ -141,17 +141,26 @@ * @param newActiveState true if the cache just became the coordinator,= false if the cache stopped being the * coordinator. */ - protected void activeStatusChanged(boolean newActiveState) + protected void activeStatusChanged(final boolean newActiveState) { - coordinator =3D newActiveState; + // originally came from EXOJCR-1345. = + // Deadlock occurs inside JGroups, if calling some operations inside= the same thread, + // invoking ViewChanged. That's why, need to perform operation in se= parated async tread. + new Thread(new Runnable() + { + public void run() + { + coordinator =3D newActiveState; = - getModeHandler().setMode(coordinator ? IndexerIoMode.READ_WRITE : In= dexerIoMode.READ_ONLY); - log.info("Set indexer io mode to:" + (coordinator ? IndexerIoMode.RE= AD_WRITE : IndexerIoMode.READ_ONLY)); + getModeHandler().setMode(coordinator ? IndexerIoMode.READ_WRIT= E : IndexerIoMode.READ_ONLY); + log.info("Set indexer io mode to:" + (coordinator ? IndexerIoM= ode.READ_WRITE : IndexerIoMode.READ_ONLY)); = - if (coordinator) - { - doPushState(); - } + if (coordinator) + { + doPushState(); + } + } + }, "JCR Indexer ActiveStatusChanged-handler").start(); } = /** Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java 2011-= 06-09 08:25:41 UTC (rev 4491) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java 2011-= 06-09 09:40:02 UTC (rev 4492) @@ -45,12 +45,28 @@ * @see org.jboss.cache.loader.SingletonStoreCacheLoader#activeStatusCh= anged(boolean) */ @Override - protected void activeStatusChanged(boolean newActiveState) throws PushS= tateException + protected void activeStatusChanged(final boolean newActiveState) throws= PushStateException { - // at first change indexer mode - setIndexerMode(newActiveState); - // and them push states if needed - super.activeStatusChanged(newActiveState); + // originally came from EXOJCR-1345. = + // Deadlock occurs inside JGroups, if calling some operations inside= the same thread, + // invoking ViewChanged. That's why, need to perform operation in se= parated async tread. + new Thread(new Runnable() + { + public void run() + { + // at first change indexer mode + setIndexerMode(newActiveState); + // and them push states if needed + try + { + IndexerSingletonStoreCacheLoader.super.activeStatusChanged(= newActiveState); + } + catch (PushStateException e) + { + log.error("Failed to initiate PushState.", e); + } + } + }, "JCR Indexer ActiveStatusChanged-handler").start(); } = @Override --===============3001312747463432729==-- From do-not-reply at jboss.org Thu Jun 9 09:31:36 2011 Content-Type: multipart/mixed; boundary="===============3811355495248995081==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4493 - in jcr/trunk/exo.jcr.component.core: src/test/java/org/exoplatform/services/jcr/usecases/common and 1 other directory. Date: Thu, 09 Jun 2011 09:31:35 -0400 Message-ID: <201106091331.p59DVZ5r001464@svn01.web.mwc.hst.phx2.redhat.com> --===============3811355495248995081== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sergiykarpenko Date: 2011-06-09 09:31:35 -0400 (Thu, 09 Jun 2011) New Revision: 4493 Added: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/usecases/common/RemoveSameNameSiblingUnfixedTest.java Modified: jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/usecases/common/RemoveSameNameSiblingTest.java Log: EXOJCR-1377: move failed tests from RemoveSameNameSiblingTest to RemoveSame= NameSiblingUnfixedTest and exclude it. Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-09 09:40:02 UTC (rev 4= 492) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-09 13:31:35 UTC (rev 4= 493) @@ -417,6 +417,7 @@ org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceManagement.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationStream.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationVersionRestore.java + org/exoplatform/services/jcr/usecases/common/Re= moveSameNameSiblingUnfixedTest.java org/exoplatform/services/jcr/**/impl/**/SQLBenc= hmarkTest.java @@ -757,6 +758,7 @@ org/exoplatform/services/jcr/**/impl/**/T= estRepositoryManagement.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationStream.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationVersionRestore.java + org/exoplatform/services/jcr/usecases/com= mon/RemoveSameNameSiblingUnfixedTest.java org/exoplatform/services/jcr/**/impl/**/S= QLBenchmarkTest.java org/apache/jackrabbit/test/api/TestAll.ja= va Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/usecases/common/RemoveSameNameSiblingTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingTest.java 2011-06-09 09:40:02 UTC= (rev 4492) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingTest.java 2011-06-09 13:31:35 UTC= (rev 4493) @@ -207,8 +207,8 @@ try { Query query =3D - session.getWorkspace().getQueryManager().createQuery( - "select * from nt:base where jcr:path like '/u1/child[3]/%'= ", Query.SQL); + session.getWorkspace().getQueryManager() + .createQuery("select * from nt:base where jcr:path like '/u= 1/child[3]/%'", Query.SQL); QueryResult queryResult =3D query.execute(); NodeIterator iterator =3D queryResult.getNodes(); while (iterator.hasNext()) @@ -217,8 +217,8 @@ } = query =3D - session.getWorkspace().getQueryManager().createQuery( - "select * from nt:base where jcr:path like '/u1/child[2]/%'= ", Query.SQL); + session.getWorkspace().getQueryManager() + .createQuery("select * from nt:base where jcr:path like '/u= 1/child[2]/%'", Query.SQL); queryResult =3D query.execute(); iterator =3D queryResult.getNodes(); while (iterator.hasNext()) @@ -259,8 +259,8 @@ try { Query query =3D - session.getWorkspace().getQueryManager().createQuery("/jcr:roo= t/u1/child[3]//element(*, nt:base)", - Query.XPATH); + session.getWorkspace().getQueryManager() + .createQuery("/jcr:root/u1/child[3]//element(*, nt:base)", = Query.XPATH); QueryResult queryResult =3D query.execute(); NodeIterator iterator =3D queryResult.getNodes(); while (iterator.hasNext()) @@ -269,8 +269,8 @@ } = query =3D - session.getWorkspace().getQueryManager().createQuery("/jcr:roo= t/u1/child[2]//element(*, nt:base)", - Query.XPATH); + session.getWorkspace().getQueryManager() + .createQuery("/jcr:root/u1/child[2]//element(*, nt:base)", = Query.XPATH); queryResult =3D query.execute(); iterator =3D queryResult.getNodes(); while (iterator.hasNext()) @@ -367,49 +367,4 @@ fail(e.getMessage()); } } - - public void testRemoveSameNameSiblings() throws Exception - { - - Node testRoot =3D root.addNode("snsRemoveTest"); - session.save(); - - try - { - - Node node1 =3D testRoot.addNode("_node"); - node1.setProperty("prop", "_data1"); - Node node2 =3D testRoot.addNode("_node"); - node2.setProperty("prop", "_data2"); - Node node3 =3D node2.addNode("node3"); - testRoot.save(); - - try - { - assertEquals("/snsRemoveTest/_node[2]/node3", node2.getNode("n= ode3").getPath()); - node1.remove(); // /snsRemoveTest/_node[2] -> /snsRemoveTest/_= node[1] - - // check - String n2p =3D node2.getProperty("prop").getString(); - assertEquals("A property must be same ", "_data2", n2p); - - // TODO there is a problem, we can't see deep subtree of reind= exed same-name-siblings now. - // after save it will be ok. - // See http://jira.exoplatform.org/browse/JCR-340 - //assertEquals("/snsRemoveTest/_node/node3", node2.getNode("no= de3").getPath()); - assertEquals("/snsRemoveTest/_node[2]/node3", node2.getNode("n= ode3").getPath()); - - } - catch (RepositoryException e) - { - e.printStackTrace(); - fail("A property must exists on the node /snsRemoveTest/_node[= 1] " + e); - } - } - finally - { - testRoot.remove(); - session.save(); - } - } } Added: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/servi= ces/jcr/usecases/common/RemoveSameNameSiblingUnfixedTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingUnfixedTest.java = (rev 0) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/usecases/common/RemoveSameNameSiblingUnfixedTest.java 2011-06-09 13:31= :35 UTC (rev 4493) @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2011 eXo Platform SAS. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.exoplatform.services.jcr.usecases.common; + +import org.exoplatform.services.jcr.usecases.BaseUsecasesTest; + +import javax.jcr.Node; +import javax.jcr.RepositoryException; + +/** + * TODO this class contains unfixed tests from RemoveSameNameSiblingTest. + * Please move back fixed tests. + * = + * @author Sergiy Karpenko<= /a> + * @version $Id: exo-jboss-codetemplates.xml 34360 9.06.2011 skarpenko $ + */ +public class RemoveSameNameSiblingUnfixedTest extends BaseUsecasesTest +{ + public void testRemoveSameNameSiblings() throws Exception + { + Node testRoot =3D root.addNode("snsRemoveTest"); + session.save(); + + try + { + Node node1 =3D testRoot.addNode("_node"); + node1.setProperty("prop", "_data1"); + Node node2 =3D testRoot.addNode("_node"); + node2.setProperty("prop", "_data2"); + Node node3 =3D node2.addNode("node3"); + testRoot.save(); + + try + { + assertEquals("/snsRemoveTest/_node[2]/node3", node2.getNode("n= ode3").getPath()); + node1.remove(); // /snsRemoveTest/_node[2] -> /snsRemoveTest/_= node[1] + + // check + String n2p =3D node2.getProperty("prop").getString(); + assertEquals("A property must be same ", "_data2", n2p); + + // TODO there is a problem, we can't see deep subtree of reind= exed same-name-siblings now. + // after save it will be ok. + // See http://jira.exoplatform.org/browse/JCR-340 + // Also, this test do not fails with disabled cache. + assertEquals("/snsRemoveTest/_node/node3", node2.getNode("node= 3").getPath()); + + } + catch (RepositoryException e) + { + e.printStackTrace(); + fail("A property must exists on the node /snsRemoveTest/_node[= 1] " + e); + } + } + finally + { + testRoot.remove(); + session.save(); + } + } +} --===============3811355495248995081==-- From do-not-reply at jboss.org Thu Jun 9 10:54:48 2011 Content-Type: multipart/mixed; boundary="===============8097903925135608077==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4494 - kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils. Date: Thu, 09 Jun 2011 10:54:48 -0400 Message-ID: <201106091454.p59EsmRO015931@svn01.web.mwc.hst.phx2.redhat.com> --===============8097903925135608077== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-09 10:54:48 -0400 (Thu, 09 Jun 2011) New Revision: 4494 Modified: kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/ut= ils/SecurityHelper.java Log: EXOJCR-1365: enable to throw RuntimeException in doPrivilegedExceptionActio= n() method Modified: kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/com= mons/utils/SecurityHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/SecurityHelper.java 2011-06-09 13:31:35 UTC (rev 4493) +++ kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/SecurityHelper.java 2011-06-09 14:54:48 UTC (rev 4494) @@ -308,6 +308,10 @@ { return action.run(); } + catch (RuntimeException e) + { + throw e; + } catch (Exception e) { throw new PrivilegedActionException(e); --===============8097903925135608077==-- From do-not-reply at jboss.org Fri Jun 10 04:32:02 2011 Content-Type: multipart/mixed; boundary="===============0232231283448087805==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4495 - in core/branches/2.3.x: exo.core.component.document/src/test/java/org/exoplatform/services/document/test and 3 other directories. Date: Fri, 10 Jun 2011 04:32:01 -0400 Message-ID: <201106100832.p5A8W1XV004101@svn01.web.mwc.hst.phx2.redhat.com> --===============0232231283448087805== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-10 04:31:59 -0400 (Fri, 10 Jun 2011) New Revision: 4495 Added: core/branches/2.3.x/exo.core.component.document/src/test/resources/Trait= _union.06.Mai_2009.pdf core/branches/2.3.x/exo.core.component.document/src/test/resources/metro= .pdf core/branches/2.3.x/exo.core.component.document/src/test/resources/pfs_a= ccapp.pdf core/branches/2.3.x/patch/2.3.8/COR-228/readme.txt Modified: core/branches/2.3.x/exo.core.component.document/src/main/java/org/exopla= tform/services/document/impl/PDFDocumentReader.java core/branches/2.3.x/exo.core.component.document/src/test/java/org/exopla= tform/services/document/test/TestPropertiesExtracting.java core/branches/2.3.x/packaging/module/src/main/javascript/core.packaging.= module.js Log: COR-228 What is the problem to fix? Implementation that uses iText does not support many XMP metadata. Make= new implementation of PdfDocumentReader.getProperties() using PdfBox inste= ad of iText. How is the problem fixed? Use PdfBox to extract XMP metadata. iText was removed from code. Modified: core/branches/2.3.x/exo.core.component.document/src/main/java/org= /exoplatform/services/document/impl/PDFDocumentReader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.document/src/main/java/org/exopl= atform/services/document/impl/PDFDocumentReader.java 2011-06-09 14:54:48 UT= C (rev 4494) +++ core/branches/2.3.x/exo.core.component.document/src/main/java/org/exopl= atform/services/document/impl/PDFDocumentReader.java 2011-06-10 08:31:59 UT= C (rev 4495) @@ -18,37 +18,28 @@ */ package org.exoplatform.services.document.impl; = -import com.lowagie.text.pdf.PdfDate; -import com.lowagie.text.pdf.PdfReader; - +import org.apache.jempbox.xmp.XMPMetadata; +import org.apache.jempbox.xmp.XMPSchemaBasic; +import org.apache.jempbox.xmp.XMPSchemaDublinCore; +import org.apache.pdfbox.exceptions.InvalidPasswordException; import org.apache.pdfbox.pdmodel.PDDocument; +import org.apache.pdfbox.pdmodel.PDDocumentCatalog; +import org.apache.pdfbox.pdmodel.PDDocumentInformation; +import org.apache.pdfbox.pdmodel.common.PDMetadata; import org.apache.pdfbox.util.PDFTextStripper; -import org.exoplatform.commons.utils.ISO8601; import org.exoplatform.services.document.DCMetaData; import org.exoplatform.services.document.DocumentReadException; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.xml.sax.SAXException; = -import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; -import java.security.AccessController; -import java.security.PrivilegedActionException; -import java.security.PrivilegedExceptionAction; -import java.text.ParseException; +import java.io.UnsupportedEncodingException; import java.util.Calendar; -import java.util.HashMap; +import java.util.List; import java.util.Properties; = -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; - /** * Created by The eXo Platform SAS A parser of Adobe PDF files. * = @@ -79,79 +70,51 @@ */ public String getContentAsText(final InputStream is) throws IOException= , DocumentReadException { - + if (is =3D=3D null) + { + throw new NullPointerException("InputStream is null."); + } + PDDocument pdDocument =3D null; + StringWriter sw =3D new StringWriter(); try { - return (String)AccessController.doPrivileged(new PrivilegedExcept= ionAction() - { - public Object run() throws Exception - { - if (is =3D=3D null) - { - throw new NullPointerException("InputStream is null."); - } - PDDocument pdDocument =3D null; - StringWriter sw =3D new StringWriter(); - try - { - if (is.available() =3D=3D 0) - return ""; + if (is.available() =3D=3D 0) + return ""; = - try - { - pdDocument =3D PDDocument.load(is); - } - catch (IOException e) - { - throw new DocumentReadException("Can not load PDF doc= ument.", e); - } - - PDFTextStripper stripper =3D new PDFTextStripper(); - stripper.setStartPage(1); - stripper.setEndPage(Integer.MAX_VALUE); - stripper.writeText(pdDocument, sw); - } - finally - { - if (pdDocument !=3D null) - try - { - pdDocument.close(); - } - catch (IOException e) - { - } - if (is !=3D null) - try - { - is.close(); - } - catch (IOException e) - { - } - } - return sw.toString(); - } - }); - - } - catch (PrivilegedActionException pae) - { - Throwable cause =3D pae.getCause(); - if (cause instanceof IOException) + try { - throw (IOException)cause; + pdDocument =3D PDDocument.load(is); } - else if (cause instanceof RuntimeException) + catch (IOException e) { - throw (RuntimeException)cause; + throw new DocumentReadException("Can not load PDF document.", = e); } - else - { - throw new RuntimeException(cause); - } + + PDFTextStripper stripper =3D new PDFTextStripper(); + stripper.setStartPage(1); + stripper.setEndPage(Integer.MAX_VALUE); + stripper.writeText(pdDocument, sw); } - + finally + { + if (pdDocument !=3D null) + try + { + pdDocument.close(); + } + catch (IOException e) + { + } + if (is !=3D null) + try + { + is.close(); + } + catch (IOException e) + { + } + } + return sw.toString(); } = public String getContentAsText(InputStream is, String encoding) throws = IOException, DocumentReadException @@ -168,204 +131,269 @@ */ public Properties getProperties(InputStream is) throws IOException, Doc= umentReadException { - - Properties props =3D null; - - PdfReader reader =3D new PdfReader(is, "".getBytes()); - - // Read the file metadata - byte[] metadata =3D reader.getMetadata(); - - if (metadata !=3D null) + PDDocument pdDocument =3D PDDocument.load(is); + Properties props =3D new Properties(); + try { - // there is XMP metadata try exctract it - props =3D getPropertiesFromMetadata(metadata); - } - - if (props =3D=3D null) - { - // it's old pdf document version - props =3D getPropertiesFromInfo(reader.getInfo()); - } - reader.close(); - if (is !=3D null) - try + if (pdDocument.isEncrypted()) { - is.close(); + try + { + pdDocument.decrypt(""); + } + catch (InvalidPasswordException e) + { + throw new DocumentReadException("The pdf document is encryp= ted.", e); + } + catch (org.apache.pdfbox.exceptions.CryptographyException e) + { + throw new DocumentReadException(e.getMessage(), e); + } } - catch (IOException e) + + PDDocumentCatalog catalog =3D pdDocument.getDocumentCatalog(); + PDMetadata meta =3D catalog.getMetadata(); + if (meta !=3D null) { - } - return props; - } + XMPMetadata metadata =3D meta.exportXMPMetadata(); = - /** - * Extract properties from XMP xml. - * = - * @param metadata XML as byte array - * @return extracted properties - * @throws DocumentReadException - * @throws Exception if extracting fails - */ - protected Properties getPropertiesFromMetadata(byte[] metadata) throws = IOException, DocumentReadException - { + XMPSchemaDublinCore dc =3D metadata.getDublinCoreSchema(); + if (dc !=3D null) + { + try + { + if (dc.getTitle() !=3D null) + props.put(DCMetaData.TITLE, fixEncoding(dc.getTitle()= )); + } + catch (Exception e) + { + log.warn("getTitle failed: " + e); + } + try + { + if (dc.getDescription() !=3D null) + props.put(DCMetaData.SUBJECT, fixEncoding(dc.getDescr= iption())); + } + catch (Exception e) + { + log.warn("getSubject failed: " + e); + } = - Properties props =3D null; + try + { + if (dc.getCreators() !=3D null) + { + List list =3D dc.getCreators(); + for (String creator : list) + { + props.put(DCMetaData.CREATOR, fixEncoding(creator)= ); + } + } + } + catch (Exception e) + { + log.warn("getCreator failed: " + e); + } = - // parse xml + try + { + if (dc.getDates() !=3D null) + { + List list =3D dc.getDates(); = - Document doc; - try - { - DocumentBuilderFactory dbf =3D DocumentBuilderFactory.newInstance= (); - DocumentBuilder docBuilder =3D dbf.newDocumentBuilder(); - doc =3D docBuilder.parse(new ByteArrayInputStream(metadata)); - } - catch (SAXException e) - { - throw new DocumentReadException(e.getMessage(), e); - } - catch (ParserConfigurationException e) - { - throw new DocumentReadException(e.getMessage(), e); - } + for (Calendar date : list) + { + props.put(DCMetaData.DATE, date); + } + } + } + catch (Exception e) + { + log.warn("getDate failed: " + e); + } + } = - // Check is there PDF/A-1 XMP - String version =3D ""; - NodeList list =3D doc.getElementsByTagName("pdfaid:conformance"); - if (list !=3D null && list.item(0) !=3D null) - { - version +=3D list.item(0).getTextContent() + "-"; - } + XMPSchemaBasic basic =3D metadata.getBasicSchema(); + if (basic !=3D null) + { + try + { + if (basic.getCreateDate() !=3D null) + props.put(DCMetaData.DATE, basic.getCreateDate()); + } + catch (Exception e) + { + log.warn("getCreationDate failed: " + e); + } + try + { + if (basic.getModifyDate() !=3D null) + props.put(DCMetaData.DATE, basic.getModifyDate()); + } + catch (Exception e) + { + log.warn("getModificationDate failed: " + e); + } + } + } = - list =3D doc.getElementsByTagName("pdfaid:part"); - if (list !=3D null && list.item(0) !=3D null) - { - version +=3D list.item(0).getTextContent(); - } + if (props.isEmpty()) + { + // The pdf doesn't contain any XMP metadata or XMP metadata do= not contains any + // usefull data, try to use the document information instead + PDDocumentInformation docInfo =3D pdDocument.getDocumentInform= ation(); = - // PDF/A-1a or PDF/A-1b - if (version.equalsIgnoreCase("A-1")) - { - props =3D getPropsFromPDFAMetadata(doc); - } + if (docInfo !=3D null) + { + try + { + if (docInfo.getCreationDate() !=3D null) + props.put(DCMetaData.DATE, docInfo.getCreationDate()); + } + catch (Exception e) + { + log.warn("getCreationDate failed: " + e); + } + try + { + if (docInfo.getCreator() !=3D null) + props.put(DCMetaData.CREATOR, docInfo.getCreator()); + } + catch (Exception e) + { + log.warn("getCreator failed: " + e); + } + try + { = - return props; - } - - /** - * Extracts properties from PDF Info hash set. - * = - * @param Pdf Info hash set - * @return Extracted properties - * @throws Exception if extracting fails - */ - @SuppressWarnings("unchecked") - protected Properties getPropertiesFromInfo(HashMap info) throws IOExcep= tion - { - Properties props =3D new Properties(); - - String title =3D (String)info.get("Title"); - if (title !=3D null) - { - props.put(DCMetaData.TITLE, title); + if (docInfo.getKeywords() !=3D null) + props.put(DCMetaData.SUBJECT, docInfo.getKeywords()); + } + catch (Exception e) + { + log.warn("getKeywords failed: " + e); + } + try + { + if (docInfo.getModificationDate() !=3D null) + props.put(DCMetaData.DATE, docInfo.getModificationDat= e()); + } + catch (Exception e) + { + log.warn("getModificationDate failed: " + e); + } + try + { + if (docInfo.getSubject() !=3D null) + props.put(DCMetaData.DESCRIPTION, docInfo.getSubject(= )); + } + catch (Exception e) + { + log.warn("getSubject failed: " + e); + } + try + { + if (docInfo.getTitle() !=3D null) + props.put(DCMetaData.TITLE, docInfo.getTitle()); + } + catch (Exception e) + { + log.warn("getTitle failed: " + e); + } + } + } } - - String author =3D (String)info.get("Author"); - if (author !=3D null) + finally { - props.put(DCMetaData.CREATOR, author); + if (pdDocument !=3D null) + { + pdDocument.close(); + } } = - String subject =3D (String)info.get("Subject"); - if (subject !=3D null) - { - props.put(DCMetaData.SUBJECT, subject); - } - - String creationDate =3D (String)info.get("CreationDate"); - if (creationDate !=3D null) - { - props.put(DCMetaData.DATE, PdfDate.decode(creationDate)); - } - - String modDate =3D (String)info.get("ModDate"); - if (modDate !=3D null) - { - props.put(DCMetaData.DATE, PdfDate.decode(modDate)); - } - return props; } = - private Properties getPropsFromPDFAMetadata(Document doc) throws IOExce= ption, DocumentReadException + private String fixEncoding(String str) throws DocumentReadException { - Properties props =3D new Properties(); - // get properties - NodeList list =3D doc.getElementsByTagName("rdf:li"); - if (list !=3D null && list.getLength() > 0) + try { - for (int i =3D 0; i < list.getLength(); i++) + String encoding =3D null; + int orderMaskOffset =3D 0; + + if (str.startsWith("\\000\\000\\376\\377")) { - - Node n =3D list.item(i); - // dc:title - TITLE - if (n.getParentNode().getParentNode().getNodeName().equals("dc= :title")) - { - String title =3D n.getLastChild().getTextContent(); - props.put(DCMetaData.TITLE, title); - } - - // dc:creator - CREATOR - if (n.getParentNode().getParentNode().getNodeName().equals("dc= :creator")) - { - String author =3D n.getLastChild().getTextContent(); - props.put(DCMetaData.CREATOR, author); - } - - // DC:description - SUBJECT - if (n.getParentNode().getParentNode().getNodeName().equals("dc= :description")) - { - String description =3D n.getLastChild().getTextContent(); - props.put(DCMetaData.SUBJECT, description); - // props.put(DCMetaData.DESCRIPTION, description); - } + encoding =3D "UTF-32BE"; + orderMaskOffset =3D 16; } - } - - try - { - // xmp:CreateDate - DATE - list =3D doc.getElementsByTagName("xmp:CreateDate"); - if (list !=3D null && list.item(0) !=3D null) + else if (str.startsWith("\\377\\376\\000\\000")) { - Node creationDateNode =3D list.item(0).getLastChild(); - if (creationDateNode !=3D null) - { - String creationDate =3D creationDateNode.getTextContent(); - Calendar c =3D ISO8601.parseEx(creationDate); - props.put(DCMetaData.DATE, c); - } + encoding =3D "UTF-32LE"; + orderMaskOffset =3D 16; } + else if (str.startsWith("\\376\\377")) + { + encoding =3D "UTF-16BE"; + orderMaskOffset =3D 8; + } + else if (str.startsWith("\\377\\376")) + { + encoding =3D "UTF-16LE"; + orderMaskOffset =3D 8; + } = - // xmp:ModifyDate - DATE - list =3D doc.getElementsByTagName("xmp:ModifyDate"); - if (list !=3D null && list.item(0) !=3D null) + if (encoding =3D=3D null) { - Node modifyDateNode =3D list.item(0).getLastChild(); - if (modifyDateNode !=3D null) + // return default + return str; + } + else + { + int i =3D orderMaskOffset, len =3D str.length(); + char c; + StringBuilder sb =3D new StringBuilder(len); + while (i < len) { - String modifyDate =3D modifyDateNode.getTextContent(); - Calendar c =3D ISO8601.parseEx(modifyDate); - props.put(DCMetaData.DATE, c); + c =3D str.charAt(i++); + if (c =3D=3D '\\') + { + if (i + 3 <=3D len) + { + //extract octal-code + try + { + c =3D (char)Integer.parseInt(str.substring(i, i + = 3), 8); + i +=3D 3; + } + catch (NumberFormatException e) + { + if (log.isDebugEnabled()) + { + log.debug( + "PDF metadata exctraction warning: can not d= ecode octal code - " + + str.substring(i - 1, i + 3) + ".", e); + } + } + } + else + { + if (log.isDebugEnabled()) + { + log.debug("PDF metadata exctraction warning: octal= code is not complete - " + + str.substring(i - 1, len)); + } + } + } + sb.append(c); } + + byte[] bytes =3D sb.toString().getBytes(); + return new String(bytes, encoding); } } - catch (ParseException e) + catch (UnsupportedEncodingException e) { throw new DocumentReadException(e.getMessage(), e); } - return props; } - } Modified: core/branches/2.3.x/exo.core.component.document/src/test/java/org= /exoplatform/services/document/test/TestPropertiesExtracting.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.document/src/test/java/org/exopl= atform/services/document/test/TestPropertiesExtracting.java 2011-06-09 14:5= 4:48 UTC (rev 4494) +++ core/branches/2.3.x/exo.core.component.document/src/test/java/org/exopl= atform/services/document/test/TestPropertiesExtracting.java 2011-06-10 08:3= 1:59 UTC (rev 4495) @@ -18,7 +18,6 @@ */ package org.exoplatform.services.document.test; = -import org.exoplatform.commons.utils.ISO8601; import org.exoplatform.services.document.DCMetaData; import org.exoplatform.services.document.DocumentReader; import org.exoplatform.services.document.DocumentReaderService; @@ -34,6 +33,22 @@ { DocumentReaderService service; = + private void evalProps(Properties etalon, Properties testedProps, boole= an testSize) + { + Iterator it =3D etalon.entrySet().iterator(); + while (it.hasNext()) + { + Map.Entry prop =3D (Map.Entry)it.next(); + Object tval =3D testedProps.get(prop.getKey()); + assertNotNull(prop.getKey() + " property not founded. ", tval); + assertEquals(prop.getKey() + " property value is incorrect", prop= .getValue(), tval); + } + if (testSize) + { + assertEquals("size is incorrect", etalon.size(), testedProps.size= ()); + } + } + @Override public void setUp() throws Exception { @@ -41,20 +56,21 @@ service =3D (DocumentReaderService)getComponentInstanceOfType(Docume= ntReaderService.class); } = - public void testPDFDocumentReaderServiceXMPMetadata() throws Exception + public void testExcelDocumentReaderService() throws Exception { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/MyTest.pdf"); + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.xls"); try { - DocumentReader rdr =3D service.getDocumentReader("application/pdf= "); - Properties testprops =3D rdr.getProperties(is); + Properties props =3D service.getDocumentReader("application/excel= ").getProperties(is); Properties etalon =3D new Properties(); - etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"); - etalon.put(DCMetaData.CREATOR, "Christian Klaus"); - etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"); - Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); - etalon.put(DCMetaData.DATE, c); - evalProps(etalon, testprops); + etalon.put(DCMetaData.TITLE, "test-Title"); + etalon.put(DCMetaData.DATE, new Date(1283247293000L)); + etalon.put(DCMetaData.SUBJECT, "test-Subject"); + etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); + etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); + + evalProps(etalon, props, true); } finally { @@ -62,20 +78,25 @@ } } = - public void testWordDocumentReaderService() throws Exception + public void testOODocumentReaderService() throws Exception { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.doc"); + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.odt"); try { - Properties props =3D service.getDocumentReader("application/mswor= d").getProperties(is); + Properties props =3D service.getDocumentReader("application/vnd.o= asis.opendocument.text").getProperties(is); Properties etalon =3D new Properties(); + Calendar date =3D Calendar.getInstance(); + date.setTimeInMillis(0); + date.set(2010, 7, 31, 14, 13, 23); + etalon.put(DCMetaData.TITLE, "test-Title"); - etalon.put(DCMetaData.DATE, new Date(1283247060000L)); + etalon.put(DCMetaData.LANGUAGE, "ru-RU"); + etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); etalon.put(DCMetaData.SUBJECT, "test-Subject"); - etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); - etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); + etalon.put(DCMetaData.CREATOR, "nikolaz "); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - evalProps(etalon, props); + + evalProps(etalon, props, true); } finally { @@ -83,6 +104,92 @@ } } = + public void testPDFDocumentReaderService() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.pdf"); + DocumentReader rdr =3D service.getDocumentReader("application/pdf"); + Properties props =3D rdr.getProperties(is); + assertTrue(props.isEmpty()); + + // Properties etalon =3D new Properties(); + // etalon.put(DCMetaData.PUBLISHER, "FOP 0.20.4"); + // evalProps(etalon, props, false); + } + + public void testPDFDocumentReaderServiceBrokenFile() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/pfs_accapp.pdf"); + try + { + + DocumentReader rdr =3D service.getDocumentReader("application/pdf= "); + Properties testprops =3D rdr.getProperties(is); + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "Personal Account Opening Form VN"); + etalon.put(DCMetaData.CREATOR, "mr"); + evalProps(etalon, testprops, false); + } + finally + { + is.close(); + } + } + + public void testPDFDocumentReaderServiceMetro() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/metro.pdf"); + try + { + + DocumentReader rdr =3D service.getDocumentReader("application/pdf= "); + Properties testprops =3D rdr.getProperties(is); + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "metro"); + etalon.put(DCMetaData.CREATOR, "Preview"); + evalProps(etalon, testprops, false); + } + finally + { + is.close(); + } + } + + public void testPDFDocumentReaderServiceXMPUsecase1() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/MyTest.pdf"); + DocumentReader rdr =3D service.getDocumentReader("application/pdf"); + + Properties testprops =3D rdr.getProperties(is); + // printProps(testprops); + + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "Test de convertion de fichier tif"); + etalon.put(DCMetaData.CREATOR, "Christian Klaus"); + etalon.put(DCMetaData.SUBJECT, "20080901 TEST Christian Etat OK"); + // Calendar c =3D ISO8601.parseEx("2008-09-01T08:01:10+00:00"); + // etalon.put(DCMetaData.DATE, c); + + evalProps(etalon, testprops, false); + } + + public void testPDFDocumentReaderServiceXMPUsecase2() throws Exception + { + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/Trait_union.06.Mai_2009.pdf"); + try + { + DocumentReader rdr =3D service.getDocumentReader("application/pdf= "); + Properties testprops =3D rdr.getProperties(is); + Properties etalon =3D new Properties(); + etalon.put(DCMetaData.TITLE, "journal interne mai 2009.qxp"); + etalon.put(DCMetaData.CREATOR, "presse"); + evalProps(etalon, testprops, false); + } + finally + { + is.close(); + } + } + public void testPPTDocumentReaderService() throws Exception { InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.ppt"); @@ -96,7 +203,7 @@ etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - evalProps(etalon, props); + evalProps(etalon, props, true); } finally { @@ -104,21 +211,20 @@ } } = - public void testExcelDocumentReaderService() throws Exception + public void testWordDocumentReaderService() throws Exception { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.xls"); + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.doc"); try { - Properties props =3D service.getDocumentReader("application/excel= ").getProperties(is); + Properties props =3D service.getDocumentReader("application/mswor= d").getProperties(is); Properties etalon =3D new Properties(); etalon.put(DCMetaData.TITLE, "test-Title"); - etalon.put(DCMetaData.DATE, new Date(1283247293000L)); + etalon.put(DCMetaData.DATE, new Date(1283247060000L)); etalon.put(DCMetaData.SUBJECT, "test-Subject"); - etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); + etalon.put(DCMetaData.CREATOR, "Max Yakimenko"); etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - - evalProps(etalon, props); + evalProps(etalon, props, true); } finally { @@ -126,27 +232,27 @@ } } = - public void testXWordDocumentReaderService() throws Exception + public void testXExcelDocumentReaderService() throws Exception { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.docx"); + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.xlsx"); try { Properties props =3D - service.getDocumentReader("application/vnd.openxmlformats-offi= cedocument.wordprocessingml.document") + service.getDocumentReader("application/vnd.openxmlformats-offi= cedocument.spreadsheetml.sheet") .getProperties(is); Properties etalon =3D new Properties(); Calendar date =3D Calendar.getInstance(); date.setTimeInMillis(0); - date.set(2010, 7, 31, 7, 53, 0); + date.set(2010, 7, 31, 8, 7, 25); = etalon.put(DCMetaData.TITLE, "test-Title"); etalon.put(DCMetaData.DATE, date.getTime()); - etalon.put(DCMetaData.SUBJECT, "Subject"); - etalon.put(DCMetaData.CREATOR, "nikolaz"); + etalon.put(DCMetaData.SUBJECT, "test-Subject"); + etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); = - evalProps(etalon, props); + evalProps(etalon, props, true); } finally { @@ -174,7 +280,7 @@ etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); = - evalProps(etalon, props); + evalProps(etalon, props, true); } finally { @@ -182,27 +288,27 @@ } } = - public void testXExcelDocumentReaderService() throws Exception + public void testXWordDocumentReaderService() throws Exception { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.xlsx"); + InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.docx"); try { Properties props =3D - service.getDocumentReader("application/vnd.openxmlformats-offi= cedocument.spreadsheetml.sheet") + service.getDocumentReader("application/vnd.openxmlformats-offi= cedocument.wordprocessingml.document") .getProperties(is); Properties etalon =3D new Properties(); Calendar date =3D Calendar.getInstance(); date.setTimeInMillis(0); - date.set(2010, 7, 31, 8, 7, 25); + date.set(2010, 7, 31, 7, 53, 0); = etalon.put(DCMetaData.TITLE, "test-Title"); etalon.put(DCMetaData.DATE, date.getTime()); - etalon.put(DCMetaData.SUBJECT, "test-Subject"); - etalon.put(DCMetaData.CREATOR, "KHANH NGUYEN GIA"); + etalon.put(DCMetaData.SUBJECT, "Subject"); + etalon.put(DCMetaData.CREATOR, "nikolaz"); etalon.put(DCMetaData.CONTRIBUTOR, "Max Yakimenko"); etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); = - evalProps(etalon, props); + evalProps(etalon, props, true); } finally { @@ -210,47 +316,4 @@ } } = - public void testOODocumentReaderService() throws Exception - { - InputStream is =3D TestPropertiesExtracting.class.getResourceAsStrea= m("/test.odt"); - try - { - Properties props =3D service.getDocumentReader("application/vnd.o= asis.opendocument.text").getProperties(is); - Properties etalon =3D new Properties(); - Calendar date =3D Calendar.getInstance(); - date.setTimeInMillis(0); - date.set(2010, 7, 31, 14, 13, 23); - - etalon.put(DCMetaData.TITLE, "test-Title"); - etalon.put(DCMetaData.LANGUAGE, "ru-RU"); - etalon.put(DCMetaData.DATE, "2010-08-31T14:13:23"); - etalon.put(DCMetaData.SUBJECT, "test-Subject"); - etalon.put(DCMetaData.CREATOR, "nikolaz "); - etalon.put(DCMetaData.DESCRIPTION, "test-Comments"); - - evalProps(etalon, props); - } - finally - { - is.close(); - } - } - - private void evalProps(Properties etalon, Properties testedProps) - { - Iterator it =3D etalon.entrySet().iterator(); - while (it.hasNext()) - { - Map.Entry prop =3D (Map.Entry)it.next(); - Object tval =3D testedProps.get(prop.getKey()); - assertNotNull(prop.getKey() + " property not founded. ", tval); - if (tval instanceof Date) - { - System.out.println("was:" + ((Date)tval).getTime() + " expecte= d: " + ((Date)prop.getValue()).getTime()); - } - assertEquals(prop.getKey() + " property value is incorrect", prop= .getValue(), tval); - } - assertEquals("size is incorrect", etalon.size(), testedProps.size()); - } - } Added: core/branches/2.3.x/exo.core.component.document/src/test/resources/T= rait_union.06.Mai_2009.pdf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: core/branches/2.3.x/exo.core.component.document/src/te= st/resources/Trait_union.06.Mai_2009.pdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: core/branches/2.3.x/exo.core.component.document/src/test/resources/m= etro.pdf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: core/branches/2.3.x/exo.core.component.document/src/te= st/resources/metro.pdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: core/branches/2.3.x/exo.core.component.document/src/test/resources/p= fs_accapp.pdf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: core/branches/2.3.x/exo.core.component.document/src/te= st/resources/pfs_accapp.pdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: core/branches/2.3.x/packaging/module/src/main/javascript/core.pac= kaging.module.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/packaging/module/src/main/javascript/core.packaging= .module.js 2011-06-09 14:54:48 UTC (rev 4494) +++ core/branches/2.3.x/packaging/module/src/main/javascript/core.packaging= .module.js 2011-06-10 08:31:59 UTC (rev 4495) @@ -39,6 +39,7 @@ module.component.documents =3D new Project("org.exoplatform.core", "exo.core.component.document", "ja= r", module.version). addDependency(new Project("org.apache.pdfbox", "pdfbox", "jar", "1.1.0= ")). + addDependency(new Project("org.apache.pdfbox", "jempbox", "jar", "1.1.= 0")). addDependency(new Project("com.lowagie", "itext", "jar", "2.1.0")). addDependency(new Project("bouncycastle", "bcmail-jdk14", "jar", "136"= )). addDependency(new Project("bouncycastle", "bcprov-jdk14", "jar", "136"= )). Added: core/branches/2.3.x/patch/2.3.8/COR-228/readme.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/patch/2.3.8/COR-228/readme.txt = (rev 0) +++ core/branches/2.3.x/patch/2.3.8/COR-228/readme.txt 2011-06-10 08:31:59 = UTC (rev 4495) @@ -0,0 +1,71 @@ +Summary + + Status: Make PdfDocumentReader.getProperties() use PdfBox instead of i= Text + CCP Issue: N/A, Product Jira Issue: COR-228. + Complexity: hard + +The Proposal +Problem description + +What is the problem to fix? + + Implementation that uses iText does not support many XMP metadata. Mak= e new implementation of PdfDocumentReader.getProperties() using PdfBox inst= ead of iText. + +Fix description + +How is the problem fixed? + + Use PdfBox to extract XMP metadata. + iText was removed from code. + +Patch information: +Patch file(s): COR-228.patch + +Tests to perform: +Test performed at Support level +Test on 3 pdf files (metro.pdf, pfs_accapp.pdf, Train_union.06.Mai_2009.pd= f): using Webdav or ECMS Content explorer (in a Content folder) + + Upload file from local to eXo PLF server + Copy-paste file inside JCR folders + Check how its name and title display + +Tests performed at DevLevel + + Add these 3 PDF files into src/test/resources + TestPropertiesExtraction and other core.document tests + +Tests performed at QA +* + +Documentation changes + +Documentation changes: + none + +Configuration changes + +Configuration changes: + none + +Will previous configuration continue to work? + yes + +Risks and impacts + +Can this bug fix have any side effects on current client projects? + The behavior of PDFDocumentReader.getProperties based on PdfBox may be= different than based on iText + +Is there a performance risk/cost? + none + +Validation (PM/Support/QA) + +PM Comment +* Patch approved by the PL + +Support Comment +* Support review : patch validated + +QA Feedbacks +* + --===============0232231283448087805==-- From do-not-reply at jboss.org Tue Jun 14 06:11:08 2011 Content-Type: multipart/mixed; boundary="===============1379073676683919894==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4496 - in kernel/branches/2.2.x: exo.kernel.commons and 12 other directories. Date: Tue, 14 Jun 2011 06:11:08 -0400 Message-ID: <201106141011.p5EAB8IQ007382@svn01.web.mwc.hst.phx2.redhat.com> --===============1379073676683919894== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:11:07 -0400 (Tue, 14 Jun 2011) New Revision: 4496 Modified: kernel/branches/2.2.x/exo.kernel.commons/pom.xml kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml kernel/branches/2.2.x/exo.kernel.component.command/pom.xml kernel/branches/2.2.x/exo.kernel.component.common/pom.xml kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.x= ml kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml kernel/branches/2.2.x/exo.kernel.container/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/p= om.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests/= pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ext= ras/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml kernel/branches/2.2.x/packaging/module/pom.xml kernel/branches/2.2.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare release 2.2.9-GA Modified: kernel/branches/2.2.x/exo.kernel.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.commons/pom.xml 2011-06-10 08:31:59 UT= C (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.commons/pom.xml 2011-06-14 10:11:07 UT= C (rev 4496) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.commons Modified: kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml 2011-06-10 08:= 31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml 2011-06-14 10:= 11:07 UTC (rev 4496) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.component.cache Modified: kernel/branches/2.2.x/exo.kernel.component.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.command/pom.xml 2011-06-10 0= 8:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.component.command/pom.xml 2011-06-14 1= 0:11:07 UTC (rev 4496) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.component.command Modified: kernel/branches/2.2.x/exo.kernel.component.common/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.common/pom.xml 2011-06-10 08= :31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.component.common/pom.xml 2011-06-14 10= :11:07 UTC (rev 4496) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.component.common Modified: kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v= 3/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.= xml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.= xml 2011-06-14 10:11:07 UTC (rev 4496) @@ -23,7 +23,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA exo.kernel.component.ext.cache.impl.jboss.v3 eXo Kernel :: Cache Extension :: JBoss Cache Implementation Modified: kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml 2011-06-10 08= :31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml 2011-06-14 10= :11:07 UTC (rev 4496) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.component.remote Modified: kernel/branches/2.2.x/exo.kernel.container/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.container/pom.xml 2011-06-10 08:31:59 = UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.container/pom.xml 2011-06-14 10:11:07 = UTC (rev 4496) @@ -12,7 +12,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA exo.kernel.container eXo Kernel :: Container Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= /pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.x= ml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.x= ml 2011-06-14 10:11:07 UTC (rev 4496) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.mc-int Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= -demo/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/= pom.xml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/= pom.xml 2011-06-14 10:11:07 UTC (rev 4496) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.mc-int-demo Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= -tests/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests= /pom.xml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests= /pom.xml 2011-06-14 10:11:07 UTC (rev 4496) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.mc-int-tests Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-ker= nel-extras/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ex= tras/pom.xml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ex= tras/pom.xml 2011-06-14 10:11:07 UTC (rev 4496) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = exo.kernel.mc-kernel-extras Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml 2011-06-10 08:3= 1:59 UTC (rev 4495) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml 2011-06-14 10:1= 1:07 UTC (rev 4496) @@ -6,7 +6,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = mc-integration-parent Modified: kernel/branches/2.2.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/packaging/module/pom.xml 2011-06-10 08:31:59 UTC = (rev 4495) +++ kernel/branches/2.2.x/packaging/module/pom.xml 2011-06-14 10:11:07 UTC = (rev 4496) @@ -2,7 +2,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = 4.0.0 Modified: kernel/branches/2.2.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/pom.xml 2011-06-10 08:31:59 UTC (rev 4495) +++ kernel/branches/2.2.x/pom.xml 2011-06-14 10:11:07 UTC (rev 4496) @@ -30,7 +30,7 @@ = org.exoplatform.kernel kernel-parent - 2.2.9-GA-SNAPSHOT + 2.2.9-GA pom = eXo Kernel @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/br= anches/2.2.x/ - scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/branches/2.2.x/ - http://fisheye.jboss.org/browse/exo-jcr/kernel/branches/2.2.x + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/ta= gs/2.2.9-GA + scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/tags/2.2.9-GA + http://fisheye.jboss.org/browse/exo-jcr/kernel/tags/2.2.9-GA = --===============1379073676683919894==-- From do-not-reply at jboss.org Tue Jun 14 06:11:37 2011 Content-Type: multipart/mixed; boundary="===============0263008711810872960==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4497 - kernel/tags. Date: Tue, 14 Jun 2011 06:11:37 -0400 Message-ID: <201106141011.p5EABb6B007420@svn01.web.mwc.hst.phx2.redhat.com> --===============0263008711810872960== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:11:37 -0400 (Tue, 14 Jun 2011) New Revision: 4497 Added: kernel/tags/2.2.9-GA/ Log: [maven-release-plugin] [PLF-1660] copy for tag 2.2.9-GA --===============0263008711810872960==-- From do-not-reply at jboss.org Tue Jun 14 06:12:07 2011 Content-Type: multipart/mixed; boundary="===============3311702566018441377==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4498 - in kernel/branches/2.2.x: exo.kernel.commons and 12 other directories. Date: Tue, 14 Jun 2011 06:12:06 -0400 Message-ID: <201106141012.p5EAC6la007432@svn01.web.mwc.hst.phx2.redhat.com> --===============3311702566018441377== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:12:06 -0400 (Tue, 14 Jun 2011) New Revision: 4498 Modified: kernel/branches/2.2.x/exo.kernel.commons/pom.xml kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml kernel/branches/2.2.x/exo.kernel.component.command/pom.xml kernel/branches/2.2.x/exo.kernel.component.common/pom.xml kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.x= ml kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml kernel/branches/2.2.x/exo.kernel.container/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/p= om.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests/= pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ext= ras/pom.xml kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml kernel/branches/2.2.x/packaging/module/pom.xml kernel/branches/2.2.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare for next development iteration Modified: kernel/branches/2.2.x/exo.kernel.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.commons/pom.xml 2011-06-14 10:11:37 UT= C (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.commons/pom.xml 2011-06-14 10:12:06 UT= C (rev 4498) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.commons Modified: kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml 2011-06-14 10:= 11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.component.cache/pom.xml 2011-06-14 10:= 12:06 UTC (rev 4498) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.component.cache Modified: kernel/branches/2.2.x/exo.kernel.component.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.command/pom.xml 2011-06-14 1= 0:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.component.command/pom.xml 2011-06-14 1= 0:12:06 UTC (rev 4498) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.component.command Modified: kernel/branches/2.2.x/exo.kernel.component.common/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.common/pom.xml 2011-06-14 10= :11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.component.common/pom.xml 2011-06-14 10= :12:06 UTC (rev 4498) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.component.common Modified: kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v= 3/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.= xml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.component.ext.cache.impl.jboss.v3/pom.= xml 2011-06-14 10:12:06 UTC (rev 4498) @@ -23,7 +23,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT exo.kernel.component.ext.cache.impl.jboss.v3 eXo Kernel :: Cache Extension :: JBoss Cache Implementation Modified: kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml 2011-06-14 10= :11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.component.remote/pom.xml 2011-06-14 10= :12:06 UTC (rev 4498) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.component.remote Modified: kernel/branches/2.2.x/exo.kernel.container/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.container/pom.xml 2011-06-14 10:11:37 = UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.container/pom.xml 2011-06-14 10:12:06 = UTC (rev 4498) @@ -12,7 +12,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT exo.kernel.container eXo Kernel :: Container Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= /pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.x= ml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int/pom.x= ml 2011-06-14 10:12:06 UTC (rev 4498) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.mc-int Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= -demo/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/= pom.xml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-demo/= pom.xml 2011-06-14 10:12:06 UTC (rev 4498) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.mc-int-demo Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int= -tests/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests= /pom.xml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-int-tests= /pom.xml 2011-06-14 10:12:06 UTC (rev 4498) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.mc-int-tests Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-ker= nel-extras/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ex= tras/pom.xml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/exo.kernel.mc-kernel-ex= tras/pom.xml 2011-06-14 10:12:06 UTC (rev 4498) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = exo.kernel.mc-kernel-extras Modified: kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml 2011-06-14 10:1= 1:37 UTC (rev 4497) +++ kernel/branches/2.2.x/exo.kernel.mc-integration/pom.xml 2011-06-14 10:1= 2:06 UTC (rev 4498) @@ -6,7 +6,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = mc-integration-parent Modified: kernel/branches/2.2.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/packaging/module/pom.xml 2011-06-14 10:11:37 UTC = (rev 4497) +++ kernel/branches/2.2.x/packaging/module/pom.xml 2011-06-14 10:12:06 UTC = (rev 4498) @@ -2,7 +2,7 @@ org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = 4.0.0 Modified: kernel/branches/2.2.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/branches/2.2.x/pom.xml 2011-06-14 10:11:37 UTC (rev 4497) +++ kernel/branches/2.2.x/pom.xml 2011-06-14 10:12:06 UTC (rev 4498) @@ -30,7 +30,7 @@ = org.exoplatform.kernel kernel-parent - 2.2.9-GA + 2.2.10-GA-SNAPSHOT pom = eXo Kernel @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/ta= gs/2.2.9-GA - scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/tags/2.2.9-GA - http://fisheye.jboss.org/browse/exo-jcr/kernel/tags/2.2.9-GA + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/br= anches/2.2.x/ + scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/branches/2.2.x/ + http://fisheye.jboss.org/browse/exo-jcr/kernel/branches/2.2.x = --===============3311702566018441377==-- From do-not-reply at jboss.org Tue Jun 14 06:17:49 2011 Content-Type: multipart/mixed; boundary="===============8753305089700583854==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4499 - core/branches/2.3.x. Date: Tue, 14 Jun 2011 06:17:48 -0400 Message-ID: <201106141017.p5EAHmP5007808@svn01.web.mwc.hst.phx2.redhat.com> --===============8753305089700583854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:17:48 -0400 (Tue, 14 Jun 2011) New Revision: 4499 Modified: core/branches/2.3.x/pom.xml Log: [PLF-1660] Upgrade dependencies to latest releases Modified: core/branches/2.3.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/pom.xml 2011-06-14 10:12:06 UTC (rev 4498) +++ core/branches/2.3.x/pom.xml 2011-06-14 10:17:48 UTC (rev 4499) @@ -39,7 +39,7 @@ 2.3 = 1.2.1-GA - 2.2.9-GA-SNAPSHOT + 2.2.9-GA = --===============8753305089700583854==-- From do-not-reply at jboss.org Tue Jun 14 06:19:09 2011 Content-Type: multipart/mixed; boundary="===============0810928934834760863==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4500 - in core/branches/2.3.x: exo.core.component.database and 10 other directories. Date: Tue, 14 Jun 2011 06:19:08 -0400 Message-ID: <201106141019.p5EAJ8Zw007820@svn01.web.mwc.hst.phx2.redhat.com> --===============0810928934834760863== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:19:08 -0400 (Tue, 14 Jun 2011) New Revision: 4500 Modified: core/branches/2.3.x/exo.core.component.database/pom.xml core/branches/2.3.x/exo.core.component.document/pom.xml core/branches/2.3.x/exo.core.component.ldap/pom.xml core/branches/2.3.x/exo.core.component.organization.api/pom.xml core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml core/branches/2.3.x/exo.core.component.script.groovy/pom.xml core/branches/2.3.x/exo.core.component.security.core/pom.xml core/branches/2.3.x/exo.core.component.web.css/pom.xml core/branches/2.3.x/exo.core.component.xml-processing/pom.xml core/branches/2.3.x/packaging/module/pom.xml core/branches/2.3.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare release 2.3.9-GA Modified: core/branches/2.3.x/exo.core.component.database/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.database/pom.xml 2011-06-14 10:1= 7:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.database/pom.xml 2011-06-14 10:1= 9:08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.database Modified: core/branches/2.3.x/exo.core.component.document/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.document/pom.xml 2011-06-14 10:1= 7:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.document/pom.xml 2011-06-14 10:1= 9:08 UTC (rev 4500) @@ -14,7 +14,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA exo.core.component.document eXo Core :: Component :: Demo Service Modified: core/branches/2.3.x/exo.core.component.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.ldap/pom.xml 2011-06-14 10:17:48= UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.ldap/pom.xml 2011-06-14 10:19:08= UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.ldap Modified: core/branches/2.3.x/exo.core.component.organization.api/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.api/pom.xml 2011-06= -14 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.organization.api/pom.xml 2011-06= -14 10:19:08 UTC (rev 4500) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA exo.core.component.organization.api eXo Core :: Component :: Organization Service API Modified: core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml 2011-0= 6-14 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml 2011-0= 6-14 10:19:08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.organization.jdbc Modified: core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml 2011-0= 6-14 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml 2011-0= 6-14 10:19:08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.organization.ldap Modified: core/branches/2.3.x/exo.core.component.script.groovy/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.script.groovy/pom.xml 2011-06-14= 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.script.groovy/pom.xml 2011-06-14= 10:19:08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.script.groovy Modified: core/branches/2.3.x/exo.core.component.security.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.security.core/pom.xml 2011-06-14= 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.security.core/pom.xml 2011-06-14= 10:19:08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.security.core Modified: core/branches/2.3.x/exo.core.component.web.css/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.web.css/pom.xml 2011-06-14 10:17= :48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.web.css/pom.xml 2011-06-14 10:19= :08 UTC (rev 4500) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = exo.core.component.web.css Modified: core/branches/2.3.x/exo.core.component.xml-processing/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.xml-processing/pom.xml 2011-06-1= 4 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/exo.core.component.xml-processing/pom.xml 2011-06-1= 4 10:19:08 UTC (rev 4500) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA exo.core.component.xml-processing eXo Core :: Component :: XML Processing Service Modified: core/branches/2.3.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/packaging/module/pom.xml 2011-06-14 10:17:48 UTC (r= ev 4499) +++ core/branches/2.3.x/packaging/module/pom.xml 2011-06-14 10:19:08 UTC (r= ev 4500) @@ -2,7 +2,7 @@ org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA = 4.0.0 @@ -18,13 +18,13 @@ = - org.exoplatform.coreexo= .core.component.database2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.document2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.organization.api2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.organization.ldap2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.security.core2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.xml-processing2.3.9-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.script.groovy2.3.9-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.database2.3.9-GA + org.exoplatform.coreexo= .core.component.document2.3.9-GA + org.exoplatform.coreexo= .core.component.organization.api2.3.9-GA + org.exoplatform.coreexo= .core.component.organization.ldap2.3.9-GA + org.exoplatform.coreexo= .core.component.security.core2.3.9-GA + org.exoplatform.coreexo= .core.component.xml-processing2.3.9-GA + org.exoplatform.coreexo= .core.component.script.groovy2.3.9-GA = Modified: core/branches/2.3.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/pom.xml 2011-06-14 10:17:48 UTC (rev 4499) +++ core/branches/2.3.x/pom.xml 2011-06-14 10:19:08 UTC (rev 4500) @@ -29,7 +29,7 @@ = org.exoplatform.core core-parent - 2.3.9-GA-SNAPSHOT + 2.3.9-GA pom = eXo Core @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/core/bran= ches/2.3.x/ - scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/branches/2.3.x/ - http://fisheye.jboss.org/browse/exo-jcr/core/branches/2.3.x + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/core/tags= /2.3.9-GA + scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/tags/2.3.9-GA + http://fisheye.jboss.org/browse/exo-jcr/core/tags/2.3.9-GA = --===============0810928934834760863==-- From do-not-reply at jboss.org Tue Jun 14 06:19:31 2011 Content-Type: multipart/mixed; boundary="===============0966818343120875141==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4501 - parent/trunk. Date: Tue, 14 Jun 2011 06:19:31 -0400 Message-ID: <201106141019.p5EAJVmj007833@svn01.web.mwc.hst.phx2.redhat.com> --===============0966818343120875141== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:19:30 -0400 (Tue, 14 Jun 2011) New Revision: 4501 Modified: parent/trunk/pom.xml Log: [maven-release-plugin] prepare release 9 Modified: parent/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- parent/trunk/pom.xml 2011-06-14 10:19:08 UTC (rev 4500) +++ parent/trunk/pom.xml 2011-06-14 10:19:30 UTC (rev 4501) @@ -28,7 +28,7 @@ org.exoplatform foundation-parent - 9-SNAPSHOT + 9 pom = eXo JBoss Parent @@ -46,9 +46,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/parent/tr= unk - scm:svn:https://svn.jboss.org/repos/exo-jcr/par= ent/trunk - http://fisheye.jboss.org/browse/exo-jcr/parent/trunk + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/parent/ta= gs/9 + scm:svn:https://svn.jboss.org/repos/exo-jcr/par= ent/tags/9 + http://fisheye.jboss.org/browse/exo-jcr/parent/tags/9 = --===============0966818343120875141==-- From do-not-reply at jboss.org Tue Jun 14 06:19:36 2011 Content-Type: multipart/mixed; boundary="===============4494774591774399568==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4502 - core/tags. Date: Tue, 14 Jun 2011 06:19:36 -0400 Message-ID: <201106141019.p5EAJalK007843@svn01.web.mwc.hst.phx2.redhat.com> --===============4494774591774399568== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:19:35 -0400 (Tue, 14 Jun 2011) New Revision: 4502 Added: core/tags/2.3.9-GA/ Log: [maven-release-plugin] [PLF-1660] copy for tag 2.3.9-GA --===============4494774591774399568==-- From do-not-reply at jboss.org Tue Jun 14 06:19:57 2011 Content-Type: multipart/mixed; boundary="===============6569283828853720073==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4503 - parent/tags. Date: Tue, 14 Jun 2011 06:19:57 -0400 Message-ID: <201106141019.p5EAJvfg007980@svn01.web.mwc.hst.phx2.redhat.com> --===============6569283828853720073== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:19:57 -0400 (Tue, 14 Jun 2011) New Revision: 4503 Added: parent/tags/9/ Log: [maven-scm] copy for tag 9 --===============6569283828853720073==-- From do-not-reply at jboss.org Tue Jun 14 06:20:05 2011 Content-Type: multipart/mixed; boundary="===============6741732348277673152==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4504 - in core/branches/2.3.x: exo.core.component.database and 10 other directories. Date: Tue, 14 Jun 2011 06:20:04 -0400 Message-ID: <201106141020.p5EAK42j008149@svn01.web.mwc.hst.phx2.redhat.com> --===============6741732348277673152== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:20:03 -0400 (Tue, 14 Jun 2011) New Revision: 4504 Modified: core/branches/2.3.x/exo.core.component.database/pom.xml core/branches/2.3.x/exo.core.component.document/pom.xml core/branches/2.3.x/exo.core.component.ldap/pom.xml core/branches/2.3.x/exo.core.component.organization.api/pom.xml core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml core/branches/2.3.x/exo.core.component.script.groovy/pom.xml core/branches/2.3.x/exo.core.component.security.core/pom.xml core/branches/2.3.x/exo.core.component.web.css/pom.xml core/branches/2.3.x/exo.core.component.xml-processing/pom.xml core/branches/2.3.x/packaging/module/pom.xml core/branches/2.3.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare for next development iteration Modified: core/branches/2.3.x/exo.core.component.database/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.database/pom.xml 2011-06-14 10:1= 9:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.database/pom.xml 2011-06-14 10:2= 0:03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.database Modified: core/branches/2.3.x/exo.core.component.document/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.document/pom.xml 2011-06-14 10:1= 9:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.document/pom.xml 2011-06-14 10:2= 0:03 UTC (rev 4504) @@ -14,7 +14,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT exo.core.component.document eXo Core :: Component :: Demo Service Modified: core/branches/2.3.x/exo.core.component.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.ldap/pom.xml 2011-06-14 10:19:57= UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.ldap/pom.xml 2011-06-14 10:20:03= UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.ldap Modified: core/branches/2.3.x/exo.core.component.organization.api/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.api/pom.xml 2011-06= -14 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.organization.api/pom.xml 2011-06= -14 10:20:03 UTC (rev 4504) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT exo.core.component.organization.api eXo Core :: Component :: Organization Service API Modified: core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml 2011-0= 6-14 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.organization.jdbc/pom.xml 2011-0= 6-14 10:20:03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.organization.jdbc Modified: core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml 2011-0= 6-14 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.organization.ldap/pom.xml 2011-0= 6-14 10:20:03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.organization.ldap Modified: core/branches/2.3.x/exo.core.component.script.groovy/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.script.groovy/pom.xml 2011-06-14= 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.script.groovy/pom.xml 2011-06-14= 10:20:03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.script.groovy Modified: core/branches/2.3.x/exo.core.component.security.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.security.core/pom.xml 2011-06-14= 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.security.core/pom.xml 2011-06-14= 10:20:03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.security.core Modified: core/branches/2.3.x/exo.core.component.web.css/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.web.css/pom.xml 2011-06-14 10:19= :57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.web.css/pom.xml 2011-06-14 10:20= :03 UTC (rev 4504) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = exo.core.component.web.css Modified: core/branches/2.3.x/exo.core.component.xml-processing/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/exo.core.component.xml-processing/pom.xml 2011-06-1= 4 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/exo.core.component.xml-processing/pom.xml 2011-06-1= 4 10:20:03 UTC (rev 4504) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT exo.core.component.xml-processing eXo Core :: Component :: XML Processing Service Modified: core/branches/2.3.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/packaging/module/pom.xml 2011-06-14 10:19:57 UTC (r= ev 4503) +++ core/branches/2.3.x/packaging/module/pom.xml 2011-06-14 10:20:03 UTC (r= ev 4504) @@ -2,7 +2,7 @@ org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT = 4.0.0 @@ -18,13 +18,13 @@ = - org.exoplatform.coreexo= .core.component.database2.3.9-GA - org.exoplatform.coreexo= .core.component.document2.3.9-GA - org.exoplatform.coreexo= .core.component.organization.api2.3.9-GA - org.exoplatform.coreexo= .core.component.organization.ldap2.3.9-GA - org.exoplatform.coreexo= .core.component.security.core2.3.9-GA - org.exoplatform.coreexo= .core.component.xml-processing2.3.9-GA - org.exoplatform.coreexo= .core.component.script.groovy2.3.9-GA + org.exoplatform.coreexo= .core.component.database2.3.10-GA-SNAPSHOT<= /dependency> + org.exoplatform.coreexo= .core.component.document2.3.10-GA-SNAPSHOT<= /dependency> + org.exoplatform.coreexo= .core.component.organization.api2.3.10-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.organization.ldap2.3.10-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.security.core2.3.10-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.xml-processing2.3.10-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.script.groovy2.3.10-GA-SNAPSHOT = Modified: core/branches/2.3.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/pom.xml 2011-06-14 10:19:57 UTC (rev 4503) +++ core/branches/2.3.x/pom.xml 2011-06-14 10:20:03 UTC (rev 4504) @@ -29,7 +29,7 @@ = org.exoplatform.core core-parent - 2.3.9-GA + 2.3.10-GA-SNAPSHOT pom = eXo Core @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/core/tags= /2.3.9-GA - scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/tags/2.3.9-GA - http://fisheye.jboss.org/browse/exo-jcr/core/tags/2.3.9-GA + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/core/bran= ches/2.3.x/ + scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/branches/2.3.x/ + http://fisheye.jboss.org/browse/exo-jcr/core/branches/2.3.x = --===============6741732348277673152==-- From do-not-reply at jboss.org Tue Jun 14 06:20:06 2011 Content-Type: multipart/mixed; boundary="===============6914580647616956135==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4505 - parent/trunk. Date: Tue, 14 Jun 2011 06:20:05 -0400 Message-ID: <201106141020.p5EAK5qB008186@svn01.web.mwc.hst.phx2.redhat.com> --===============6914580647616956135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:20:05 -0400 (Tue, 14 Jun 2011) New Revision: 4505 Modified: parent/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: parent/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- parent/trunk/pom.xml 2011-06-14 10:20:03 UTC (rev 4504) +++ parent/trunk/pom.xml 2011-06-14 10:20:05 UTC (rev 4505) @@ -28,7 +28,7 @@ org.exoplatform foundation-parent - 9 + 10-SNAPSHOT pom = eXo JBoss Parent @@ -46,9 +46,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/parent/ta= gs/9 - scm:svn:https://svn.jboss.org/repos/exo-jcr/par= ent/tags/9 - http://fisheye.jboss.org/browse/exo-jcr/parent/tags/9 + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/parent/tr= unk + scm:svn:https://svn.jboss.org/repos/exo-jcr/par= ent/trunk + http://fisheye.jboss.org/browse/exo-jcr/parent/trunk = --===============6914580647616956135==-- From do-not-reply at jboss.org Tue Jun 14 06:23:13 2011 Content-Type: multipart/mixed; boundary="===============0640305709777473286==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4506 - core/branches/2.3.x. Date: Tue, 14 Jun 2011 06:23:13 -0400 Message-ID: <201106141023.p5EANDfn008901@svn01.web.mwc.hst.phx2.redhat.com> --===============0640305709777473286== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:23:13 -0400 (Tue, 14 Jun 2011) New Revision: 4506 Modified: core/branches/2.3.x/pom.xml Log: [PLF-1660] Upgrade dependencies to next snapshots Modified: core/branches/2.3.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/pom.xml 2011-06-14 10:20:05 UTC (rev 4505) +++ core/branches/2.3.x/pom.xml 2011-06-14 10:23:13 UTC (rev 4506) @@ -39,7 +39,7 @@ 2.3 = 1.2.1-GA - 2.2.9-GA + 2.2.10-GA-SNAPSHOT = --===============0640305709777473286==-- From do-not-reply at jboss.org Tue Jun 14 06:25:51 2011 Content-Type: multipart/mixed; boundary="===============5786750138046639204==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4507 - ws/branches/2.1.x. Date: Tue, 14 Jun 2011 06:25:51 -0400 Message-ID: <201106141025.p5EAPpFO009253@svn01.web.mwc.hst.phx2.redhat.com> --===============5786750138046639204== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:25:51 -0400 (Tue, 14 Jun 2011) New Revision: 4507 Modified: ws/branches/2.1.x/pom.xml Log: [PLF-1660] Upgrade dependencies to latest releases Modified: ws/branches/2.1.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/pom.xml 2011-06-14 10:23:13 UTC (rev 4506) +++ ws/branches/2.1.x/pom.xml 2011-06-14 10:25:51 UTC (rev 4507) @@ -44,8 +44,8 @@ exo-ws 2.1 = - 2.2.9-GA-SNAPSHOT - 2.3.9-GA-SNAPSHOT + 2.2.9-GA + 2.3.9-GA = --===============5786750138046639204==-- From do-not-reply at jboss.org Tue Jun 14 06:26:53 2011 Content-Type: multipart/mixed; boundary="===============3259847881369480008==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4508 - in ws/branches/2.1.x: exo.ws.commons and 6 other directories. Date: Tue, 14 Jun 2011 06:26:52 -0400 Message-ID: <201106141026.p5EAQqZK009268@svn01.web.mwc.hst.phx2.redhat.com> --===============3259847881369480008== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:26:52 -0400 (Tue, 14 Jun 2011) New Revision: 4508 Modified: ws/branches/2.1.x/exo.ws.commons/pom.xml ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml ws/branches/2.1.x/exo.ws.rest.core/pom.xml ws/branches/2.1.x/exo.ws.rest.ext/pom.xml ws/branches/2.1.x/exo.ws.testframework/pom.xml ws/branches/2.1.x/packaging/module/pom.xml ws/branches/2.1.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare release 2.1.9-GA Modified: ws/branches/2.1.x/exo.ws.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.commons/pom.xml 2011-06-14 10:25:51 UTC (rev 4= 507) +++ ws/branches/2.1.x/exo.ws.commons/pom.xml 2011-06-14 10:26:52 UTC (rev 4= 508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.commons Modified: ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml 2011-06-14 10:25:51 UT= C (rev 4507) +++ ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml 2011-06-14 10:26:52 UT= C (rev 4508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.frameworks.json Modified: ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml 2011-06-14 10:25:51= UTC (rev 4507) +++ ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml 2011-06-14 10:26:52= UTC (rev 4508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.frameworks.servlet Modified: ws/branches/2.1.x/exo.ws.rest.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-14 10:25:51 UTC (rev= 4507) +++ ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-14 10:26:52 UTC (rev= 4508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.rest.core Modified: ws/branches/2.1.x/exo.ws.rest.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.rest.ext/pom.xml 2011-06-14 10:25:51 UTC (rev = 4507) +++ ws/branches/2.1.x/exo.ws.rest.ext/pom.xml 2011-06-14 10:26:52 UTC (rev = 4508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.rest.ext Modified: ws/branches/2.1.x/exo.ws.testframework/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.testframework/pom.xml 2011-06-14 10:25:51 UTC = (rev 4507) +++ ws/branches/2.1.x/exo.ws.testframework/pom.xml 2011-06-14 10:26:52 UTC = (rev 4508) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = exo.ws.testframework Modified: ws/branches/2.1.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/packaging/module/pom.xml 2011-06-14 10:25:51 UTC (rev= 4507) +++ ws/branches/2.1.x/packaging/module/pom.xml 2011-06-14 10:26:52 UTC (rev= 4508) @@ -2,7 +2,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA = 4.0.0 Modified: ws/branches/2.1.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/pom.xml 2011-06-14 10:25:51 UTC (rev 4507) +++ ws/branches/2.1.x/pom.xml 2011-06-14 10:26:52 UTC (rev 4508) @@ -30,14 +30,14 @@ = org.exoplatform.ws ws-parent - 2.1.9-GA-SNAPSHOT + 2.1.9-GA pom eXo WS = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/branch= es/2.1.x/ - scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= branches/2.1.x/ - http://fisheye.jboss.org/browse/exo-jcr/ws/branches/2.1.x + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/tags/2= .1.9-GA + scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= tags/2.1.9-GA + http://fisheye.jboss.org/browse/exo-jcr/ws/tags/2.1.9-GA = --===============3259847881369480008==-- From do-not-reply at jboss.org Tue Jun 14 06:27:20 2011 Content-Type: multipart/mixed; boundary="===============2533578714332857698==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4509 - ws/tags. Date: Tue, 14 Jun 2011 06:27:20 -0400 Message-ID: <201106141027.p5EARKCx009282@svn01.web.mwc.hst.phx2.redhat.com> --===============2533578714332857698== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:27:20 -0400 (Tue, 14 Jun 2011) New Revision: 4509 Added: ws/tags/2.1.9-GA/ Log: [maven-release-plugin] [PLF-1660] copy for tag 2.1.9-GA --===============2533578714332857698==-- From do-not-reply at jboss.org Tue Jun 14 06:27:40 2011 Content-Type: multipart/mixed; boundary="===============5926894683841317613==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4510 - in ws/branches/2.1.x: exo.ws.commons and 6 other directories. Date: Tue, 14 Jun 2011 06:27:40 -0400 Message-ID: <201106141027.p5EARek3009293@svn01.web.mwc.hst.phx2.redhat.com> --===============5926894683841317613== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:27:40 -0400 (Tue, 14 Jun 2011) New Revision: 4510 Modified: ws/branches/2.1.x/exo.ws.commons/pom.xml ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml ws/branches/2.1.x/exo.ws.rest.core/pom.xml ws/branches/2.1.x/exo.ws.rest.ext/pom.xml ws/branches/2.1.x/exo.ws.testframework/pom.xml ws/branches/2.1.x/packaging/module/pom.xml ws/branches/2.1.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare for next development iteration Modified: ws/branches/2.1.x/exo.ws.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.commons/pom.xml 2011-06-14 10:27:20 UTC (rev 4= 509) +++ ws/branches/2.1.x/exo.ws.commons/pom.xml 2011-06-14 10:27:40 UTC (rev 4= 510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.commons Modified: ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml 2011-06-14 10:27:20 UT= C (rev 4509) +++ ws/branches/2.1.x/exo.ws.frameworks.json/pom.xml 2011-06-14 10:27:40 UT= C (rev 4510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.frameworks.json Modified: ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml 2011-06-14 10:27:20= UTC (rev 4509) +++ ws/branches/2.1.x/exo.ws.frameworks.servlet/pom.xml 2011-06-14 10:27:40= UTC (rev 4510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.frameworks.servlet Modified: ws/branches/2.1.x/exo.ws.rest.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-14 10:27:20 UTC (rev= 4509) +++ ws/branches/2.1.x/exo.ws.rest.core/pom.xml 2011-06-14 10:27:40 UTC (rev= 4510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.rest.core Modified: ws/branches/2.1.x/exo.ws.rest.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.rest.ext/pom.xml 2011-06-14 10:27:20 UTC (rev = 4509) +++ ws/branches/2.1.x/exo.ws.rest.ext/pom.xml 2011-06-14 10:27:40 UTC (rev = 4510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.rest.ext Modified: ws/branches/2.1.x/exo.ws.testframework/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/exo.ws.testframework/pom.xml 2011-06-14 10:27:20 UTC = (rev 4509) +++ ws/branches/2.1.x/exo.ws.testframework/pom.xml 2011-06-14 10:27:40 UTC = (rev 4510) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = exo.ws.testframework Modified: ws/branches/2.1.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/packaging/module/pom.xml 2011-06-14 10:27:20 UTC (rev= 4509) +++ ws/branches/2.1.x/packaging/module/pom.xml 2011-06-14 10:27:40 UTC (rev= 4510) @@ -2,7 +2,7 @@ org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT = 4.0.0 Modified: ws/branches/2.1.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/pom.xml 2011-06-14 10:27:20 UTC (rev 4509) +++ ws/branches/2.1.x/pom.xml 2011-06-14 10:27:40 UTC (rev 4510) @@ -30,14 +30,14 @@ = org.exoplatform.ws ws-parent - 2.1.9-GA + 2.1.10-GA-SNAPSHOT pom eXo WS = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/tags/2= .1.9-GA - scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= tags/2.1.9-GA - http://fisheye.jboss.org/browse/exo-jcr/ws/tags/2.1.9-GA + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/branch= es/2.1.x/ + scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= branches/2.1.x/ + http://fisheye.jboss.org/browse/exo-jcr/ws/branches/2.1.x = --===============5926894683841317613==-- From do-not-reply at jboss.org Tue Jun 14 06:30:11 2011 Content-Type: multipart/mixed; boundary="===============6071674522327681585==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4511 - ws/branches/2.1.x. Date: Tue, 14 Jun 2011 06:30:10 -0400 Message-ID: <201106141030.p5EAUAFH009667@svn01.web.mwc.hst.phx2.redhat.com> --===============6071674522327681585== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:30:10 -0400 (Tue, 14 Jun 2011) New Revision: 4511 Modified: ws/branches/2.1.x/pom.xml Log: [PLF-1660] Upgrade dependencies to next snapshots Modified: ws/branches/2.1.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/branches/2.1.x/pom.xml 2011-06-14 10:27:40 UTC (rev 4510) +++ ws/branches/2.1.x/pom.xml 2011-06-14 10:30:10 UTC (rev 4511) @@ -44,8 +44,8 @@ exo-ws 2.1 = - 2.2.9-GA - 2.3.9-GA + 2.2.10-GA-SNAPSHOT + 2.3.10-GA-SNAPSHOT = --===============6071674522327681585==-- From do-not-reply at jboss.org Tue Jun 14 06:32:48 2011 Content-Type: multipart/mixed; boundary="===============0033752448524006541==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4512 - jcr/branches/1.12.x. Date: Tue, 14 Jun 2011 06:32:48 -0400 Message-ID: <201106141032.p5EAWm09009778@svn01.web.mwc.hst.phx2.redhat.com> --===============0033752448524006541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:32:48 -0400 (Tue, 14 Jun 2011) New Revision: 4512 Modified: jcr/branches/1.12.x/pom.xml Log: [PLF-1660] Upgrade dependencies to latest releases Modified: jcr/branches/1.12.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/pom.xml 2011-06-14 10:30:10 UTC (rev 4511) +++ jcr/branches/1.12.x/pom.xml 2011-06-14 10:32:48 UTC (rev 4512) @@ -42,9 +42,9 @@ exo-jcr 1.12 - 2.2.9-GA-SNAPSHOT - 2.3.9-GA-SNAPSHOT - 2.1.9-GA-SNAPSHOT + 2.2.9-GA + 2.3.9-GA + 2.1.9-GA 1 = --===============0033752448524006541==-- From do-not-reply at jboss.org Tue Jun 14 06:36:40 2011 Content-Type: multipart/mixed; boundary="===============7451601893092037687==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4513 - in jcr/branches/1.12.x: applications and 24 other directories. Date: Tue, 14 Jun 2011 06:36:39 -0400 Message-ID: <201106141036.p5EAad52010167@svn01.web.mwc.hst.phx2.redhat.com> --===============7451601893092037687== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:36:38 -0400 (Tue, 14 Jun 2011) New Revision: 4513 Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dist= /pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom.= xml jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml jcr/branches/1.12.x/applications/pom.xml jcr/branches/1.12.x/exo.jcr.component.core/pom.xml jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml jcr/branches/1.12.x/exo.jcr.docs/pom.xml jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml jcr/branches/1.12.x/packaging/module/pom.xml jcr/branches/1.12.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare release 1.12.9-GA Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconso= le/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom= .xml 2011-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom= .xml 2011-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.backupconsole eXo JCR :: Applications :: Backup Console Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconso= le.dist/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dis= t/pom.xml 2011-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dis= t/pom.xml 2011-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.backupconsole.dist eXo JCR :: Applications :: Backup Console Binary Distribution @@ -37,7 +37,7 @@ org.exoplatform.jcr exo.jcr.applications.backupconsole - 1.12.9-GA-SNAPSHOT + 1.12.9-GA org.exoplatform.jcr Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml 2= 011-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml 2= 011-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.browser war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml 20= 11-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml 20= 11-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.config pom Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/p= om.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml= 2011-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml= 2011-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.fckeditor war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml 201= 1-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml 201= 1-06-14 10:36:38 UTC (rev 4513) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.12.9-GA-SNAPSHOT + 1.12.9-GA ear runtime Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml 201= 1-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml 201= 1-06-14 10:36:38 UTC (rev 4513) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.12.9-GA-SNAPSHOT + 1.12.9-GA ear runtime Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml 2011= -06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml 2011= -06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.rest war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml 20= 11-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml 20= 11-06-14 10:36:38 UTC (rev 4513) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.applications.config = Modified: jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml 201= 1-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml 201= 1-06-14 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.cluster.testclient eXo JCR :: Cluster :: Test Client Modified: jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml 2011-06-14 10:32:4= 8 UTC (rev 4512) +++ jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml 2011-06-14 10:36:3= 8 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.ear ear Modified: jcr/branches/1.12.x/applications/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/pom.xml 2011-06-14 10:32:48 UTC (rev 4= 512) +++ jcr/branches/1.12.x/applications/pom.xml 2011-06-14 10:36:38 UTC (rev 4= 513) @@ -22,12 +22,12 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 jcr-applications-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = eXo JCR :: Applications :: Reactor pom Modified: jcr/branches/1.12.x/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.core/pom.xml 2011-06-14 10:32:48 = UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.component.core/pom.xml 2011-06-14 10:36:38 = UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.component.core eXo JCR :: Component :: Core Service Modified: jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml 2011-06-14 10:32:48 U= TC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml 2011-06-14 10:36:38 U= TC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.component.ext eXo JCR :: Component :: Extension Service Modified: jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml 2011-06-14 10:32:48 U= TC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml 2011-06-14 10:36:38 U= TC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.component.ftp eXo JCR :: Component :: FTP Service Modified: jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml 2011-06-14 10:= 32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml 2011-06-14 10:= 36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.component.statistics eXo JCR :: Component :: Statistics Provider Modified: jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml 2011-06-14 10:32:4= 8 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml 2011-06-14 10:36:3= 8 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.component.webdav eXo JCR :: Component :: Webdav Service Modified: jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml 2011-06-14 = 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml 2011-06-14 = 10:36:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.connectors.localadapter rar Modified: jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011= -06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011= -06-14 10:36:38 UTC (rev 4513) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs.developer - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06= -14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06= -14 10:36:38 UTC (rev 4513) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.docs/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/pom.xml 2011-06-14 10:32:48 UTC (rev 4= 512) +++ jcr/branches/1.12.x/exo.jcr.docs/pom.xml 2011-06-14 10:36:38 UTC (rev 4= 513) @@ -22,7 +22,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml 2011-06-14 10:32:= 48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml 2011-06-14 10:36:= 38 UTC (rev 4513) @@ -12,7 +12,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.framework.command eXo JCR :: Framework :: Command Modified: jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 10:3= 2:48 UTC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 10:3= 6:38 UTC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.framework.ftpclient eXo JCR :: Framework :: FTP Client Modified: jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml 2011-06-14 10:32:48 U= TC (rev 4512) +++ jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml 2011-06-14 10:36:38 U= TC (rev 4513) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA exo.jcr.framework.web eXo JCR :: Framework :: Web Modified: jcr/branches/1.12.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/packaging/module/pom.xml 2011-06-14 10:32:48 UTC (r= ev 4512) +++ jcr/branches/1.12.x/packaging/module/pom.xml 2011-06-14 10:36:38 UTC (r= ev 4513) @@ -4,7 +4,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA jcr.packaging.module pom Modified: jcr/branches/1.12.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/pom.xml 2011-06-14 10:32:48 UTC (rev 4512) +++ jcr/branches/1.12.x/pom.xml 2011-06-14 10:36:38 UTC (rev 4513) @@ -29,14 +29,14 @@ = org.exoplatform.jcr jcr-parent - 1.12.9-GA-SNAPSHOT + 1.12.9-GA pom eXo JCR = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/branche= s/1.12.x/ - scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/b= ranches/1.12.x/ - http://fisheye.jboss.org/browse/exo-jcr/jcr/branches/1.12.x + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.= 12.9-GA + scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= ags/1.12.9-GA + http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.12.9-GA = --===============7451601893092037687==-- From do-not-reply at jboss.org Tue Jun 14 06:37:09 2011 Content-Type: multipart/mixed; boundary="===============3039444547408387916==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4514 - jcr/tags. Date: Tue, 14 Jun 2011 06:37:08 -0400 Message-ID: <201106141037.p5EAb81R010178@svn01.web.mwc.hst.phx2.redhat.com> --===============3039444547408387916== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:37:08 -0400 (Tue, 14 Jun 2011) New Revision: 4514 Added: jcr/tags/1.12.9-GA/ Log: [maven-release-plugin] [PLF-1660] copy for tag 1.12.9-GA --===============3039444547408387916==-- From do-not-reply at jboss.org Tue Jun 14 06:37:59 2011 Content-Type: multipart/mixed; boundary="===============1589753619780101647==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4515 - in jcr/branches/1.12.x: applications and 24 other directories. Date: Tue, 14 Jun 2011 06:37:58 -0400 Message-ID: <201106141037.p5EAbwTX010198@svn01.web.mwc.hst.phx2.redhat.com> --===============1589753619780101647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:37:57 -0400 (Tue, 14 Jun 2011) New Revision: 4515 Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dist= /pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom.= xml jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml jcr/branches/1.12.x/applications/pom.xml jcr/branches/1.12.x/exo.jcr.component.core/pom.xml jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml jcr/branches/1.12.x/exo.jcr.docs/pom.xml jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml jcr/branches/1.12.x/packaging/module/pom.xml jcr/branches/1.12.x/pom.xml Log: [maven-release-plugin] [PLF-1660]prepare for next development iteration Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconso= le/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom= .xml 2011-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole/pom= .xml 2011-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.backupconsole eXo JCR :: Applications :: Backup Console Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.backupconso= le.dist/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dis= t/pom.xml 2011-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.backupconsole.dis= t/pom.xml 2011-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.backupconsole.dist eXo JCR :: Applications :: Backup Console Binary Distribution @@ -37,7 +37,7 @@ org.exoplatform.jcr exo.jcr.applications.backupconsole - 1.12.9-GA + 1.12.10-GA-SNAPSHOT org.exoplatform.jcr Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml 2= 011-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.browser/pom.xml 2= 011-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.browser war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml 20= 11-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.config/pom.xml 20= 11-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.config pom Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/p= om.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml= 2011-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.fckeditor/pom.xml= 2011-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.fckeditor war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml 201= 1-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.jboss/pom.xml 201= 1-06-14 10:37:57 UTC (rev 4515) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.12.9-GA + 1.12.10-GA-SNAPSHOT ear runtime Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml 201= 1-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.jonas/pom.xml 201= 1-06-14 10:37:57 UTC (rev 4515) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.12.9-GA + 1.12.10-GA-SNAPSHOT ear runtime Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml 2011= -06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.rest/pom.xml 2011= -06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.rest war Modified: jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml 20= 11-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.applications.tomcat/pom.xml 20= 11-06-14 10:37:57 UTC (rev 4515) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.applications.config = Modified: jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml 201= 1-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.cluster.testclient/pom.xml 201= 1-06-14 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.cluster.testclient eXo JCR :: Cluster :: Test Client Modified: jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml 2011-06-14 10:37:0= 8 UTC (rev 4514) +++ jcr/branches/1.12.x/applications/exo.jcr.ear/pom.xml 2011-06-14 10:37:5= 7 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.ear ear Modified: jcr/branches/1.12.x/applications/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/applications/pom.xml 2011-06-14 10:37:08 UTC (rev 4= 514) +++ jcr/branches/1.12.x/applications/pom.xml 2011-06-14 10:37:57 UTC (rev 4= 515) @@ -22,12 +22,12 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 jcr-applications-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = eXo JCR :: Applications :: Reactor pom Modified: jcr/branches/1.12.x/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.core/pom.xml 2011-06-14 10:37:08 = UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.component.core/pom.xml 2011-06-14 10:37:57 = UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.component.core eXo JCR :: Component :: Core Service Modified: jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml 2011-06-14 10:37:08 U= TC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.component.ext/pom.xml 2011-06-14 10:37:57 U= TC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.component.ext eXo JCR :: Component :: Extension Service Modified: jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml 2011-06-14 10:37:08 U= TC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.component.ftp/pom.xml 2011-06-14 10:37:57 U= TC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.component.ftp eXo JCR :: Component :: FTP Service Modified: jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml 2011-06-14 10:= 37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.component.statistics/pom.xml 2011-06-14 10:= 37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.component.statistics eXo JCR :: Component :: Statistics Provider Modified: jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml 2011-06-14 10:37:0= 8 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.component.webdav/pom.xml 2011-06-14 10:37:5= 7 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.component.webdav eXo JCR :: Component :: Webdav Service Modified: jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml 2011-06-14 = 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.connectors.localadapter/pom.xml 2011-06-14 = 10:37:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.connectors.localadapter rar Modified: jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011= -06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011= -06-14 10:37:57 UTC (rev 4515) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs.developer - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06= -14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06= -14 10:37:57 UTC (rev 4515) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.docs/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.docs/pom.xml 2011-06-14 10:37:08 UTC (rev 4= 514) +++ jcr/branches/1.12.x/exo.jcr.docs/pom.xml 2011-06-14 10:37:57 UTC (rev 4= 515) @@ -22,7 +22,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT = 4.0.0 Modified: jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml 2011-06-14 10:37:= 08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.framework.command/pom.xml 2011-06-14 10:37:= 57 UTC (rev 4515) @@ -12,7 +12,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.framework.command eXo JCR :: Framework :: Command Modified: jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 10:3= 7:08 UTC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 10:3= 7:57 UTC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.framework.ftpclient eXo JCR :: Framework :: FTP Client Modified: jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml 2011-06-14 10:37:08 U= TC (rev 4514) +++ jcr/branches/1.12.x/exo.jcr.framework.web/pom.xml 2011-06-14 10:37:57 U= TC (rev 4515) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT exo.jcr.framework.web eXo JCR :: Framework :: Web Modified: jcr/branches/1.12.x/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/packaging/module/pom.xml 2011-06-14 10:37:08 UTC (r= ev 4514) +++ jcr/branches/1.12.x/packaging/module/pom.xml 2011-06-14 10:37:57 UTC (r= ev 4515) @@ -4,7 +4,7 @@ org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT jcr.packaging.module pom Modified: jcr/branches/1.12.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/pom.xml 2011-06-14 10:37:08 UTC (rev 4514) +++ jcr/branches/1.12.x/pom.xml 2011-06-14 10:37:57 UTC (rev 4515) @@ -29,14 +29,14 @@ = org.exoplatform.jcr jcr-parent - 1.12.9-GA + 1.12.10-GA-SNAPSHOT pom eXo JCR = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.= 12.9-GA - scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= ags/1.12.9-GA - http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.12.9-GA + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/branche= s/1.12.x/ + scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/b= ranches/1.12.x/ + http://fisheye.jboss.org/browse/exo-jcr/jcr/branches/1.12.x = --===============1589753619780101647==-- From do-not-reply at jboss.org Tue Jun 14 06:42:33 2011 Content-Type: multipart/mixed; boundary="===============1209481027624608612==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4516 - kernel/trunk. Date: Tue, 14 Jun 2011 06:42:33 -0400 Message-ID: <201106141042.p5EAgXbR010671@svn01.web.mwc.hst.phx2.redhat.com> --===============1209481027624608612== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:42:32 -0400 (Tue, 14 Jun 2011) New Revision: 4516 Modified: kernel/trunk/pom.xml Log: EXOJCR-1346: change deps to tag Modified: kernel/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/pom.xml 2011-06-14 10:37:57 UTC (rev 4515) +++ kernel/trunk/pom.xml 2011-06-14 10:42:32 UTC (rev 4516) @@ -25,7 +25,7 @@ org.exoplatform foundation-parent - 9-SNAPSHOT + 9 = org.exoplatform.kernel --===============1209481027624608612==-- From do-not-reply at jboss.org Tue Jun 14 06:47:32 2011 Content-Type: multipart/mixed; boundary="===============6309256802467693373==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4517 - in kernel/trunk: exo.kernel.commons and 13 other directories. Date: Tue, 14 Jun 2011 06:47:32 -0400 Message-ID: <201106141047.p5EAlWjC011050@svn01.web.mwc.hst.phx2.redhat.com> --===============6309256802467693373== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:47:31 -0400 (Tue, 14 Jun 2011) New Revision: 4517 Modified: kernel/trunk/exo.kernel.commons.test/pom.xml kernel/trunk/exo.kernel.commons/pom.xml kernel/trunk/exo.kernel.component.cache/pom.xml kernel/trunk/exo.kernel.component.command/pom.xml kernel/trunk/exo.kernel.component.common/pom.xml kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml kernel/trunk/exo.kernel.container/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.x= ml kernel/trunk/exo.kernel.mc-integration/pom.xml kernel/trunk/packaging/module/pom.xml kernel/trunk/pom.xml Log: [maven-release-plugin] prepare release 2.3.0-CR3 Modified: kernel/trunk/exo.kernel.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/pom.xml 2011-06-14 10:42:32 UTC (rev 45= 16) +++ kernel/trunk/exo.kernel.commons/pom.xml 2011-06-14 10:47:31 UTC (rev 45= 17) @@ -16,7 +16,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.commons Modified: kernel/trunk/exo.kernel.commons.test/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons.test/pom.xml 2011-06-14 10:42:32 UTC (r= ev 4516) +++ kernel/trunk/exo.kernel.commons.test/pom.xml 2011-06-14 10:47:31 UTC (r= ev 4517) @@ -16,7 +16,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.commons.test Modified: kernel/trunk/exo.kernel.component.cache/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.cache/pom.xml 2011-06-14 10:42:32 UTC= (rev 4516) +++ kernel/trunk/exo.kernel.component.cache/pom.xml 2011-06-14 10:47:31 UTC= (rev 4517) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.component.cache Modified: kernel/trunk/exo.kernel.component.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.command/pom.xml 2011-06-14 10:42:32 U= TC (rev 4516) +++ kernel/trunk/exo.kernel.component.command/pom.xml 2011-06-14 10:47:31 U= TC (rev 4517) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.component.command Modified: kernel/trunk/exo.kernel.component.common/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.common/pom.xml 2011-06-14 10:42:32 UT= C (rev 4516) +++ kernel/trunk/exo.kernel.component.common/pom.xml 2011-06-14 10:47:31 UT= C (rev 4517) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.component.common Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-14 10:47:31 UTC (rev 4517) @@ -19,7 +19,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 exo.kernel.component.ext.cache.impl.infinispan.v4 eXo Kernel :: Cache Extension :: Infinispan Implementation Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-14 10:47:31 UTC (rev 4517) @@ -23,7 +23,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 exo.kernel.component.ext.cache.impl.jboss.v3 eXo Kernel :: Cache Extension :: JBoss Cache Implementation Modified: kernel/trunk/exo.kernel.container/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.container/pom.xml 2011-06-14 10:42:32 UTC (rev = 4516) +++ kernel/trunk/exo.kernel.container/pom.xml 2011-06-14 10:47:31 UTC (rev = 4517) @@ -12,7 +12,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 exo.kernel.container eXo Kernel :: Container Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml 2011-0= 6-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml 2011-0= 6-14 10:47:31 UTC (rev 4517) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.mc-int Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml 2= 011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml 2= 011-06-14 10:47:31 UTC (rev 4517) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.mc-int-demo Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml = 2011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml = 2011-06-14 10:47:31 UTC (rev 4517) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.mc-int-tests Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extra= s/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.= xml 2011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.= xml 2011-06-14 10:47:31 UTC (rev 4517) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = exo.kernel.mc-kernel-extras Modified: kernel/trunk/exo.kernel.mc-integration/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/pom.xml 2011-06-14 10:42:32 UTC = (rev 4516) +++ kernel/trunk/exo.kernel.mc-integration/pom.xml 2011-06-14 10:47:31 UTC = (rev 4517) @@ -6,7 +6,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = mc-integration-parent Modified: kernel/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/packaging/module/pom.xml 2011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/packaging/module/pom.xml 2011-06-14 10:47:31 UTC (rev 4517) @@ -2,7 +2,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = 4.0.0 Modified: kernel/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/pom.xml 2011-06-14 10:42:32 UTC (rev 4516) +++ kernel/trunk/pom.xml 2011-06-14 10:47:31 UTC (rev 4517) @@ -30,7 +30,7 @@ = org.exoplatform.kernel kernel-parent - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 pom = eXo Kernel @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/tr= unk - scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/trunk - http://fisheye.jboss.org/browse/exo-jcr/kernel/trunk + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/ta= gs/2.3.0-CR3 + scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/tags/2.3.0-CR3 + http://fisheye.jboss.org/browse/exo-jcr/kernel/tags/2.3.0-CR3 = --===============6309256802467693373==-- From do-not-reply at jboss.org Tue Jun 14 06:47:54 2011 Content-Type: multipart/mixed; boundary="===============0906899436361053749==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4518 - kernel/tags. Date: Tue, 14 Jun 2011 06:47:54 -0400 Message-ID: <201106141047.p5EAlspo011065@svn01.web.mwc.hst.phx2.redhat.com> --===============0906899436361053749== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:47:54 -0400 (Tue, 14 Jun 2011) New Revision: 4518 Added: kernel/tags/2.3.0-CR3/ Log: [maven-scm] copy for tag 2.3.0-CR3 --===============0906899436361053749==-- From do-not-reply at jboss.org Tue Jun 14 06:48:22 2011 Content-Type: multipart/mixed; boundary="===============4979927421895617255==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4519 - in kernel/trunk: exo.kernel.commons and 13 other directories. Date: Tue, 14 Jun 2011 06:48:22 -0400 Message-ID: <201106141048.p5EAmMnE011076@svn01.web.mwc.hst.phx2.redhat.com> --===============4979927421895617255== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 06:48:22 -0400 (Tue, 14 Jun 2011) New Revision: 4519 Modified: kernel/trunk/exo.kernel.commons.test/pom.xml kernel/trunk/exo.kernel.commons/pom.xml kernel/trunk/exo.kernel.component.cache/pom.xml kernel/trunk/exo.kernel.component.command/pom.xml kernel/trunk/exo.kernel.component.common/pom.xml kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml kernel/trunk/exo.kernel.container/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.x= ml kernel/trunk/exo.kernel.mc-integration/pom.xml kernel/trunk/packaging/module/pom.xml kernel/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: kernel/trunk/exo.kernel.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/pom.xml 2011-06-14 10:47:54 UTC (rev 45= 18) +++ kernel/trunk/exo.kernel.commons/pom.xml 2011-06-14 10:48:22 UTC (rev 45= 19) @@ -16,7 +16,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.commons Modified: kernel/trunk/exo.kernel.commons.test/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons.test/pom.xml 2011-06-14 10:47:54 UTC (r= ev 4518) +++ kernel/trunk/exo.kernel.commons.test/pom.xml 2011-06-14 10:48:22 UTC (r= ev 4519) @@ -16,7 +16,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.commons.test Modified: kernel/trunk/exo.kernel.component.cache/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.cache/pom.xml 2011-06-14 10:47:54 UTC= (rev 4518) +++ kernel/trunk/exo.kernel.component.cache/pom.xml 2011-06-14 10:48:22 UTC= (rev 4519) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.component.cache Modified: kernel/trunk/exo.kernel.component.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.command/pom.xml 2011-06-14 10:47:54 U= TC (rev 4518) +++ kernel/trunk/exo.kernel.component.command/pom.xml 2011-06-14 10:48:22 U= TC (rev 4519) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.component.command Modified: kernel/trunk/exo.kernel.component.common/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.common/pom.xml 2011-06-14 10:47:54 UT= C (rev 4518) +++ kernel/trunk/exo.kernel.component.common/pom.xml 2011-06-14 10:48:22 UT= C (rev 4519) @@ -25,7 +25,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.component.common Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.infinispan.v4/pom.xml = 2011-06-14 10:48:22 UTC (rev 4519) @@ -19,7 +19,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT exo.kernel.component.ext.cache.impl.infinispan.v4 eXo Kernel :: Cache Extension :: Infinispan Implementation Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/pom.xml 2011-= 06-14 10:48:22 UTC (rev 4519) @@ -23,7 +23,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT exo.kernel.component.ext.cache.impl.jboss.v3 eXo Kernel :: Cache Extension :: JBoss Cache Implementation Modified: kernel/trunk/exo.kernel.container/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.container/pom.xml 2011-06-14 10:47:54 UTC (rev = 4518) +++ kernel/trunk/exo.kernel.container/pom.xml 2011-06-14 10:48:22 UTC (rev = 4519) @@ -12,7 +12,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT exo.kernel.container eXo Kernel :: Container Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml 2011-0= 6-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int/pom.xml 2011-0= 6-14 10:48:22 UTC (rev 4519) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.mc-int Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml 2= 011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-demo/pom.xml 2= 011-06-14 10:48:22 UTC (rev 4519) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.mc-int-demo Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml = 2011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-int-tests/pom.xml = 2011-06-14 10:48:22 UTC (rev 4519) @@ -5,7 +5,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.mc-int-tests Modified: kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extra= s/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.= xml 2011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/exo.kernel.mc-integration/exo.kernel.mc-kernel-extras/pom.= xml 2011-06-14 10:48:22 UTC (rev 4519) @@ -6,7 +6,7 @@ org.exoplatform.kernel mc-integration-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = exo.kernel.mc-kernel-extras Modified: kernel/trunk/exo.kernel.mc-integration/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.mc-integration/pom.xml 2011-06-14 10:47:54 UTC = (rev 4518) +++ kernel/trunk/exo.kernel.mc-integration/pom.xml 2011-06-14 10:48:22 UTC = (rev 4519) @@ -6,7 +6,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = mc-integration-parent Modified: kernel/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/packaging/module/pom.xml 2011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/packaging/module/pom.xml 2011-06-14 10:48:22 UTC (rev 4519) @@ -2,7 +2,7 @@ org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = 4.0.0 Modified: kernel/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/pom.xml 2011-06-14 10:47:54 UTC (rev 4518) +++ kernel/trunk/pom.xml 2011-06-14 10:48:22 UTC (rev 4519) @@ -30,7 +30,7 @@ = org.exoplatform.kernel kernel-parent - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT pom = eXo Kernel @@ -43,9 +43,9 @@ = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/ta= gs/2.3.0-CR3 - scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/tags/2.3.0-CR3 - http://fisheye.jboss.org/browse/exo-jcr/kernel/tags/2.3.0-CR3 + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/kernel/tr= unk + scm:svn:https://svn.jboss.org/repos/exo-jcr/ker= nel/trunk + http://fisheye.jboss.org/browse/exo-jcr/kernel/trunk = --===============4979927421895617255==-- From do-not-reply at jboss.org Tue Jun 14 06:49:27 2011 Content-Type: multipart/mixed; boundary="===============0769023211488784253==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4520 - jcr/branches/1.12.x. Date: Tue, 14 Jun 2011 06:49:27 -0400 Message-ID: <201106141049.p5EAnR2E011090@svn01.web.mwc.hst.phx2.redhat.com> --===============0769023211488784253== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: paristote Date: 2011-06-14 06:49:27 -0400 (Tue, 14 Jun 2011) New Revision: 4520 Modified: jcr/branches/1.12.x/pom.xml Log: [PLF-1660] Upgrade dependencies to next snapshots Modified: jcr/branches/1.12.x/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/pom.xml 2011-06-14 10:48:22 UTC (rev 4519) +++ jcr/branches/1.12.x/pom.xml 2011-06-14 10:49:27 UTC (rev 4520) @@ -42,9 +42,9 @@ exo-jcr 1.12 - 2.2.9-GA - 2.3.9-GA - 2.1.9-GA + 2.2.10-GA-SNAPSHOT + 2.3.10-GA-SNAPSHOT + 2.1.10-GA-SNAPSHOT 1 = --===============0769023211488784253==-- From do-not-reply at jboss.org Tue Jun 14 07:11:09 2011 Content-Type: multipart/mixed; boundary="===============1468651894447200503==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4521 - core/trunk. Date: Tue, 14 Jun 2011 07:11:09 -0400 Message-ID: <201106141111.p5EBB9Xp019708@svn01.web.mwc.hst.phx2.redhat.com> --===============1468651894447200503== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:11:08 -0400 (Tue, 14 Jun 2011) New Revision: 4521 Modified: core/trunk/pom.xml Log: EXOJCR-1346: change deps to tag Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-14 10:49:27 UTC (rev 4520) +++ core/trunk/pom.xml 2011-06-14 11:11:08 UTC (rev 4521) @@ -24,7 +24,7 @@ org.exoplatform foundation-parent - 9-SNAPSHOT + 9 = org.exoplatform.core @@ -39,7 +39,7 @@ 2.4 = 1.2.1-GA - 2.3.0-GA-SNAPSHOT + 2.3.0-CR3 = --===============1468651894447200503==-- From do-not-reply at jboss.org Tue Jun 14 07:16:35 2011 Content-Type: multipart/mixed; boundary="===============2716083492660300725==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4522 - in core/trunk: exo.core.component.database and 10 other directories. Date: Tue, 14 Jun 2011 07:16:35 -0400 Message-ID: <201106141116.p5EBGZld020102@svn01.web.mwc.hst.phx2.redhat.com> --===============2716083492660300725== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:16:35 -0400 (Tue, 14 Jun 2011) New Revision: 4522 Modified: core/trunk/exo.core.component.database/pom.xml core/trunk/exo.core.component.document/pom.xml core/trunk/exo.core.component.ldap/pom.xml core/trunk/exo.core.component.organization.api/pom.xml core/trunk/exo.core.component.organization.jdbc/pom.xml core/trunk/exo.core.component.organization.ldap/pom.xml core/trunk/exo.core.component.script.groovy/pom.xml core/trunk/exo.core.component.security.core/pom.xml core/trunk/exo.core.component.web.css/pom.xml core/trunk/exo.core.component.xml-processing/pom.xml core/trunk/packaging/module/pom.xml core/trunk/pom.xml Log: [maven-release-plugin] prepare release 2.4.0-CR3 Modified: core/trunk/exo.core.component.database/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.database/pom.xml 2011-06-14 11:11:08 UTC = (rev 4521) +++ core/trunk/exo.core.component.database/pom.xml 2011-06-14 11:16:35 UTC = (rev 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.database Modified: core/trunk/exo.core.component.document/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.document/pom.xml 2011-06-14 11:11:08 UTC = (rev 4521) +++ core/trunk/exo.core.component.document/pom.xml 2011-06-14 11:16:35 UTC = (rev 4522) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 exo.core.component.document eXo Core :: Component :: Demo Service Modified: core/trunk/exo.core.component.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.ldap/pom.xml 2011-06-14 11:11:08 UTC (rev= 4521) +++ core/trunk/exo.core.component.ldap/pom.xml 2011-06-14 11:16:35 UTC (rev= 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.ldap Modified: core/trunk/exo.core.component.organization.api/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.api/pom.xml 2011-06-14 11:11= :08 UTC (rev 4521) +++ core/trunk/exo.core.component.organization.api/pom.xml 2011-06-14 11:16= :35 UTC (rev 4522) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 exo.core.component.organization.api eXo Core :: Component :: Organization Service API Modified: core/trunk/exo.core.component.organization.jdbc/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.jdbc/pom.xml 2011-06-14 11:1= 1:08 UTC (rev 4521) +++ core/trunk/exo.core.component.organization.jdbc/pom.xml 2011-06-14 11:1= 6:35 UTC (rev 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.organization.jdbc Modified: core/trunk/exo.core.component.organization.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.ldap/pom.xml 2011-06-14 11:1= 1:08 UTC (rev 4521) +++ core/trunk/exo.core.component.organization.ldap/pom.xml 2011-06-14 11:1= 6:35 UTC (rev 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.organization.ldap Modified: core/trunk/exo.core.component.script.groovy/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.script.groovy/pom.xml 2011-06-14 11:11:08= UTC (rev 4521) +++ core/trunk/exo.core.component.script.groovy/pom.xml 2011-06-14 11:16:35= UTC (rev 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.script.groovy Modified: core/trunk/exo.core.component.security.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.security.core/pom.xml 2011-06-14 11:11:08= UTC (rev 4521) +++ core/trunk/exo.core.component.security.core/pom.xml 2011-06-14 11:16:35= UTC (rev 4522) @@ -16,7 +16,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.security.core Modified: core/trunk/exo.core.component.web.css/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.web.css/pom.xml 2011-06-14 11:11:08 UTC (= rev 4521) +++ core/trunk/exo.core.component.web.css/pom.xml 2011-06-14 11:16:35 UTC (= rev 4522) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = exo.core.component.web.css Modified: core/trunk/exo.core.component.xml-processing/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.xml-processing/pom.xml 2011-06-14 11:11:0= 8 UTC (rev 4521) +++ core/trunk/exo.core.component.xml-processing/pom.xml 2011-06-14 11:16:3= 5 UTC (rev 4522) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 exo.core.component.xml-processing eXo Core :: Component :: XML Processing Service Modified: core/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/packaging/module/pom.xml 2011-06-14 11:11:08 UTC (rev 4521) +++ core/trunk/packaging/module/pom.xml 2011-06-14 11:16:35 UTC (rev 4522) @@ -2,7 +2,7 @@ org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 = 4.0.0 @@ -18,13 +18,13 @@ = - org.exoplatform.coreexo= .core.component.database2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.document2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.organization.api2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.organization.ldap2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.security.core2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.xml-processing2.4.0-GA-SNAPSHOT - org.exoplatform.coreexo= .core.component.script.groovy2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.database2.4.0-CR3 + org.exoplatform.coreexo= .core.component.document2.4.0-CR3 + org.exoplatform.coreexo= .core.component.organization.api2.4.0-CR3 + org.exoplatform.coreexo= .core.component.organization.ldap2.4.0-CR3<= /dependency> + org.exoplatform.coreexo= .core.component.security.core2.4.0-CR3 + org.exoplatform.coreexo= .core.component.xml-processing2.4.0-CR3 + org.exoplatform.coreexo= .core.component.script.groovy2.4.0-CR3 = Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-14 11:11:08 UTC (rev 4521) +++ core/trunk/pom.xml 2011-06-14 11:16:35 UTC (rev 4522) @@ -29,7 +29,7 @@ = org.exoplatform.core core-parent - 2.4.0-GA-SNAPSHOT + 2.4.0-CR3 pom = eXo Core @@ -43,9 +43,9 @@ = - scm:svn:https://anonsvn.jboss.org/repos/exo-jcr/core/tru= nk/ - scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/trunk/ - http://fisheye.jboss.org/browse/exo-jcr/core/trunk + scm:svn:https://anonsvn.jboss.org/repos/exo-jcr/core/tag= s/2.4.0-CR3 + scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/tags/2.4.0-CR3 + http://fisheye.jboss.org/browse/exo-jcr/core/tags/2.4.0-CR3 = --===============2716083492660300725==-- From do-not-reply at jboss.org Tue Jun 14 07:17:03 2011 Content-Type: multipart/mixed; boundary="===============0691601509616500647==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4523 - core/tags. Date: Tue, 14 Jun 2011 07:17:02 -0400 Message-ID: <201106141117.p5EBH2eg020115@svn01.web.mwc.hst.phx2.redhat.com> --===============0691601509616500647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:17:02 -0400 (Tue, 14 Jun 2011) New Revision: 4523 Added: core/tags/2.4.0-CR3/ Log: [maven-scm] copy for tag 2.4.0-CR3 --===============0691601509616500647==-- From do-not-reply at jboss.org Tue Jun 14 07:17:30 2011 Content-Type: multipart/mixed; boundary="===============2453905775297596480==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4524 - in core/trunk: exo.core.component.database and 10 other directories. Date: Tue, 14 Jun 2011 07:17:29 -0400 Message-ID: <201106141117.p5EBHTo1020129@svn01.web.mwc.hst.phx2.redhat.com> --===============2453905775297596480== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:17:29 -0400 (Tue, 14 Jun 2011) New Revision: 4524 Modified: core/trunk/exo.core.component.database/pom.xml core/trunk/exo.core.component.document/pom.xml core/trunk/exo.core.component.ldap/pom.xml core/trunk/exo.core.component.organization.api/pom.xml core/trunk/exo.core.component.organization.jdbc/pom.xml core/trunk/exo.core.component.organization.ldap/pom.xml core/trunk/exo.core.component.script.groovy/pom.xml core/trunk/exo.core.component.security.core/pom.xml core/trunk/exo.core.component.web.css/pom.xml core/trunk/exo.core.component.xml-processing/pom.xml core/trunk/packaging/module/pom.xml core/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: core/trunk/exo.core.component.database/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.database/pom.xml 2011-06-14 11:17:02 UTC = (rev 4523) +++ core/trunk/exo.core.component.database/pom.xml 2011-06-14 11:17:29 UTC = (rev 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.database Modified: core/trunk/exo.core.component.document/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.document/pom.xml 2011-06-14 11:17:02 UTC = (rev 4523) +++ core/trunk/exo.core.component.document/pom.xml 2011-06-14 11:17:29 UTC = (rev 4524) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT exo.core.component.document eXo Core :: Component :: Demo Service Modified: core/trunk/exo.core.component.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.ldap/pom.xml 2011-06-14 11:17:02 UTC (rev= 4523) +++ core/trunk/exo.core.component.ldap/pom.xml 2011-06-14 11:17:29 UTC (rev= 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.ldap Modified: core/trunk/exo.core.component.organization.api/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.api/pom.xml 2011-06-14 11:17= :02 UTC (rev 4523) +++ core/trunk/exo.core.component.organization.api/pom.xml 2011-06-14 11:17= :29 UTC (rev 4524) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT exo.core.component.organization.api eXo Core :: Component :: Organization Service API Modified: core/trunk/exo.core.component.organization.jdbc/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.jdbc/pom.xml 2011-06-14 11:1= 7:02 UTC (rev 4523) +++ core/trunk/exo.core.component.organization.jdbc/pom.xml 2011-06-14 11:1= 7:29 UTC (rev 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.organization.jdbc Modified: core/trunk/exo.core.component.organization.ldap/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.organization.ldap/pom.xml 2011-06-14 11:1= 7:02 UTC (rev 4523) +++ core/trunk/exo.core.component.organization.ldap/pom.xml 2011-06-14 11:1= 7:29 UTC (rev 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.organization.ldap Modified: core/trunk/exo.core.component.script.groovy/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.script.groovy/pom.xml 2011-06-14 11:17:02= UTC (rev 4523) +++ core/trunk/exo.core.component.script.groovy/pom.xml 2011-06-14 11:17:29= UTC (rev 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.script.groovy Modified: core/trunk/exo.core.component.security.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.security.core/pom.xml 2011-06-14 11:17:02= UTC (rev 4523) +++ core/trunk/exo.core.component.security.core/pom.xml 2011-06-14 11:17:29= UTC (rev 4524) @@ -16,7 +16,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.security.core Modified: core/trunk/exo.core.component.web.css/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.web.css/pom.xml 2011-06-14 11:17:02 UTC (= rev 4523) +++ core/trunk/exo.core.component.web.css/pom.xml 2011-06-14 11:17:29 UTC (= rev 4524) @@ -25,7 +25,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = exo.core.component.web.css Modified: core/trunk/exo.core.component.xml-processing/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.xml-processing/pom.xml 2011-06-14 11:17:0= 2 UTC (rev 4523) +++ core/trunk/exo.core.component.xml-processing/pom.xml 2011-06-14 11:17:2= 9 UTC (rev 4524) @@ -23,7 +23,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT exo.core.component.xml-processing eXo Core :: Component :: XML Processing Service Modified: core/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/packaging/module/pom.xml 2011-06-14 11:17:02 UTC (rev 4523) +++ core/trunk/packaging/module/pom.xml 2011-06-14 11:17:29 UTC (rev 4524) @@ -2,7 +2,7 @@ org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT = 4.0.0 @@ -18,13 +18,13 @@ = - org.exoplatform.coreexo= .core.component.database2.4.0-CR3 - org.exoplatform.coreexo= .core.component.document2.4.0-CR3 - org.exoplatform.coreexo= .core.component.organization.api2.4.0-CR3 - org.exoplatform.coreexo= .core.component.organization.ldap2.4.0-CR3<= /dependency> - org.exoplatform.coreexo= .core.component.security.core2.4.0-CR3 - org.exoplatform.coreexo= .core.component.xml-processing2.4.0-CR3 - org.exoplatform.coreexo= .core.component.script.groovy2.4.0-CR3 + org.exoplatform.coreexo= .core.component.database2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.document2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.organization.api2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.organization.ldap2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.security.core2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.xml-processing2.4.0-GA-SNAPSHOT + org.exoplatform.coreexo= .core.component.script.groovy2.4.0-GA-SNAPSHOT = Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-14 11:17:02 UTC (rev 4523) +++ core/trunk/pom.xml 2011-06-14 11:17:29 UTC (rev 4524) @@ -29,7 +29,7 @@ = org.exoplatform.core core-parent - 2.4.0-CR3 + 2.4.0-GA-SNAPSHOT pom = eXo Core @@ -43,9 +43,9 @@ = - scm:svn:https://anonsvn.jboss.org/repos/exo-jcr/core/tag= s/2.4.0-CR3 - scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/tags/2.4.0-CR3 - http://fisheye.jboss.org/browse/exo-jcr/core/tags/2.4.0-CR3 + scm:svn:https://anonsvn.jboss.org/repos/exo-jcr/core/tru= nk/ + scm:svn:https://svn.jboss.org/repos/exo-jcr/cor= e/trunk/ + http://fisheye.jboss.org/browse/exo-jcr/core/trunk = --===============2453905775297596480==-- From do-not-reply at jboss.org Tue Jun 14 07:30:30 2011 Content-Type: multipart/mixed; boundary="===============2298097470298118897==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4525 - core/trunk. Date: Tue, 14 Jun 2011 07:30:30 -0400 Message-ID: <201106141130.p5EBUUKc021905@svn01.web.mwc.hst.phx2.redhat.com> --===============2298097470298118897== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:30:29 -0400 (Tue, 14 Jun 2011) New Revision: 4525 Modified: core/trunk/pom.xml Log: EXOJCR-1346: change deps to trunk Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-14 11:17:29 UTC (rev 4524) +++ core/trunk/pom.xml 2011-06-14 11:30:29 UTC (rev 4525) @@ -39,7 +39,7 @@ 2.4 = 1.2.1-GA - 2.3.0-CR3 + 2.3.0-GA-SNAPSHOT = --===============2298097470298118897==-- From do-not-reply at jboss.org Tue Jun 14 07:33:53 2011 Content-Type: multipart/mixed; boundary="===============0575227238712760626==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4526 - ws/trunk. Date: Tue, 14 Jun 2011 07:33:52 -0400 Message-ID: <201106141133.p5EBXqLj021998@svn01.web.mwc.hst.phx2.redhat.com> --===============0575227238712760626== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:33:52 -0400 (Tue, 14 Jun 2011) New Revision: 4526 Modified: ws/trunk/pom.xml Log: EXOJCR-1346: change deps to tag Modified: ws/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/pom.xml 2011-06-14 11:30:29 UTC (rev 4525) +++ ws/trunk/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) @@ -26,7 +26,7 @@ org.exoplatform foundation-parent - 9-SNAPSHOT + 9 = org.exoplatform.ws @@ -45,8 +45,8 @@ exo-ws 2.1 = - 2.3.0-GA-SNAPSHOT - 2.4.0-GA-SNAPSHOT + 2.3.0-CR3 + 2.4.0-CR3 = --===============0575227238712760626==-- From do-not-reply at jboss.org Tue Jun 14 07:37:44 2011 Content-Type: multipart/mixed; boundary="===============5442462918515569502==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4527 - in ws/trunk: exo.ws.commons and 6 other directories. Date: Tue, 14 Jun 2011 07:37:44 -0400 Message-ID: <201106141137.p5EBbiQY022361@svn01.web.mwc.hst.phx2.redhat.com> --===============5442462918515569502== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:37:43 -0400 (Tue, 14 Jun 2011) New Revision: 4527 Modified: ws/trunk/exo.ws.commons/pom.xml ws/trunk/exo.ws.frameworks.json/pom.xml ws/trunk/exo.ws.frameworks.servlet/pom.xml ws/trunk/exo.ws.rest.core/pom.xml ws/trunk/exo.ws.rest.ext/pom.xml ws/trunk/exo.ws.testframework/pom.xml ws/trunk/packaging/module/pom.xml ws/trunk/pom.xml Log: [maven-release-plugin] prepare release 2.2.0-CR3 Modified: ws/trunk/exo.ws.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.commons/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/exo.ws.commons/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.commons Modified: ws/trunk/exo.ws.frameworks.json/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.frameworks.json/pom.xml 2011-06-14 11:33:52 UTC (rev 45= 26) +++ ws/trunk/exo.ws.frameworks.json/pom.xml 2011-06-14 11:37:43 UTC (rev 45= 27) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.frameworks.json Modified: ws/trunk/exo.ws.frameworks.servlet/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.frameworks.servlet/pom.xml 2011-06-14 11:33:52 UTC (rev= 4526) +++ ws/trunk/exo.ws.frameworks.servlet/pom.xml 2011-06-14 11:37:43 UTC (rev= 4527) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.frameworks.servlet Modified: ws/trunk/exo.ws.rest.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.rest.core/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/exo.ws.rest.core/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.rest.core Modified: ws/trunk/exo.ws.rest.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.rest.ext/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/exo.ws.rest.ext/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.rest.ext Modified: ws/trunk/exo.ws.testframework/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.testframework/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/exo.ws.testframework/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = exo.ws.testframework Modified: ws/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/packaging/module/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/packaging/module/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -2,7 +2,7 @@ org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 = 4.0.0 Modified: ws/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/pom.xml 2011-06-14 11:33:52 UTC (rev 4526) +++ ws/trunk/pom.xml 2011-06-14 11:37:43 UTC (rev 4527) @@ -31,14 +31,14 @@ = org.exoplatform.ws ws-parent - 2.2.0-GA-SNAPSHOT + 2.2.0-CR3 pom eXo WS = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/trunk<= /connection> - scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= trunk - http://fisheye.jboss.org/browse/exo-jcr/ws/trunk + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/tags/2= .2.0-CR3 + scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= tags/2.2.0-CR3 + http://fisheye.jboss.org/browse/exo-jcr/ws/tags/2.2.0-CR3 = --===============5442462918515569502==-- From do-not-reply at jboss.org Tue Jun 14 07:38:10 2011 Content-Type: multipart/mixed; boundary="===============4827120121397197512==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4528 - ws/tags. Date: Tue, 14 Jun 2011 07:38:10 -0400 Message-ID: <201106141138.p5EBcA1a022376@svn01.web.mwc.hst.phx2.redhat.com> --===============4827120121397197512== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:38:10 -0400 (Tue, 14 Jun 2011) New Revision: 4528 Added: ws/tags/2.2.0-CR3/ Log: [maven-scm] copy for tag 2.2.0-CR3 --===============4827120121397197512==-- From do-not-reply at jboss.org Tue Jun 14 07:38:31 2011 Content-Type: multipart/mixed; boundary="===============8329913485319559571==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4529 - in ws/trunk: exo.ws.commons and 6 other directories. Date: Tue, 14 Jun 2011 07:38:31 -0400 Message-ID: <201106141138.p5EBcVu3022386@svn01.web.mwc.hst.phx2.redhat.com> --===============8329913485319559571== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:38:30 -0400 (Tue, 14 Jun 2011) New Revision: 4529 Modified: ws/trunk/exo.ws.commons/pom.xml ws/trunk/exo.ws.frameworks.json/pom.xml ws/trunk/exo.ws.frameworks.servlet/pom.xml ws/trunk/exo.ws.rest.core/pom.xml ws/trunk/exo.ws.rest.ext/pom.xml ws/trunk/exo.ws.testframework/pom.xml ws/trunk/packaging/module/pom.xml ws/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: ws/trunk/exo.ws.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.commons/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/exo.ws.commons/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.commons Modified: ws/trunk/exo.ws.frameworks.json/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.frameworks.json/pom.xml 2011-06-14 11:38:10 UTC (rev 45= 28) +++ ws/trunk/exo.ws.frameworks.json/pom.xml 2011-06-14 11:38:30 UTC (rev 45= 29) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.frameworks.json Modified: ws/trunk/exo.ws.frameworks.servlet/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.frameworks.servlet/pom.xml 2011-06-14 11:38:10 UTC (rev= 4528) +++ ws/trunk/exo.ws.frameworks.servlet/pom.xml 2011-06-14 11:38:30 UTC (rev= 4529) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.frameworks.servlet Modified: ws/trunk/exo.ws.rest.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.rest.core/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/exo.ws.rest.core/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.rest.core Modified: ws/trunk/exo.ws.rest.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.rest.ext/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/exo.ws.rest.ext/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.rest.ext Modified: ws/trunk/exo.ws.testframework/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/exo.ws.testframework/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/exo.ws.testframework/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -25,7 +25,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = exo.ws.testframework Modified: ws/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/packaging/module/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/packaging/module/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -2,7 +2,7 @@ org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT = 4.0.0 Modified: ws/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/pom.xml 2011-06-14 11:38:10 UTC (rev 4528) +++ ws/trunk/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) @@ -31,14 +31,14 @@ = org.exoplatform.ws ws-parent - 2.2.0-CR3 + 2.2.0-GA-SNAPSHOT pom eXo WS = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/tags/2= .2.0-CR3 - scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= tags/2.2.0-CR3 - http://fisheye.jboss.org/browse/exo-jcr/ws/tags/2.2.0-CR3 + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/ws/trunk<= /connection> + scm:svn:https://svn.jboss.org/repos/exo-jcr/ws/= trunk + http://fisheye.jboss.org/browse/exo-jcr/ws/trunk = --===============8329913485319559571==-- From do-not-reply at jboss.org Tue Jun 14 07:45:23 2011 Content-Type: multipart/mixed; boundary="===============0126351498058642663==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4530 - ws/trunk. Date: Tue, 14 Jun 2011 07:45:23 -0400 Message-ID: <201106141145.p5EBjNwq023196@svn01.web.mwc.hst.phx2.redhat.com> --===============0126351498058642663== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:45:23 -0400 (Tue, 14 Jun 2011) New Revision: 4530 Modified: ws/trunk/pom.xml Log: EXOJCR-1346: change deps to trunk Modified: ws/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/pom.xml 2011-06-14 11:38:30 UTC (rev 4529) +++ ws/trunk/pom.xml 2011-06-14 11:45:23 UTC (rev 4530) @@ -45,8 +45,8 @@ exo-ws 2.1 = - 2.3.0-CR3 - 2.4.0-CR3 + 2.3.0-GA-SNAPSHOT + 2.4.0-GA-SNAPSHOT = --===============0126351498058642663==-- From do-not-reply at jboss.org Tue Jun 14 07:59:45 2011 Content-Type: multipart/mixed; boundary="===============6590027150909888658==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4531 - jcr/trunk. Date: Tue, 14 Jun 2011 07:59:44 -0400 Message-ID: <201106141159.p5EBxiVL024602@svn01.web.mwc.hst.phx2.redhat.com> --===============6590027150909888658== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 07:59:44 -0400 (Tue, 14 Jun 2011) New Revision: 4531 Modified: jcr/trunk/pom.xml Log: EXOJCR-1346: change deps to tag Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-14 11:45:23 UTC (rev 4530) +++ jcr/trunk/pom.xml 2011-06-14 11:59:44 UTC (rev 4531) @@ -24,7 +24,7 @@ org.exoplatform foundation-parent - 9-SNAPSHOT + 9 = org.exoplatform.jcr @@ -42,9 +42,9 @@ exo-jcr 1.14 - 2.3.0-GA-SNAPSHOT - 2.4.0-GA-SNAPSHOT - 2.2.0-GA-SNAPSHOT + 2.3.0-CR3 + 2.4.0-CR3 + 2.2.0-CR3 1 = --===============6590027150909888658==-- From do-not-reply at jboss.org Tue Jun 14 08:08:18 2011 Content-Type: multipart/mixed; boundary="===============6086017441722211101==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4532 - in jcr/trunk: applications and 25 other directories. Date: Tue, 14 Jun 2011 08:08:18 -0400 Message-ID: <201106141208.p5EC8IhG031396@svn01.web.mwc.hst.phx2.redhat.com> --===============6086017441722211101== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 08:08:17 -0400 (Tue, 14 Jun 2011) New Revision: 4532 Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml jcr/trunk/applications/exo.jcr.applications.browser/pom.xml jcr/trunk/applications/exo.jcr.applications.config/pom.xml jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml jcr/trunk/applications/exo.jcr.applications.rest/pom.xml jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml jcr/trunk/applications/exo.jcr.ear/pom.xml jcr/trunk/applications/pom.xml jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.ext/pom.xml jcr/trunk/exo.jcr.component.ftp/pom.xml jcr/trunk/exo.jcr.component.statistics/pom.xml jcr/trunk/exo.jcr.component.webdav/pom.xml jcr/trunk/exo.jcr.connectors.jca/pom.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml jcr/trunk/exo.jcr.docs/pom.xml jcr/trunk/exo.jcr.framework.command/pom.xml jcr/trunk/exo.jcr.framework.ftpclient/pom.xml jcr/trunk/exo.jcr.framework.web/pom.xml jcr/trunk/packaging/module/pom.xml jcr/trunk/pom.xml Log: [maven-release-plugin] prepare release 1.14.0-CR3 Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml 2011-= 06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml 2011-= 06-14 12:08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.backupconsole eXo JCR :: Applications :: Backup Console Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml = 2011-06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml = 2011-06-14 12:08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.backupconsole.dist eXo JCR :: Applications :: Backup Console Binary Distribution @@ -37,7 +37,7 @@ org.exoplatform.jcr exo.jcr.applications.backupconsole - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 org.exoplatform.jcr Modified: jcr/trunk/applications/exo.jcr.applications.browser/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.browser/pom.xml 2011-06-14 = 11:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.browser/pom.xml 2011-06-14 = 12:08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.browser war Modified: jcr/trunk/applications/exo.jcr.applications.config/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-14 1= 1:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-14 1= 2:08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.config pom Modified: jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml 2011-06-1= 4 11:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml 2011-06-1= 4 12:08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.fckeditor war Modified: jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml 2011-06-14 11= :59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml 2011-06-14 12= :08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 ear runtime Modified: jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml 2011-06-14 11= :59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml 2011-06-14 12= :08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.config = Modified: jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml 2011-06-14 11= :59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml 2011-06-14 12= :08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 ear runtime Modified: jcr/trunk/applications/exo.jcr.applications.rest/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.rest/pom.xml 2011-06-14 11:= 59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.rest/pom.xml 2011-06-14 12:= 08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.rest war Modified: jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml 2011-06-14 1= 1:59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml 2011-06-14 1= 2:08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.applications.config = Modified: jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml 2011-06-14 11= :59:44 UTC (rev 4531) +++ jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml 2011-06-14 12= :08:17 UTC (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.cluster.testclient eXo JCR :: Cluster :: Test Client Modified: jcr/trunk/applications/exo.jcr.ear/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-14 11:59:44 UTC (rev= 4531) +++ jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-14 12:08:17 UTC (rev= 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.ear ear Modified: jcr/trunk/applications/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/pom.xml 2011-06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/applications/pom.xml 2011-06-14 12:08:17 UTC (rev 4532) @@ -22,12 +22,12 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 jcr-applications-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = eXo JCR :: Applications :: Reactor pom Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 11:59:44 UTC (rev 4= 531) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 12:08:17 UTC (rev 4= 532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.component.core eXo JCR :: Component :: Core Service Modified: jcr/trunk/exo.jcr.component.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-14 11:59:44 UTC (rev 45= 31) +++ jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-14 12:08:17 UTC (rev 45= 32) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.component.ext eXo JCR :: Component :: Extension Service Modified: jcr/trunk/exo.jcr.component.ftp/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ftp/pom.xml 2011-06-14 11:59:44 UTC (rev 45= 31) +++ jcr/trunk/exo.jcr.component.ftp/pom.xml 2011-06-14 12:08:17 UTC (rev 45= 32) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.component.ftp eXo JCR :: Component :: FTP Service Modified: jcr/trunk/exo.jcr.component.statistics/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.statistics/pom.xml 2011-06-14 11:59:44 UTC = (rev 4531) +++ jcr/trunk/exo.jcr.component.statistics/pom.xml 2011-06-14 12:08:17 UTC = (rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.component.statistics eXo JCR :: Component :: Statistics Provider Modified: jcr/trunk/exo.jcr.component.webdav/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/pom.xml 2011-06-14 11:59:44 UTC (rev= 4531) +++ jcr/trunk/exo.jcr.component.webdav/pom.xml 2011-06-14 12:08:17 UTC (rev= 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.component.webdav eXo JCR :: Component :: Webdav Service Modified: jcr/trunk/exo.jcr.connectors.jca/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.connectors.jca/pom.xml 2011-06-14 11:59:44 UTC (rev 4= 531) +++ jcr/trunk/exo.jcr.connectors.jca/pom.xml 2011-06-14 12:08:17 UTC (rev 4= 532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.connectors.jca rar Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011-06-14 11:= 59:44 UTC (rev 4531) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011-06-14 12:= 08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs.developer - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06-14 11:59:= 44 UTC (rev 4531) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06-14 12:08:= 17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 Modified: jcr/trunk/exo.jcr.docs/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/pom.xml 2011-06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/exo.jcr.docs/pom.xml 2011-06-14 12:08:17 UTC (rev 4532) @@ -22,7 +22,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 = 4.0.0 Modified: jcr/trunk/exo.jcr.framework.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.command/pom.xml 2011-06-14 11:59:44 UTC (re= v 4531) +++ jcr/trunk/exo.jcr.framework.command/pom.xml 2011-06-14 12:08:17 UTC (re= v 4532) @@ -12,7 +12,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.framework.command eXo JCR :: Framework :: Command Modified: jcr/trunk/exo.jcr.framework.ftpclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 11:59:44 UTC (= rev 4531) +++ jcr/trunk/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 12:08:17 UTC (= rev 4532) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.framework.ftpclient eXo JCR :: Framework :: FTP Client Modified: jcr/trunk/exo.jcr.framework.web/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.web/pom.xml 2011-06-14 11:59:44 UTC (rev 45= 31) +++ jcr/trunk/exo.jcr.framework.web/pom.xml 2011-06-14 12:08:17 UTC (rev 45= 32) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 exo.jcr.framework.web eXo JCR :: Framework :: Web Modified: jcr/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/packaging/module/pom.xml 2011-06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/packaging/module/pom.xml 2011-06-14 12:08:17 UTC (rev 4532) @@ -4,7 +4,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 jcr.packaging.module pom Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-14 11:59:44 UTC (rev 4531) +++ jcr/trunk/pom.xml 2011-06-14 12:08:17 UTC (rev 4532) @@ -29,14 +29,14 @@ = org.exoplatform.jcr jcr-parent - 1.14.0-GA-SNAPSHOT + 1.14.0-CR3 pom eXo JCR = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/trunk - scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= runk - http://fisheye.jboss.org/browse/exo-jcr/jcr/trunk + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.= 14.0-CR3 + scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= ags/1.14.0-CR3 + http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.14.0-CR3 = --===============6086017441722211101==-- From do-not-reply at jboss.org Tue Jun 14 08:08:46 2011 Content-Type: multipart/mixed; boundary="===============8070626017641766559==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4533 - jcr/tags. Date: Tue, 14 Jun 2011 08:08:45 -0400 Message-ID: <201106141208.p5EC8j5w031406@svn01.web.mwc.hst.phx2.redhat.com> --===============8070626017641766559== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 08:08:45 -0400 (Tue, 14 Jun 2011) New Revision: 4533 Added: jcr/tags/1.14.0-CR3/ Log: [maven-scm] copy for tag 1.14.0-CR3 --===============8070626017641766559==-- From do-not-reply at jboss.org Tue Jun 14 08:09:14 2011 Content-Type: multipart/mixed; boundary="===============3397945552512640656==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4534 - in jcr/trunk: applications and 25 other directories. Date: Tue, 14 Jun 2011 08:09:14 -0400 Message-ID: <201106141209.p5EC9EnF031418@svn01.web.mwc.hst.phx2.redhat.com> --===============3397945552512640656== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 08:09:13 -0400 (Tue, 14 Jun 2011) New Revision: 4534 Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml jcr/trunk/applications/exo.jcr.applications.browser/pom.xml jcr/trunk/applications/exo.jcr.applications.config/pom.xml jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml jcr/trunk/applications/exo.jcr.applications.rest/pom.xml jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml jcr/trunk/applications/exo.jcr.ear/pom.xml jcr/trunk/applications/pom.xml jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.ext/pom.xml jcr/trunk/exo.jcr.component.ftp/pom.xml jcr/trunk/exo.jcr.component.statistics/pom.xml jcr/trunk/exo.jcr.component.webdav/pom.xml jcr/trunk/exo.jcr.connectors.jca/pom.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml jcr/trunk/exo.jcr.docs/pom.xml jcr/trunk/exo.jcr.framework.command/pom.xml jcr/trunk/exo.jcr.framework.ftpclient/pom.xml jcr/trunk/exo.jcr.framework.web/pom.xml jcr/trunk/packaging/module/pom.xml jcr/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml 2011-= 06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.backupconsole/pom.xml 2011-= 06-14 12:09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.backupconsole eXo JCR :: Applications :: Backup Console Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/po= m.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml = 2011-06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/pom.xml = 2011-06-14 12:09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.backupconsole.dist eXo JCR :: Applications :: Backup Console Binary Distribution @@ -37,7 +37,7 @@ org.exoplatform.jcr exo.jcr.applications.backupconsole - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT org.exoplatform.jcr Modified: jcr/trunk/applications/exo.jcr.applications.browser/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.browser/pom.xml 2011-06-14 = 12:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.browser/pom.xml 2011-06-14 = 12:09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.browser war Modified: jcr/trunk/applications/exo.jcr.applications.config/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-14 1= 2:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.config/pom.xml 2011-06-14 1= 2:09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.config pom Modified: jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml 2011-06-1= 4 12:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.fckeditor/pom.xml 2011-06-1= 4 12:09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.fckeditor war Modified: jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml 2011-06-14 12= :08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.jboss/pom.xml 2011-06-14 12= :09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT ear runtime Modified: jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml 2011-06-14 12= :08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.jetty/pom.xml 2011-06-14 12= :09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.config = Modified: jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml 2011-06-14 12= :08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.jonas/pom.xml 2011-06-14 12= :09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 @@ -40,7 +40,7 @@ org.exoplatform.jcr exo.jcr.ear - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT ear runtime Modified: jcr/trunk/applications/exo.jcr.applications.rest/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.rest/pom.xml 2011-06-14 12:= 08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.rest/pom.xml 2011-06-14 12:= 09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.rest war Modified: jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml 2011-06-14 1= 2:08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.applications.tomcat/pom.xml 2011-06-14 1= 2:09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.applications.config - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.applications.config = Modified: jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml 2011-06-14 12= :08:45 UTC (rev 4533) +++ jcr/trunk/applications/exo.jcr.cluster.testclient/pom.xml 2011-06-14 12= :09:13 UTC (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.cluster.testclient eXo JCR :: Cluster :: Test Client Modified: jcr/trunk/applications/exo.jcr.ear/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-14 12:08:45 UTC (rev= 4533) +++ jcr/trunk/applications/exo.jcr.ear/pom.xml 2011-06-14 12:09:13 UTC (rev= 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.ear ear Modified: jcr/trunk/applications/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/applications/pom.xml 2011-06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/applications/pom.xml 2011-06-14 12:09:13 UTC (rev 4534) @@ -22,12 +22,12 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 jcr-applications-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = eXo JCR :: Applications :: Reactor pom Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 12:08:45 UTC (rev 4= 533) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 12:09:13 UTC (rev 4= 534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.component.core eXo JCR :: Component :: Core Service Modified: jcr/trunk/exo.jcr.component.ext/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-14 12:08:45 UTC (rev 45= 33) +++ jcr/trunk/exo.jcr.component.ext/pom.xml 2011-06-14 12:09:13 UTC (rev 45= 34) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.component.ext eXo JCR :: Component :: Extension Service Modified: jcr/trunk/exo.jcr.component.ftp/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ftp/pom.xml 2011-06-14 12:08:45 UTC (rev 45= 33) +++ jcr/trunk/exo.jcr.component.ftp/pom.xml 2011-06-14 12:09:13 UTC (rev 45= 34) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.component.ftp eXo JCR :: Component :: FTP Service Modified: jcr/trunk/exo.jcr.component.statistics/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.statistics/pom.xml 2011-06-14 12:08:45 UTC = (rev 4533) +++ jcr/trunk/exo.jcr.component.statistics/pom.xml 2011-06-14 12:09:13 UTC = (rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.component.statistics eXo JCR :: Component :: Statistics Provider Modified: jcr/trunk/exo.jcr.component.webdav/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.webdav/pom.xml 2011-06-14 12:08:45 UTC (rev= 4533) +++ jcr/trunk/exo.jcr.component.webdav/pom.xml 2011-06-14 12:09:13 UTC (rev= 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.component.webdav eXo JCR :: Component :: Webdav Service Modified: jcr/trunk/exo.jcr.connectors.jca/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.connectors.jca/pom.xml 2011-06-14 12:08:45 UTC (rev 4= 533) +++ jcr/trunk/exo.jcr.connectors.jca/pom.xml 2011-06-14 12:09:13 UTC (rev 4= 534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.connectors.jca rar Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011-06-14 12:= 08:45 UTC (rev 4533) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/pom.xml 2011-06-14 12:= 09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs.developer - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06-14 12:08:= 45 UTC (rev 4533) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/pom.xml 2011-06-14 12:09:= 13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr exo.jcr.docs - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 Modified: jcr/trunk/exo.jcr.docs/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/pom.xml 2011-06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/exo.jcr.docs/pom.xml 2011-06-14 12:09:13 UTC (rev 4534) @@ -22,7 +22,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT = 4.0.0 Modified: jcr/trunk/exo.jcr.framework.command/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.command/pom.xml 2011-06-14 12:08:45 UTC (re= v 4533) +++ jcr/trunk/exo.jcr.framework.command/pom.xml 2011-06-14 12:09:13 UTC (re= v 4534) @@ -12,7 +12,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.framework.command eXo JCR :: Framework :: Command Modified: jcr/trunk/exo.jcr.framework.ftpclient/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 12:08:45 UTC (= rev 4533) +++ jcr/trunk/exo.jcr.framework.ftpclient/pom.xml 2011-06-14 12:09:13 UTC (= rev 4534) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.framework.ftpclient eXo JCR :: Framework :: FTP Client Modified: jcr/trunk/exo.jcr.framework.web/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.framework.web/pom.xml 2011-06-14 12:08:45 UTC (rev 45= 33) +++ jcr/trunk/exo.jcr.framework.web/pom.xml 2011-06-14 12:09:13 UTC (rev 45= 34) @@ -24,7 +24,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT exo.jcr.framework.web eXo JCR :: Framework :: Web Modified: jcr/trunk/packaging/module/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/packaging/module/pom.xml 2011-06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/packaging/module/pom.xml 2011-06-14 12:09:13 UTC (rev 4534) @@ -4,7 +4,7 @@ org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT jcr.packaging.module pom Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-14 12:08:45 UTC (rev 4533) +++ jcr/trunk/pom.xml 2011-06-14 12:09:13 UTC (rev 4534) @@ -29,14 +29,14 @@ = org.exoplatform.jcr jcr-parent - 1.14.0-CR3 + 1.14.0-GA-SNAPSHOT pom eXo JCR = - scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/tags/1.= 14.0-CR3 - scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= ags/1.14.0-CR3 - http://fisheye.jboss.org/browse/exo-jcr/jcr/tags/1.14.0-CR3 + scm:svn:http://anonsvn.jboss.org/repos/exo-jcr/jcr/trunk + scm:svn:https://svn.jboss.org/repos/exo-jcr/jcr/t= runk + http://fisheye.jboss.org/browse/exo-jcr/jcr/trunk = --===============3397945552512640656==-- From do-not-reply at jboss.org Tue Jun 14 08:27:29 2011 Content-Type: multipart/mixed; boundary="===============5688851577713590358==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4535 - jcr/trunk. Date: Tue, 14 Jun 2011 08:27:29 -0400 Message-ID: <201106141227.p5ECRTHl001186@svn01.web.mwc.hst.phx2.redhat.com> --===============5688851577713590358== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 08:27:28 -0400 (Tue, 14 Jun 2011) New Revision: 4535 Modified: jcr/trunk/pom.xml Log: EXOJCR-1346: change deps to trunk Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-14 12:09:13 UTC (rev 4534) +++ jcr/trunk/pom.xml 2011-06-14 12:27:28 UTC (rev 4535) @@ -42,9 +42,9 @@ exo-jcr 1.14 - 2.3.0-CR3 - 2.4.0-CR3 - 2.2.0-CR3 + 2.3.0-GA-SNAPSHOT + 2.4.0-GA-SNAPSHOT + 2.2.0-GA-SNAPSHOT 1 = --===============5688851577713590358==-- From do-not-reply at jboss.org Tue Jun 14 09:36:34 2011 Content-Type: multipart/mixed; boundary="===============5781168143052926892==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4536 - jcr/trunk/exo.jcr.component.core. Date: Tue, 14 Jun 2011 09:36:34 -0400 Message-ID: <201106141336.p5EDaYiH014320@svn01.web.mwc.hst.phx2.redhat.com> --===============5781168143052926892== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 09:36:33 -0400 (Tue, 14 Jun 2011) New Revision: 4536 Modified: jcr/trunk/exo.jcr.component.core/pom.xml Log: EXOJCR-1385: exclude ispn tests for default profile Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 12:27:28 UTC (rev 4= 535) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-14 13:36:33 UTC (rev 4= 536) @@ -419,6 +419,9 @@ org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationVersionRestore.java org/exoplatform/services/jcr/usecases/common/Re= moveSameNameSiblingUnfixedTest.java org/exoplatform/services/jcr/**/impl/**/SQLBenc= hmarkTest.java + + ${impl.specific.exclude.1} + ${impl.specific.exclude.2} --===============5781168143052926892==-- From do-not-reply at jboss.org Tue Jun 14 10:44:06 2011 Content-Type: multipart/mixed; boundary="===============7270435066414380796==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4537 - jcr/tags/1.14.0-CR3. Date: Tue, 14 Jun 2011 10:44:06 -0400 Message-ID: <201106141444.p5EEi6YY027001@svn01.web.mwc.hst.phx2.redhat.com> --===============7270435066414380796== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-14 10:44:06 -0400 (Tue, 14 Jun 2011) New Revision: 4537 Added: jcr/tags/1.14.0-CR3/readme.txt Log: EXOJCR-1346: add release notes Added: jcr/tags/1.14.0-CR3/readme.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/tags/1.14.0-CR3/readme.txt (rev 0) +++ jcr/tags/1.14.0-CR3/readme.txt 2011-06-14 14:44:06 UTC (rev 4537) @@ -0,0 +1,669 @@ +JCR 1.14.0-CR3 release notes +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D + +eXoPlatform Java Content Repository (JSR-170) implementation and Extension= services with clustering support. + +Features of 1.14.0-CR3 +* Allow to manage the JCR Cache from JMX +* Managed transactions and JCA support +* Possibility to specify custom mimetypes.properties for MimeTypeResolver +* Improved the methods Node.getProperties(String namePattern) and Node.get= Nodes(String namePattern) for getting only required items + +Changes of 1.14.0-CR3 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-1088] - Extra exception stack trace[EXOJCR-1088] - Extra exc= eption stack trace[EXOJCR-958] - Problem with WebDav on Jboss-server + * [EXOJCR-1088] - Extra exception stack traces while browsing with Mac= OS Finder through WebDAV + * [EXOJCR-1123] - TestRollbackBigFiles.java failed on MySQL + * [EXOJCR-1124] - Dolphin issues when moving resources/collections + * [EXOJCR-1163] - RPCService is held when try to execute remote comman= d inside other + * [EXOJCR-1167] - Backup tests failed on Windows 7 + * [EXOJCR-1168] - HTTPBackupAgentTest failed on Windows 7 + * [EXOJCR-1178] - Incorrect MOVE method response when moving nodes bet= ween workspaces + * [EXOJCR-1187] - Increase memory consuming of JCR, OutOfMemoryError: = PermGen space + * [EXOJCR-1200] - PROBLEMS during load testing *WARN * [Thread-72] Laz= yTextExtractorField: Exception reading value for field: Stream closed + * [EXOJCR-1249] - FUNCTIONAL testing: test TestLockPerstistentDataMana= ger is in error + * [EXOJCR-1250] - FUNCTIONAL testing: on configuration multi, cache is= turned off there're tests in error and in failure + * [EXOJCR-1255] - TESTING: during load testing appear "The Network Ada= pter could not establish the connection" exception + * [EXOJCR-1285] - Can't open versions of file with non-latin name + * [EXOJCR-1305] - Orderable child nodes not honouring the order before= method after a move + * [EXOJCR-1319] - Still check lock on parent while isDeep =3D false + * [EXOJCR-1320] - Case sensitivityProblem with Oracle Virtual Director= y and SQL Server + * [EXOJCR-1321] - TESTING: Can't open file with non-latin name via ope= noffice plugin. ErorCode: 404 + * [EXOJCR-1322] - MANUAL TESTING: problems during move folder on "clie= nt-server" + * [EXOJCR-1327] - Need trigger events by default for Workspace.move() + * [EXOJCR-1331] - Cache can contain NullNodeData for root node after R= DBMS restore + * [EXOJCR-1334] - Exception when edit the properties of a nt:resource = node + * [EXOJCR-1342] - Thread not stopped when the application is stopped + * [EXOJCR-1344] - No eviction policy is allowed in case of the cache f= or indexing + * [EXOJCR-1345] - Cluster coordinator change throws Timed out waiting = for flush to unblock + * [EXOJCR-1349] - Duplicate content of other workspaces in default wor= kspace + * [EXOJCR-1350] - Impossible to move files in Webdav when the destinat= ion path contains space (Windows) + * [EXOJCR-1353] - NPE during incremental restore + * [EXOJCR-1354] - BackupManagerImpl and MultiIndex doesn't suspend the= irs threads on stop methods + * [EXOJCR-1356] - Find a way to have a name for MBeans of JBossCaches = used by the JCR = + * [EXOJCR-1359] - PROBLEMS during functional testing: test TestUserTra= nsaction is in failure + * [EXOJCR-1360] - PROBLEMS during functional testing: test TestQueryUs= ecases is in failure + * [EXOJCR-1367] - PROBLEMS during functional testing: test TestXATrans= action is in error + * [EXOJCR-1369] - PROBLEMS during functional testing: test NodeReadMet= hodsTest is in error + * [EXOJCR-1371] - Properties can lose their "isMultivalued" flag after= backup/restore operation. + +Enhancement + * [EXOJCR-1318] - Return only exptected attributes in SimpleLdapUserLi= stAccess + * [EXOJCR-1323] - Make the StandaloneContainerInitializedListener work= with a configured relative path + * [EXOJCR-1324] - Misspelling in some class names + * [EXOJCR-1326] - Do not create new instance of MimeTypeResolver for e= ach PUT request. + * [EXOJCR-1337] - Do not check MultiIndex.checkIndexingQueue for finis= hed documents + * [EXOJCR-1338] - Remove unnecessary component from configuration to a= void failed builds on Jenkins + * [EXOJCR-1343] - Avoid data accesses in case of new created nodes + * [EXOJCR-1347] - Clean the code of the IndexerChangesFilters + * [EXOJCR-1351] - Allow to manage the JCR Cache from JMX + * [EXOJCR-1352] - Set check-sns-new-connection into false by default + * [EXOJCR-1355] - Allow to suspend and resume the JobSchedulerService = thanks to JMX and/or Rest + * [EXOJCR-1357] - Add to the documentation the name of the existing ca= tegories of statistics + +Feature Request + * [EXOJCR-480] - Managed transactions support + * [EXOJCR-1103] - Improve the methods Node.getProperties(String namePa= ttern) and Node.getNodes(String namePattern) + * [EXOJCR-1111] - Reduce the total amount of queries needed to update = a property + * [EXOJCR-1189] - Upgrade to use Tomcat AS v6.0.32 + * [EXOJCR-1325] - Make possible to specify custom mimetypes.properties= for MimeTypeResolver + * [EXOJCR-1328] - JCA support + * [EXOJCR-1329] - Allow to use TransactionsEssentials as Transaction M= anager + * [EXOJCR-1333] - Provide a hasProfile method on ExoContainer + +Task + * [EXOJCR-769] - Port the RESTEndPoint annotation processor in WS sub-= project + * [EXOJCR-944] - WS : Do not generate files in src directory of a proj= ect + * [EXOJCR-945] - JCR : Cleanup build + * [EXOJCR-1009] - Check if membership type is present before membershi= p is created + * [EXOJCR-1221] - Resolve all the violations found by sonar when it is= possible + * [EXOJCR-1297] - Apply the patch file to JCR doc of PLF trunk for cod= es to be highlighted + * [EXOJCR-1317] - Generate checksum for each artifact in project + * [EXOJCR-1340] - [DOC]Add isolation level notice to the documentation + * [EXOJCR-1348] - Use the DefaultChangesFilter in the configuration in= case of a local mode + * [EXOJCR-1358] - In WebDAV Interpret NoSuchWorkspaceException as HTTP= CONFLICT state + * [EXOJCR-1366] - minConnection and maxConnection params in the ldap c= onfiguration are not used + * [EXOJCR-1372] - Align dependencies with EAP 5.1 + * [EXOJCR-1373] - Core.PDFDocumentReader support metadata UTF-16 encod= ing + +Sub-task + * [EXOJCR-1048] - TCK FrozenNodeTest has fails and exceptions - fix it + * [EXOJCR-1049] - Check MultiConfigServiceTest + * [EXOJCR-1050] - Check CommandServiceTest + * [EXOJCR-1335] - Prepare benchmark tests + * [EXOJCR-1363] - Investigate the reason of decreasing Session.getRoot= Node() performance + * [EXOJCR-1364] - Review tests in jcr-core projects [part 1] + * [EXOJCR-1365] - Appy patches and check the performance + +Changes of 1.14.0-CR2 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-1027] - TestPersistedValueData sometimes failed on hudson + * [EXOJCR-1081] - TestBackupManager sometimes failed on hudson + * [EXOJCR-1125] - FileCleaner is null in SysViewWorkspaceInitializer a= nd BackupWorkapceInitializer. + * [EXOJCR-1192] - FUNCTIONAL testing: test TestQueryUsecases is in fai= lure + * [EXOJCR-1234] - Orderable child node not honouring the add method + * [EXOJCR-1258] - Backup console doesn't work with Platform 3.5 + * [EXOJCR-1263] - Problem of webdav on windows 7 + * [EXOJCR-1267] - Dialog window "About" has incorrect version of jcr i= n webdav ms office plugin + * [EXOJCR-1270] - Workspace initializer is possible pushing an NullIte= mData into the cache when performing isWorkspaceInitialized() check + * [EXOJCR-1282] - File with non-latin name can't be open: Can't open r= emote file.ErrorCode:500 + * [EXOJCR-1284] - Can't access file containing special characters in f= ile name via Webdav + * [EXOJCR-1290] - Problems with dispalying non-latin names (ar,fr,ua,r= u,vn) after restore in backup + * [EXOJCR-1291] - Component should be resumed in reverse order + * [EXOJCR-1296] - Problem when renaming a large folder containing mult= iple files in webdav (Windows) + * [EXOJCR-1300] - Use QueryParam to parameter "backup-set-path" in met= hods of HTTPBackupAgent + * [EXOJCR-1307] - Failing tests in the webdav project due to an encodi= ng issue + * [EXOJCR-1308] - FUNCTIONAL testing: test TestJBossCacheWorkspaceStor= ageCacheInClusterMode is in failure + * [EXOJCR-1310] - Error when get node definition for node + +Component Upgrade + * [EXOJCR-1279] - Upgrade ISPN to 4.2.1 FINAL + +Enhancement + * [EXOJCR-1233] - JCR configuration update require dropping JCR_CONFIG= table + * [EXOJCR-1241] - Give a more understandable name to all the existing = Threads + * [EXOJCR-1268] - Allow to rely on the ConfigurationManager to get the= JGroups configuration when we use ISPN as underlying cache + * [EXOJCR-1281] - Create database without datasource prefix in case of= SingleDB + * [EXOJCR-1286] - Very high response time when loading a page in the "= Community Management" portlet when using ldap + * [EXOJCR-1298] - Don't informative error at DefaultLoginModule.login(= ) when the container is null. + * [EXOJCR-1311] - Ensure possibility to restore without dump of lock t= ables + * [EXOJCR-1314] - Improve QPath.isDescendantOf by using reverse order + +Feature Request + * [EXOJCR-577] - Allow to reindex a workspace asynchronously + * [EXOJCR-1204] - Indexing failed with "Can't acquire lock timeout" ex= ception + * [EXOJCR-1206] - Create a data distribution service to help the appli= cations to better distribute their child nodes + * [EXOJCR-1269] - Allow to set a default value when we use variables i= n configuration files + * [EXOJCR-1292] - Add possibility to know whether components are suspe= nded or not + * [EXOJCR-1294] - Allow to create sessions from ACLs + * [EXOJCR-1301] - Allow to use external backup tools in a secure manner + +Task + * [EXOJCR-983] - Folders "logs" and "temp" are not on the same level a= s jetty + * [EXOJCR-1019] - Ensure that we can connect to WebDAV server using di= gest authentication + * [EXOJCR-1136] - Improve the NodeHierarchyCreator to better scale in = term of users + * [EXOJCR-1170] - Comparing RDBMS backup/restore/reindexing features w= ith old implementation = + * [EXOJCR-1229] - Write an Upgrade guide from 1.14 beta3 to 1.14 CR1 + * [EXOJCR-1257] - exobackup tool simplified command-line interface + * [EXOJCR-1260] - Improve the Tomcat bundle to test all the existing i= mplementations + * [EXOJCR-1289] - Persisted data must be committed in cache without an= y transaction. = + * [EXOJCR-1293] - Commons-lang dependency differs for JCR and Core + * [EXOJCR-1302] - Data consistency - avoid possible data overwrite + +Sub-task + * [EXOJCR-1265] - Restore on MSSQL 2005 failed because of Connection r= eset. + * [EXOJCR-1266] - RDBMS backup failed in cluster env with ISPN configu= ration + * [EXOJCR-1271] - Check the length of the name of the cache for lock + * [EXOJCR-1272] - The big batch commit in RDMBS restore on Oracle DB w= s failed . + * [EXOJCR-1273] - RDBMS restore failes on DB2 because of DB2 SQL Error= : SQLCODE=3D-964, SQLSTATE=3D57011, + * [EXOJCR-1274] - Check functional working RDBMS backup/restore featur= e with JBC + * [EXOJCR-1275] - Ensure working on Windows OS + * [EXOJCR-1276] - Determinate the way of comparing two configurations + * [EXOJCR-1280] - Allow to reindex a repository/workspace thanks to JMX + +Changes of 1.14.0-CR1 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-1116] - RepositoryCreatorService stucks at RepositoryCreatio= nSynchronizer.waitForApproval() + * [EXOJCR-1122] - Location header missing in CREATED response for MOVE= method + * [EXOJCR-1179] - Concurrent eXo cache creation doesn't prevent multip= le cache creation + * [EXOJCR-1196] - ApplicationRegistry fails with NPE if any of javax.w= s.rs.core.Application return null instead of empty collection of JAX-RS com= ponents + * [EXOJCR-1197] - OrganizationService is started before NodeHierarchyC= reator is initialized + * [EXOJCR-1199] - Unprotected user code can stop container or org.pico= container.Startable component + * [EXOJCR-1201] - Fix WS packaging JS file for REST dependency + * [EXOJCR-1210] - Restore from RDBMS backup fail on InnoDB(MySQL) + * [EXOJCR-1213] - Tomcat doesn't stop after gatein.sh stop + * [EXOJCR-1217] - Problem with the move function of webdav on https + * [EXOJCR-1218] - Problem of renaming folders in WebDav + * [EXOJCR-1232] - Unparseable variable in JCR XML configuration file + * [EXOJCR-1235] - NFS stale handle + * [EXOJCR-1238] - Not correct MBean components registration when Porta= lContainer contains more then one repository [Part2] = + * [EXOJCR-1242] - UserImpl toString() wrong return value : only the @o= rganizationId info. + * [EXOJCR-1253] - PDFBox dependencies not complete in Core packaging + +Enhancement + * [EXOJCR-1149] - Load scriptPath resource with help of org.exoplatfor= m.container.configuration.ConfigurationManagerImpl in org.exoplatform.servi= ces.database.creator.DBCreator + * [EXOJCR-1182] - MimeTypeResolver does not work well with IE7 + * [EXOJCR-1185] - Reduce the time spent in ParentNodeEvictionActionPol= icy + * [EXOJCR-1188] - IndexInfos.write() should be called just after repla= ceIndexes operation done by IndexMerger + * [EXOJCR-1231] - Help applications to prevent memory leaks by enablin= g the SessionCleaner by default + * [EXOJCR-1240] - Give a more understandable name to all the existing = Containers + * [EXOJCR-1243] - JobSchedulerService interface should include: addPer= iodJob and addCronJob + * [EXOJCR-1254] - Add a mode that throws an Exception when we use a se= ssion that is not alive anymore + +Feature Request + * [EXOJCR-853] - Make it possible to create new repository in runtime = from back-up in cluster environment + * [EXOJCR-1078] - Implement a Backup/Restore Feature for RDBMS + * [EXOJCR-1080] - Improve Lucene Indexing in a cluster environment + * [EXOJCR-1089] - RootContainer configuration fails in JBossAS 6 + * [EXOJCR-1104] - Propose a re-indexing mechanism for RDBMS + * [EXOJCR-1142] - Add application/x-jaxrs+groovy mime type to mimetype= s.properties for *.grs extension + * [EXOJCR-1160] - Glassfish Support + * [EXOJCR-1177] - Improve JCR Doc + * [EXOJCR-1180] - Allow to avoid using the cache factory under some sp= ecific conditions + * [EXOJCR-1183] - Implement RequestLifeCycle in ResourceLauncher + * [EXOJCR-1184] - Improve the re-indexing mechanism to take advantage = of multi-cores + * [EXOJCR-1202] - Support disable feature for ISPN cache + * [EXOJCR-1207] - Export/Import child nodes version history in single = xml with parent version history + * [EXOJCR-1220] - Allow to use variables to define any values in the c= onfiguration file + * [EXOJCR-1246] - StandaloneContainerInitializedListener should stop c= ontainer on contextDestroyed method + +Task + * [EXOJCR-828] - JCR replication based on Infinispan + * [EXOJCR-1112] - DBCleanerService: Support clean data for single work= space in case of multi-db + * [EXOJCR-1157] - Upgrade to the latest maintenance version of Lucene = 2.9 + * [EXOJCR-1158] - Review all the third party libraries + * [EXOJCR-1159] - Upgrade all the choosen Third party libraries + * [EXOJCR-1175] - Implement PDFDocumentReader.getProperties using PDFB= ox + * [EXOJCR-1176] - Make text message of 405 (Method Not Allowed) status= more meaningful + * [EXOJCR-1208] - ConstraintViolationException when Importing Version = history of a nt:folder node having a nt:file child node. Apply patch. + * [EXOJCR-1230] - Update the js files in order to add the missing depe= ndencies + * [EXOJCR-1252] - Remove asm dependency from Kernel packaging + +Sub-task + * [EXOJCR-832] - JCR Indexer based on Infinispan + * [EXOJCR-833] - Test the JCR Replication based on infinispan in non c= luster mode + * [EXOJCR-834] - Test the JCR Replication based on infinispan in clust= er mode + * [EXOJCR-930] - Testing in cluster environment + * [EXOJCR-970] - Ensure the collocation of the data related to the sam= e node when it is possible + * [EXOJCR-1045] - Check the TestVersionRestore + * [EXOJCR-1046] - Few excluded tests fails because of SecurityManager + * [EXOJCR-1047] - Excluded TestSessionDataManager fails with NullPoint= erExceptions + * [EXOJCR-1100] - Documentation and prepare testcases for QA + * [EXOJCR-1153] - Support atomic restore + * [EXOJCR-1174] - Each cluster node must have it's own index + * [EXOJCR-1193] - Index retrieval from coordinator node + * [EXOJCR-1214] - Adopt benchmark for quick ISPN <--> JBC switching. S= et ISPN as default for benchmark and functional tests + + +Changes of 1.14.0-Beta03 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-956] - Cannot use webdav service with a version of jcr:conte= nt + * [EXOJCR-961] - On restore node the versioning child was removed, but= versioning child should be remain unchanged. + * [EXOJCR-974] - Simple skin from examples folder doesn't appear at li= st + * [EXOJCR-977] - InitialContextBinder.java doesn't support // instances + * [EXOJCR-979] - Lock operations does not checks any permission + * [EXOJCR-982] - Problems during testing of jetty: *ERROR* [qtp3113105= 8-61] PropFindResponseEntity: + * [EXOJCR-984] - CachingContainer returns unregistered components + * [EXOJCR-993] - Daily testing problem: NPE during testing + * [EXOJCR-994] - WEBDav view in a webbrowser has hardcoded image links + * [EXOJCR-995] - NPE when try to import data via WorkspaceContentImpor= ter + * [EXOJCR-1000] - Not correct MBean components registration when Porta= lContainer contains more then one repository = + * [EXOJCR-1001] - refresh breaks webdav published files + * [EXOJCR-1002] - MethodAccessFilter return not human readable error m= essage and don't set "JAXRS-Body-Provided" header in case rolles not allowed + * [EXOJCR-1003] - DeleteCommand in case try remove locked file return = don't human readable message = + * [EXOJCR-1012] - Response on PROPFIND method with 'allprop' element c= ontains wrong formatted and extra data + * [EXOJCR-1013] - Response on PROPFIND method with 'allprop' element d= oesn't contain properties inside element + * [EXOJCR-1014] - FTP server doesn't show list of workspaces after rep= ository restoring + * [EXOJCR-1015] - PROBLEM with Testing Backup Console: restore workspa= ce/backup + * [EXOJCR-1030] - Impossible to retrieve the lock on a node even by th= e root + * [EXOJCR-1036] - Empty metadata field not updated when re-uploading d= ocuments + * [EXOJCR-1037] - If a header delegate is not available then toString = method of Object should be used + * [EXOJCR-1038] - Some Unit Tests on DB2 related to the CAS plugin fail + * [EXOJCR-1040] - eXo JCR doesn't work with Oracle 11g R2 RAC + * [EXOJCR-1043] - Index already present error during cluster start + * [EXOJCR-1051] - Problems when start backup-console + * [EXOJCR-1058] - Problem with uploading files via MacOS client + * [EXOJCR-1060] - Indexer doesn't fully release resources on stop + * [EXOJCR-1061] - Access Denied in jcr:content with anonim__ permission + * [EXOJCR-1062] - WebDAV response is LOCKED after LOCK -> PUT request = from the client (but PUT sends locktoken given after LOCK) + * [EXOJCR-1065] - Functional testing jcr.core: API Tests failures on M= ysql DB + * [EXOJCR-1069] - Backup console throws NPE if backup agent isn't depl= oyed on server + * [EXOJCR-1073] - TestRPCServiceImpl fails with JGroups 2.10.0.GA + * [EXOJCR-1085] - Wrong Content-Type header for files over a certain s= ize + * [EXOJCR-1087] - MySQL-UTF8 dialect default collation can be case-ins= ensitive - need case-sensitive set explicitly + * [EXOJCR-1092] - Unexpected behaviour of Nautilus while creating/rena= ming a folder/file via WebDAV = + * [EXOJCR-1093] - Wrong pasting of a copied folder using Nautilus via = WebDAV + * [EXOJCR-1095] - Webdav doesn't work on JBoss + * [EXOJCR-1098] - The If-Modified-Since property in the HTTP header do= esn't exist + * [EXOJCR-1107] - RPCService.executeCommandOnCoordinator() doesn't wor= k properly when few instances are on the same workstation + * [EXOJCR-1109] - Object BooleanValue must return string representatio= n of boolean value by method getStringValue(). + * [EXOJCR-1113] - SessionDataManager.listChildPropertiesData(NodeData = parent) must not return ValueDatas + * [EXOJCR-1115] - Exception error during edit content + * [EXOJCR-1117] - Correct misspelling in some methods names: doPrivile= dged to doPrivileged + * [EXOJCR-1118] - IncrementalBackupJob should be thread safe + * [EXOJCR-1131] - Node restore result depends on cache eviction + * [EXOJCR-1133] - Unit tests fail due to a AccessControlException in c= luster mode + * [EXOJCR-1139] - Restored version nodes get id from jcr:uuid property= instead fetch generated id + * [EXOJCR-1140] - Corrupted data if the server is stopped while docume= nt is locked + * [EXOJCR-1145] - IndexMerger in RO mode is not aware of new indexes + * [EXOJCR-1151] - FORM authentication doesn't work with jcrbackup tool= and Platform + * [EXOJCR-1152] - WADL generation fails if resource class contains som= e type of sub-resource locators + * [EXOJCR-1154] - Repository restore fails using exobackup tool with C= omponent unregister error + * [EXOJCR-1155] - Set scope test for junit dependency in exo.ws.rest.e= xt project + * [EXOJCR-1165] - BackupManager restore : Temporary files not deleted + * [EXOJCR-1169] - Remove some unnecessary jars + * [JCR-1462] - Problems during testing of backup on jcr 1.12.5-GA-SNAP= SHOT + * [JCR-1483] - When a folder is cut server->client, folder on server d= oesn't remove. + * [JCR-1485] - Unknown error and strange behavior when mary edits a we= bcontent + * [JCR-1508] - Property not found dc:title during testing RandomReadNt= FileWithMetadataTest + +Documentation + * [JCR-1433] - jcr backup/restore + +Feature Request + * [EXOJCR-747] - Make Backup restore easier + * [EXOJCR-887] - Allow to start all the cluster nodes in parallel even= during for the first initialization of the JCR + * [EXOJCR-971] - Prevent unauthorized access to the methods of Reposit= oryServiceImpl + * [EXOJCR-973] - Add possibility set user role in org.exoplatform.serv= ices.rest.tools.ResourceLauncher = + * [EXOJCR-992] - Allow to use a String as entity for a JSON response + * [EXOJCR-997] - Whole Repository backup support in Backup Console tool + * [EXOJCR-999] - Limit the total amount of WorkerThreads + * [EXOJCR-1011] - Allow to use variables to define the realm, the rest= context and the portal container name of a PortalContainerDefinition + * [EXOJCR-1020] - Create groovy compiler which able consume JCR node r= eferences and produce set of classes as result. + * [EXOJCR-1024] - Make possible to overwrite default providers (reader= s and writers) + * [EXOJCR-1029] - The result of the method getReferencesData is never = stored into the cache + * [EXOJCR-1032] - Limited support WedDav ACL specification = + * [EXOJCR-1064] - Code review of ACL managment in case of copy/moving = nodes + * [EXOJCR-1066] - Avoid iterating over a List thanks to its iterator w= hen it is possible + * [EXOJCR-1079] - Create plugin for adding exception mapping providers= in REST environment + * [EXOJCR-1099] - Add support restore existed repository/workspace in = backup console + * [EXOJCR-1105] - Make it possible to configure dependencies path for = Groovy scripts in runtime + * [EXOJCR-1143] - Add possibility to get raw JSON data in methods of R= ESTful services. + * [EXOJCR-1150] - DB clean on MySQL should not use iterating over all = db = + * [EXOJCR-1164] - Make possible in JrGroovyCompiler get list of URL on= dependency classes + * [EXOJCR-1172] - Rest framework must understand http header "x-forwar= ded-host" + +Task + * [EXOJCR-946] - Adopt Backup client article + * [EXOJCR-949] - Updating eXo JCR version in ra.xml automatically = + * [EXOJCR-952] - Backport 1.14.x branch commits to trunk + * [EXOJCR-955] - BufferedJBossCache performance improving + * [EXOJCR-963] - [DOC]Reply on JBC regions to avoid having too many JB= C instances + * [EXOJCR-965] - Cache doesn't support disable feature + * [EXOJCR-972] - Add org.exoplatform.services.rest.ext.method.filter.M= ethodAccessFilter in container configuration by default + * [EXOJCR-981] - Remove timestamp from names of jar-files in applicati= on bundles + * [EXOJCR-986] - Enable the security manager by default in all the pro= jects + * [EXOJCR-988] - RepositoryException: URI is not hierarchical on remov= e workspace via backup console + * [EXOJCR-989] - Refactor JSON framework + * [EXOJCR-996] - Merge performance improvements + * [EXOJCR-998] - Null values management must be reviewed to be up to d= ate + * [EXOJCR-1010] - Create two more constructors for WebDavServiceImpl + * [EXOJCR-1018] - Bind slf4j-log4j and log4j dependencies onto the tes= t phase of the various modules of JCR [part #2] + * [EXOJCR-1028] - Update the example of configuration for a cluster en= vironment + * [EXOJCR-1044] - Check TestQueryUsecases + * [EXOJCR-1054] - Apply all the changes made in the ISPN branch to the= trunk + * [EXOJCR-1055] - Update XPath query ordering chapter in jcr documents + * [EXOJCR-1067] - Reduce contention on read in NodeTypeDataHierarchyHo= lder if possible + * [EXOJCR-1070] - Remove dependency on pull-parser artifact as redunda= nt + * [EXOJCR-1071] - Move JCR framework commands list configuration to it= right place + * [EXOJCR-1072] - Publish the reference guide in docbook format + * [EXOJCR-1074] - Avoid iterating over a List thanks to its iterator w= hen it is possible [Part #2] + * [EXOJCR-1075] - JCR backupset should be fully independent + * [EXOJCR-1076] - Backup console binary distribution + * [EXOJCR-1083] - Create Group personnal folder should be after Group = creation: aplly patch + * [EXOJCR-1084] - Exclude jgroups:jgroups:jar:2.6.13.GA:compile depend= ency from org.jboss.cache:jbosscache-core:jar:3.2.6.GA:compile in JCR paren= t pom.xml + * [EXOJCR-1086] - Remove permission on child isn't used: apply patch + * [EXOJCR-1114] - Support more MIME types + * [EXOJCR-1119] - Avoid to get an item from the DB if the parent node = is new + * [EXOJCR-1120] - Changes log traversing is under optimized + * [EXOJCR-1129] - Port the documentation about the ISPN implementation= of eXo Cache + * [EXOJCR-1134] - Check in IndexerSingletonStoreCacheLoader if the chi= ldren should not be removed + * [EXOJCR-1135] - Check in DefaultChangesFilter if we use the right id= s in case of a IOException while updating the index of the parentSearchMana= ger + * [EXOJCR-1137] - Remove some unnecessary jars + * [EXOJCR-1138] - Document databases supported by eXo JCR + * [EXOJCR-1148] - Add posibility to configure additional DBCP DataSour= ces parameters in RepositoryCreationService + * [EXOJCR-1166] - Document Repository or Workspace initialization from= backup = + * [EXOJCR-1171] - Make possible to use the same GroovyClassLoader in J= crGroovyCompiler and GroovyJaxrsPublisher + * [JCR-1515] - Remove jgroup dependency from jcr-services as redundant + +Sub-task + * [EXOJCR-928] - Study the way how repository configuration can be rep= licable + * [EXOJCR-929] - Implementation + * [EXOJCR-939] - Create service to clean DB + * [EXOJCR-966] - Write the specification of the RPCService + * [EXOJCR-967] - Implement the RPCService + * [EXOJCR-1091] - Try to find way to restore value more than 2G + * [EXOJCR-1096] - Test on all supported database + * [EXOJCR-1097] - Support of restore independent of mulit-db type + * [EXOJCR-1101] - Check TestRDBMSBAckupManager + * [EXOJCR-1102] - RDBMS backup stress testing + * [EXOJCR-1106] - Profiling backup/restore method + * [EXOJCR-1110] - Dump data from system table in case of multi-db for = non system table + * [EXOJCR-1121] - HSQLDB performs commit after tables are locked + * [EXOJCR-1127] - Make workspace waiting before starting full backup j= ob + * [EXOJCR-1130] - Implement approach using the marker Backupable + * [EXOJCR-1146] - DBCleanerService should not relate on AbstractCachea= bleLockManager + * [EXOJCR-1147] - Make backup/restore to be cluster aware + * [JCR-1481] - Adding support form authentication in backup console + +Changes of 1.14.0-Beta02 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-688] - Some entries in the eXo JCR cache are not evicted pro= perly + * [EXOJCR-843] - Exceptions after importing file with version history + * [EXOJCR-849] - "Permission denied" on client side, when trying to mo= ve file(s) to another workspace through FTP + * [EXOJCR-856] - Problems while recopying same files via webdav + * [EXOJCR-865] - Data corrupt after restore a node which has been impo= rted with version history + * [EXOJCR-878] - WebDAV doesn't work with nt:file + * [EXOJCR-879] - TestCaching.testNotModifiedSince failed in same cases + * [EXOJCR-882] - TestCaching fails on Windows XP SP 2 with Russian loc= ale + * [EXOJCR-888] - The problems with restore version node + * [EXOJCR-890] - JSON framework don't work with beans created in groovy + * [EXOJCR-891] - Snaphosts IDs make the applications build improperly + * [EXOJCR-897] - Add registration required node types in single DB con= fg for test TestImport. + * [EXOJCR-908] - Used wrong delimiter during parsing permission value + * [EXOJCR-909] - In LDAPService, InitialContext is not safely closed i= n authenticate method + * [EXOJCR-912] - Unable to convert the JCR documentation to pdf + * [EXOJCR-916] - Duplicate instantiation of some services + * [EXOJCR-921] - Workspace.copy(srcWS, srcAbsPath, destAbsPath) can no= t copy root child to another workspace root child + * [EXOJCR-922] - MapResourceBundle.resolveDependencies() throw java.la= ng.StackOverflowError + * [EXOJCR-924] - Unable to coerce 'Event' into a LONG: java.lang.Numbe= rFormatException: For input string: "Event" + * [EXOJCR-933] - Determine property type from nodetype definition in D= ocumentViewImport for version history. + * [EXOJCR-936] - Avoid converting binary value to String in tests + * [EXOJCR-954] - Can't get property of a node if it has a child node w= ith the same name with the property + * [EXOJCR-964] - User logged-out and cannot login after some inactivity + +Feature Request + * [EXOJCR-749] - Make eXo JCR rely on Apache Tika + * [EXOJCR-771] - Jetty Support + * [EXOJCR-776] - Implement the method toString for the main classes of= JCR for debugging purpose + * [EXOJCR-842] - Allow to disable a given PortalContainer + * [EXOJCR-880] - Determine property is multi or single value from node= type definition in import. + * [EXOJCR-886] - Update the document handler to manage MS Office 2007 = meta data extraction (docx, ...) + * [EXOJCR-934] - Decouple event name from listener name in ListenerSer= vice. + * [EXOJCR-935] - Add "dav:isreadonly" property management + * [EXOJCR-942] - Reply on JBC regions to avoid having too many JBC ins= tances + * [EXOJCR-943] - Make JBC implementation of eXo Cache replies on JBC r= egions to avoid having too many JBC instances + * [EXOJCR-950] - Prevent the JobSchedulerServiceImpl to launch jobs th= at rely on non started services in JBoss AS + * [EXOJCR-951] - Make the JobSchedulerServiceImpl support multi portal= containers + +Task + * [EXOJCR-752] - Avoid to load into the memory the full content of a d= ocument while extracting the metadata and the text content + * [EXOJCR-755] - Study the extensibility of Apache Tika + * [EXOJCR-910] - Resynchronize the doc of JCR 1.12 with the trunk + * [EXOJCR-917] - core.packaging.module.js error when in deploy phase + * [EXOJCR-919] - maxVolatileTime should be checked on checkFlush() + * [EXOJCR-927] - Add "application/x-groovy+html" to HTMLDocumentReader= and "application/x-jaxrs+groovy" to TextPlainDocumentReader + * [EXOJCR-957] - Remove organization nodetypes from projects where it = not used + * [EXOJCR-962] - [DOC]Make JBC implementation of eXo Cache replies on = JBC regions to avoid having too many JBC instances + +Sub-task + * [EXOJCR-892] - Remove Fake Chapters + * [EXOJCR-893] - Apply the structure of PLF + * [EXOJCR-940] - Created special method for remove workspace without c= hecking of system workspace + * [EXOJCR-941] - Create special method for remove repository without c= hecking of default-repository = + + +Changes of 1.14.0-Beta01 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-564] - Cannot use the old Hibernate org service in Gate In + * [EXOJCR-570] - AddNamespacePlugin registers namespaces after reposti= ory start + * [EXOJCR-638] - get mixin types through the NodeTypeUtil class + * [EXOJCR-662] - Processing SQLException may cause infinite loop. + * [EXOJCR-667] - Temporary spooled file can be not found on save + * [EXOJCR-698] - URL encoding in SEARCH and PROPFIND responces differs. + * [EXOJCR-699] - DAILY TESTS are going too long + * [EXOJCR-713] - org.exoplatform.services.rest.impl.RequestDispatcher = must return readable messages if resource not found or HTTP method is not a= llowed for resource + * [EXOJCR-754] - JDBC Statements left open : Use of Datasources instea= d of DBCP and C3P0 pools + * [EXOJCR-763] - Reordering samename sibling nodes does not update pat= h of child nodes + * [EXOJCR-766] - QPath isDescendantOf returns wrong result on samename= siblings + * [EXOJCR-768] - A session should not be useable after a logout + * [EXOJCR-774] - If-Modified-Since doesn't seem to be well managed in = the Wevdav Component + * [EXOJCR-781] - LockManagerImpl should call InitialContextInitializer= .recall + * [EXOJCR-784] - DOC : wrong examples in profiles section + * [EXOJCR-785] - Parameter maxVolatileTime is not working correctly + * [EXOJCR-788] - Inconsistency issue cans occur on default portal cont= ainer parameters + * [EXOJCR-794] - Field "CONFIG" in the table "JCR_CONFIG" is too short= on MySql + * [EXOJCR-795] - Unexpected behavior of the method PortalContainer.isS= copeValid() + * [EXOJCR-796] - Data corruption + * [EXOJCR-804] - "No such file or directory" exception for value stora= ge when using MySQL or Postgres DB in WCM demo 2.0 + * [EXOJCR-805] - Can not search user with keyword that contain special= character + * [EXOJCR-806] - Problems while copying "ftp-ftp" + * [EXOJCR-810] - TestRemoveFromValueStorage failed in configuration wi= thout ValueStorage + * [EXOJCR-812] - InitialContextBinder.bind should be thread-safe + * [EXOJCR-813] - ItemImpl.getParent method must return session pooled = parent + * [EXOJCR-817] - max-buffer-size from configuration should be use to T= ransientValueData in import (docview and sysview) + * [EXOJCR-819] - HTTPBackupAgent doesn't provide information about las= t successfully restored repositories if restore was launched in synchronous= mode + * [EXOJCR-825] - Problems with functional testing - multi, value-stora= ge is turned off + * [EXOJCR-835] - TestMultiDbJDBCConnection and TestSingleDbJDBCConnect= ion must drop also JCR_xCONTAINER table on tearDown + * [EXOJCR-837] - FUNCTIONAL testing jcr.ext - TestBackupManager in err= or + * [EXOJCR-840] - java.util.ConcurrentModificationException on org.exop= latform.services.jcr.ext.hierarchy.impl.NewUserListener.processUserStructure + * [EXOJCR-844] - JCR inside application server is not started due to m= issing component + * [EXOJCR-857] - Exception during PROPFIND request if some property co= ntent "%" and after not hex chracters + * [EXOJCR-859] - Random failed tests during building jcr + = +Feature Request + * [EXOJCR-156] - Disable deleting of the workspace which is set as sys= tem + * [EXOJCR-157] - Disable deleting of the repository which is set as de= fault + * [EXOJCR-190] - Support returning directly Collection for MediaTyp= e.APPLICATION_JSON + * [EXOJCR-230] - Refactore and move in main part of exo.ws.rest.core p= roject class AbstractResourceTest + * [EXOJCR-311] - Make broadcasting of events of ListenerService asynch= ronous + * [EXOJCR-420] - Check if the ItemReferencePool of the SessionDataMana= ger can be implemented with WeakValueHashMap instead of a WeakHashMap + * [EXOJCR-482] - Be able to load a class stored in another groovy file + * [EXOJCR-498] - Provide more details when a JCR query is invalid + * [EXOJCR-517] - filter to authenticate a signed request from gadgets + * [EXOJCR-609] - Allow to keep missing values into the JCR Cache + * [EXOJCR-626] - H2 Database support + * [EXOJCR-634] - Upload of a file with special characters like " ' " i= n filename is not supported by the FTPservice + * [EXOJCR-635] - Avoid unneccesary checks in persistence + * [EXOJCR-745] - Allow cascading imports in configuration files + * [EXOJCR-750] - JCR path management improvement + * [EXOJCR-782] - No longer force extension developers to redefine the = whole dependencies list + * [EXOJCR-786] - The method that registers plugins should be overloada= ble + * [EXOJCR-793] - Make possible to configure permissions for Groovy RES= T services when the SecurityManager is instaled + * [EXOJCR-797] - Unable see error message from ProxyService if remote = server does not provide Content-Type header. + * [EXOJCR-822] - Make implementation of MethodInvokerFilter which can = disable access to methods of RESTful services to any users except services = deployer + * [EXOJCR-823] - Make possible to provide optional attributes for REST= ful resources + * [EXOJCR-824] - Make expiring mechanism for temporary "under developm= ent" services + * [EXOJCR-864] - Add method GroovyScript2RestLoader.load with the same= signature as it is in 1.12.x + = +Patch + * [EXOJCR-772] - SharedStateLoginModule does swallow an exception duri= ng login phase + = +Task + * [EXOJCR-392] - Siblings reordering may update not all the child-item= s in cache + * [EXOJCR-542] - Improve error message concerning a missing "Query Man= ager Factory" + * [EXOJCR-618] - BufferedJBossCache Optimisation: research how to use = internal ChangeList as non-persistent cache inside opened transaction + * [EXOJCR-689] - Standartize eXo JCR docnmentation projects descriptio= n. = + * [EXOJCR-691] - Fix your missing dependencies + * [EXOJCR-746] - Remove CommunicationService + * [EXOJCR-756] - Make JCR core work properly when the Security Manager= is installed + * [EXOJCR-764] - Fix the security issue about the JCR System Session + * [EXOJCR-767] - Prevent unauthorized access to the method Conversatio= nState.setCurrent(ConverstionState state) + * [EXOJCR-770] - Prevent modification of user's identity without requi= red permissions + * [EXOJCR-775] - Rework RESTRegistryService for using current reposito= ry only. Rewove repository name from PathParam. + * [EXOJCR-777] - Prevent modifications of ConversationState's attribut= es without required permissions + * [EXOJCR-778] - Protect the main methods of a repository since they a= re critical + * [EXOJCR-779] - Provide current ConversationState for anonymous user = also. + * [EXOJCR-780] - Move org.exoplatform.services.jcr.access.SystemIdenti= ty class from exo.jcr.core exo.kernel or exo.core + * [EXOJCR-783] - Use cached table for HSLQLDB tables + * [EXOJCR-791] - SwapFile and SpoolFile tests + * [EXOJCR-807] - Port the article Groovy Scripts as REST Services + * [EXOJCR-808] - For Sybase DB "check-sns-new-connection" should be se= t to false by default + * [EXOJCR-809] - OrganizationService's tests should not be excluded + * [EXOJCR-815] - Document how to use AS Managed DataSource + * [EXOJCR-845] - Remove exo:audit* nodetypes from configuration. + = +Sub-task + * [EXOJCR-627] - Investigate use of in-memory databases for in-memory = JCR + * [EXOJCR-742] - Port Workspace Data Container articles into docbook + * [EXOJCR-757] - Training on Java Security + * [EXOJCR-758] - Implement it + * [EXOJCR-759] - Test it + * [EXOJCR-790] - OS depended paths in policy files for tests. + * [EXOJCR-798] - Cluster testing security support + * [EXOJCR-799] - MySQL & PostgreSQL tesing problem with security enabl= ed + * [EXOJCR-851] - Searching users with special characters in name does = not work properly + * [EXOJCR-862] - Check Property.getStream() method + * [EXOJCR-863] - Check VersionHistory.removeVersionLabel() & VersionHi= story.addVersionLabel() + + +Features of eXoJCR 1.12 comparing to 1.11 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +- Repository clustering based on JBossCache and JBoss Transactions. = +- Lazy-load option for child nodes and properties read, improved items dat= aflow for read/write operations +- Alternative data container optimized for read operations (consuming less= database queries) +- Database dialect can be autodetected (if not pointed in the configuratio= n) +- Support for Values large of 2GiB +- Portal container configuration improvements (default definitions, link a= nd externaly loaded parameters) = +- Concurrency improvements for Session registry and Values stroage +- Concurrency improvements for XA transactions support (Repository login a= nd logout faster now) +- Improved serach based on Lucene 2.4 +- Support of MySQL/InnoDB database for multi-language content +- Standalone container can use configuration stored in JBossAS server conf= iguration directory by default = +- WebDAV server update-policy can be configured to different versioning be= haviour +- Lot of WebDAV server bugfixes +- HTTP (RESTful) Backup agent with concole client +- HTTP (RESTful) Repository management service +- Support of Java6 and Java5 runtime and development environment + +Since version of 1.12 eXoJCR available under LGPL license (version 2.1). + +eXoJCR 1.12 tested in on the databases: + MySQL 5.1 MYSQL Connector/J 5.1.8 + Oracle DB 10g (10.2.0.1) Oracle 10g (10.2.0.1) + PostgresSQL 8.3.7 JDBC4 Driver, Version 8.3-605 + DB2 9,7 IBM Data Server Driver for JDBC and SQLJ (JCC Driver) Version: 9= .1 (fixpack 3a) + MS SQL Server 2005 SP3 JDBC Driver 2.0 + MS SQL Server 2008 SP1 JDBC Driver 2.0 = + Sybase 15.0.2 JConnect v6.0.5 (Build 26564 / 11 Jun 2009) = + + +Release includes: +* eXo Kernel 2.3.0-CR3 +* eXo Core 2.4.0-CR3 +* eXo WS 2.2.0-CR3 +* eXo JCR 1.14.0-CR3 + +Find all 1.14 task on JIRA: +https://jira.jboss.org/jira/browse/EXOJCR + +1.14.0-CR3 tasks: +https://issues.jboss.org/browse/EXOJCR/fixforversion/12315932 + +JCR Samples +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +1. Start Up (Tomcat) + Tomcat 6 bundled can be started by executing the following commands: + + $CATALINA_HOME\bin\eXo.bat run (Windows) + + $CATALINA_HOME/bin/eXo.sh run (Unix) + +2. After startup, the sample applications will be available by visiting: + + http://localhost:8080/browser - Simple JCR browser + Browse the JCR repository that was started with Tomcat + http://localhost:8080/fckeditor - FCK editor sample + Edits the sample node using FCKEditor and browse it JCR browser + http://localhost:8080/rest/jcr/repository/production - WebDAV service, + Open in Microsoft Explorer, File-Open-OpenAsWebFolder with url htt= p://localhost:8080/rest/jcr/repository/production + Add/read/remove files there and browse it in the JCR browser or FT= P. + User name/password: root/exo + ftp://localhost:2121 - FTP server + Open the repository in FTP client and browse the JCR repository st= arted with Tomcat as FTP content, + add/read/remove files there and browse it in the JCR browser or We= bDAV. + +EAR deploy +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +eXo JCR was tested under JBoss-5.1.0.GA application server + +JBoss-5.1.0.GA + + 1. Configuration + + * Copy jcr.ear and jcr-ds.xml into $jboss_home/server/default/deploy + * Copy run.conf and run.conf.bato $jboss_home/bin + * Create $jboss_home/server/default/conf/exo-conf folder if it doesn't= exist. + * Put exo-configuration.xml into $jboss_home/server/default/conf/exo-c= onf/exo-configuration.xml + * Configure JAAS by inserting XML fragment shown below into $jboss_hom= e/server/default/conf/login-config.xml + +--------- + + + + + +--------- + + 2. Start Up + + Execute + * bin/run.bat on Windows + or + * bin/run.sh on Unix + +Resources +=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Company site http://www.exoplatform.com + Documentation wiki http://wiki.exoplatform.org + Community JIRA https://jira.jboss.org/jira/browse/EXOJCR, http://ji= ra.exoplatform.org + Comminity site http://www.exoplatform.org + Community forum http://www.exoplatform.com/portal/public/en/forum = = + JavaDoc site http://docs.exoplatform.org + = \ No newline at end of file --===============7270435066414380796==-- From do-not-reply at jboss.org Wed Jun 15 03:37:26 2011 Content-Type: multipart/mixed; boundary="===============7612297375825410392==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4538 - jcr/trunk. Date: Wed, 15 Jun 2011 03:37:26 -0400 Message-ID: <201106150737.p5F7bQF9004102@svn01.web.mwc.hst.phx2.redhat.com> --===============7612297375825410392== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-15 03:37:25 -0400 (Wed, 15 Jun 2011) New Revision: 4538 Modified: jcr/trunk/pom.xml Log: EXOJCR-1283: added 'release' profile to project's pom.xml Modified: jcr/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/pom.xml 2011-06-14 14:44:06 UTC (rev 4537) +++ jcr/trunk/pom.xml 2011-06-15 07:37:25 UTC (rev 4538) @@ -476,4 +476,39 @@ exo.jcr.docs packaging/module + + + release + + + + maven-assembly-plugin + + + org.apache.apache.resources + apache-source-release-assembly-descriptor + 1.0.2 + + + + + source-release-assembly + package + + single + + + true + + source-release + + gnu + + + + + + + + --===============7612297375825410392==-- From do-not-reply at jboss.org Wed Jun 15 03:45:56 2011 Content-Type: multipart/mixed; boundary="===============6535212267051743387==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4539 - kernel/trunk. Date: Wed, 15 Jun 2011 03:45:56 -0400 Message-ID: <201106150745.p5F7juXD005154@svn01.web.mwc.hst.phx2.redhat.com> --===============6535212267051743387== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-15 03:45:55 -0400 (Wed, 15 Jun 2011) New Revision: 4539 Modified: kernel/trunk/pom.xml Log: EXOJCR-1283: added 'release' profile to project's pom.xml Modified: kernel/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/pom.xml 2011-06-15 07:37:25 UTC (rev 4538) +++ kernel/trunk/pom.xml 2011-06-15 07:45:55 UTC (rev 4539) @@ -235,4 +235,40 @@ = + + + release + + + + maven-assembly-plugin + + + org.apache.apache.resources + apache-source-release-assembly-descrip= tor + 1.0.2 + + + + + source-release-assembly + package + + single + + + true + + source-release + + gnu + + + + + + + + + --===============6535212267051743387==-- From do-not-reply at jboss.org Wed Jun 15 03:48:46 2011 Content-Type: multipart/mixed; boundary="===============7474917187927766452==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4540 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: dataflow and 1 other directories. Date: Wed, 15 Jun 2011 03:48:46 -0400 Message-ID: <201106150748.p5F7mkol005180@svn01.web.mwc.hst.phx2.redhat.com> --===============7474917187927766452== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-15 03:48:46 -0400 (Wed, 15 Jun 2011) New Revision: 4540 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/version/ItemDataRestoreVisitor.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/dataflow/ItemDataCloneVisitor.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/xml/importing/BaseXmlImporter.java Log: EXOJCR-1376: Add UUID into the exception message content of ItemExistsExcep= tion Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/version/ItemDataRestoreVisitor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/version/ItemDataRestoreVisitor.java 2011-06-15 07:45:55 UTC = (rev 4539) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/version/ItemDataRestoreVisitor.java 2011-06-15 07:48:46 UTC = (rev 4540) @@ -43,6 +43,7 @@ import org.exoplatform.services.jcr.impl.dataflow.TransientValueData; import org.exoplatform.services.jcr.impl.dataflow.session.SessionChangesLo= g; import org.exoplatform.services.jcr.impl.dataflow.version.VersionHistoryDa= taHelper; +import org.exoplatform.services.jcr.impl.storage.JCRItemExistsException; import org.exoplatform.services.jcr.util.IdGenerator; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; @@ -644,10 +645,10 @@ // instance of C becomes the child of the restored N. if (!removeExisting) { - throw new ItemExistsException("Item with the same UUID " + = versionableIdentifier + throw new JCRItemExistsException("Item with the same UUID "= + versionableIdentifier + " as versionable child node " + userSession.getLocationFactory().createJCRPath(version= able.getQPath()).getAsString(false) - + " already exists and removeExisting=3Dfalse"); + + " already exists and removeExisting=3Dfalse", versiona= bleIdentifier); } // else - leaving existed unchanged } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/dataflow/ItemDataCloneVisitor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/ItemDataCloneVisitor.java 2011-06-15 07:45:55 UTC (rev 4= 539) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/dataflow/ItemDataCloneVisitor.java 2011-06-15 07:48:46 UTC (rev 4= 540) @@ -29,12 +29,12 @@ import org.exoplatform.services.jcr.impl.core.ItemImpl; import org.exoplatform.services.jcr.impl.core.SessionDataManager; import org.exoplatform.services.jcr.impl.dataflow.session.SessionChangesLo= g; +import org.exoplatform.services.jcr.impl.storage.JCRItemExistsException; = import java.util.ArrayList; import java.util.Collections; import java.util.List; = -import javax.jcr.ItemExistsException; import javax.jcr.RepositoryException; = /** @@ -180,7 +180,8 @@ } else { - throw new ItemExistsException("Item exists id =3D " + ident= ifier + " name " + relItem.getName()); + throw new JCRItemExistsException("Item exists id =3D " + id= entifier + " name " + relItem.getName(), + identifier); } } keepIdentifiers =3D true; Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/xml/importing/BaseXmlImporter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/xml/importing/BaseXmlImporter.java 2011-06-15 07:45:55 UTC (rev 4= 539) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/xml/importing/BaseXmlImporter.java 2011-06-15 07:48:46 UTC (rev 4= 540) @@ -42,6 +42,7 @@ import org.exoplatform.services.jcr.impl.core.value.ValueFactoryImpl; import org.exoplatform.services.jcr.impl.dataflow.ItemDataRemoveVisitor; import org.exoplatform.services.jcr.impl.dataflow.version.VersionHistoryDa= taHelper; +import org.exoplatform.services.jcr.impl.storage.JCRItemExistsException; import org.exoplatform.services.jcr.impl.xml.VersionHistoryRemover; import org.exoplatform.services.jcr.impl.xml.importing.dataflow.ImportItem= Data; import org.exoplatform.services.jcr.impl.xml.importing.dataflow.ImportNode= Data; @@ -595,8 +596,8 @@ // If an incoming referenceable node has the same UUI= D as a node // already existing in the workspace then a SAXExcept= ion is thrown // by the ContentHandler during deserialization. - throw new ItemExistsException("An incoming referencea= ble node has the same " - + "UUID as a node already existing in the workspac= e!"); + throw new JCRItemExistsException("An incoming referen= ceable node has the same " + + "UUID as a node already existing in the workspac= e! UUID:" + identifier, identifier); default : } } --===============7474917187927766452==-- From do-not-reply at jboss.org Wed Jun 15 03:53:23 2011 Content-Type: multipart/mixed; boundary="===============8550128955290726401==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4541 - core/trunk. Date: Wed, 15 Jun 2011 03:53:23 -0400 Message-ID: <201106150753.p5F7rN0q005651@svn01.web.mwc.hst.phx2.redhat.com> --===============8550128955290726401== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-15 03:53:22 -0400 (Wed, 15 Jun 2011) New Revision: 4541 Modified: core/trunk/pom.xml Log: EXOJCR-1283: added 'release' profile to project's pom.xml Modified: core/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/pom.xml 2011-06-15 07:48:46 UTC (rev 4540) +++ core/trunk/pom.xml 2011-06-15 07:53:22 UTC (rev 4541) @@ -366,4 +366,41 @@ test + + + + release + + + + maven-assembly-plugin + + + org.apache.apache.resources + apache-source-release-assembly-descrip= tor + 1.0.2 + + + + + source-release-assembly + package + + single + + + true + + source-release + + gnu + + + + + + + + + --===============8550128955290726401==-- From do-not-reply at jboss.org Wed Jun 15 04:04:04 2011 Content-Type: multipart/mixed; boundary="===============8639420122025957069==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4542 - ws/trunk. Date: Wed, 15 Jun 2011 04:04:04 -0400 Message-ID: <201106150804.p5F844t5012592@svn01.web.mwc.hst.phx2.redhat.com> --===============8639420122025957069== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-15 04:04:04 -0400 (Wed, 15 Jun 2011) New Revision: 4542 Modified: ws/trunk/pom.xml Log: EXOJCR-1283: added 'release' profile to project's pom.xml Modified: ws/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ws/trunk/pom.xml 2011-06-15 07:53:22 UTC (rev 4541) +++ ws/trunk/pom.xml 2011-06-15 08:04:04 UTC (rev 4542) @@ -198,4 +198,41 @@ test + + + + release + + + + maven-assembly-plugin + + + org.apache.apache.resources + apache-source-release-assembly-descrip= tor + 1.0.2 + + + + + source-release-assembly + package + + single + + + true + + source-release + + gnu + + + + + + + + + --===============8639420122025957069==-- From do-not-reply at jboss.org Wed Jun 15 04:32:10 2011 Content-Type: multipart/mixed; boundary="===============6990414518731191956==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4543 - jcr/tags/1.12.9-GA. Date: Wed, 15 Jun 2011 04:32:09 -0400 Message-ID: <201106150832.p5F8W9wd015781@svn01.web.mwc.hst.phx2.redhat.com> --===============6990414518731191956== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-15 04:32:09 -0400 (Wed, 15 Jun 2011) New Revision: 4543 Added: jcr/tags/1.12.9-GA/readme.txt Log: JCR-1642: add release notes Added: jcr/tags/1.12.9-GA/readme.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/tags/1.12.9-GA/readme.txt (rev 0) +++ jcr/tags/1.12.9-GA/readme.txt 2011-06-15 08:32:09 UTC (rev 4543) @@ -0,0 +1,555 @@ +JCR 1.12.9-GA release notes +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D + +eXoPlatform Java Content Repository (JSR-170) implementation and Extension= services with clustering support. + +Changes of 1.12.9-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [JCR-1501] - Problems with dispalying non-latin names (ar,fr,ua,ru,v= n) after restore in backup + * [JCR-1545] - Can't open a document with a name containing non-latin = characters (ru,ua,fr,vn,ar) + * [JCR-1577] - Check in DefaultChangesFilter if we use the right ids i= n case of a IOException while updating the index of the parentSearchManager + * [JCR-1593] - Incorrect parsing destination header in MOVE and COPY w= ebdav methods + * [JCR-1594] - Problem of renaming folders in WebDav + * [JCR-1597] - Problem of webdav on windows 7 + * [JCR-1602] - File with non-latin name can't be open: Can't open remo= te file.ErrorCode:500 + * [JCR-1604] - JCR addNode within a transaction causes javax.transacti= on.HeuristicMixedException in the first access to the node + * [JCR-1605] - Can't access file containing special characters in file= name via Webdav = + * [JCR-1614] - system view exporting has a problem when the exported n= ode contains the properties that are multiple value type but have only one = value. + * [JCR-1615] - Still check lock on parent while isDeep =3D false + * [JCR-1616] - Error when get node definition for node + * [JCR-1618] - javax.jcr.InvalidItemStateException: Node can't be save= d No same-name sibling exists with index 2 + * [JCR-1622] - Thread not stopped when the application is stopped + * [JCR-1629] - No eviction policy is allowed in case of the cache for = indexing + * [JCR-1631] - Violation de contrainte unique (SYSTEM.JCR_IDX_SITEM_PA= RENT) error during concurrent ADD NODE transaction = + * [COR-236] - Case sensitivityProblem with Oracle Virtual Directory an= d SQL Server + * [WS-265] - Stop the StandaloneContainer on context destroyed + +Improvement + * [JCR-1543] - Dialog window "About" has incorrect version of jcr in w= ebdav ms office plugin + * [JCR-1571] - Query with path is too slow in case the db is big + * [JCR-1572] - Improve the re-indexing mechanism to take advantage of = multi-cores + * [JCR-1579] - Query with path is too slow when we have a node with a = lot of subnodes + * [COR-216] - User profiles initialization listeners are not triggered= for LDAP users (LDAP Users can not access to any File Explorer drive) + * [COR-235] - Return only exptected attributes in SimpleLdapUserListAc= cess + +Task + * [JCR-1563] - Use QueryParam to parameter "backup-set-path" in method= s of HTTPBackupAgent + * [JCR-1586] - Configure time-outs for tests + * [JCR-1611] - Backporting EXOJCR-1234 to JCR 1.12.x + * [JCR-1613] - Backporting EXOJCR-1305 to JCR 1.12.x + * [JCR-1632] - Cleanup build + * [COR-228] - Make PdfDocumentReader.getProperties() using PdfBox inst= ead iText + * [WS-266] - Do not generate files in src directory of a project + +Changes of 1.12.8-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Bug + * [JCR-1560] - BackupManager restore : Temporary files not deleted + * [JCR-1562] - Check problem with compatibility of incremental backup = for JCR 1.12.x to JCR 1.14.x. + * [JCR-1581] - NFS stale handle + * [JCR-1584] - ConstraintViolationException when Importing Version his= tory of a nt:folder node having a nt:file child node + +Documentation + * [JCR-1561] - Document Repository or Workspace initialization from ba= ckup [apply patch] + * [JCR-1580] - Fix webdav docbook section since webdav bug with Mac OS= Finder is fixed + * [JCR-1582] - Improve JCR Doc + +Improvement + * [JCR-1496] - remove some unncessary jars + * [JCR-1538] - Webdav: files icons is the same as folder icons + * [JCR-1573] - Reduce the time spent in ParentNodeEvictionActionPolicy + * [KER-168] - MimeTypeResolver does not work well with IE7 + +Task + * [JCR-1578] - Check in IndexerSingletonStoreCacheLoader if the childr= en should not be removed + * [JCR-1583] - Upgrade to exo-parent 8.1 + + +Changes of 1.12.7-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [JCR-1483] - When a folder is cut server->client, folder on server d= oesn't remove. + * [JCR-1508] - Property not found dc:title during testing RandomReadNt= FileWithMetadataTest + * [JCR-1529] - Node restore result depends on cache eviction = + * [JCR-1541] - SessionDataManager.listChildPropertiesData(NodeData par= ent) must not return ValueDatas + * [JCR-1542] - XML elements are incorrectly parsed while using Woodsto= x XML processor + * [JCR-1544] - Exception error during edit content + * [JCR-1549] - Problems in JCR content after being imported + * [JCR-1552] - Corrupted data if the server is stopped while document = is locked + * [JCR-1556] - The If-Modified-Since property in the HTTP header doesn= 't exist + * [JCR-1557] - If Groovy REST service deploy fails on JCR startup othe= r workable services may not be deployed + * [JCR-1558] - FileCleaner is null in SysViewWorkspaceInitializer and = BackupWorkapceInitializer + * [JCR-1564] - FORM authentication doesn't work with jcrbackup tool an= d Platform + * [JCR-1565] - Repository restore fails using exobackup tool with Comp= onent unregister error + * [JCR-1566] - Restored version nodes get id from jcr:uuid property in= stead fetch generated id + * [JCR-1574] - IncrementalBackupJob should be thread safe + * [WS-261] - Platform Packaging fails due to mistake in WS packaging J= S file + +Documentation + * [JCR-1559] - Document databases supported by eXo JCR + +Improvement + * [JCR-1054] - Make Backup restore easier + * [JCR-1499] - Backup console binary distribution + * [JCR-1547] - Avoid to get an item from the DB if the parent node is = new + * [JCR-1550] - Changes log traversing is under optimized + * [JCR-1567] - Code review of ACL managment in case of copy/moving nod= es + * [JCR-1570] - DB clean on MySQL should not use iterating over all db + * [COR-217] - remove some unncessary jars + * [COR-218] - Support more MIME types + * [WS-258] - remove some unncessary jars + +Task + * [JCR-1463] - Lock operations does not checks any permission. + * [JCR-1502] - JCR backupset should be fully independent + * [JCR-1519] - Update XPath query ordering chapter in jcr documents + * [JCR-1568] - Check portability and compatibility backup in JCR 1.14.= x and 1.12.x + + +Changes of 1.12.6-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [JCR-1497] - Backup console throws NPE if backup agent isn't deploye= d on server + * [JCR-1522] - Not correct MBean components registration when PortalCo= ntainer contains more then one repository + * [JCR-1527] - Create Group personnal folder should be after Group cre= ation + * [JCR-1530] - Wrong Content-Type header for files over a certain size + * [JCR-1532] - MySQL-UTF8 dialect default collation can be case-insens= itive - need case-sensitive set explicitly + * [JCR-1533] - Remove permission on child isn't used + * [JCR-1534] - Problem with uploading files via MacOS client + * [JCR-1539] - Webdav doesn't work on JBoss + +Improvement + * [JCR-1506] - Reduce contention on read in NodeTypeDataHierarchyHolde= r if possible + * [JCR-1523] - Avoid iterating over a List thanks to its iterator when= it is possible [Part #2] + +Task + * [JCR-1521] - Adopt webdav-clients to eXo JCR 1.12.6-GA + * [JCR-1524] - Move JCR framework commands list configuration to it ri= ght place + * [JCR-1525] - Publish the reference guide in docbook format + + +Changes of 1.12.6-CR02 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [JCR-1468] - Index already present error during cluster start + * [JCR-1504] - Indexer doesn't fully release resources on stop + * [JCR-1509] - Access Denied in jcr:content with anonim__ permission + * [JCR-1511] - WEBDav view in a webbrowser has hardcoded image links + * [JCR-1513] - Problems when start backup-console + +Improvement + * [JCR-1505] - Avoid iterating over a List thanks to its iterator when= it is possible + +Task + * [JCR-1488] - Limit the total amount of WorkerThreads: apply patch + +Changes of 1.12.6-CR01 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [JCR-1470] - refresh breaks webdav published files + * [JCR-1482] - Corrupted Data if the server is stopped while somebobdy= is editing a document in ECMS + * [JCR-1485] - Unknown error and strange behavior when mary edits a we= bcontent + * [JCR-1490] - Some Unit Tests on DB2 related to the CAS plugin fail + * [JCR-1494] - FTP server doesn't show list of workspaces after reposi= tory restoring + +Documentation + * [JCR-1433] - jcr backup/restore + +Improvement + * [KER-164] - Allow to use variables to define the realm, the rest con= text and the portal container name of a PortalContainerDefinition + * [WS-256] - Allow to use a String as entity for a JSON response + * [JCR-1459] - Whole Repository backup support in Backup Console tool + * [JCR-1469] - JCR clustering consumes lot of native threads + * [JCR-1491] - The result of the method getReferencesData is never sto= red into the cache + +Task + * [JCR-1489] - eXo JCR doesn't work with Oracle 11g R2 RAC + * [JCR-1495] - Bind slf4j-log4j and log4j dependencies onto the test p= hase of the various modules of JCR [part #2] + +Sub-task + * [JCR-1481] - Adding support form authentication in backup console + +Changes of 1.12.5-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [KER-162] - Simple skin from examples folder doesn't appear at list + * [KER-163] - CachingContainer returns unregistered components + * [COR-213] - User logged-out and cannot login after some inactivity + * [WS-254] - Add org.exoplatform.services.rest.ext.method.filter.Metho= dAccessFilter in container configuration by default + * [JCR-1438] - Problem with JCR versionning + * [JCR-1449] - Can't get property of a node if it has a child node wit= h the same name with the property + * [JCR-1450] - JCROrganizationService contains nodetype with same name= as in CS + * [JCR-1453] - Missed nodetypes in cluster testing configuration + * [JCR-1462] - Problems during testing of backup on jcr 1.12.5-GA-SNAP= SHOT + * [JCR-1466] - RepositoryException: URI is not hierarchical on remove = workspace via backup console + * [JCR-1474] - NPE when try to import data via WorkspaceContentImporter + +Improvement + * [KER-160] - Prevent the JobSchedulerServiceImpl to launch jobs that = rely on non started services in JBoss AS + * [KER-161] - Make the JobSchedulerServiceImpl support multi portal co= ntainers + +Task + * [JCR-1455] - Doc's title should be rename from eXoJCR Reference Manu= al to eXo JCR Developer Guide + * [JCR-1461] - Remove timestamp from names of jar-files in application= bundles + * [JCR-1467] - Cannot use webdav service with a version of jcr:content + * [JCR-1471] - Updating eXo JCR version in ra.xml automatically + * [JCR-1472] - Adopt Backup client article + * [JCR-1473] - merge performance improvements + +Changes of 1.12.4-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-688] - Some entries in the eXo JCR cache are not evicted pro= perly + * [EXOJCR-843] - Exceptions after importing file with version history + * [EXOJCR-849] - "Permission denied" on client side, when trying to mo= ve file(s) to another workspace through FTP + * [EXOJCR-856] - Problems while recopying same files via webdav + * [EXOJCR-865] - Data corrupt after restore a node which has been impo= rted with version history + * [EXOJCR-878] - WebDAV doesn't work with nt:file + * [EXOJCR-879] - TestCaching.testNotModifiedSince failed in same cases + * [EXOJCR-888] - The problems with restore version node + * [EXOJCR-890] - JSON framework don't work with beans created in groovy + * [EXOJCR-891] - Snaphosts IDs make the applications build improperly + * [EXOJCR-908] - Used wrong delimiter during parsing permission value + * [EXOJCR-909] - In LDAPService, InitialContext is not safely closed i= n authenticate method + * [EXOJCR-912] - Unable to convert the JCR documentation to pdf + * [EXOJCR-916] - Duplicate instantiation of some services + * [EXOJCR-921] - Workspace.copy(srcWS, srcAbsPath, destAbsPath) can no= t copy root child to another workspace root child + * [EXOJCR-924] - Unable to coerce 'Event' into a LONG: java.lang.Numbe= rFormatException: For input string: "Event" + * [EXOJCR-933] - Determine property type from nodetype definition in D= ocumentViewImport for version history. + * [EXOJCR-936] - Avoid converting binary value to String in tests + +Feature Request + * [EXOJCR-842] - Allow to disable a given PortalContainer + * [EXOJCR-880] - Determine property is multi or single value from node= type definition in import. + * [EXOJCR-886] - Update the document handler to manage MS Office 2007 = meta data extraction (docx, ...) + * [EXOJCR-934] - Decouple event name from listener name in ListenerSer= vice. + * [EXOJCR-935] - Add "dav:isreadonly" property management + +Task + * [EXOJCR-896] - Port Manageability article into docbook + * [EXOJCR-905] - Merge the reference guide and the user guide in one s= ingle guide + * [EXOJCR-913] - Abuse of INFO level logging for DocNumberCache.get() + * [EXOJCR-914] - excessive INFO logging by IndexMerger.run() + * [EXOJCR-915] - excessive INFO logging by IndexMerger.run() + * [EXOJCR-917] - core.packaging.module.js error when in deploy phase + * [EXOJCR-919] - maxVolatileTime should be checked on checkFlush() + * [EXOJCR-927] - Add "application/x-groovy+html" to HTMLDocumentReader= and "application/x-jaxrs+groovy" to TextPlainDocumentReader + * [EXOJCR-892] - Remove Fake Chapters + +Changes of 1.12.3-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + = +Bug + * [EXOJCR-754] - JDBC Statements left open : Use of Datasources instea= d of DBCP and C3P0 pools + * [EXOJCR-763] - Reordering samename sibling nodes does not update pat= h of child nodes + * [EXOJCR-766] - QPath isDescendantOf returns wrong result on samename= siblings + * [EXOJCR-774] - If-Modified-Since doesn't seem to be well managed in = the Wevdav + * [EXOJCR-781] - LockManagerImpl should call InitialContextInitializer= .recall + * [EXOJCR-784] - DOC : wrong examples in profiles section + * [EXOJCR-785] - Parameter maxVolatileTime is not working correctly + * [EXOJCR-788] - Inconsistency issue cans occur on default portal cont= ainer parameters + * [EXOJCR-795] - Unexpected behavior of the method PortalContainer.isS= copeValid() + * [EXOJCR-796] - Data corruption + * [EXOJCR-804] - "No such file or directory" exception for value stora= ge when using MySQL or Postgres DB in WCM demo 2.0 + * [EXOJCR-806] - Problems while copying "ftp-ftp" + * [EXOJCR-810] - TestRemoveFromValueStorage failed in configuration wi= thout ValueStorage + * [EXOJCR-813] - ItemImpl.getParent method must return session pooled = parent + * [EXOJCR-817] - max-buffer-size from configuration should be use to T= ransientValueData in import (docview and sysview) + * [EXOJCR-835] - TestMultiDbJDBCConnection and TestSingleDbJDBCConnect= ion must drop also JCR_xCONTAINER table on tearDown + * [EXOJCR-857] - Exception during PROPFIND request if some property co= ntent "%" and after not hex chracters + * [EXOJCR-865] - Data corrupt after restore a node which has been impo= rted with version history + * [EXOJCR-882] - TestCaching fails on Windows XP SP 2 with Russian loc= ale + = +Feature Request + * [EXOJCR-230] - Refactore and move in main part of exo.ws.rest.core p= roject class AbstractResourceTest + * [EXOJCR-782] - No longer force extension developers to redefine the = whole dependencies list + * [EXOJCR-783] - Use cached table for HSLQLDB tables + * [EXOJCR-797] - Unable see error message from ProxyService if remote = server does not provide Content-Type header. + = +Task + * [EXOJCR-392] - Siblings reordering may update not all the child-item= s in cache + * [EXOJCR-751] - Prepare maintenance branch for jcr 1.12 + * [EXOJCR-808] - For Sybase DB "check-sns-new-connection" should be se= t to false by default + * [EXOJCR-809] - OrganizationService's tests should not be excluded + * [EXOJCR-815] - Document how to use AS Managed DataSource + * [EXOJCR-867] - Port documentation for Kernel from wiki to docbook + * [EXOJCR-868] - Port documentation for Core from wiki to docbook + * [EXOJCR-869] - Port documentation for JCR from wiki to docbook + * [EXOJCR-870] - Cleanup WS documentation + * [EXOJCR-871] - Document RestServicesList service + * [EXOJCR-881] - Port functionality of EXOJCR-482 in jcr-1.12.x + * [EXOJCR-884] - Rename JCR documentation artifacts to exo.jcr.* form + +Changes of 1.12.2-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-497] - JCR serialization test wrong logic with CASable stora= ge + * [EXOJCR-730] - Restored repository not accessible after restart Tomc= at + * [EXOJCR-731] - Deploy error (500 - Unexpected error. null) of REST S= ervice with annotation inheritance. + * [EXOJCR-735] - JCR repositories created in runtime is not available = after eXo Social restart + * [EXOJCR-736] - Problems with anonymous entrance on FTP and NPE + * [EXOJCR-743] - InitialContextBinder bind twice same datasource in so= me case + * [EXOJCR-762] - Check whether the repository with the given name does= n't exists before starting restore from backup + +Feature Request + * [EXOJCR-640] - Migrate to newer version of Apache PDFBox ( and FontB= ox ) if possible; + +Task + * [EXOJCR-596] - Upload eXoJCR documentation on jboss.org + * [EXOJCR-668] - Validate format of the default values of the property= definition during the nodetype registration + * [EXOJCR-738] - Search does not work with source in CDATA tag in XML = document + * [EXOJCR-740] - Constrains ranges are not used in NodeTypeImpl.canSet= Property() validation + * [EXOJCR-741] - Backupconsole build improvements + * [EXOJCR-765] - Use StringBuilder instead of String concatenation in = MSExcelDocumentReader.getContentAsText + * [EXOJCR-681] - Decreasing perfomance while running WebdavReadWriteTe= st tests several times in row + + + +Changes of 1.12.2-CR1 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-175] - Problems with HTTPBackupAgent - Cyrillic symbols aren= 't showing after restore + * [EXOJCR-683] - java.io.IOException: Socket read failed on heavy load= ed WebdavAddBLOBTest benchmark test + * [EXOJCR-697] - SQL search by date doesn't work + * [EXOJCR-698] - URL encoding in SEARCH and PROPFIND responces differs. + * [EXOJCR-700] - Problem in user search with MySql and PostgresDB + * [EXOJCR-704] - JCR testuite hangs on sybase + * [EXOJCR-708] - Problem with full text searching in text files with n= on-latin content. + * [EXOJCR-712] - Concurrent service creation leads to duplicate servic= e instantiation + * [EXOJCR-724] - Bad URL in the error message when a component cannot = be instantiated + * [EXOJCR-726] - Improper conversion of jboss.server.config.url system= property value into File (spaces in filename problem) + * [EXOJCR-729] - The FileNotFoundException in restore workspace over B= ackupWorkspaceinitializer + * [EXOJCR-734] - The binary values was not stored in incremental backu= p. + +Feature Request + * [EXOJCR-705] - Expose listeners in OrganizationService + * [EXOJCR-707] - Check repository management operations on thread safe= ty + * [EXOJCR-718] - Allow to get the complete configuration at runtime + * [EXOJCR-719] - Better debugging of components loaded + * [EXOJCR-721] - Add possibility to use customized GroovyClassLoader i= n org.exoplatform.services.script.groovy.GroovyScriptInstantiator + * [EXOJCR-722] - Make it possible to use other then org.exoplatform.se= rvices.rest.impl.method.DefaultMethodInvoker + +Task + * [EXOJCR-354] - Invoke post read after permissions check + * [EXOJCR-663] - Make possibility extends classes RequestDispatcher an= d ResourceBinder. + * [EXOJCR-691] - Fix your missing dependencies + * [EXOJCR-692] - Find the reason why the method of type Node.hasNodes = is much slower since beta5 + * [EXOJCR-694] - Change JBC dependencies to use 3.2.4.GA + * [EXOJCR-696] - Reduce the concurrency Level in the JBoss Cache Config + * [EXOJCR-711] - Misleading error message appears when the external se= ttings cannot be found + * [EXOJCR-714] - Improve the usability of the ContainerLifecyclePlugin + * [EXOJCR-715] - Ensure that the ExoContainer is fully ThreadSafe + * [EXOJCR-716] - Prevent the JobSchedulerServiceImpl to launch jobs th= at rely on non started services + * [EXOJCR-717] - Add to RestRegistryService method without repositoryN= ame in PathParam, insted use current repository. Methods with repositoryNam= e in PathParam marks as Deprecated. + * [EXOJCR-720] - Make possibility extends classe GroovyScript2RestLoad= er + * [EXOJCR-723] - JCR Statistics: Describe the arguments of the methods= exposed through JMX + * [EXOJCR-728] - implementing RequestLifecycle for REST services + + +Changes of 1.12.1-GA +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-612] - JBoss Cache Implementation for the Cache Service test= TestAbstractExoCache fails + * [EXOJCR-638] - get mixin types through the NodeTypeUtil class + * [EXOJCR-661] - Cannot access to the MBeans through the JConsole in S= tandalone mode + * [EXOJCR-662] - Processing SQLException may cause infinite loop. + * [EXOJCR-664] - org.exoplatform.services.jcr.impl.storage.value.fs.Te= stFileIOChannel.testConcurrentRead fail with MSSQL and DB2 + * [EXOJCR-667] - Temporary spooled file can be not found on save + * [EXOJCR-671] - ConcurrentModificationException in FileCleaner with h= eavy load + * [EXOJCR-672] - An eXoCache clear should be local + * [EXOJCR-687] - Some JCR parameters that are time parameter are retri= eved as number instead of time + +Feature Request + * [EXOJCR-498] - Provide more details when a JCR query is invalid + * [EXOJCR-634] - Upload of a file with special characters like " ' " i= n filename is not supported by the FTPservice + * [EXOJCR-645] - Add ExtHttpHeaders.JAXRS_BODY_PROVIDED header for unh= andled exception in REST services and set error message to body responce + +Task + * [EXOJCR-578] - Use Fisheye in SCM urls used in maven + * [EXOJCR-611] - Provide a way to collect statistics around the JCR AP= I accesses + * [EXOJCR-639] - Find the reason why the methods of type Property.setV= alue are much slower since beta5 + * [EXOJCR-685] - Change JBC dependencies to use 3.2.3.GA + * [EXOJCR-689] - Standartize eXo JCR docnmentation projects descriptio= n. + * [EXOJCR-690] - Apply changes in the eXo JCR project in order to be a= ble to publish artifacts in the nexus of JBoss + * [EXOJCR-545] - Checking performance on SearchNodesByPropertyTest + * [EXOJCR-643] - Improve the performances of the lucene indexing in a = cluster by removing contention for read operations + + +Changes of 1.12.1-CR1 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Bug + * [EXOJCR-256] - There are server errors "500 Internal Server Error:" = during creation repository or workspace by RestRepositoryService + * [EXOJCR-348] - Test problem: TestCleanableFileStreamValueData failed + * [EXOJCR-519] - DAILY TESTS are going too long (avg time=3D5hours) + * [EXOJCR-531] - Problems with Lock operations + * [EXOJCR-546] - TESTING: Performance testing problems. LockUnlockOwnN= odeTest - TPS fell down + * [EXOJCR-548] - problem with import & export node + * [EXOJCR-555] - NPE with cache eviction at startup + * [EXOJCR-557] - Problem while uploading *.pdf to WebDAV server using = Mac OS Finder + * [EXOJCR-558] - Files uploaded by Mac OS finder are displayed with si= ze "0" + * [EXOJCR-559] - Problems with daily performance testing - on PostgreS= QL 8.2.9 + * [EXOJCR-567] - The REST servlet dump errors when the client cut the = socket too early should be only a debug log + * [EXOJCR-572] - Can not create workspace with default configuration o= f lock manager + * [EXOJCR-581] - Listing the directory in TreeFile may return null dur= ing race condition, causing NPE. + * [EXOJCR-584] - User's research is case sensitive + * [EXOJCR-586] - Missed slf4j dependency for jcr applications on tomca= t AS + * [EXOJCR-587] - session.save() throws NPE after node reordering + * [EXOJCR-588] - Tests errors in eXo XML Processing Services on MACOS + * [EXOJCR-591] - Problem with ObservationManager + * [EXOJCR-599] - deadlock during dashboard editing + * [EXOJCR-600] - Concurrency problem (java.util.HashMap.put called fro= m CacheableLockManagerImpl.getSessionLockManager(CacheableLockManagerImpl.j= ava:473)) + * [EXOJCR-601] - gatein sample extension should not be required + * [EXOJCR-602] - StackOverflow on JsonGeneratorImpl + * [EXOJCR-603] - impossible to change user password + * [EXOJCR-607] - Sybase Issue with GateIn + * [EXOJCR-608] - XaSessionImpl as XA resource should be unique per use= r, workspace and repository + * [EXOJCR-614] - Node.getReferences fail in some cases + * [EXOJCR-615] - Need check nodedata to avoid exception in method Node= Impl.isNodeType(String). + * [EXOJCR-619] - Log record forging (Security Issue) + * [EXOJCR-621] - Conflict between symlink feature and Jbosscache + * [EXOJCR-623] - Unable to get a version of document using WebDAV (HTT= P Response 404 returned). + * [EXOJCR-633] - Problems with manual testing - tomcat-server on ftp -= .IndexOutOfBoundsException + +Feature Request + * [EXOJCR-549] - Backup and Restore of a whole Repository + * [EXOJCR-571] - Change PersitedValueDataReader/Writer + * [EXOJCR-573] - Create database and bind DataSource in runtime + * [EXOJCR-582] - DB script modification for oracle11 compatibility + * [EXOJCR-585] - Allow to get statistics on Database Access without us= ing a Profiler + * [EXOJCR-616] - Remove repository container from repositoryContainers= map when repository container start fail. + * [EXOJCR-617] - Map environment parameters for all String fields in R= epository configuration + +Task + * [EXOJCR-150] - Ftp client tests failute + * [EXOJCR-250] - Add human readable message in case Workspace creation= error via HTTPBackupAgent + * [EXOJCR-393] - Create indexer load test + * [EXOJCR-523] - Upgrade to JBoss Cache 3.2.3.GA + * [EXOJCR-550] - Bind slf4j-log4j and log4j dependencies onto the test= phase of the various modules of JCR + * [EXOJCR-552] - Allow to Test eXo JCR 1.12 on EC2 + * [EXOJCR-575] - Remove unused PairChangesLog class + * [EXOJCR-589] - Limit network traffic and thread blocking for the Luc= ene Indexer in a cluster + * [EXOJCR-590] - DO NOT exclude tests from a parent pom + * [EXOJCR-598] - Allow to disable the hints used for the Complex Queri= es on oracle + * [EXOJCR-605] - Normalize logging categories + * [EXOJCR-631] - Find a reason, why functional tests fails under Torna= do.MySQL with "Cannot create PoolableConnectionFactory (Too many connection= s)" message. + * [EXOJCR-632] - svn: File 'jcr.packaging.module/1.12.0-CP01/jcr.packa= ging.module-1.12.0-CP01.js' has inconsistent newlines + + +Features of eXoJCR 1.12 comparing to 1.11 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +- Repository clustering based on JBossCache and JBoss Transactions. = +- Lazy-load option for child nodes and properties read, improved items dat= aflow for read/write operations +- Alternative data container optimized for read operations (consuming less= database queries) +- Database dialect can be autodetected (if not pointed in the configuratio= n) +- Support for Values large of 2GiB +- Portal container configuration improvements (default definitions, link a= nd externaly loaded parameters) = +- Concurrency improvements for Session registry and Values stroage +- Concurrency improvements for XA transactions support (Repository login a= nd logout faster now) +- Improved serach based on Lucene 2.4 +- Support of MySQL/InnoDB database for multi-language content +- Standalone container can use configuration stored in JBossAS server conf= iguration directory by default = +- WebDAV server update-policy can be configured to different versioning be= haviour +- Lot of WebDAV server bugfixes +- HTTP (RESTful) Backup agent with concole client +- HTTP (RESTful) Repository management service +- Support of Java6 and Java5 runtime and development environment + +Since version of 1.12 eXoJCR available under LGPL license (version 2.1). + +eXoJCR 1.12 tested in on the databases: + MySQL 5.1 MYSQL Connector/J 5.1.8 + Oracle DB 10g (10.2.0.1) Oracle 10g (10.2.0.1) + PostgresSQL 8.3.7 JDBC4 Driver, Version 8.3-605 + DB2 9,7 IBM Data Server Driver for JDBC and SQLJ (JCC Driver) Version: 9= .1 (fixpack 3a) + MS SQL Server 2005 SP3 JDBC Driver 2.0 + MS SQL Server 2008 SP1 JDBC Driver 2.0 = + Sybase 15.0.2 JConnect v6.0.5 (Build 26564 / 11 Jun 2009) = + + +Release includes: +* eXo Kernel 2.2.9-GA +* eXo Core 2.3.9-GA +* eXo WS 2.1.9-GA +* eXo JCR 1.12.9-GA + +1.12.9-GA tasks: +https://jira.exoplatform.org/browse/JCR/fixforversion/12946 +https://jira.exoplatform.org/browse/COR/fixforversion/12606 +https://jira.exoplatform.org/browse/WS/fixforversion/13103 + +JCR Samples +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +1. Start Up (Tomcat) + Tomcat 6 bundled can be started by executing the following commands: + + $CATALINA_HOME\bin\eXo.bat run (Windows) + + $CATALINA_HOME/bin/eXo.sh run (Unix) + +2. After startup, the sample applications will be available by visiting: + + http://localhost:8080/browser - Simple JCR browser + Browse the JCR repository that was started with Tomcat + http://localhost:8080/fckeditor - FCK editor sample + Edits the sample node using FCKEditor and browse it JCR browser + http://localhost:8080/rest/jcr/repository/production - WebDAV service, + Open in Microsoft Explorer, File-Open-OpenAsWebFolder with url htt= p://localhost:8080/rest/jcr/repository/production + Add/read/remove files there and browse it in the JCR browser or FT= P. + User name/password: root/exo + ftp://localhost:2121 - FTP server + Open the repository in FTP client and browse the JCR repository st= arted with Tomcat as FTP content, + add/read/remove files there and browse it in the JCR browser or We= bDAV. + +EAR deploy +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +eXo JCR was tested under JBoss-5.1.0.GA application server + +JBoss-5.1.0.GA + + 1. Configuration + + * Copy jcr.ear into $jboss_home/server/default/deploy + * Create $jboss_home/server/default/conf/exo-conf folder if it doesn't= exist. + * Put exo-configuration.xml into $jboss_home/server/default/conf/exo-c= onf/exo-configuration.xml + * Configure JAAS by inserting XML fragment shown below into $jboss_hom= e/server/default/conf/login-config.xml + +--------- + + + + + +--------- + + 2. Start Up + + Execute + * bin/run.bat on Windows + or + * bin/run.sh on Unix + +Resources +=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Company site http://www.exoplatform.com + Documentation wiki http://wiki.exoplatform.org + Community JIRA https://jira.jboss.org/jira/browse/EXOJCR, http://ji= ra.exoplatform.org + Comminity site http://www.exoplatform.org + Community forum http://www.exoplatform.com/portal/public/en/forum = = + JavaDoc site http://docs.exoplatform.org + = \ No newline at end of file --===============6990414518731191956==-- From do-not-reply at jboss.org Wed Jun 15 04:58:39 2011 Content-Type: multipart/mixed; boundary="===============2936840461124719029==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4544 - jcr/tags/1.14.0-CR3. Date: Wed, 15 Jun 2011 04:58:39 -0400 Message-ID: <201106150858.p5F8wdMP018366@svn01.web.mwc.hst.phx2.redhat.com> --===============2936840461124719029== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-15 04:58:38 -0400 (Wed, 15 Jun 2011) New Revision: 4544 Modified: jcr/tags/1.14.0-CR3/readme.txt Log: EXOJCR-1346: fix release notes Modified: jcr/tags/1.14.0-CR3/readme.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/tags/1.14.0-CR3/readme.txt 2011-06-15 08:32:09 UTC (rev 4543) +++ jcr/tags/1.14.0-CR3/readme.txt 2011-06-15 08:58:38 UTC (rev 4544) @@ -636,7 +636,7 @@ = 1. Configuration = - * Copy jcr.ear and jcr-ds.xml into $jboss_home/server/default/deploy + * Copy exo.jcr.ear.ear and jcr-ds.xml into $jboss_home/server/default/= deploy * Copy run.conf and run.conf.bato $jboss_home/bin * Create $jboss_home/server/default/conf/exo-conf folder if it doesn't= exist. * Put exo-configuration.xml into $jboss_home/server/default/conf/exo-c= onf/exo-configuration.xml --===============2936840461124719029==-- From do-not-reply at jboss.org Wed Jun 15 10:51:52 2011 Content-Type: multipart/mixed; boundary="===============3349335321028764352==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4545 - jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/configuration. Date: Wed, 15 Jun 2011 10:51:52 -0400 Message-ID: <201106151451.p5FEpqhj024711@svn01.web.mwc.hst.phx2.redhat.com> --===============3349335321028764352== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-15 10:51:52 -0400 (Wed, 15 Jun 2011) New Revision: 4545 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/jdbc-data-container-config.xml Log: EXOJCR-1332: added table with sql-scripts = Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/jdbc-data-container-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-15 08:58:= 38 UTC (rev 4544) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-15 14:51:= 52 UTC (rev 4545) @@ -52,7 +52,7 @@ = - HSQLDB (1.8.0.7) + HSQLDB (2.0.0) = @@ -67,6 +67,166 @@ of the database, it's possible to do that by editing the metadata SQL-script files. = + SQL-scripts are located under + 'jcr/trunk/exo.jcr.component.core/src/main/resources/conf/storage' pat= h. + Or can be found at SVN here. + + In the next two tables correspondence between the scripts and + databases is shown. + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Single-database
MySQL DBjcr-sjdbc.mysql.sql
MySQL DB with utf-8jcr-sjdbc.mysql-utf8.sql
MS SQL Serverjcr-sjdbc.mssql.sql
PostgresSQLjcr-sjdbc.pqsql.sql
DB2 9.xjcr-sjdbc.db2.sql
DB2 8.xjcr-sjdbc.db2v8.sql
HSQLDBjcr-sjdbc.h2.sql
Sybasejcr-sjdbc.sybase.sql
Oracle DBjcr-sjdbc.ora.sql
Oracle DB analyzejcr-sjdbc.ora-analyze.sql
Ingres DBjcr-sjdbc.ingres.sql
Derby DBjcr-sjdbc.derby.sql
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Multi-database
MySQL DBjcr-mjdbc.mysql.sql
MySQL DB with utf-8jcr-mjdbc.mysql-utf8.sql
MS SQL Serverjcr-mjdbc.mssql.sql
PostgresSQLjcr-mjdbc.pqsql.sql
DB2 9.xjcr-mjdbc.db2.sql
DB2 8.xjcr-mjdbc.db2v8.sql
HSQLDBjcr-mjdbc.h2.sql
Sybasejcr-mjdbc.sybase.sql
Oracle DBjcr-mjdbc.ora.sql
Oracle DB analyzejcr-mjdbc.ora-analyze.sql
Ingres DBjcr-mjdbc.ingres.sql
Derby DBjcr-mjdbc.derby.sql
+ In case the non-ANSI node name is used, it's necessary to use a database with MultiLanguage support[TODO link to MultiLanguage]. Some = JDBC drivers need additional parameters for establishing a Unicode friendly @@ -106,7 +266,7 @@ For example (standalone mode, two data containers jdbcjcr - local HSQLDB, jdbcjcr1 - remote MySQL): - = + <component> <key>org.exoplatform.services.naming.InitialContextInitializer&l= t;/key> <type>org.exoplatform.services.naming.InitialContextInitializer&= lt;/type> @@ -225,10 +385,9 @@ repository service. Each workspace will be configured for its own data container. = - For example (two workspaces = - ws - jdbcjcr, + For example (two workspaces ws - jdbcjcr, ws1 - jdbcjcr1): - = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> @@ -293,36 +452,36 @@ </workspaces> = - - - source-name: A javax.sql.DataSource - name configured in InitialContextInitializer component (was - sourceName prior JCR 1.9); - + + + source-name: A javax.sql.DataSource n= ame + configured in InitialContextInitializer component (was + sourceName prior JCR 1.9); + = - - dialect: A database dialect, one of - "hsqldb", "mysql", "mysql-utf8", "pgsql", "oracle", "oracle-oci", - "mssql", "sybase", "derby", "db2", "db2v8" or "auto" for dialect - autodetection; - + + dialect: A database dialect, one of + "hsqldb", "mysql", "mysql-utf8", "pgsql", "oracle", "oracle-oci", + "mssql", "sybase", "derby", "db2", "db2v8" or "auto" for dialect + autodetection; + = - - multi-db: Enable multi-database - container with this parameter (set value "true"); - + + multi-db: Enable multi-database conta= iner + with this parameter (set value "true"); + = - - max-buffer-size: A a threshold (in - bytes) after which a javax.jcr.Value content will be swapped to a - file in a temporary storage. I.e. swap for pending changes. - + + max-buffer-size: A a threshold (in by= tes) + after which a javax.jcr.Value content will be swapped to a file in= a + temporary storage. I.e. swap for pending changes. + = - - swap-directory: A path in the file - system used to swap the pending changes. - - + + swap-directory: A path in the file sy= stem + used to swap the pending changes. + + = In this way, we have configured two workspace which will be persisted in two different databases (ws in HSQLDB, ws1 in MySQL). @@ -343,7 +502,7 @@ = For example (embedded mode for jdbcjcr da= ta container): - = + <external-component-plugins> <target-component>org.exoplatform.services.naming.InitialContext= Initializer</target-component> <component-plugin> @@ -385,7 +544,7 @@ = For example (two workspaces ws - jdbcjcr, ws1 - jdbcjcr): - = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> @@ -520,7 +679,7 @@ = Simple queries will be used if you chose org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspac= eDataContainer: - = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= JDBCWorkspaceDataContainer"> @@ -531,7 +690,7 @@ = Complex queries will be used if you chose org.exoplatform.services.jcr.impl.storage.jdbc.optimisation= .CQJDBCWorkspaceDataContainer: - = + <workspaces> <workspace name=3D"ws" auto-init-root-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.= optimisation.CQJDBCWorkspaceDataContainer"> @@ -559,9 +718,8 @@ for Orcale dialect, that uses query hints to increase performance for = few important queries. = - To enable this option put next configuration - property: - = + To enable this option put next configuration property: + <workspace name=3D"ws" auto-init-r= oot-nodetype=3D"nt:unstructured"> <container class=3D"org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer"> <properties> @@ -606,7 +764,7 @@
= A sample registry file is below: - = + Windows Registry Editor Version 5.00 = [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] --===============3349335321028764352==-- From do-not-reply at jboss.org Thu Jun 16 04:05:22 2011 Content-Type: multipart/mixed; boundary="===============2980225165044209004==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4546 - jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/configuration. Date: Thu, 16 Jun 2011 04:05:21 -0400 Message-ID: <201106160805.p5G85LUj010007@svn01.web.mwc.hst.phx2.redhat.com> --===============2980225165044209004== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-16 04:05:21 -0400 (Thu, 16 Jun 2011) New Revision: 4546 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/jdbc-data-container-config.xml Log: EXOJCR-1332: small fixes Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/jdbc-data-container-config.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-15 14:51:= 52 UTC (rev 4545) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/jdbc-data-container-config.xml 2011-06-16 08:05:= 21 UTC (rev 4546) @@ -52,10 +52,16 @@ = + Sybase 15.0.3 Driver: Sybase jConnect JDBC driver v7 (Buil= d 26502) + + + HSQLDB (2.0.0) + = = + Please note, that JCR requires at least READ_COMMITED isolat= ion level and other RDBMS configurations can cause some side-effects a= nd @@ -67,9 +73,9 @@ of the database, it's possible to do that by editing the metadata SQL-script files. = - SQL-scripts are located under - 'jcr/trunk/exo.jcr.component.core/src/main/resources/conf/storage' pat= h. - Or can be found at SVN SQL-scripts you can obtain from jar-file + exo.jcr.component.core-XXX.XXX.jar:conf/storage/. They also can be + found at SVN here. = In the next two tables correspondence between the scripts and @@ -91,33 +97,27 @@ = - MS SQL Server - - jcr-sjdbc.mssql.sql - - - PostgresSQL = jcr-sjdbc.pqsql.sql = - DB2 9.x + Oracle DB = - jcr-sjdbc.db2.sql + jcr-sjdbc.ora.sql = - DB2 8.x + DB2 9.7 = - jcr-sjdbc.db2v8.sql + jcr-sjdbc.db2.sql = - HSQLDB + MS SQL Server = - jcr-sjdbc.h2.sql + jcr-sjdbc.mssql.sql = @@ -127,34 +127,17 @@ = - Oracle DB + HSQLDB = - jcr-sjdbc.ora.sql + jcr-sjdbc.sql = - - Oracle DB analyze - - jcr-sjdbc.ora-analyze.sql - - - - Ingres DB - - jcr-sjdbc.ingres.sql - - - - Derby DB - - jcr-sjdbc.derby.sql - = = - + = @@ -167,33 +150,27 @@ = - - - - - - = = - + = - + = - + = - + = - + = - + = @@ -203,28 +180,10 @@ = - + = - + - - - - - - - - - - - - - - - - - -
Multi-database
MySQL DBjcr-mjdbc.mysql.sql
MS SQL Serverjcr-mjdbc.mssql.sql
PostgresSQLjcr-mjdbc.pqsql.sql
DB2 9.xOracle DBjcr-mjdbc.db2.sqljcr-mjdbc.ora.sql
DB2 8.xDB2 9.7jcr-mjdbc.db2v8.sqljcr-mjdbc.db2.sql
HSQLDBMS SQL Serverjcr-mjdbc.h2.sqljcr-mjdbc.mssql.sql
Oracle DBHSQLDBjcr-mjdbc.ora.sqljcr-mjdbc.sql
Oracle DB analyzejcr-mjdbc.ora-analyze.sql
Ingres DBjcr-mjdbc.ingres.sql
Derby DBjcr-mjdbc.derby.sql
= In case the non-ANSI node name is used, it's necessary to use a --===============2980225165044209004==-- From do-not-reply at jboss.org Thu Jun 16 11:14:10 2011 Content-Type: multipart/mixed; boundary="===============7133574279586445786==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4547 - in jcr/trunk/exo.jcr.component.core: src/test/java/org/exoplatform/services/jcr/impl/core and 3 other directories. Date: Thu, 16 Jun 2011 11:14:09 -0400 Message-ID: <201106161514.p5GFE9pE030873@svn01.web.mwc.hst.phx2.redhat.com> --===============7133574279586445786== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-16 11:14:09 -0400 (Thu, 16 Jun 2011) New Revision: 4547 Modified: jcr/trunk/exo.jcr.component.core/pom.xml jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestRepositoryManagement.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestWorkspaceManagement.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestWorkspaceRestore.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/storage/ValueStoragePluginTest.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/util/jdbc/TestDBCleaner.java jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/util/TesterConfigurationHelper.java Log: EXOJCR-1377: removed tests from exclude list * TestWorkspaceManagement.java * TestWorkspaceRestore.java * TestRepositoryManagement.java Modified: jcr/trunk/exo.jcr.component.core/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-16 08:05:21 UTC (rev 4= 546) +++ jcr/trunk/exo.jcr.component.core/pom.xml 2011-06-16 15:14:09 UTC (rev 4= 547) @@ -412,9 +412,6 @@ org/exoplatform/services/jcr/**/api/TestAll.jav= a org/exoplatform/services/jcr/**/impl/**/Base*.j= ava org/exoplatform/services/jcr/**/usecases/BaseUs= ecasesTest.java - org/exoplatform/services/jcr/**/impl/**/TestRep= ositoryManagement.java - org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceRestore.java - org/exoplatform/services/jcr/**/impl/**/TestWor= kspaceManagement.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationStream.java org/exoplatform/services/jcr/**/impl/**/TestJCR= SerializationVersionRestore.java org/exoplatform/services/jcr/usecases/common/Re= moveSameNameSiblingUnfixedTest.java @@ -756,9 +753,6 @@ org/exoplatform/services/jcr/**/api/TestA= ll.java org/exoplatform/services/jcr/**/impl/**/B= ase*.java org/exoplatform/services/jcr/**/usecases/= BaseUsecasesTest.java - org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceManagement.java - org/exoplatform/services/jcr/**/impl/**/T= estWorkspaceRestore.java - org/exoplatform/services/jcr/**/impl/**/T= estRepositoryManagement.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationStream.java org/exoplatform/services/jcr/**/impl/**/T= estJCRSerializationVersionRestore.java org/exoplatform/services/jcr/usecases/com= mon/RemoveSameNameSiblingUnfixedTest.java Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestRepositoryManagement.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestRepositoryManagement.java 2011-06-16 08:05:21 UTC (rev 4= 546) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestRepositoryManagement.java 2011-06-16 15:14:09 UTC (rev 4= 547) @@ -20,20 +20,11 @@ = import org.exoplatform.services.jcr.JcrImplBaseTest; import org.exoplatform.services.jcr.RepositoryService; -import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; import org.exoplatform.services.jcr.config.RepositoryEntry; import org.exoplatform.services.jcr.config.WorkspaceEntry; -import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataCon= tainer; -import org.exoplatform.services.jcr.util.IdGenerator; +import org.exoplatform.services.jcr.core.ManageableRepository; import org.exoplatform.services.jcr.util.TesterConfigurationHelper; = -import javax.jcr.NamespaceException; -import javax.jcr.Node; -import javax.jcr.PathNotFoundException; -import javax.jcr.RepositoryException; -import javax.jcr.Session; -import javax.jcr.nodetype.NoSuchNodeTypeException; - /** * @author Sergey Kabashn= yuk * @version $Id: TestRepositoryManagement.java 11907 2008-03-13 15:36:21Z = ksm $ @@ -56,519 +47,85 @@ public TestRepositoryManagement() { super(); - this.helper =3D TesterConfigurationHelper.getInstence(); + this.helper =3D TesterConfigurationHelper.getInstance(); } = - // TODO remove this method - public void createDafaultRepository(String repoName, String defaultWs) = throws Exception - { = - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); - - repositoryEntry.setName(repoName); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName(defaultWs); - repositoryEntry.setDefaultWorkspaceName(defaultWs); - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs(defaultWs, isDefaultWsMultiDb, null, "target/temp= /values/" + IdGenerator.generate(), wsEntry - .getContainer()); - - repositoryEntry.addWorkspace(workspaceEntry); - - WorkspaceEntry secondWs =3D - helper.getNewWs(defaultWs + IdGenerator.generate(), isDefaultWsMu= ltiDb, isDefaultWsMultiDb ? null - : workspaceEntry.getContainer().getParameterValue("source-name= "), - "target/temp/values/" + IdGenerator.generate(), wsEntry.getCon= tainer()); - - repositoryEntry.addWorkspace(secondWs); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - service.createRepository(repositoryEntry); - } - - @Override - public void setUp() throws Exception - { - // bindDs(); - super.setUp(); - wsEntry =3D (WorkspaceEntry)session.getContainer().getComponentInsta= nceOfType(WorkspaceEntry.class); - if ("true".equals(wsEntry.getContainer().getParameterValue("multi-db= "))) - { - isDefaultWsMultiDb =3D true; - } - - } - public void testAddNewRepository() throws Exception { - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); - - repositoryEntry.setName("repo4TestCreateRepository"); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName("ws4TestCreateRepository"); - repositoryEntry.setDefaultWorkspaceName("ws4TestCreateRepository"); - // - // List params =3D new ArrayList(); - // params.add(new SimpleParameterEntry("sourceName", getNewDs())); - // params.add(new SimpleParameterEntry("db-type", "generic")); - // params.add(new SimpleParameterEntry("multi-db", "false")); - // params.add(new SimpleParameterEntry("update-storage", "true")); - // params.add(new SimpleParameterEntry("max-buffer-size", "204800")); - // params.add(new SimpleParameterEntry("swap-directory", - // "target/temp/swap/ws")); - // - // ContainerEntry containerEntry =3D new - // ContainerEntry("org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer", - // (ArrayList) params); - // containerEntry.setParameters(params); - // - // WorkspaceEntry workspaceEntry =3D new - // WorkspaceEntry("ws4TestCreateRepository", "nt:unstructured"); - // = - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("ws4TestCreateRepository", isDefaultWsMultiDb, ws= Entry.getContainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), "target/temp/values/"= + IdGenerator.generate(), wsEntry - .getContainer()); - - repositoryEntry.addWorkspace(workspaceEntry); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - service.createRepository(repositoryEntry); - - RepositoryImpl newRtepository =3D (RepositoryImpl)service.getReposit= ory("repo4TestCreateRepository"); - try - { - - Session sess =3D newRtepository.getSystemSession(workspaceEntry.g= etName()); - - Node root =3D sess.getRootNode(); - assertNotNull(root); - - assertNotNull(root.getNode("jcr:system")); - - assertNotNull(root.getNode("jcr:system/exo:namespaces")); - root.addNode("testNode"); - sess.save(); - Node testNode =3D root.getNode("testNode"); - assertNotNull(testNode); - sess.logout(); - } - catch (RepositoryException e) - { - fail(); - } - RepositoryImpl defRep =3D (RepositoryImpl)service.getDefaultReposito= ry(); - Session sess =3D null; - try - { - - sess =3D defRep.getSystemSession(); - - Node root =3D sess.getRootNode(); - assertNotNull(root); - - assertNotNull(root.getNode("jcr:system")); - - assertNotNull(root.getNode("jcr:system/exo:namespaces")); - // root.addNode("testNode"); - // sess.save(); - Node testNode =3D root.getNode("testNode"); - - } - catch (PathNotFoundException e) - { - // Ok - } - finally - { - if (sess !=3D null) - sess.logout(); - } - service.removeRepository("repo4TestCreateRepository"); + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); + assertNotNull(repository.login(credentials, repository.getConfigurat= ion().getSystemWorkspaceName()).getRootNode()); } = public void testAddNewRepositoryWithSameName() throws Exception { + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); = - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); - - repositoryEntry.setName(service.getConfig().getDefaultRepositoryName= ()); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName("ws4testAddNewRepositoryWithS= ameName"); - repositoryEntry.setDefaultWorkspaceName("ws4testAddNewRepositoryWith= SameName"); - - // List params =3D new ArrayList(); - // params.add(new SimpleParameterEntry("sourceName", getNewDs())); - // params.add(new SimpleParameterEntry("db-type", "generic")); - // params.add(new SimpleParameterEntry("multi-db", "false")); - // params.add(new SimpleParameterEntry("update-storage", "true")); - // params.add(new SimpleParameterEntry("max-buffer-size", "204800")); - // params.add(new SimpleParameterEntry("swap-directory", - // "target/temp/swap/ws")); - // - // ContainerEntry containerEntry =3D new - // ContainerEntry("org.exoplatform.services.jcr.impl.storage.jdbc.JD= BCWorkspaceDataContainer", - // (ArrayList) params); - // containerEntry.setParameters(params); - - // WorkspaceEntry workspaceEntry =3D new - // WorkspaceEntry("ws4TestCreateRepository", "nt:unstructured"); - // workspaceEntry.setContainer(containerEntry); - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("ws4testAddNewRepositoryWithSameName", isDefaultW= sMultiDb, null, "target/temp/values/" - + IdGenerator.generate(), wsEntry.getContainer()); - repositoryEntry.addWorkspace(workspaceEntry); - try { - service.createRepository(repositoryEntry); + RepositoryEntry rEntry =3D helper.createRepositoryEntry(false, nu= ll, null); + rEntry.setName(repository.getConfiguration().getName()); + + helper.createRepository(container, rEntry); fail(); } - catch (RepositoryConfigurationException e) + catch (Exception e) { // ok } - } = public void testCanRemove() throws Exception { - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); = - repositoryEntry.setName("repo4testCanRemove"); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName("ws4testCanRemove"); - repositoryEntry.setDefaultWorkspaceName("ws4testCanRemove"); - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("ws4testCanRemove", isDefaultWsMultiDb, null, "ta= rget/temp/values/" + IdGenerator.generate(), - wsEntry.getContainer()); - - repositoryEntry.addWorkspace(workspaceEntry); - - WorkspaceEntry secondWs =3D - helper.getNewWs("ws4testCanRemove2", isDefaultWsMultiDb, isDefaul= tWsMultiDb ? null : wsEntry.getContainer() - .getParameterValue(JDBCWorkspaceDataContainer.SOURCE_NAME), "t= arget/temp/values/" + IdGenerator.generate(), - wsEntry.getContainer()); - // WorkspaceEntry secondWs =3D TestWorkspaceManagement.getNewWs(null= , false, - // dsName,null); - repositoryEntry.addWorkspace(secondWs); - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); = - service.createRepository(repositoryEntry); + SessionImpl session =3D + (SessionImpl)repository.login(credentials, repository.getConfigur= ation().getSystemWorkspaceName()); = - RepositoryImpl newRtepository =3D (RepositoryImpl)service.getReposit= ory("repo4testCanRemove"); - try - { - - Session sess =3D newRtepository.getSystemSession(); - - Node root =3D sess.getRootNode(); - assertNotNull(root); - sess.logout(); - - Session sess2 =3D newRtepository.getSystemSession(secondWs.getNam= e()); - - Node root2 =3D sess2.getRootNode(); - assertNotNull(root2); - assertFalse(service.canRemoveRepository("repo4testCanRemove")); - sess2.logout(); - assertTrue(service.canRemoveRepository("repo4testCanRemove")); - service.removeRepository("repo4testCanRemove"); - } - catch (RepositoryException e) - { - e.printStackTrace(); - fail(); - } - + assertFalse(service.canRemoveRepository(repository.getConfiguration(= ).getName())); + session.logout(); + assertTrue(service.canRemoveRepository(repository.getConfiguration()= .getName())); } = public void testInitNameSpaces() throws Exception { - // Test initialization of common node types - String REPONAME =3D "testInitNameSpaces"; - String WSNAME =3D "ws4" + REPONAME; + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); = - createDafaultRepository(REPONAME, WSNAME); - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); + SessionImpl session =3D + (SessionImpl)repository.login(credentials, repository.getConfigur= ation().getSystemWorkspaceName()); = - RepositoryImpl newRepository =3D (RepositoryImpl)service.getReposito= ry(REPONAME); - Session sess =3D newRepository.getSystemSession(WSNAME); - - assertEquals("http://www.apache.org/jackrabbit/test", sess.getNamesp= aceURI("test")); - assertEquals("http://www.exoplatform.org/jcr/test/1.0", sess.getName= spaceURI("exojcrtest")); - - try - { - sess.getNamespaceURI("blabla"); - fail(); - } - catch (NamespaceException e) - { - // ok; - } - + assertEquals("http://www.apache.org/jackrabbit/test", session.getNam= espaceURI("test")); + assertEquals("http://www.exoplatform.org/jcr/test/1.0", session.getN= amespaceURI("exojcrtest")); } = public void testInitNodeTypes() throws Exception { + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); = - // Test initialization of common node types - String REPONAME =3D "testInitNodeTypesCommonRepository"; - String WSNAME =3D "ws4testInitNodeTypes"; + SessionImpl session =3D + (SessionImpl)repository.login(credentials, repository.getConfigur= ation().getSystemWorkspaceName()); = - createDafaultRepository(REPONAME, WSNAME); - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - RepositoryImpl newRepository =3D (RepositoryImpl)service.getReposito= ry(REPONAME); - Session sess =3D newRepository.getSystemSession(WSNAME); - Node newRoot =3D sess.getRootNode(); - try - { - - assertNotNull(newRoot); - - assertNotNull(newRoot.getNode("jcr:system")); - - assertNotNull(newRoot.getNode("jcr:system/exo:namespaces")); - newRoot.addNode("testNode", "exojcrtest:sub1"); - sess.save(); - Node testNode =3D newRoot.getNode("testNode"); - assertNotNull(testNode); - } - catch (RepositoryException e) - { - fail(); - } - try - { - newRoot.addNode("testNode2", "exojcrtest:sub2"); - fail(); - } - catch (NoSuchNodeTypeException e) - { - // ok - } - try - { - newRoot.addNode("testNode2", "exojcrtest:test2"); - fail(); - } - catch (NoSuchNodeTypeException e) - { - // ok - } - - sess.logout(); - - assertTrue(service.canRemoveRepository(REPONAME)); - - service.removeRepository(REPONAME); - - // test initialization node types only for one repository - REPONAME =3D "testInitNodeTypesRepository"; - createDafaultRepository(REPONAME, WSNAME); - - newRepository =3D (RepositoryImpl)service.getRepository(REPONAME); - sess =3D newRepository.getSystemSession(WSNAME); - newRoot =3D sess.getRootNode(); - - try - { - - assertNotNull(newRoot); - - assertNotNull(newRoot.getNode("jcr:system")); - - assertNotNull(newRoot.getNode("jcr:system/exo:namespaces")); - newRoot.addNode("testNode2", "exojcrtest:sub2"); - sess.save(); - Node testNode =3D newRoot.getNode("testNode2"); - assertNotNull(testNode); - } - catch (RepositoryException e) - { - e.printStackTrace(); - fail(); - } - try - { - newRoot.addNode("testNode3", "exojcrtest:test2"); - fail(); - } - catch (NoSuchNodeTypeException e) - { - // ok - } - sess.logout(); - - assertTrue(service.canRemoveRepository(REPONAME)); - - service.removeRepository(REPONAME); - - // test initialization node types only for one repository - REPONAME =3D "testInitNodeTypesRepositoryTest2"; - createDafaultRepository(REPONAME, WSNAME); - - newRepository =3D (RepositoryImpl)service.getRepository(REPONAME); - sess =3D newRepository.getSystemSession(WSNAME); - newRoot =3D sess.getRootNode(); - - try - { - - assertNotNull(newRoot); - - assertNotNull(newRoot.getNode("jcr:system")); - - assertNotNull(newRoot.getNode("jcr:system/exo:namespaces")); - newRoot.addNode("testNode4", "exojcrtest:test2"); - sess.save(); - Node testNode =3D newRoot.getNode("testNode4"); - assertNotNull(testNode); - } - catch (RepositoryException e) - { - fail(); - } - try - { - newRoot.addNode("testNode5", "exojcrtest:sub2"); - fail(); - } - catch (NoSuchNodeTypeException e) - { - // ok - } - sess.logout(); - - assertTrue(service.canRemoveRepository(REPONAME)); - - service.removeRepository(REPONAME); - + // check if nt:folder nodetype exists + session.getRootNode().addNode("folder", "nt:folder"); + session.save(); } = public void testRemove() throws Exception { - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); = - repositoryEntry.setName("repo4testRemove"); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName("ws4testRemove"); - repositoryEntry.setDefaultWorkspaceName("ws4testRemove"); - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("ws4testRemove", isDefaultWsMultiDb, null, "targe= t/temp/values/" + IdGenerator.generate(), - wsEntry.getContainer()); - - repositoryEntry.addWorkspace(workspaceEntry); - - WorkspaceEntry secondWs =3D - helper.getNewWs("ws4testRemove2", isDefaultWsMultiDb, isDefaultWs= MultiDb ? null : wsEntry.getContainer() - .getParameterValue(JDBCWorkspaceDataContainer.SOURCE_NAME), "t= arget/temp/values/" + IdGenerator.generate(), - wsEntry.getContainer()); - repositoryEntry.addWorkspace(secondWs); - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); + service.removeRepository(repository.getConfiguration().getName()); = - service.createRepository(repositoryEntry); - - RepositoryImpl newRtepository =3D (RepositoryImpl)service.getReposit= ory("repo4testRemove"); - assertTrue(service.canRemoveRepository("repo4testRemove")); - - service.removeRepository("repo4testRemove"); - } - - public void testRemoveOtherThread() throws Exception - { - RepositoryEntry repositoryEntry =3D new RepositoryEntry(); - - repositoryEntry.setName("repo4RemoveOtherThread"); - repositoryEntry.setSessionTimeOut(3600000); - repositoryEntry.setAuthenticationPolicy("org.exoplatform.services.jc= r.impl.core.access.JAASAuthenticator"); - repositoryEntry.setSecurityDomain("exo-domain"); - repositoryEntry.setSystemWorkspaceName("ws4RemoveOtherThread"); - repositoryEntry.setDefaultWorkspaceName("ws4RemoveOtherThread"); - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("ws4RemoveOtherThread", isDefaultWsMultiDb, null,= "target/temp/values/" - + IdGenerator.generate(), wsEntry.getContainer()); - - repositoryEntry.addWorkspace(workspaceEntry); - - WorkspaceEntry secondWs =3D - helper.getNewWs("ws4RemoveOtherThread2", isDefaultWsMultiDb, isDe= faultWsMultiDb ? null : wsEntry - .getContainer().getParameterValue(JDBCWorkspaceDataContainer.S= OURCE_NAME), "target/temp/values/" - + IdGenerator.generate(), wsEntry.getContainer()); - - repositoryEntry.addWorkspace(secondWs); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - - service.createRepository(repositoryEntry); - - // RepositoryImpl newRepository =3D (RepositoryImpl) - // service.getRepository("repo4RemoveOtherThread"); - assertTrue(service.canRemoveRepository("repo4RemoveOtherThread")); - - RepositoryRemover remover =3D new RepositoryRemover("repo4RemoveOthe= rThread", service); - remover.start(); - Thread.sleep(1000 * 10);// 10 sec try { - service.getRepository("repo4RemoveOtherThread"); - fail(); + service.getRepository(repository.getConfiguration().getName()); } - catch (RepositoryException e) + catch (Exception e) { - // ok - } - } = - private class RepositoryRemover extends Thread - { - private final String repoName; - - private final RepositoryService service; - - RepositoryRemover(String repoName, RepositoryService service) - { - this.repoName =3D repoName; - this.service =3D service; - } - - @Override - public void run() - { - try - { - if (service.canRemoveRepository(repoName)) - service.removeRepository(repoName); - } - catch (RepositoryException e) - { - e.printStackTrace(); - } - } } } Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestWorkspaceManagement.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceManagement.java 2011-06-16 08:05:21 UTC (rev 45= 46) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceManagement.java 2011-06-16 15:14:09 UTC (rev 45= 47) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 eXo Platform SAS. + * CopSyright (C) 2009 eXo Platform SAS. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as @@ -19,21 +19,17 @@ package org.exoplatform.services.jcr.impl.core; = import org.exoplatform.services.jcr.JcrImplBaseTest; -import org.exoplatform.services.jcr.RepositoryService; import org.exoplatform.services.jcr.config.ContainerEntry; import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; -import org.exoplatform.services.jcr.config.RepositoryEntry; +import org.exoplatform.services.jcr.config.SimpleParameterEntry; +import org.exoplatform.services.jcr.config.ValueStorageEntry; import org.exoplatform.services.jcr.config.WorkspaceEntry; -import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataCon= tainer; +import org.exoplatform.services.jcr.core.ManageableRepository; import org.exoplatform.services.jcr.util.TesterConfigurationHelper; -import org.exoplatform.services.jcr.util.IdGenerator; = -import java.io.File; -import java.util.List; +import java.util.ArrayList; = -import javax.jcr.Node; import javax.jcr.RepositoryException; -import javax.jcr.Session; = /** * @author Sergey Kabashn= yuk @@ -50,359 +46,152 @@ public TestWorkspaceManagement() { super(); - this.helper =3D TesterConfigurationHelper.getInstence(); + this.helper =3D TesterConfigurationHelper.getInstance(); } = - @Override - public void setUp() throws Exception + // single db test only + public void testAddWorkspaceWithNewDS() throws Exception { - super.setUp(); - wsEntry =3D (WorkspaceEntry)session.getContainer().getComponentInsta= nceOfType(WorkspaceEntry.class); - if ("true".equals(wsEntry.getContainer().getParameterValue("multi-db= "))) + ManageableRepository repository =3D helper.createRepository(containe= r, false, null); + + try { - isDefaultWsMultiDb =3D true; + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, "no= t-existed-ds"); + helper.addWorkspace(repository, wsEntry); + fail(); } - } - - // single db test only - public void testAddSingleDbWsWithNewDs() throws Exception - { - if (!isDefaultWsMultiDb) + catch (Exception e) { - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("SingleDbWsWithNewDs", true, null, "target/tem= p/values/" + IdGenerator.generate(), wsEntry - .getContainer()); - - try - { - helper.createWorkspace(workspaceEntry, container); - fail(); - } - catch (RepositoryException e) - { - e.printStackTrace(); - fail(); - } - catch (RepositoryConfigurationException e) - { - // ok; - } + // ok; } } = - public void testAddWorkspaceWithExistName() throws RepositoryConfigurat= ionException, Exception + public void testAddWorkspaceWithExistingName() throws RepositoryConfigu= rationException, Exception { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep =3D null; - String[] names =3D null; try { - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - String sysWs =3D defRep.getSystemWorkspaceName(); - assertNotNull(sysWs); - names =3D defRep.getWorkspaceNames(); + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, dsN= ame); + wsEntry.setName(repository.getConfiguration().getSystemWorkspaceN= ame()); + + helper.addWorkspace(repository, wsEntry); + fail(); } - catch (RepositoryException e) - { - fail(e.getLocalizedMessage()); - } catch (RepositoryConfigurationException e) { - fail(e.getLocalizedMessage()); + // ok; } - if (defRep =3D=3D null || names =3D=3D null) - fail("Fail init params"); - - for (int i =3D 0; i < names.length; i++) - { - WorkspaceEntry workspaceEntry =3D - helper.getNewWs(names[i], isDefaultWsMultiDb, wsEntry.getConta= iner().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getC= ontainer()); - assertNotNull(workspaceEntry); - - try - { - helper.createWorkspace(workspaceEntry, container); - fail(); - } - catch (RepositoryConfigurationException e) - { - // Ok - } - catch (RepositoryException e) - { - fail(); - } - } } = public void testAddWorkspaceWithIvalidVs() throws RepositoryConfigurati= onException, Exception { - File file =3D File.createTempFile("test", ".dat"); - file.deleteOnExit(); + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("WsInvalidVs", isDefaultWsMultiDb, wsEntry.getCon= tainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), file.getAbsolutePath(= ), wsEntry.getContainer()); try { - helper.createWorkspace(workspaceEntry, container); - fail(); - } - catch (Throwable e) - { - // ok - // e.printStackTrace(); - // log.info(e.getLocalizedMessage()); - } - finally - { - file.delete(); - } - } + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, dsN= ame); = - public void testAddWorkspaceWithValidVs() throws Exception - { + ValueStorageEntry valueStorageEntry =3D wsEntry.getContainer().ge= tValueStorages().get(0); + = + ArrayList spe =3D new ArrayList(); + spe.add(new SimpleParameterEntry("path", "/unknown/path")); + valueStorageEntry.setParameters(spe); = - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("WsValidVs", isDefaultWsMultiDb, wsEntry.getConta= iner().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), "target/temp/values/"= + IdGenerator.generate(), wsEntry - .getContainer()); + wsEntry.getContainer().getValueStorages().set(0, valueStorageEntr= y); = - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep =3D (RepositoryImpl)service.getDefaultReposito= ry();; - - helper.createWorkspace(workspaceEntry, container); - - assertNotNull(defRep); - RepositoryEntry repoEntry =3D defRep.getConfiguration(); - List wsEntrys =3D repoEntry.getWorkspaceEntries(); - - for (WorkspaceEntry wEntry : wsEntrys) + helper.addWorkspace(repository, wsEntry); + } + catch (RepositoryConfigurationException e) { - if (wEntry.getName().equals(workspaceEntry.getName())) - { - ContainerEntry containerEntry =3D wEntry.getContainer(); - assertNotNull(containerEntry); - assertNotNull(containerEntry.getValueStorages()); - assertEquals(1, containerEntry.getValueStorages().size()); - } + // ok; } - } = public void testCreateWsNoConfig() throws RepositoryConfigurationExcept= ion, Exception { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("wsnoconfig", isDefaultWsMultiDb, wsEntry.getCont= ainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getCont= ainer()); - assertNotNull(workspaceEntry); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep; try { - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - defRep.createWorkspace(workspaceEntry.getName()); + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, dsN= ame); + wsEntry.setContainer(new ContainerEntry( + "org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceD= ataContainer", new ArrayList())); + + helper.addWorkspace(repository, wsEntry); fail(); } - catch (RepositoryException e) + catch (Exception e) { + // ok; } - catch (RepositoryConfigurationException e) - { - } - } = public void testInitNewWS() throws RepositoryConfigurationException, Ex= ception { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - WorkspaceEntry workspaceEntry =3D null; - workspaceEntry =3D - helper.getNewWs("newws", isDefaultWsMultiDb, wsEntry.getContainer= ().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getCont= ainer()); - assertNotNull(workspaceEntry); - - helper.createWorkspace(workspaceEntry, container); - - doTestOnWorkspace(workspaceEntry.getName()); - } - - public void testMixMultiAndSingleDbWs() throws RepositoryConfigurationE= xception, Exception - { - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("MixMultiAndSingleDbWs", !isDefaultWsMultiDb, nul= l, "target/temp/values/" - + IdGenerator.generate(), wsEntry.getContainer()); try { - helper.createWorkspace(workspaceEntry, container); - fail(); + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, dsN= ame); + helper.addWorkspace(repository, wsEntry); + + SessionImpl session =3D (SessionImpl)repository.login(credentials= , wsEntry.getName()); + assertNotNull(session.getRootNode()); } catch (RepositoryException e) { + e.printStackTrace(); fail(); } - catch (RepositoryConfigurationException e) - { - // e.printStackTrace(); - // ok; - } - catch (Throwable e) - { - boolean isRepoConfEx =3D false; - Throwable tempe =3D e; - do - { - if (tempe instanceof RepositoryConfigurationException) - { - isRepoConfEx =3D true; - break; - } - tempe =3D tempe.getCause(); - } - while ((tempe !=3D null)); - - assertTrue(isRepoConfEx); - } } = - public void testRemoveSystemWorkspace() throws Exception + public void testMixMultiAndSingleDbWs() throws RepositoryConfigurationE= xception, Exception { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep =3D (RepositoryImpl)service.getDefaultReposito= ry(); - String systemWsName =3D defRep.getSystemWorkspaceName(); - assertFalse(defRep.canRemoveWorkspace(systemWsName)); - } - - public void testRemoveWorkspace() throws Exception - { - - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("wsForRemove", isDefaultWsMultiDb, wsEntry.getCon= tainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), "target/temp/values/"= + IdGenerator.generate(), wsEntry - .getContainer()); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep =3D (RepositoryImpl)service.getDefaultReposito= ry(); try { - helper.createWorkspace(workspaceEntry, container); - doTestOnWorkspace(workspaceEntry.getName()); - assertTrue(defRep.canRemoveWorkspace(workspaceEntry.getName())); - String[] names =3D service.getDefaultRepository().getWorkspaceNam= es(); - service.getDefaultRepository().removeWorkspace(workspaceEntry.get= Name()); - String[] namesAfter =3D service.getDefaultRepository().getWorkspa= ceNames(); - - // remove one - assertTrue(names.length =3D=3D namesAfter.length + 1); - for (int i =3D 0; i < namesAfter.length; i++) - { - if (workspaceEntry.getName().equals(namesAfter[i])) - { - fail(); - } - } + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(true, dsNa= me); + helper.addWorkspace(repository, wsEntry); + fail(); } - catch (RepositoryException e) + catch (Exception e) { - e.printStackTrace(); - fail(e.getLocalizedMessage()); + // ok; } - catch (RepositoryConfigurationException e) - { - fail(e.getLocalizedMessage()); - } - if (defRep !=3D null) - { - try - { - Session sess =3D defRep.getSystemSession(workspaceEntry.getNam= e()); - fail(); - } - catch (RepositoryException e) - { - // Ok - } - } } - = - public void testRemoveWorkspaceFromDB() throws Exception + + public void testRemoveSystemWorkspace() throws Exception { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); = - WorkspaceEntry workspaceEntry =3D - helper.getNewWs("wsForRemove", isDefaultWsMultiDb, wsEntry.getCon= tainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), "target/temp/values/"= + IdGenerator.generate(), wsEntry - .getContainer()); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep =3D (RepositoryImpl)service.getDefaultReposito= ry(); try { - helper.createWorkspace(workspaceEntry, container); - doTestOnWorkspace(workspaceEntry.getName()); - assertTrue(defRep.canRemoveWorkspace(workspaceEntry.getName())); - String[] names =3D service.getDefaultRepository().getWorkspaceNam= es(); - service.getDefaultRepository().removeWorkspace(workspaceEntry.get= Name()); - String[] namesAfter =3D service.getDefaultRepository().getWorkspa= ceNames(); - - // remove one - assertTrue(names.length =3D=3D namesAfter.length + 1); - for (int i =3D 0; i < namesAfter.length; i++) - { - if (workspaceEntry.getName().equals(namesAfter[i])) - { - fail(); - } - } + repository.removeWorkspace(repository.getConfiguration().getSyste= mWorkspaceName()); + fail(); } catch (RepositoryException e) { - e.printStackTrace(); - fail(e.getLocalizedMessage()); } - catch (RepositoryConfigurationException e) - { - fail(e.getLocalizedMessage()); - } - if (defRep !=3D null) - { - try - { - Session sess =3D defRep.getSystemSession(workspaceEntry.getNam= e()); - fail(); - } - catch (RepositoryException e) - { - // Ok - } - } } = - private void doTestOnWorkspace(String wsName) throws RepositoryExceptio= n, RepositoryConfigurationException + public void testRemoveWorkspace() throws Exception { - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - Session sess =3D service.getDefaultRepository().getSystemSession(wsN= ame); + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, false, dsName); + WorkspaceEntry wsEntry =3D helper.createWorkspaceEntry(false, dsName= ); = - Node root2 =3D sess.getRootNode(); - assertNotNull(root2); + helper.addWorkspace(repository, wsEntry); + assertEquals(2, repository.getWorkspaceNames().length); = - // assertNotNull(root2.getNode("jcr:system")); - // - // assertNotNull(root2.getNode("jcr:system/exo:namespaces")); - root2.addNode("node1"); - assertTrue(root2.hasNode("node1")); - sess.save(); - assertTrue(root2.hasNode("node1")); - root2.getNode("node1").remove(); - assertFalse(root2.hasNode("node1")); - sess.save(); - assertFalse(root2.hasNode("node1")); - sess.logout(); + repository.removeWorkspace(wsEntry.getName()); + assertEquals(1, repository.getWorkspaceNames().length); } - } Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestWorkspaceRestore.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceRestore.java 2011-06-16 08:05:21 UTC (rev 4546) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceRestore.java 2011-06-16 15:14:09 UTC (rev 4547) @@ -52,44 +52,12 @@ = private final Log log =3D ExoLogger.getLogger("exo.jcr.component.core.T= estWorkspaceRestore"); = - private final TesterConfigurationHelper helper =3D TesterConfigurationH= elper.getInstence(); + private final TesterConfigurationHelper helper =3D TesterConfigurationH= elper.getInstance(); = private WorkspaceEntry wsEntry; = private boolean isDefaultWsMultiDb; = - public void _testRestore() throws Exception - { - Session defSession =3D repository.login(this.credentials, "defWs"); - Node defRoot =3D defSession.getRootNode(); - - Node node1 =3D defRoot.addNode("node1"); - node1.setProperty("p1", 2); - defSession.save(); - - File content =3D File.createTempFile("data", ".xml"); - content.deleteOnExit(); - OutputStream os =3D new BufferedOutputStream(new FileOutputStream(co= ntent)); - defSession.exportSystemView(defRoot.getPath(), os, false, false); - os.close(); - defSession.logout(); - WorkspaceEntry workspaceEntry =3D null; - workspaceEntry =3D - helper.getNewWs("testRestore", isDefaultWsMultiDb, wsEntry.getCon= tainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getCont= ainer()); - assertNotNull(workspaceEntry); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep; - - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - defRep.configWorkspace(workspaceEntry); - - defRep.importWorkspace(workspaceEntry.getName(), new BufferedInputSt= ream(new FileInputStream(content))); - - doTestOnWorkspace(workspaceEntry.getName()); - } - @Override public void setUp() throws Exception { @@ -104,8 +72,10 @@ = WorkspaceEntry workspaceEntry =3D null; workspaceEntry =3D - helper.getNewWs("defWs", isDefaultWsMultiDb, wsEntry.getContai= ner().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getC= ontainer()); + helper.getNewWs("defWs", isDefaultWsMultiDb, + wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataC= ontainer.SOURCE_NAME), null, + wsEntry.getContainer(), true); + helper.createWorkspace(workspaceEntry, container); isDefaultWsCreated =3D true; } @@ -114,8 +84,9 @@ public void testRestore() throws RepositoryConfigurationException, Exce= ption { WorkspaceEntry workspaceEntry =3D - helper.getNewWs("testResotore", isDefaultWsMultiDb, wsEntry.getCo= ntainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getCont= ainer()); + helper.getNewWs("testResotore", isDefaultWsMultiDb, + wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataCont= ainer.SOURCE_NAME), null, + wsEntry.getContainer(), true); = RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); RepositoryImpl defRep; @@ -143,8 +114,9 @@ defSession.logout(); WorkspaceEntry workspaceEntry =3D null; workspaceEntry =3D - helper.getNewWs("testRestoreBadXml", isDefaultWsMultiDb, wsEntry.= getContainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), null, wsEntry.getCont= ainer()); + helper.getNewWs("testRestoreBadXml", isDefaultWsMultiDb, + wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataCont= ainer.SOURCE_NAME), null, + wsEntry.getContainer(), true); assertNotNull(workspaceEntry); = RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/storage/ValueStoragePluginTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/storage/ValueStoragePluginTest.java 2011-06-16 08:05:21 UTC (rev = 4546) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/storage/ValueStoragePluginTest.java 2011-06-16 15:14:09 UTC (rev = 4547) @@ -25,8 +25,8 @@ import org.exoplatform.services.jcr.config.WorkspaceEntry; import org.exoplatform.services.jcr.impl.core.RepositoryImpl; import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataCon= tainer; -import org.exoplatform.services.jcr.util.TesterConfigurationHelper; import org.exoplatform.services.jcr.util.IdGenerator; +import org.exoplatform.services.jcr.util.TesterConfigurationHelper; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = @@ -205,7 +205,7 @@ = private String createWs() throws Exception { - TesterConfigurationHelper helper =3D TesterConfigurationHelper.getIn= stence(); + TesterConfigurationHelper helper =3D TesterConfigurationHelper.getIn= stance(); WorkspaceEntry wsEntry =3D (WorkspaceEntry)session.getContainer().ge= tComponentInstanceOfType(WorkspaceEntry.class); boolean isDefaultWsMultiDb =3D false; if ("true".equals(wsEntry.getContainer().getParameterValue("multi-db= "))) @@ -213,12 +213,9 @@ isDefaultWsMultiDb =3D true; } WorkspaceEntry workspaceEntry =3D - helper.getNewWs(IdGenerator.generate(), isDefaultWsMultiDb, wsEnt= ry.getContainer().getParameterValue( - JDBCWorkspaceDataContainer.SOURCE_NAME), "target/temp/values/"= + IdGenerator.generate(), wsEntry - .getContainer()); + helper.createWorkspaceEntry(isDefaultWsMultiDb, + wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataCont= ainer.SOURCE_NAME)); = - helper.createWorkspace(workspaceEntry, container); - return workspaceEntry.getName(); } = Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/util/jdbc/TestDBCleaner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/util/jdbc/TestDBCleaner.java 2011-06-16 08:05:21 UTC (rev 4546) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/util/jdbc/TestDBCleaner.java 2011-06-16 15:14:09 UTC (rev 4547) @@ -59,7 +59,7 @@ public TestDBCleaner() { super(); - this.helper =3D TesterConfigurationHelper.getInstence(); + this.helper =3D TesterConfigurationHelper.getInstance(); } = @SuppressWarnings("deprecation") Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/util/TesterConfigurationHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/util/TesterConfigurationHelper.java 2011-06-16 08:05:21 UTC (rev 4546) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/util/TesterConfigurationHelper.java 2011-06-16 15:14:09 UTC (rev 4547) @@ -27,10 +27,12 @@ import org.exoplatform.services.jcr.config.LockPersisterEntry; import org.exoplatform.services.jcr.config.QueryHandlerEntry; import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; +import org.exoplatform.services.jcr.config.RepositoryEntry; import org.exoplatform.services.jcr.config.SimpleParameterEntry; import org.exoplatform.services.jcr.config.ValueStorageEntry; import org.exoplatform.services.jcr.config.ValueStorageFilterEntry; import org.exoplatform.services.jcr.config.WorkspaceEntry; +import org.exoplatform.services.jcr.core.ManageableRepository; import org.exoplatform.services.jcr.impl.core.RepositoryImpl; import org.exoplatform.services.jcr.impl.storage.jdbc.DialectDetecter; import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataCon= tainer; @@ -38,8 +40,6 @@ import org.exoplatform.services.log.Log; = import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.Properties; @@ -66,49 +66,188 @@ System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.exoplatform= .services.naming.SimpleContextFactory"); } = - public void createWorkspace(WorkspaceEntry workspaceEntry, ExoContainer= container) + /** + * Add new workspace to repository. + */ + public void addWorkspace(ManageableRepository repository, WorkspaceEntr= y workspaceEntry) throws RepositoryConfigurationException, RepositoryException { - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep; + repository.configWorkspace(workspaceEntry); + repository.createWorkspace(workspaceEntry.getName()); + } = - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - defRep.configWorkspace(workspaceEntry); - defRep.createWorkspace(workspaceEntry.getName()); + /** + * Create new datasource. = + * = + * @return datasource name + */ + public String createDatasource() throws Exception + { + String dsName =3D IdGenerator.generate(); = + Properties properties =3D new Properties(); + properties.setProperty("driverClassName", "org.hsqldb.jdbcDriver"); + properties.setProperty("url", "jdbc:hsqldb:file:target/temp/data/" += dsName); + properties.setProperty("username", "sa"); + properties.setProperty("password", ""); + + DataSource ds =3D BasicDataSourceFactory.createDataSource(properties= ); + + new InitialContext().bind(dsName, ds); + + return dsName; + } = - public String getNewDataSource(String type) throws Exception + public ManageableRepository createRepository(ExoContainer container, bo= olean isMultiDb, String dsName) + throws Exception { + RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); + RepositoryEntry repoEntry =3D createRepositoryEntry(isMultiDb, null,= dsName); + service.createRepository(repoEntry); = - String newDS =3D IdGenerator.generate(); - Properties properties =3D new Properties(); + return service.getRepository(repoEntry.getName()); + } = - properties.setProperty("driverClassName", "org.hsqldb.jdbcDriver"); - String newurl =3D "jdbc:hsqldb:file:target/temp/data/" + newDS; + public ManageableRepository createRepository(ExoContainer container, Re= positoryEntry repoEntry) throws Exception + { + RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); + service.createRepository(repoEntry); = - log.info("New url " + newurl); + return service.getRepository(repoEntry.getName()); + } = - properties.setProperty("url", newurl); - properties.setProperty("username", "sa"); - properties.setProperty("password", ""); - DataSource bds =3D BasicDataSourceFactory.createDataSource(propertie= s); - if (!newurl.contains("hsqldb")) + /** + * Create workspace entry. = + */ + public RepositoryEntry createRepositoryEntry(boolean isMultiDb, String = systemWSName, String dsName) throws Exception + { + // create system workspace entry + List ids =3D new ArrayList(); + ids.add("id"); + WorkspaceEntry wsEntry =3D createWorkspaceEntry(isMultiDb, dsName, i= ds); + + if (systemWSName !=3D null) { - createDatabase(bds, newDS); + wsEntry.setName(systemWSName); } = - new InitialContext().bind(newDS, bds); - return newDS; + RepositoryEntry repository =3D new RepositoryEntry(); + repository.setSystemWorkspaceName(wsEntry.getName()); + repository.setDefaultWorkspaceName(wsEntry.getName()); + repository.setName("repo-" + IdGenerator.generate()); + repository.setSessionTimeOut(3600000); + repository.setAuthenticationPolicy("org.exoplatform.services.jcr.imp= l.core.access.JAASAuthenticator"); + repository.setSecurityDomain("exo-domain"); + repository.addWorkspace(wsEntry); = + return repository; } = - public WorkspaceEntry getNewWs(String wsName, boolean isMultiDb, String= dsName, String vsPath, ContainerEntry entry) + /** + * Create workspace entry. = + */ + public WorkspaceEntry createWorkspaceEntry(boolean isMultiDb, String ds= Name) throws Exception + { + List ids =3D new ArrayList(); + ids.add("id"); + + return createWorkspaceEntry(isMultiDb, dsName, ids); + } + + /** + * Create workspace entry. = + */ + public WorkspaceEntry createWorkspaceEntry(boolean isMultiDb, String ds= Name, List valueStorageIds) throws Exception { - return getNewWs(wsName, isMultiDb, dsName, vsPath, entry, true); + if (dsName =3D=3D null) + { + dsName =3D createDatasource(); + } + + String id =3D IdGenerator.generate(); + String wsName =3D "ws-" + id; + + // container entry + List params =3D new ArrayList(); + params.add(new SimpleParameterEntry("source-name", dsName)); + params.add(new SimpleParameterEntry("multi-db", isMultiDb ? "true" := "false")); + params.add(new SimpleParameterEntry("max-buffer-size", "204800")); + params.add(new SimpleParameterEntry("dialect", "auto")); + params.add(new SimpleParameterEntry("swap-directory", "target/temp/s= wap/" + wsName)); + + ContainerEntry containerEntry =3D + new ContainerEntry("org.exoplatform.services.jcr.impl.storage.jdb= c.JDBCWorkspaceDataContainer", + (ArrayList)params); + containerEntry.setParameters(params); + + // value storage + ArrayList list =3D new ArrayList(); + if (valueStorageIds !=3D null) + { + for (String vsId : valueStorageIds) + { + ArrayList vsparams =3D new ArrayList<= ValueStorageFilterEntry>(); + ValueStorageFilterEntry filterEntry =3D new ValueStorageFilter= Entry(); + filterEntry.setPropertyType("Binary"); + vsparams.add(filterEntry); + + ValueStorageEntry valueStorageEntry =3D + new ValueStorageEntry("org.exoplatform.services.jcr.impl.st= orage.value.fs.SimpleFileValueStorage", + vsparams); + ArrayList spe =3D new ArrayList(); + spe.add(new SimpleParameterEntry("path", "target/temp/values/"= + wsName + "-" + vsId)); + valueStorageEntry.setId(vsId); + valueStorageEntry.setParameters(spe); + valueStorageEntry.setFilters(vsparams); + + // containerEntry.setValueStorages(); + containerEntry.setParameters(params); + list.add(valueStorageEntry); + } + } + + containerEntry.setValueStorages(list); + + // Indexer + params =3D new ArrayList(); + params.add(new SimpleParameterEntry("index-dir", "target/temp/index/= " + wsName)); + QueryHandlerEntry qEntry =3D + new QueryHandlerEntry("org.exoplatform.services.jcr.impl.core.que= ry.lucene.SearchIndex", params); + + // Cache + ArrayList cacheParams =3D new ArrayList(); + cacheParams.add(new SimpleParameterEntry("maxSize", "2000")); + cacheParams.add(new SimpleParameterEntry("liveTime", "20m")); + CacheEntry cacheEntry =3D new CacheEntry(cacheParams); + cacheEntry.setType("org.exoplatform.services.jcr.impl.dataflow.persi= stent.LinkedWorkspaceStorageCacheImpl"); + + WorkspaceEntry workspaceEntry =3D new WorkspaceEntry(); + workspaceEntry.setContainer(containerEntry); + workspaceEntry.setCache(cacheEntry); + workspaceEntry.setQueryHandler(qEntry); + workspaceEntry.setName(wsName); + workspaceEntry.setUniqueName(wsName); + + return workspaceEntry; } = + public List getValueStorageIds(ArrayList ent= ries) + { + List ids =3D new ArrayList(); + if (entries !=3D null) + { + for (ValueStorageEntry entry : entries) + { + ids.add(entry.getId()); + } + } + + return ids; + } + + @Deprecated public WorkspaceEntry getNewWs(String wsName, boolean isMultiDb, String= dsName, String vsPath, ContainerEntry entry, boolean newMultiDbDS) throws Exception { @@ -129,7 +268,7 @@ = if (newMultiDbDS && (isMultiDb || dsName =3D=3D null)) { - dsName =3D getNewDataSource(""); + dsName =3D createDatasource(); } = List params =3D new ArrayList(); @@ -220,124 +359,20 @@ return workspaceEntry; } = - // public WorkspaceEntry getNewWsOnDataSource(String wsName, boolean = isMultiDb, String dsName, String vsPath, - // ContainerEntry entry) throws Exception - // { - // - // String dbDialect =3D null; - // if (dsName !=3D null) - // { - // DataSource ds =3D (DataSource)new InitialContext().lookup(ds= Name); - // if (ds !=3D null) - // { - // Connection jdbcConn =3D null; - // - // jdbcConn =3D ds.getConnection(); - // dbDialect =3D DialectDetecter.detect(jdbcConn.getMetaData= ()); - // } - // } - // - // List params =3D new ArrayList(); - // - // if (isMultiDb && dsName =3D=3D null) - // { - // dsName =3D getNewDataSource(""); - // } - // - // params.add(new SimpleParameterEntry("sourceName", dsName)); - // params.add(new SimpleParameterEntry("db-type", "generic")); - // params.add(new SimpleParameterEntry("multi-db", isMultiDb ? "tr= ue" : "false")); - // params.add(new SimpleParameterEntry("update-storage", "true")); - // params.add(new SimpleParameterEntry("max-buffer-size", "204800"= )); - // - // if (dbDialect !=3D null) - // { - // params.add(new SimpleParameterEntry(JDBCWorkspaceDataContain= er.DB_DIALECT, dbDialect)); - // } - // else if (entry.getParameterValue(JDBCWorkspaceDataContainer.DB_= DIALECT) !=3D null) - // { - // params.add(new SimpleParameterEntry(JDBCWorkspaceDataContain= er.DB_DIALECT, entry - // .getParameterValue(JDBCWorkspaceDataContainer.DB_DIALECT)= )); - // } - // - // String oldSwap =3D entry.getParameterValue("swap-directory"); - // String newSwap =3D oldSwap.substring(0, oldSwap.lastIndexOf('/'= )) + '/' + wsName; - // - // params.add(new SimpleParameterEntry("swap-directory", newSwap)); - // - // ContainerEntry containerEntry =3D - // new ContainerEntry("org.exoplatform.services.jcr.impl.storag= e.jdbc.JDBCWorkspaceDataContainer", - // (ArrayList)params); - // containerEntry.setParameters(params); - // - // if (vsPath !=3D null) - // { - // - // ArrayList vsparams =3D new ArrayLis= t(); - // ValueStorageFilterEntry filterEntry =3D new ValueStorageFilt= erEntry(); - // filterEntry.setPropertyType("Binary"); - // vsparams.add(filterEntry); - // - // ValueStorageEntry valueStorageEntry =3D - // new ValueStorageEntry("org.exoplatform.services.jcr.impl.= storage.value.fs.SimpleFileValueStorage", vsparams); - // ArrayList spe =3D new ArrayList(); - // spe.add(new SimpleParameterEntry("path", vsPath)); - // valueStorageEntry.setId(IdGenerator.generate()); - // valueStorageEntry.setParameters(spe); - // valueStorageEntry.setFilters(vsparams); - // - // // containerEntry.setValueStorages(); - // containerEntry.setParameters(params); - // ArrayList list =3D new ArrayList(1); - // list.add(valueStorageEntry); - // - // containerEntry.setValueStorages(list); - // - // } - // - // // Indexer - // ArrayList qParams =3D new ArrayList(); - // qParams.add(new SimpleParameterEntry("indexDir", "../temp/index= /" + IdGenerator.generate())); - // QueryHandlerEntry qEntry =3D - // new QueryHandlerEntry("org.exoplatform.services.jcr.impl.cor= e.query.lucene.SearchIndex", qParams); - // - // WorkspaceEntry workspaceEntry =3D - // new WorkspaceEntry(wsName !=3D null ? wsName : IdGenerator.g= enerate(), "nt:unstructured"); - // workspaceEntry.setContainer(containerEntry); - // - // ArrayList cacheParams =3D new ArrayList(); - // - // cacheParams.add(new SimpleParameterEntry("maxSize", "2000")); - // cacheParams.add(new SimpleParameterEntry("liveTime", "20m")); - // CacheEntry cacheEntry =3D new CacheEntry(cacheParams); - // cacheEntry.setType("org.exoplatform.services.jcr.impl.dataflow.= persistent.LinkedWorkspaceStorageCacheImpl"); - // - // workspaceEntry.setCache(cacheEntry); - // - // workspaceEntry.setQueryHandler(qEntry); - // - // LockManagerEntry lockManagerEntry =3D new LockManagerEntry(); - // lockManagerEntry.setTimeout(900000); - // LockPersisterEntry persisterEntry =3D new LockPersisterEntry(); - // persisterEntry.setType("org.exoplatform.services.jcr.impl.core.= lock.FileSystemLockPersister"); - // ArrayList lpParams =3D new ArrayList(); - // lpParams.add(new SimpleParameterEntry("path", "../temp/lock")); - // persisterEntry.setParameters(lpParams); - // lockManagerEntry.setPersister(persisterEntry); - // workspaceEntry.setLockManager(lockManagerEntry); - // - // // workspaceEntry - // return workspaceEntry; - // } + @Deprecated + public void createWorkspace(WorkspaceEntry workspaceEntry, ExoContainer= container) + throws RepositoryConfigurationException, RepositoryException + { + RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); + RepositoryImpl defRep; = - private void createDatabase(DataSource ds, String dbName) throws SQLExc= eption - { - Connection connection =3D ds.getConnection(); - PreparedStatement st =3D connection.prepareStatement("create databas= e " + dbName); - st.executeQuery(); + defRep =3D (RepositoryImpl)service.getDefaultRepository(); + defRep.configWorkspace(workspaceEntry); + defRep.createWorkspace(workspaceEntry.getName()); + } = - public static TesterConfigurationHelper getInstence() + public static TesterConfigurationHelper getInstance() { if (instance =3D=3D null) { --===============7133574279586445786==-- From do-not-reply at jboss.org Fri Jun 17 09:27:59 2011 Content-Type: multipart/mixed; boundary="===============5251202153029215803==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4548 - in jcr/trunk/exo.jcr.component.core/src: main/java/org/exoplatform/services/jcr/impl/config and 8 other directories. Date: Fri, 17 Jun 2011 09:27:58 -0400 Message-ID: <201106171327.p5HDRwo3005811@svn01.web.mwc.hst.phx2.redhat.com> --===============5251202153029215803== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-17 09:27:57 -0400 (Fri, 17 Jun 2011) New Revision: 4548 Added: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/lock/jbosscache/JDBCCacheLoader.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCUtils.java Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/clean/rdbms/DBClean.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/config/JDBCConfigurationPersister.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/init/IngresSQLDBInitializer.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/init/OracleDBInitializer.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/init/PgSQLDBInitializer.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/util/jdbc/DBInitializer.java jcr/trunk/exo.jcr.component.core/src/main/resources/conf/portal/cluster/= jbosscache-lock.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clus= ter/test-jbosscache-lock.xml jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/test= -jbosscache-lock.xml Log: EXOJCR-1374: committing patch made by Nicolas Filotto Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/clean/rdbms/DBClean.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/clean/rdbms/DBClean.java 2011-06-16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/clean/rdbms/DBClean.java 2011-06-17 13:27:57 UTC (rev 4548) @@ -18,13 +18,13 @@ = import org.exoplatform.commons.utils.SecurityHelper; import org.exoplatform.services.jcr.core.security.JCRRuntimePermissions; +import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCUtils; import org.exoplatform.services.jcr.impl.util.jdbc.DBInitializer; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = import java.security.PrivilegedExceptionAction; import java.sql.Connection; -import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; @@ -194,27 +194,7 @@ */ protected boolean isTableExists(Connection conn, String tableName) thro= ws SQLException { - ResultSet trs =3D conn.getMetaData().getTables(null, null, tableName= , null); - try - { - boolean res =3D false; - while (trs.next()) - { - res =3D true; // check for columns/table type matching etc. - } - return res; - } - finally - { - try - { - trs.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } + return JDBCUtils.tableExists(tableName, conn); } = /** Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/config/JDBCConfigurationPersister.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-16 15:14:09 UTC (r= ev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-17 13:27:57 UTC (r= ev 4548) @@ -24,6 +24,7 @@ import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; import org.exoplatform.services.jcr.impl.storage.jdbc.DBConstants; import org.exoplatform.services.jcr.impl.storage.jdbc.DialectDetecter; +import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCUtils; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = @@ -31,6 +32,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; +import java.security.PrivilegedAction; import java.security.PrivilegedExceptionAction; import java.sql.Connection; import java.sql.PreparedStatement; @@ -220,36 +222,14 @@ */ protected boolean isDbInitialized(final Connection con) { - try + return SecurityHelper.doPrivilegedAction(new PrivilegedAction() { - ResultSet trs =3D SecurityHelper.doPrivilegedSQLExceptionAction(n= ew PrivilegedExceptionAction() - { - public ResultSet run() throws Exception - { - return con.getMetaData().getTables(null, null, configTableN= ame, null); - } - }); = - try + public Boolean run() { - return trs.next(); + return JDBCUtils.tableExists(configTableName, con); } - finally - { - try - { - trs.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } - } - catch (SQLException e) - { - return false; - } + }); } = public boolean hasConfig() throws RepositoryConfigurationException Added: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/servi= ces/jcr/impl/core/lock/jbosscache/JDBCCacheLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/lock/jbosscache/JDBCCacheLoader.java = (rev 0) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/lock/jbosscache/JDBCCacheLoader.java 2011-06-17 13:27:57 UTC= (rev 4548) @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2011 eXo Platform SAS. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.exoplatform.services.jcr.impl.core.lock.jbosscache; + +import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCUtils; +import org.jboss.cache.config.CacheLoaderConfig; +import org.jboss.cache.loader.AdjListJDBCCacheLoaderConfig; + +import java.sql.Connection; + + +/** + * This class is used to override the method AdjListJDBCCacheLoader#tableE= xists in order + * to more easily ensure multi-schema support. + * = + * @author Nicolas Filotto + * @version $Id$ + * + */ +public class JDBCCacheLoader extends org.jboss.cache.loader.JDBCCacheLoader +{ + + @Override + protected boolean tableExists(String tableName, Connection con) + { + return JDBCUtils.tableExists(tableName, con); + } + = + /** + * @see org.jboss.cache.loader.AdjListJDBCCacheLoader#processConfig(org= .jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig) + */ + @Override + protected AdjListJDBCCacheLoaderConfig processConfig(CacheLoaderConfig.= IndividualCacheLoaderConfig base) + { + AdjListJDBCCacheLoaderConfig config =3D super.processConfig(base); + config.setClassName(getClass().getName()); + return config; + } +} Property changes on: jcr/trunk/exo.jcr.component.core/src/main/java/org/exo= platform/services/jcr/impl/core/lock/jbosscache/JDBCCacheLoader.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/servi= ces/jcr/impl/storage/jdbc/JDBCUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java (rev 0) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-17 13:27:57 UTC (rev 4548) @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2011 eXo Platform SAS. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.exoplatform.services.jcr.impl.storage.jdbc; + +import org.exoplatform.services.log.ExoLogger; +import org.exoplatform.services.log.Log; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; + +/** + * This class provides JDBC tools + * = + * @author Nicolas Filotto + * @version $Id$ + * + */ +public class JDBCUtils +{ + private static final Log LOG =3D ExoLogger.getLogger("exo.jcr.component= .core.JDBCUtils"); + + private JDBCUtils() + { + } + + /** + * Indicates whether or not a given table exists + * @param tableName the name of the table to check + * @param con the connection to use + * @return true if it exists, false otherwise + */ + public static boolean tableExists(String tableName, Connection con) + { + Statement stmt =3D null; + ResultSet trs =3D null; + try + { + stmt =3D con.createStatement(); + trs =3D stmt.executeQuery("SELECT count(*) FROM " + tableName); + return trs.next(); + } + catch (SQLException e) + { + if (LOG.isDebugEnabled()) + { + LOG.debug("SQLException occurs while checking the table " + ta= bleName, e); + } + return false; + } + finally + { + if (trs !=3D null) + { + try + { + trs.close(); + } + catch (SQLException e) + { + LOG.error("Can't close the ResultSet: " + e); + } + } + if (stmt !=3D null) + { + try + { + stmt.close(); + } + catch (SQLException e) + { + LOG.error("Can't close the Statement: " + e); + } + } + } + } +} Property changes on: jcr/trunk/exo.jcr.component.core/src/main/java/org/exo= platform/services/jcr/impl/storage/jdbc/JDBCUtils.java ___________________________________________________________________ Added: svn:mime-type + text/plain Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/init/IngresSQLDBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/IngresSQLDBInitializer.java 2011-06-16 15:14:09= UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/IngresSQLDBInitializer.java 2011-06-17 13:27:57= UTC (rev 4548) @@ -48,15 +48,6 @@ * {@inheritDoc} */ @Override - protected boolean isIndexExists(Connection conn, String tableName, Stri= ng indexName) throws SQLException - { - return super.isIndexExists(conn, tableName.toUpperCase().toLowerCase= (), indexName.toUpperCase().toLowerCase()); - } - - /** - * {@inheritDoc} - */ - @Override protected boolean isTableExists(Connection conn, String tableName) thro= ws SQLException { return super.isTableExists(conn, tableName.toUpperCase().toLowerCase= ()); Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/init/OracleDBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/OracleDBInitializer.java 2011-06-16 15:14:09 UT= C (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/OracleDBInitializer.java 2011-06-17 13:27:57 UT= C (rev 4548) @@ -93,127 +93,4 @@ } } } - - @Override - protected boolean isTriggerExists(Connection conn, String triggerName) = throws SQLException - { - String sql =3D "SELECT COUNT(trigger_name) FROM all_triggers WHERE t= rigger_name =3D '" + triggerName + "'"; - Statement st =3D null; - ResultSet r =3D null; - try - { - st =3D conn.createStatement(); - r =3D st.executeQuery(sql); - - if (r.next()) - return r.getInt(1) > 0; - else - return false; - } - finally - { - if (r !=3D null) - { - try - { - r.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } - - if (st !=3D null) - { - try - { - st.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the Statement: " + e); - } - } - } - } - - @Override - protected boolean isTableExists(Connection conn, String tableName) thro= ws SQLException - { - Statement st =3D null; - try - { - st =3D conn.createStatement(); - st.executeUpdate("SELECT 1 FROM " + tableName); - return true; - } - catch (SQLException e) - { - // check: ORA-00942: table or view does not exist - if (e.getMessage().indexOf("ORA-00942") >=3D 0) - return false; - throw e; - } - finally - { - if (st !=3D null) - { - try - { - st.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the Statement: " + e); - } - } - } - } - - @Override - protected boolean isIndexExists(Connection conn, String tableName, Stri= ng indexName) throws SQLException - { - // use of oracle system view - String sql =3D "SELECT COUNT(index_name) FROM all_indexes WHERE inde= x_name=3D'" + indexName + "'"; - Statement st =3D null; - ResultSet r =3D null; - try - { - st =3D conn.createStatement(); - r =3D st.executeQuery(sql); - - if (r.next()) - return r.getInt(1) > 0; - else - return false; - } - finally - { - if (r !=3D null) - { - try - { - r.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } - - if (st !=3D null) - { - try - { - st.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the Statement: " + e); - } - } - - } - } } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/init/PgSQLDBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/PgSQLDBInitializer.java 2011-06-16 15:14:09 UTC= (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/init/PgSQLDBInitializer.java 2011-06-17 13:27:57 UTC= (rev 4548) @@ -43,12 +43,6 @@ } = @Override - protected boolean isIndexExists(Connection conn, String tableName, Stri= ng indexName) throws SQLException - { - return super.isIndexExists(conn, tableName.toUpperCase().toLowerCase= (), indexName.toUpperCase().toLowerCase()); - } - - @Override protected boolean isTableExists(Connection conn, String tableName) thro= ws SQLException { return super.isTableExists(conn, tableName.toUpperCase().toLowerCase= ()); Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java 2011-06= -16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java 2011-06= -17 13:27:57 UTC (rev 4548) @@ -22,6 +22,7 @@ import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; import org.exoplatform.services.jcr.impl.storage.jdbc.DBConstants; import org.exoplatform.services.jcr.impl.storage.jdbc.DialectDetecter; +import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCUtils; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = @@ -222,10 +223,8 @@ "SELECT DISTINCT C.PROPERTY_ID AS PROPERTY_ID FROM " + tabl= eName + " C, " + tableName + " P " + "WHERE C.CAS_ID=3DP.CAS_ID AND C.PROPERTY_ID<>P.PROPER= TY_ID AND P.PROPERTY_ID=3D?"; = - // init database objects - ResultSet trs =3D dbMetaData.getTables(null, null, tableName, = null); // check if table already exists - if (!trs.next()) + if (!JDBCUtils.tableExists(tableName, conn)) { st =3D conn.createStatement(); = Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/util/jdbc/DBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-17 13:27:57 UTC (rev 4548) @@ -19,6 +19,7 @@ package org.exoplatform.services.jcr.impl.util.jdbc; = import org.exoplatform.commons.utils.SecurityHelper; +import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCUtils; import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = @@ -28,10 +29,10 @@ import java.security.PrivilegedAction; import java.security.PrivilegedExceptionAction; import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; +import java.util.HashSet; +import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; = @@ -173,77 +174,22 @@ = protected boolean isTableExists(final Connection conn, final String tab= leName) throws SQLException { - ResultSet trs =3D SecurityHelper.doPrivilegedSQLExceptionAction(new = PrivilegedExceptionAction() + return SecurityHelper.doPrivilegedAction(new PrivilegedAction() { - public ResultSet run() throws Exception + public Boolean run() { - return conn.getMetaData().getTables(null, null, tableName, nul= l); + return JDBCUtils.tableExists(tableName, conn); } }); - - try - { - boolean res =3D false; - while (trs.next()) - { - res =3D true; // check for columns/table type matching etc. - } - return res; - } - finally - { - try - { - trs.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } } - - protected boolean isIndexExists(Connection conn, String tableName, Stri= ng indexName) throws SQLException - { - ResultSet irs =3D conn.getMetaData().getIndexInfo(null, null, tableN= ame, false, true); - try - { - boolean res =3D false; - while (irs.next()) - { - if (irs.getShort("TYPE") !=3D DatabaseMetaData.tableIndexStati= stic - && irs.getString("INDEX_NAME").equalsIgnoreCase(indexName)) - { - res =3D true; // check for index params matching etc. - } - } - return res; - } - finally - { - try - { - irs.close(); - } - catch (SQLException e) - { - LOG.error("Can't close the ResultSet: " + e); - } - } - } - + = protected boolean isSequenceExists(Connection conn, String sequenceName= ) throws SQLException { return false; } = - protected boolean isTriggerExists(Connection conn, String triggerName) = throws SQLException + private boolean isObjectExists(Connection conn, String sql, Set= existingTables) throws SQLException { - return false; - } - - public boolean isObjectExists(Connection conn, String sql) throws SQLEx= ception - { Matcher tMatcher =3D creatTablePattern.matcher(sql); if (tMatcher.find()) { @@ -259,6 +205,7 @@ { LOG.debug("Table is already exists " + tableName); } + existingTables.add(tableName); return true; } } @@ -277,6 +224,7 @@ { LOG.debug("View is already exists " + tableName); } + existingTables.add(tableName); return true; } } @@ -295,11 +243,11 @@ if ((tMatcher =3D dbObjectNamePattern.matcher(onTableName))= .find()) { String tableName =3D onTableName.substring(tMatcher.star= t(), tMatcher.end()); - if (isIndexExists(conn, tableName, indexName)) + if (existingTables.contains(tableName)) { if (LOG.isDebugEnabled()) { - LOG.debug("Index is already exists " + indexName); + LOG.debug("The table " + tableName + " already exi= sts so we assume that the index " + indexName + " exists also."); } return true; } @@ -343,11 +291,11 @@ { // got trigger name String triggerName =3D sql.substring(tMatcher.start(), tMatche= r.end()); - if (isTriggerExists(conn, triggerName)) + if (!existingTables.isEmpty()) { if (LOG.isDebugEnabled()) { - LOG.debug("Trigger is already exists " + triggerName); + LOG.debug("At least one table has been created so we ass= ume that the trigger " + triggerName + " exists also"); } return true; } @@ -394,6 +342,7 @@ = String sql =3D null; Statement st =3D null; + Set existingTables =3D new HashSet(); try { st =3D connection.createStatement(); @@ -404,7 +353,7 @@ String s =3D cleanWhitespaces(scr.trim()); if (s.length() > 0) { - if (isObjectExists(connection, sql =3D s)) + if (isObjectExists(connection, sql =3D s, existingTables)) { continue; } @@ -445,7 +394,7 @@ boolean isAlreadyCreated =3D false; try { - isAlreadyCreated =3D isObjectExists(connection, sql); + isAlreadyCreated =3D isObjectExists(connection, sql, existingT= ables); } catch (SQLException ce) { Modified: jcr/trunk/exo.jcr.component.core/src/main/resources/conf/portal/c= luster/jbosscache-lock.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/resources/conf/portal/cluster= /jbosscache-lock.xml 2011-06-16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/main/resources/conf/portal/cluster= /jbosscache-lock.xml 2011-06-17 13:27:57 UTC (rev 4548) @@ -18,7 +18,7 @@ For another cache-loader class you should use another template with cache-loader specific parameters --> - cache.jdbc.table.name=3D${jbosscache-cl-cache.jdbc.table.name} Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/cluster/test-jbosscache-lock.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-jbosscache-lock.xml 2011-06-16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/clu= ster/test-jbosscache-lock.xml 2011-06-17 13:27:57 UTC (rev 4548) @@ -18,7 +18,7 @@ For another cache-loader class you should use another template with cache-loader specific parameters --> - cache.jdbc.table.name=3D${jbosscache-cl-cache.jdbc.table.name} Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalo= ne/test-jbosscache-lock.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-jbosscache-lock.xml 2011-06-16 15:14:09 UTC (rev 4547) +++ jcr/trunk/exo.jcr.component.core/src/test/resources/conf/standalone/tes= t-jbosscache-lock.xml 2011-06-17 13:27:57 UTC (rev 4548) @@ -13,7 +13,7 @@ For another cache-loader class you should use another template with cache-loader specific parameters --> - cache.jdbc.table.name=3D${jbosscache-cl-cache.jdbc.table.name} --===============5251202153029215803==-- From do-not-reply at jboss.org Mon Jun 20 10:52:17 2011 Content-Type: multipart/mixed; boundary="===============6674074310736510031==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4549 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc. Date: Mon, 20 Jun 2011 10:52:17 -0400 Message-ID: <201106201452.p5KEqHvc010261@svn01.web.mwc.hst.phx2.redhat.com> --===============6674074310736510031== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-20 10:52:16 -0400 (Mon, 20 Jun 2011) New Revision: 4549 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCUtils.java Log: EXOJCR-1374: rolling back to stored savePoint in case of failed query, for = transaction to operate in a normal way, like no fails existed. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-17 13:27:57 UTC (rev 4548) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-20 14:52:16 UTC (rev 4549) @@ -24,6 +24,7 @@ import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Savepoint; import java.sql.Statement; = /** @@ -51,14 +52,36 @@ { Statement stmt =3D null; ResultSet trs =3D null; + Savepoint savePoint =3D null; + Boolean autoCommit =3D null; try { + // safe get autoCommit value + autoCommit =3D con.getAutoCommit(); + // set autoCommit to true + con.setAutoCommit(false); + // make a savepoint (snapshot) + savePoint =3D con.setSavepoint(); stmt =3D con.createStatement(); trs =3D stmt.executeQuery("SELECT count(*) FROM " + tableName); return trs.next(); } catch (SQLException e) { + if (savePoint !=3D null) + { + try + { + // revert state to savePoint after failed query in transact= ion. This will allow following queries to = + // be executed in an ordinary way, like no failed query exi= sted. + // Obligatory operation for PostgreSQL. + con.rollback(savePoint); + } + catch (SQLException e1) + { + LOG.error("Can't rollback to savePoint", e1); + } + } if (LOG.isDebugEnabled()) { LOG.debug("SQLException occurs while checking the table " + ta= bleName, e); @@ -67,6 +90,17 @@ } finally { + if (autoCommit !=3D null) + { + try + { + con.setAutoCommit(autoCommit); + } + catch (SQLException e) + { + LOG.error("Can't set autoCommit value back", e); + } + } if (trs !=3D null) { try --===============6674074310736510031==-- From do-not-reply at jboss.org Mon Jun 20 11:01:13 2011 Content-Type: multipart/mixed; boundary="===============5284602701023095695==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4550 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc. Date: Mon, 20 Jun 2011 11:01:13 -0400 Message-ID: <201106201501.p5KF1DaT017036@svn01.web.mwc.hst.phx2.redhat.com> --===============5284602701023095695== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-20 11:01:13 -0400 (Mon, 20 Jun 2011) New Revision: 4550 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCUtils.java Log: EXOJCR-1374: giving a name for savePoint. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-20 14:52:16 UTC (rev 4549) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-20 15:01:13 UTC (rev 4550) @@ -61,7 +61,7 @@ // set autoCommit to true con.setAutoCommit(false); // make a savepoint (snapshot) - savePoint =3D con.setSavepoint(); + savePoint =3D con.setSavepoint(""); stmt =3D con.createStatement(); trs =3D stmt.executeQuery("SELECT count(*) FROM " + tableName); return trs.next(); --===============5284602701023095695==-- From do-not-reply at jboss.org Tue Jun 21 07:09:27 2011 Content-Type: multipart/mixed; boundary="===============0527447662034452899==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4551 - in jcr/branches/1.12.x/patch/1.12.10-GA: JCR-1639 and 1 other directory. Date: Tue, 21 Jun 2011 07:09:27 -0400 Message-ID: <201106211109.p5LB9RNO031530@svn01.web.mwc.hst.phx2.redhat.com> --===============0527447662034452899== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-21 07:09:27 -0400 (Tue, 21 Jun 2011) New Revision: 4551 Added: jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/ jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch Log: JCR-1639: patch proposed Added: jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch = (rev 0) +++ jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch 2011-06-21= 11:09:27 UTC (rev 4551) @@ -0,0 +1,17 @@ +Index: exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/i= mpl/storage/jdbc/JDBCStorageConnection.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl= /storage/jdbc/JDBCStorageConnection.java (revision 4550) ++++ exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl= /storage/jdbc/JDBCStorageConnection.java (working copy) +@@ -373,10 +373,9 @@ + { + closeStatements(); + = +- // If READ-ONLY status back it to READ-WRITE (we assume it was o= riginal state) +- if (readOnly) ++ if (dbConnection.getTransactionIsolation() > Connection.TRANSACT= ION_READ_COMMITTED) + { +- dbConnection.setReadOnly(true); ++ dbConnection.rollback(); + } + = + dbConnection.close(); --===============0527447662034452899==-- From do-not-reply at jboss.org Tue Jun 21 07:19:19 2011 Content-Type: multipart/mixed; boundary="===============5502112726645251494==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4552 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc. Date: Tue, 21 Jun 2011 07:19:19 -0400 Message-ID: <201106211119.p5LBJJPX032357@svn01.web.mwc.hst.phx2.redhat.com> --===============5502112726645251494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-21 07:19:18 -0400 (Tue, 21 Jun 2011) New Revision: 4552 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCStorageConnection.java Log: EXOJCR-1392 Delay in replication of Nodes data in JBoss EPP Cluster. Do rol= lback on connection close() in case when IL > READ_COMMITTED Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCStorageConnection.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCStorageConnection.java 2011-06-21 11:09:27 UTC (= rev 4551) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCStorageConnection.java 2011-06-21 11:19:18 UTC (= rev 4552) @@ -383,10 +383,9 @@ { closeStatements(); = - // If READ-ONLY status back it to READ-WRITE (we assume it was or= iginal state) - if (readOnly) + if (dbConnection.getTransactionIsolation() > Connection.TRANSACTI= ON_READ_COMMITTED) { - dbConnection.setReadOnly(true); + dbConnection.rollback(); } = dbConnection.close(); --===============5502112726645251494==-- From do-not-reply at jboss.org Tue Jun 21 07:28:43 2011 Content-Type: multipart/mixed; boundary="===============7772167688568481792==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4553 - jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639. Date: Tue, 21 Jun 2011 07:28:43 -0400 Message-ID: <201106211128.p5LBShul001319@svn01.web.mwc.hst.phx2.redhat.com> --===============7772167688568481792== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-21 07:28:42 -0400 (Tue, 21 Jun 2011) New Revision: 4553 Modified: jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch Log: JCR-1639: patch updated Modified: jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch 2011-06-21= 11:19:18 UTC (rev 4552) +++ jcr/branches/1.12.x/patch/1.12.10-GA/JCR-1639/JCR-1639.patch 2011-06-21= 11:28:42 UTC (rev 4553) @@ -2,16 +2,22 @@ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl= /storage/jdbc/JDBCStorageConnection.java (revision 4550) +++ exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl= /storage/jdbc/JDBCStorageConnection.java (working copy) -@@ -373,10 +373,9 @@ +@@ -373,12 +373,17 @@ { closeStatements(); = - // If READ-ONLY status back it to READ-WRITE (we assume it was o= riginal state) -- if (readOnly) -+ if (dbConnection.getTransactionIsolation() > Connection.TRANSACT= ION_READ_COMMITTED) ++ // If READ-ONLY status back it to READ-WRITE (we assume it was o= riginal state) = + if (readOnly) { -- dbConnection.setReadOnly(true); -+ dbConnection.rollback(); + dbConnection.setReadOnly(true); } = ++ if (dbConnection.getTransactionIsolation() > Connection.TRANSACT= ION_READ_COMMITTED) ++ { ++ dbConnection.rollback(); ++ } ++ dbConnection.close(); + } + catch (SQLException e) --===============7772167688568481792==-- From do-not-reply at jboss.org Tue Jun 21 07:30:34 2011 Content-Type: multipart/mixed; boundary="===============2749590414705593259==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4554 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc. Date: Tue, 21 Jun 2011 07:30:34 -0400 Message-ID: <201106211130.p5LBUYsa001777@svn01.web.mwc.hst.phx2.redhat.com> --===============2749590414705593259== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-21 07:30:34 -0400 (Tue, 21 Jun 2011) New Revision: 4554 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCStorageConnection.java Log: EXOJCR-1392 Delay in replication of Nodes data in JBoss EPP Cluster. Revert= changes about setReadOnly() Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCStorageConnection.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCStorageConnection.java 2011-06-21 11:28:42 UTC (= rev 4553) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCStorageConnection.java 2011-06-21 11:30:34 UTC (= rev 4554) @@ -383,6 +383,12 @@ { closeStatements(); = + // If READ-ONLY status back it to READ-WRITE (we assume it was or= iginal state) = + if (readOnly) + { + dbConnection.setReadOnly(true); + } + if (dbConnection.getTransactionIsolation() > Connection.TRANSACTI= ON_READ_COMMITTED) { dbConnection.rollback(); --===============2749590414705593259==-- From do-not-reply at jboss.org Tue Jun 21 09:38:20 2011 Content-Type: multipart/mixed; boundary="===============3841466186005694637==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4555 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core. Date: Tue, 21 Jun 2011 09:38:19 -0400 Message-ID: <201106211338.p5LDcJrM026317@svn01.web.mwc.hst.phx2.redhat.com> --===============3841466186005694637== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-21 09:38:19 -0400 (Tue, 21 Jun 2011) New Revision: 4555 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/SessionDataManager.java Log: EXOJCR-1382: some performance tweak Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/SessionDataManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/SessionDataManager.java 2011-06-21 11:30:34 UTC (rev 4554) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/SessionDataManager.java 2011-06-21 13:38:19 UTC (rev 4555) @@ -435,7 +435,7 @@ ItemImpl item =3D null; try { - return item =3D readItem(getItemData(parent, name, skipCheckInPer= sistence, itemType), pool); + return item =3D readItem(getItemData(parent, name, skipCheckInPer= sistence, itemType), parent, pool, true); } finally { --===============3841466186005694637==-- From do-not-reply at jboss.org Tue Jun 21 09:51:53 2011 Content-Type: multipart/mixed; boundary="===============8301038721427306040==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4556 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc. Date: Tue, 21 Jun 2011 09:51:53 -0400 Message-ID: <201106211351.p5LDprBK027641@svn01.web.mwc.hst.phx2.redhat.com> --===============8301038721427306040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-21 09:51:52 -0400 (Tue, 21 Jun 2011) New Revision: 4556 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCUtils.java Log: EXOJCR-1374: giving a name for savePoint. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-21 13:38:19 UTC (rev 4555) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-21 13:51:52 UTC (rev 4556) @@ -61,7 +61,7 @@ // set autoCommit to true con.setAutoCommit(false); // make a savepoint (snapshot) - savePoint =3D con.setSavepoint(""); + savePoint =3D con.setSavepoint(Thread.currentThread().getName()+S= ystem.currentTimeMillis()); stmt =3D con.createStatement(); trs =3D stmt.executeQuery("SELECT count(*) FROM " + tableName); return trs.next(); --===============8301038721427306040==-- From do-not-reply at jboss.org Wed Jun 22 02:09:50 2011 Content-Type: multipart/mixed; boundary="===============2026767760281253284==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4557 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core. Date: Wed, 22 Jun 2011 02:09:49 -0400 Message-ID: <201106220609.p5M69n9i001367@svn01.web.mwc.hst.phx2.redhat.com> --===============2026767760281253284== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-22 02:09:49 -0400 (Wed, 22 Jun 2011) New Revision: 4557 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/ItemImpl.java Log: EXOJCR-1057: check is node locking first to avoid putting into the cache nu= ll item Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/ItemImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/ItemImpl.java 2011-06-21 13:51:52 UTC (rev 4556) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/ItemImpl.java 2011-06-22 06:09:49 UTC (rev 4557) @@ -427,7 +427,18 @@ boolean multiValue, int expectedType) throws ValueFormatException, V= ersionException, LockException, ConstraintViolationException, RepositoryException { + // Check if checked-in (versionable) + if (!parentNode.checkedOut()) + { + throw new VersionException("Node " + parentNode.getPath() + " or = its nearest ancestor is checked-in"); + } = + // Check is locked + if (!parentNode.checkLocking()) + { + throw new LockException("Node " + parentNode.getPath() + " is loc= ked "); + } + QPath qpath =3D QPath.makeChildPath(parentNode.getInternalPath(), pr= opertyName); = int state; @@ -508,18 +519,6 @@ + locationFactory.createJCRPath(qpath).getAsString(false)); } = - // Check if checked-in (versionable) - if (!parentNode.checkedOut()) - { - throw new VersionException("Node " + parentNode.getPath() + " or = its nearest ancestor is checked-in"); - } - - // Check is locked - if (!parentNode.checkLocking()) - { - throw new LockException("Node " + parentNode.getPath() + " is loc= ked "); - } - List valueDataList =3D new ArrayList(); = // cast to required type if neccessary --===============2026767760281253284==-- From do-not-reply at jboss.org Wed Jun 22 02:21:01 2011 Content-Type: multipart/mixed; boundary="===============3419133465676579295==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4558 - jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup. Date: Wed, 22 Jun 2011 02:21:00 -0400 Message-ID: <201106220621.p5M6L0nh002674@svn01.web.mwc.hst.phx2.redhat.com> --===============3419133465676579295== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-22 02:21:00 -0400 (Wed, 22 Jun 2011) New Revision: 4558 Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/j= cr/ext/backup/AbstractBackupUseCasesTest.java Log: EXOJCR-852: temporary exlude tests - testAutoStopRepositoryBackupIncrRepetion - testAutoStopBackupIncr Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/ser= vices/jcr/ext/backup/AbstractBackupUseCasesTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupUseCasesTest.java 2011-06-22 06:09:49 UTC (rev= 4557) +++ jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupUseCasesTest.java 2011-06-22 06:21:00 UTC (rev= 4558) @@ -221,7 +221,7 @@ } } = - public void testAutoStopBackupIncrRepetion() throws Exception + public void _testAutoStopBackupIncrRepetion() throws Exception { // prepare ManageableRepository repository =3D helper.createRepository(containe= r, true, null); @@ -499,7 +499,7 @@ checkConent(repositoryService.getRepository(newRE.getName()), newRE.= getSystemWorkspaceName()); } = - public void testAutoStopRepositoryBackupIncrRepetion() throws Exception + public void _testAutoStopRepositoryBackupIncrRepetion() throws Exception { // prepare ManageableRepository repository =3D helper.createRepository(containe= r, true, null); @@ -538,7 +538,7 @@ backup.restore(bchLog, newRE, workspaceMapping, true); waitEndOfRestore(newRE.getName()); = - Thread.sleep(30000); + Thread.sleep(60000); assertEquals(backup.getCurrentRepositoryBackups().size(), 0); } = --===============3419133465676579295==-- From do-not-reply at jboss.org Wed Jun 22 04:07:20 2011 Content-Type: multipart/mixed; boundary="===============3965978080667882965==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4559 - jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core. Date: Wed, 22 Jun 2011 04:07:20 -0400 Message-ID: <201106220807.p5M87KN0025290@svn01.web.mwc.hst.phx2.redhat.com> --===============3965978080667882965== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-22 04:07:20 -0400 (Wed, 22 Jun 2011) New Revision: 4559 Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/= jcr/impl/core/TestWorkspaceRestore.java Log: EXOJCR-852: fix tests Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/se= rvices/jcr/impl/core/TestWorkspaceRestore.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceRestore.java 2011-06-22 06:21:00 UTC (rev 4558) +++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services= /jcr/impl/core/TestWorkspaceRestore.java 2011-06-22 08:07:20 UTC (rev 4559) @@ -22,10 +22,8 @@ import org.exoplatform.services.jcr.RepositoryService; import org.exoplatform.services.jcr.config.RepositoryConfigurationExceptio= n; import org.exoplatform.services.jcr.config.WorkspaceEntry; -import org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataCon= tainer; +import org.exoplatform.services.jcr.core.ManageableRepository; import org.exoplatform.services.jcr.util.TesterConfigurationHelper; -import org.exoplatform.services.log.ExoLogger; -import org.exoplatform.services.log.Log; = import java.io.BufferedInputStream; import java.io.BufferedOutputStream; @@ -47,11 +45,6 @@ */ public class TestWorkspaceRestore extends JcrImplBaseTest { - - private static boolean isDefaultWsCreated =3D false; - - private final Log log =3D ExoLogger.getLogger("exo.jcr.component.core.T= estWorkspaceRestore"); - private final TesterConfigurationHelper helper =3D TesterConfigurationH= elper.getInstance(); = private WorkspaceEntry wsEntry; @@ -63,43 +56,33 @@ { super.setUp(); wsEntry =3D (WorkspaceEntry)session.getContainer().getComponentInsta= nceOfType(WorkspaceEntry.class); - if ("true".equals(wsEntry.getContainer().getParameterValue("multi-db= "))) - { - isDefaultWsMultiDb =3D true; - } - if (!isDefaultWsCreated) - { - - WorkspaceEntry workspaceEntry =3D null; - workspaceEntry =3D - helper.getNewWs("defWs", isDefaultWsMultiDb, - wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataC= ontainer.SOURCE_NAME), null, - wsEntry.getContainer(), true); - - helper.createWorkspace(workspaceEntry, container); - isDefaultWsCreated =3D true; - } + = + isDefaultWsMultiDb =3D "true".equals(wsEntry.getContainer().getParam= eterValue("multi-db")); = } = public void testRestore() throws RepositoryConfigurationException, Exce= ption { + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, isDefaultWsMultiDb, dsName); + WorkspaceEntry workspaceEntry =3D - helper.getNewWs("testResotore", isDefaultWsMultiDb, - wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataCont= ainer.SOURCE_NAME), null, - wsEntry.getContainer(), true); + helper.createWorkspaceEntry(isDefaultWsMultiDb, isDefaultWsMultiD= b ? helper.createDatasource() : dsName); + helper.addWorkspace(repository, workspaceEntry); = - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep; - - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - defRep.configWorkspace(workspaceEntry); InputStream is =3D TestWorkspaceManagement.class.getResourceAsStream= ("/import-export/db1_ws1-20071220_0430.xml"); - repository.importWorkspace("testResotore", is); + repository.importWorkspace(workspaceEntry.getName(), is); } = public void testRestoreBadXml() throws Exception { - Session defSession =3D repository.login(this.credentials /* session.= getCredentials() */, "defWs"); + String dsName =3D helper.createDatasource(); + ManageableRepository repository =3D helper.createRepository(containe= r, isDefaultWsMultiDb, dsName); + + WorkspaceEntry workspaceEntry =3D + helper.createWorkspaceEntry(isDefaultWsMultiDb, isDefaultWsMultiD= b ? helper.createDatasource() : dsName); + helper.addWorkspace(repository, workspaceEntry); + + Session defSession =3D repository.login(this.credentials, workspaceE= ntry.getName()); Node defRoot =3D defSession.getRootNode(); = Node node1 =3D defRoot.addNode("node1"); @@ -112,22 +95,12 @@ defSession.exportSystemView(node1.getPath(), os, false, false); os.close(); defSession.logout(); - WorkspaceEntry workspaceEntry =3D null; - workspaceEntry =3D - helper.getNewWs("testRestoreBadXml", isDefaultWsMultiDb, - wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataCont= ainer.SOURCE_NAME), null, - wsEntry.getContainer(), true); - assertNotNull(workspaceEntry); - - RepositoryService service =3D (RepositoryService)container.getCompon= entInstanceOfType(RepositoryService.class); - RepositoryImpl defRep; - - defRep =3D (RepositoryImpl)service.getDefaultRepository(); - defRep.configWorkspace(workspaceEntry); - + = try { - defRep.importWorkspace(workspaceEntry.getName(), new BufferedInpu= tStream(new FileInputStream(content))); + InputStream is =3D TestWorkspaceManagement.class.getResourceAsStr= eam("/import-export/db1_ws1-20071220_0430.xml"); + repository.importWorkspace(workspaceEntry.getName(), new Buffered= InputStream(new FileInputStream(content))); + fail(); } catch (RepositoryException e) --===============3965978080667882965==-- From do-not-reply at jboss.org Wed Jun 22 07:46:53 2011 Content-Type: multipart/mixed; boundary="===============3089917116000687677==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4560 - core/trunk/exo.core.component.security.core/src/main/java/org/exoplatform/services/security/j2ee. Date: Wed, 22 Jun 2011 07:46:52 -0400 Message-ID: <201106221146.p5MBkqYJ001004@svn01.web.mwc.hst.phx2.redhat.com> --===============3089917116000687677== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-22 07:46:51 -0400 (Wed, 22 Jun 2011) New Revision: 4560 Modified: core/trunk/exo.core.component.security.core/src/main/java/org/exoplatfor= m/services/security/j2ee/JbossLoginModule.java Log: EXOJCR-1303: WARN No principal found when performing JBoss security manager= cache eviction. log.warn() was replaced by log.degug() Modified: core/trunk/exo.core.component.security.core/src/main/java/org/exo= platform/services/security/j2ee/JbossLoginModule.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/exo.core.component.security.core/src/main/java/org/exoplatfo= rm/services/security/j2ee/JbossLoginModule.java 2011-06-22 08:07:20 UTC (re= v 4559) +++ core/trunk/exo.core.component.security.core/src/main/java/org/exoplatfo= rm/services/security/j2ee/JbossLoginModule.java 2011-06-22 11:46:51 UTC (re= v 4560) @@ -146,7 +146,7 @@ } else { - log.warn("No principal found when performing JBoss secur= ity manager cache eviction for user " + log.debug("No principal found when performing JBoss secu= rity manager cache eviction for user " + userName); } } --===============3089917116000687677==-- From do-not-reply at jboss.org Thu Jun 23 11:04:41 2011 Content-Type: multipart/mixed; boundary="===============5757685634382414005==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4561 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc: update and 1 other directory. Date: Thu, 23 Jun 2011 11:04:41 -0400 Message-ID: <201106231504.p5NF4fFt009909@svn01.web.mwc.hst.phx2.redhat.com> --===============5757685634382414005== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sergiykarpenko Date: 2011-06-23 11:04:40 -0400 (Thu, 23 Jun 2011) New Revision: 4561 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/update/StorageUpdateManager.java Log: EXOJCR-1404: Deprecate StorageUpdateManager. Remove "update-storage" parame= ter reading, since it useless. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java 2011-06-22 11:46:51 = UTC (rev 4560) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java 2011-06-23 15:04:40 = UTC (rev 4561) @@ -460,21 +460,8 @@ = initDatabase(); = - String suParam =3D null; + // enableStorageUpdate left unchanged since it is never used in Stor= ageUpdateManager.checkVersion boolean enableStorageUpdate =3D false; - try - { - suParam =3D wsConfig.getContainer().getParameterValue("update-sto= rage"); - enableStorageUpdate =3D Boolean.parseBoolean(suParam); - } - catch (RepositoryConfigurationException e) - { - if (LOG.isDebugEnabled()) - { - LOG.debug("update-storage parameter is not set " + dbSourceNam= e); - } - } - this.storageVersion =3D StorageUpdateManager.checkVersion(dbSourceName, this.connFactory.= getJdbcConnection(), multiDb, enableStorageUpdate); Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/update/StorageUpdateManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/update/StorageUpdateManager.java 2011-06-22 11:46:51= UTC (rev 4560) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/update/StorageUpdateManager.java 2011-06-23 15:04:40= UTC (rev 4561) @@ -36,12 +36,13 @@ import javax.jcr.RepositoryException; = /** - * Created by The eXo Platform SAS. + * Created by The eXo Platform SAS.

+ * This feature is deprecated and going to be removed in 1.15 version. * = * @author Gennady = Azarenkov * @version $Id: StorageUpdateManager.java 34801 2009-07-31 15:44:50Z dkat= ayev $ */ - +(a)Deprecated public class StorageUpdateManager { = @@ -258,12 +259,15 @@ = /** * Check current storage version and update if updateNow=3D=3Dtrue + *

+ * This feature is deprecated and going to be removed in 1.15 version. * = * @param ds * @param updateNow * @return * @throws RepositoryException */ + @Deprecated public static synchronized String checkVersion(String sourceName, Conne= ction connection, boolean multiDB, boolean updateNow) throws RepositoryException { --===============5757685634382414005==-- From do-not-reply at jboss.org Fri Jun 24 03:37:59 2011 Content-Type: multipart/mixed; boundary="===============5833204120041513620==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4562 - core/branches/2.3.x/patch/2.3.10/COR-34. Date: Fri, 24 Jun 2011 03:37:59 -0400 Message-ID: <201106240737.p5O7bxAP011451@svn01.web.mwc.hst.phx2.redhat.com> --===============5833204120041513620== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-24 03:37:58 -0400 (Fri, 24 Jun 2011) New Revision: 4562 Modified: core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch Log: COR-34: patch updated Modified: core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch 2011-06-23 15:04:4= 0 UTC (rev 4561) +++ core/branches/2.3.x/patch/2.3.10/COR-34/COR-34.patch 2011-06-24 07:37:5= 8 UTC (rev 4562) @@ -1,3 +1,242 @@ +Index: exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap= /impl/LDAPServiceImpl.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/im= pl/LDAPServiceImpl.java (revision 4560) ++++ exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/im= pl/LDAPServiceImpl.java (working copy) +@@ -207,6 +207,7 @@ + } + catch (CommunicationException e1) + { ++ release(ctx); + // create new LDAP context + ctx =3D getLdapContext(true); + // try repeat operation where communication error occurs +@@ -214,6 +215,7 @@ + } + catch (ServiceUnavailableException e2) + { ++ release(ctx); + // do the same as for CommunicationException + ctx =3D getLdapContext(true); + // +@@ -274,6 +276,7 @@ + } + catch (CommunicationException e1) + { ++ release(ctx); + // create new LDAP context + ctx =3D getLdapContext(true); + // try repeat operation where communication error occurs +@@ -281,6 +284,7 @@ + } + catch (ServiceUnavailableException e2) + { ++ release(ctx); + // do the same as for CommunicationException + ctx =3D getLdapContext(true); + // +Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/MembershipDAOImpl.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipDAOImpl.java (revision 4560) ++++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipDAOImpl.java (working copy) +@@ -29,6 +29,7 @@ + import org.exoplatform.services.organization.MembershipType; + import org.exoplatform.services.organization.User; + import org.exoplatform.services.organization.impl.MembershipImpl; ++import org.exoplatform.services.organization.ldap.CacheHandler.CacheType; + = + import java.util.ArrayList; + import java.util.Collection; +@@ -70,12 +71,15 @@ + * mapping LDAP attributes to eXo organization service items = (users, groups, etc) + * @param ldapService + * {@link LDAPService} ++ * @param cacheHandler ++ * The Cache Handler = + * @throws Exception + * if any errors occurs + */ +- public MembershipDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPSer= vice ldapService) throws Exception ++ public MembershipDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPSer= vice ldapService, CacheHandler cacheHandler) ++ throws Exception + { +- super(ldapAttrMapping, ldapService); ++ super(ldapAttrMapping, ldapService, cacheHandler); + this.listeners =3D new ArrayList(3); + } + = +@@ -131,6 +135,8 @@ + ctx.createSubcontext(membershipDN, ldapAttrMapping.memb= ershipToAttributes(m, userDN)); + if (broadcast) + postSave(m, true); ++ ++ cacheHandler.put(cacheHandler.getMembershipKey(m), m, C= acheType.MEMBERSHIP); + return; + } + // if contains membership +@@ -148,15 +154,14 @@ + ctx.modifyAttributes(membershipDN, mods); + if (broadcast) + postSave(m, true); ++ ++ cacheHandler.put(cacheHandler.getMembershipKey(m), m, Cach= eType.MEMBERSHIP); + return; + = + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -245,23 +250,25 @@ + ctx.modifyAttributes(membershipDN, mods); + if (broadcast) + postSave(m, true); ++ ++ cacheHandler.put(cacheHandler.getMembershipKey(m), m, C= acheType.MEMBERSHIP); + } + else + { + if (broadcast) + preDelete(m); + ctx.destroySubcontext(membershipDN); ++ + if (broadcast) + postDelete(m); ++ ++ cacheHandler.remove(cacheHandler.getMembershipKey(m), C= acheType.MEMBERSHIP); + } + return m; + } + catch (NamingException e1) + { +- if (isConnectionError(e1) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e1; ++ ctx =3D reloadCtx(ctx, err, e1); + } + } + } +@@ -318,9 +325,13 @@ + new ModificationItem(DirContext.REMOVE_ATTRIBU= TE, new BasicAttribute( + ldapAttrMapping.membershipTypeMemberValue, = userDN)); + ctx.modifyAttributes(membershipDN, mods); ++ cacheHandler.put(cacheHandler.getMembershipKey(me= mbership), membership, CacheType.MEMBERSHIP); + } + else ++ { + ctx.destroySubcontext(membershipDN); ++ cacheHandler.remove(cacheHandler.getMembershipKey= (membership), CacheType.MEMBERSHIP); ++ } + } + catch (Exception e1) + { +@@ -331,10 +342,7 @@ + } + catch (NamingException e2) + { +- if (isConnectionError(e2) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e2; ++ ctx =3D reloadCtx(ctx, err, e2); + } + finally + { +@@ -365,12 +373,19 @@ + */ + public Membership findMembershipByUserGroupAndType(String userName, St= ring groupId, String type) throws Exception + { ++ MembershipImpl membership =3D ++ (MembershipImpl)cacheHandler.get(cacheHandler.getMembershipKey(u= serName, groupId, type), CacheType.MEMBERSHIP); ++ if (membership !=3D null) ++ { ++ return membership; ++ } ++ + LdapContext ctx =3D ldapService.getLdapContext(); + try + { + for (int err =3D 0;; err++) + { +- Membership membership =3D null; ++ membership =3D null; + try + { + String userDN =3D getDNFromUsername(ctx, userName); +@@ -395,14 +410,15 @@ + membership =3D createMembershipObject(userName, groupId= , type); + } + = ++ if (membership !=3D null) ++ { ++ cacheHandler.put(cacheHandler.getMembershipKey(membersh= ip), membership, CacheType.MEMBERSHIP); ++ } + return membership; + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -457,10 +473,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -538,9 +551,9 @@ + { + SearchResult sr =3D results.next(); + String membershipDN =3D sr.getNameInNamespace(); +- Group group =3D getGroupFromMembershipDN(ctx, membershi= pDN); ++ String groupId =3D getGroupIdFromGroupDN(getGroupDNFrom= MembershipDN(membershipDN)); + String type =3D explodeDN(membershipDN, true)[0]; +- Membership membership =3D createMembershipObject(userNa= me, group.getId(), type); ++ Membership membership =3D createMembershipObject(userNa= me, groupId, type); + memberships.add(membership); + } + if (LOG.isDebugEnabled()) +@@ -551,10 +564,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -619,10 +629,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/CacheHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/CacheHandler.java (revision 0) @@ -2,3 +241,3 @@ +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/CacheHandler.java (revision 0) -@@ -0,0 +1,182 @@ +@@ -0,0 +1,176 @@ +/* @@ -45,11 +284,6 @@ + public static final String USER_PREFIX =3D "u=3D"; + + /** -+ * The cache service. -+ */ -+ private final CacheService cservice; -+ -+ /** + * Cache for Users. + */ + private final ExoCache userCache; @@ -77,7 +311,6 @@ + */ + public CacheHandler(CacheService cservice) + { -+ this.cservice =3D cservice; + this.userCache =3D cservice.getCacheInstance(this.getClass().getNam= e() + "userCache"); + this.membershipTypeCache =3D cservice.getCacheInstance(this.getClas= s().getName() + "membershipTypeCache"); + this.groupCache =3D cservice.getCacheInstance(this.getClass().getNa= me() + "groupCache"); @@ -185,135 +418,9 @@ + USER, GROUP, MEMBERSHIP, MEMBERSHIPTYPE + } +} -Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/MembershipDAOImpl.java -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipDAOImpl.java (revision 4450) -+++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipDAOImpl.java (working copy) -@@ -29,6 +29,7 @@ - import org.exoplatform.services.organization.MembershipType; - import org.exoplatform.services.organization.User; - import org.exoplatform.services.organization.impl.MembershipImpl; -+import org.exoplatform.services.organization.ldap.CacheHandler.CacheType; - = - import java.util.ArrayList; - import java.util.Collection; -@@ -70,12 +71,15 @@ - * mapping LDAP attributes to eXo organization service items = (users, groups, etc) - * @param ldapService - * {@link LDAPService} -+ * @param cacheHandler -+ * The Cache Handler = - * @throws Exception - * if any errors occurs - */ -- public MembershipDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPSer= vice ldapService) throws Exception -+ public MembershipDAOImpl(LDAPAttributeMapping ldapAttrMapping, LDAPSer= vice ldapService, CacheHandler cacheHandler) -+ throws Exception - { -- super(ldapAttrMapping, ldapService); -+ super(ldapAttrMapping, ldapService, cacheHandler); - this.listeners =3D new ArrayList(3); - } - = -@@ -131,6 +135,8 @@ - ctx.createSubcontext(membershipDN, ldapAttrMapping.memb= ershipToAttributes(m, userDN)); - if (broadcast) - postSave(m, true); -+ -+ cacheHandler.put(cacheHandler.getMembershipKey(m), m, C= acheType.MEMBERSHIP); - return; - } - // if contains membership -@@ -148,6 +154,8 @@ - ctx.modifyAttributes(membershipDN, mods); - if (broadcast) - postSave(m, true); -+ -+ cacheHandler.put(cacheHandler.getMembershipKey(m), m, Cach= eType.MEMBERSHIP); - return; - = - } -@@ -245,14 +253,19 @@ - ctx.modifyAttributes(membershipDN, mods); - if (broadcast) - postSave(m, true); -+ -+ cacheHandler.put(cacheHandler.getMembershipKey(m), m, C= acheType.MEMBERSHIP); - } - else - { - if (broadcast) - preDelete(m); - ctx.destroySubcontext(membershipDN); -+ - if (broadcast) - postDelete(m); -+ -+ cacheHandler.remove(cacheHandler.getMembershipKey(m), C= acheType.MEMBERSHIP); - } - return m; - } -@@ -318,9 +331,13 @@ - new ModificationItem(DirContext.REMOVE_ATTRIBU= TE, new BasicAttribute( - ldapAttrMapping.membershipTypeMemberValue, = userDN)); - ctx.modifyAttributes(membershipDN, mods); -+ cacheHandler.put(cacheHandler.getMembershipKey(me= mbership), membership, CacheType.MEMBERSHIP); - } - else -+ { - ctx.destroySubcontext(membershipDN); -+ cacheHandler.remove(cacheHandler.getMembershipKey= (membership), CacheType.MEMBERSHIP); -+ } - } - catch (Exception e1) - { -@@ -365,12 +382,19 @@ - */ - public Membership findMembershipByUserGroupAndType(String userName, St= ring groupId, String type) throws Exception - { -+ MembershipImpl membership =3D -+ (MembershipImpl)cacheHandler.get(cacheHandler.getMembershipKey(u= serName, groupId, type), CacheType.MEMBERSHIP); -+ if (membership !=3D null) -+ { -+ return membership; -+ } -+ - LdapContext ctx =3D ldapService.getLdapContext(); - try - { - for (int err =3D 0;; err++) - { -- Membership membership =3D null; -+ membership =3D null; - try - { - String userDN =3D getDNFromUsername(ctx, userName); -@@ -395,6 +419,10 @@ - membership =3D createMembershipObject(userName, groupId= , type); - } - = -+ if (membership !=3D null) -+ { -+ cacheHandler.put(cacheHandler.getMembershipKey(membersh= ip), membership, CacheType.MEMBERSHIP); -+ } - return membership; - } - catch (NamingException e) -@@ -538,9 +566,9 @@ - { - SearchResult sr =3D results.next(); - String membershipDN =3D sr.getNameInNamespace(); -- Group group =3D getGroupFromMembershipDN(ctx, membershi= pDN); -+ String groupId =3D getGroupIdFromGroupDN(getGroupDNFrom= MembershipDN(membershipDN)); - String type =3D explodeDN(membershipDN, true)[0]; -- Membership membership =3D createMembershipObject(userNa= me, group.getId(), type); -+ Membership membership =3D createMembershipObject(userNa= me, groupId, type); - memberships.add(membership); - } - if (LOG.isDebugEnabled()) Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/GroupDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/GroupDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/GroupDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/GroupDAOImpl.java (working copy) @@ -26,11 +26,14 @@ import org.exoplatform.services.organization.GroupEventListenerHandler; @@ -347,7 +454,7 @@ this.listeners =3D new ArrayList(3); } = -@@ -136,6 +142,8 @@ +@@ -136,14 +142,13 @@ ctx.createSubcontext(groupDN, ldapAttrMapping.groupToAttri= butes(child)); if (broadcast) postSave(group, true); @@ -356,7 +463,16 @@ return; } catch (NamingException e) -@@ -192,6 +200,8 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -192,14 +197,13 @@ ctx.modifyAttributes(groupDN, mods); if (broadcast) postSave(group, true); @@ -365,7 +481,16 @@ return; } catch (NamingException e) -@@ -255,6 +265,7 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -255,15 +259,13 @@ removeAllSubtree(ctx, groupDN); if (broadcast) postDelete(group); @@ -373,7 +498,29 @@ return group; = } -@@ -348,6 +359,13 @@ + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -323,10 +325,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -348,6 +347,13 @@ { if (groupId =3D=3D null) return null; @@ -387,7 +534,7 @@ String parentId =3D null; StringBuffer buffer =3D new StringBuffer(); String[] groupIdParts =3D groupId.split("/"); -@@ -366,9 +384,14 @@ +@@ -366,17 +372,19 @@ try { Attributes attrs =3D ctx.getAttributes(groupDN); @@ -403,7 +550,16 @@ return group; } catch (NamingException e) -@@ -402,6 +425,13 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -402,6 +410,13 @@ { if (groupId =3D=3D null) return null; @@ -417,7 +573,7 @@ String parentId =3D null; StringBuffer buffer =3D new StringBuffer(); String[] groupIdParts =3D groupId.split("/"); -@@ -415,9 +445,14 @@ +@@ -415,9 +430,14 @@ try { Attributes attrs =3D ctx.getAttributes(groupDN); @@ -433,7 +589,7 @@ return group; } catch (NameNotFoundException e) -@@ -473,7 +508,7 @@ +@@ -473,7 +493,7 @@ { Name entryName =3D parser.parse(name.get(0)); String groupDN =3D entryName + "," + ldapAttrMapping= .groupsURL; @@ -442,7 +598,19 @@ if (group !=3D null) addGroup(groups, group); } -@@ -555,7 +590,7 @@ +@@ -482,10 +502,7 @@ + } + catch (NamingException e2) + { +- if (isConnectionError(e2) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e2; ++ ctx =3D reloadCtx(ctx, err, e2); + } + finally + { +@@ -555,7 +572,7 @@ { Name entryName =3D parser.parse(name.get(0)); String groupDN =3D entryName + "," + searchBase; @@ -451,7 +619,19 @@ if (group !=3D null) addGroup(groups, group); } -@@ -613,21 +648,24 @@ +@@ -564,10 +581,7 @@ + } + catch (NamingException e2) + { +- if (isConnectionError(e2) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e2; ++ ctx =3D reloadCtx(ctx, err, e2); + } + finally + { +@@ -613,21 +627,24 @@ results =3D ctx.search(ldapAttrMapping.groupsURL, filter, = constraints); = // add groups for memberships matching user @@ -481,9 +661,21 @@ if (LOG.isDebugEnabled()) { LOG.debug("Retrieved " + groups.size() + " groups from = ldap for user " + userName); +@@ -636,10 +653,7 @@ + } + catch (NamingException e2) + { +- if (isConnectionError(e2) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e2; ++ ctx =3D reloadCtx(ctx, err, e2); + } + finally + { Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/MembershipTypeDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipTypeDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipTypeDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/MembershipTypeDAOImpl.java (working copy) @@ -24,6 +24,7 @@ import org.exoplatform.services.organization.MembershipType; @@ -510,7 +702,7 @@ } = /** -@@ -95,6 +99,8 @@ +@@ -95,15 +99,14 @@ mt.setCreatedDate(now); mt.setModifiedDate(now); ctx.createSubcontext(membershipTypeDN, ldapAttrMapping.= membershipTypeToAttributes(mt)); @@ -519,7 +711,17 @@ } return mt; } -@@ -146,6 +152,8 @@ + catch (NamingException e1) + { +- if (isConnectionError(e1) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e1; ++ ctx =3D reloadCtx(ctx, err, e1); + } + } + } +@@ -146,14 +149,13 @@ ldapAttrMapping.ldapDescriptionAttr, mt.getDescri= ption())); } ctx.modifyAttributes(membershipTypeDN, mods); @@ -528,7 +730,16 @@ return mt; } catch (NamingException e) -@@ -181,6 +189,8 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -181,14 +183,13 @@ MembershipType m =3D ldapAttrMapping.attributesToMembershi= pType(attrs); removeMembership(ctx, name); ctx.destroySubcontext(membershipTypeDN); @@ -537,7 +748,16 @@ return m; } catch (NamingException e) -@@ -209,6 +219,12 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -209,6 +210,12 @@ */ public MembershipType findMembershipType(String name) throws Exception { @@ -550,7 +770,7 @@ String membershipTypeDN =3D ldapAttrMapping.membershipTypeNameAttr + "=3D" + name + "," + ld= apAttrMapping.membershipTypeURL; LdapContext ctx =3D ldapService.getLdapContext(); -@@ -219,7 +235,12 @@ +@@ -219,14 +226,16 @@ try { Attributes attrs =3D ctx.getAttributes(membershipTypeDN); @@ -564,7 +784,27 @@ } catch (NamingException e) { -@@ -307,6 +328,8 @@ +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -274,10 +283,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +@@ -307,6 +313,8 @@ { SearchResult sr =3D results.next(); ctx.destroySubcontext(sr.getNameInNamespace()); @@ -575,7 +815,7 @@ finally Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/UserProfileDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserProfileDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserProfileDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserProfileDAOImpl.java (working copy) @@ -61,9 +61,10 @@ */ @@ -590,9 +830,57 @@ this.listeners =3D new ArrayList(3); } = +@@ -107,10 +108,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -153,10 +151,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -191,10 +186,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -229,10 +221,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/ADMembershipDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADMembershipDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADMembershipDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADMembershipDAOImpl.java (working copy) @@ -22,6 +22,7 @@ import org.exoplatform.services.organization.Group; @@ -634,7 +922,7 @@ LdapContext ctx =3D ldapService.getLdapContext(true); String groupDN =3D getGroupDNFromGroupId(groupId); try -@@ -74,7 +84,11 @@ +@@ -74,15 +84,16 @@ { Collection memberships =3D findMemberships(ctx, userName, = groupDN, type); if (memberships.size() > 0) @@ -647,7 +935,40 @@ return null; } catch (NamingException e) -@@ -184,7 +198,7 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -110,10 +121,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -142,10 +150,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -184,7 +189,7 @@ results =3D ctx.search(userDN, filter, constraints); while (results.hasMore()) { @@ -658,7 +979,7 @@ for (int x =3D 0; x < attr.size(); x++) Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/OrganizationServiceImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/OrganizationServiceImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/OrganizationServiceImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/OrganizationServiceImpl.java (working copy) @@ -47,25 +47,27 @@ LDAPAttributeMapping ldapAttrMapping =3D @@ -697,7 +1018,7 @@ if (param !=3D null) Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/ADGroupDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADGroupDAOImpl.java (working copy) @@ -48,12 +48,14 @@ * items @@ -717,9 +1038,47 @@ adSearch =3D ad; } = +@@ -126,10 +128,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + finally + { +Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/LDAPUserPageList.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/LDAPUserPageList.java (revision 4560) ++++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/LDAPUserPageList.java (working copy) +@@ -141,7 +141,10 @@ + catch (NamingException e) + { + if (BaseDAO.isConnectionError(e) && err < BaseDAO.getMaxCo= nnectionError()) ++ { ++ ldapService.release(ctx); + ctx =3D ldapService.getLdapContext(true); ++ } + else + throw e; + } +@@ -197,7 +200,10 @@ + catch (NamingException e) + { + if (BaseDAO.isConnectionError(e) && err < 1) ++ { ++ ldapService.release(ctx); + ctx =3D ldapService.getLdapContext(true); ++ } + else + throw e; + } Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/UserDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/UserDAOImpl.java (working copy) @@ -21,8 +21,13 @@ import org.exoplatform.commons.utils.LazyPageList; @@ -753,7 +1112,7 @@ } = /** -@@ -104,6 +112,8 @@ +@@ -104,14 +112,13 @@ ctx.createSubcontext(userDN, attrs); if (broadcast) postSave(user, true); @@ -762,7 +1121,16 @@ break; } catch (NamingException e) -@@ -145,6 +155,8 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -145,14 +152,13 @@ ctx.modifyAttributes(userDN, mods); if (broadcast) postSave(user, false); @@ -771,7 +1139,16 @@ break; } catch (NamingException e) -@@ -174,7 +186,7 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -174,7 +180,7 @@ * @param userDN Distinguished Name * @throws Exception if any errors occurs */ @@ -780,7 +1157,19 @@ { ModificationItem[] mods =3D new ModificationItem[]{new ModificationItem(DirContext.REPLACE_A= TTRIBUTE, new BasicAttribute( -@@ -227,6 +239,9 @@ +@@ -191,10 +197,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -227,14 +230,14 @@ ctx.destroySubcontext(userDN); if (broadcast) postDelete(user); @@ -790,7 +1179,16 @@ return user; } catch (NamingException e) -@@ -249,6 +264,12 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -249,6 +252,12 @@ */ public User findUserByName(String userName) throws Exception { @@ -803,7 +1201,7 @@ LdapContext ctx =3D ldapService.getLdapContext(); try { -@@ -256,7 +277,12 @@ +@@ -256,14 +265,16 @@ { try { @@ -817,7 +1215,15 @@ } catch (NamingException e) { -@@ -283,51 +309,6 @@ +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -283,51 +294,6 @@ */ public ListAccess findUsersByGroupId(String groupId) throws Exce= ption { @@ -869,7 +1275,7 @@ String searchBase =3D this.getGroupDNFromGroupId(groupId); String filter =3D ldapAttrMapping.membershipObjectClassFilter; return new ByGroupLdapUserListAccess(ldapAttrMapping, ldapService, = searchBase, filter); -@@ -346,8 +327,6 @@ +@@ -346,8 +312,6 @@ String searchBase =3D ldapAttrMapping.userURL; String filter =3D ldapAttrMapping.userObjectClassFilter; = @@ -880,7 +1286,7 @@ = Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/ADUserDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADUserDAOImpl.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADUserDAOImpl.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/ADUserDAOImpl.java (working copy) @@ -20,6 +20,7 @@ = @@ -907,7 +1313,7 @@ LDAPUserPageList.SEARCH_CONTROL =3D Control.CRITICAL; } = -@@ -93,6 +97,8 @@ +@@ -93,14 +97,13 @@ ctx.createSubcontext(userDN, attrs); if (broadcast) postSave(user, true); @@ -916,7 +1322,16 @@ break; } catch (NamingException e) -@@ -118,7 +124,7 @@ + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -118,7 +121,7 @@ * {@inheritDoc} */ @Override @@ -925,9 +1340,47 @@ { Object v =3D ldapService.getLdapContext().getEnvironment().get(Cont= ext.SECURITY_PROTOCOL); if (v =3D=3D null) +@@ -147,10 +150,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/LdapUserListAccess.java +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/LdapUserListAccess.java (revision 4560) ++++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/LdapUserListAccess.java (working copy) +@@ -84,7 +84,10 @@ + catch (NamingException e) + { + if (BaseDAO.isConnectionError(e) && err < BaseDAO.getMaxCo= nnectionError()) ++ { ++ ldapService.release(ctx); + ctx =3D ldapService.getLdapContext(true); ++ } + else + throw e; + } +@@ -113,7 +116,10 @@ + catch (NamingException e) + { + if (BaseDAO.isConnectionError(e) && err < BaseDAO.getMaxCo= nnectionError()) ++ { ++ ldapService.release(ctx); + ctx =3D ldapService.getLdapContext(true); ++ } + else + throw e; + } Index: exo.core.component.organization.ldap/src/main/java/org/exoplatform/= services/organization/ldap/BaseDAO.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ---- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/BaseDAO.java (revision 4450) +--- exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/BaseDAO.java (revision 4560) +++ exo.core.component.organization.ldap/src/main/java/org/exoplatform/ser= vices/organization/ldap/BaseDAO.java (working copy) @@ -24,6 +24,7 @@ import org.exoplatform.services.organization.Group; @@ -1018,7 +1471,52 @@ } = /** -@@ -270,6 +311,26 @@ +@@ -245,12 +286,7 @@ + } + catch (NamingException e) + { +- // check is allowed to try one more time +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- // not connection exception or error occurs more than M= AX_CONNECTION_ERROR +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -261,6 +297,30 @@ + } + = + /** ++ * Re-load the ctx if the context allows it ++ * @param ctx the previous context ++ * @param err the total of errors that have already occurred ++ * @param e the last exception that occurs ++ * @return the new context if the context reload is allowed throws an = exception otherwise ++ * @throws NamingException if context could not be reloaded ++ */ ++ protected LdapContext reloadCtx(LdapContext ctx, int err, NamingExcept= ion e) throws NamingException ++ { ++ // check is allowed to try one more time ++ if (isConnectionError(e) && err < getMaxConnectionError()) ++ { ++ // release the previous context ++ ldapService.release(ctx); ++ // reload the context ++ ctx =3D ldapService.getLdapContext(true); ++ } ++ else ++ // not connection exception or error occurs more than MAX_CONNEC= TION_ERROR ++ throw e; ++ return ctx; ++ } ++ ++ /** + * Get Group what reflected to object with specified Distinguished Nam= e. + * = + * @param ctx {@link LdapContext} +@@ -270,6 +330,26 @@ */ protected Group getGroupByDN(LdapContext ctx, String groupDN) throws N= amingException { @@ -1045,7 +1543,7 @@ StringBuffer idBuffer =3D new StringBuffer(); String parentId =3D null; String[] baseParts =3D explodeDN(ldapAttrMapping.groupsURL, true); -@@ -280,25 +341,17 @@ +@@ -280,25 +360,17 @@ if (x =3D=3D 1) parentId =3D idBuffer.toString(); } @@ -1078,7 +1576,19 @@ } = /** -@@ -381,9 +434,7 @@ +@@ -352,10 +424,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -381,9 +450,7 @@ answer =3D findUser(ctx, username, true); while (answer.hasMoreElements()) { @@ -1089,7 +1599,19 @@ } return null; } -@@ -525,6 +576,10 @@ +@@ -465,10 +532,7 @@ + } + catch (NamingException e) + { +- if (isConnectionError(e) && err < getMaxConnectionError()) +- ctx =3D ldapService.getLdapContext(true); +- else +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } +@@ -525,6 +589,10 @@ removeAllSubtree(ctx, sr.getNameInNamespace()); } ctx.destroySubcontext(dn); @@ -1100,3 +1622,19 @@ } finally { +@@ -649,14 +717,7 @@ + } + catch (NamingException e) + { +- // check is allowed to try one more time +- if (isConnectionError(e) && err < getMaxConnectionError()) +- // update LdapContext +- ctx =3D ldapService.getLdapContext(true); +- else +- // not connection exception or error occurs more than +- // MAX_CONNECTION_ERROR times +- throw e; ++ ctx =3D reloadCtx(ctx, err, e); + } + } + } --===============5833204120041513620==-- From do-not-reply at jboss.org Fri Jun 24 04:30:35 2011 Content-Type: multipart/mixed; boundary="===============7834321757956730792==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4564 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/db. Date: Fri, 24 Jun 2011 04:30:35 -0400 Message-ID: <201106240830.p5O8UZNT023500@svn01.web.mwc.hst.phx2.redhat.com> --===============7834321757956730792== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: areshetnyak Date: 2011-06-24 04:30:34 -0400 (Fri, 24 Jun 2011) New Revision: 4564 Added: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/optimisation/db/SybaseJDBCConnectionHelper.java Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/optimisation/db/SybaseConnectionFactory.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/optimisation/db/SybaseMultiDbJDBCConnection.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/optimisation/db/SybaseSingleDbJDBCConnection.java Log: EXOJCR-1383 : The RDBMS re-indexing was implemented for Sybase. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/optimisation/db/SybaseConnectionFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseConnectionFactory.java 2011-06= -24 08:08:19 UTC (rev 4563) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseConnectionFactory.java 2011-06= -24 08:30:34 UTC (rev 4564) @@ -130,6 +130,6 @@ @Override public boolean isReindexingSupport() { - return false; + return true; } = } Added: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/servi= ces/jcr/impl/storage/jdbc/optimisation/db/SybaseJDBCConnectionHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseJDBCConnectionHelper.java = (rev 0) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseJDBCConnectionHelper.java 2011= -06-24 08:30:34 UTC (rev 4564) @@ -0,0 +1,927 @@ +/* + * Copyright (C) 2003-2011 eXo Platform SAS. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either version 3 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see. + */ +package org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db; + +import java.io.InputStream; +import java.io.Reader; +import java.math.BigDecimal; +import java.net.URL; +import java.sql.Array; +import java.sql.Blob; +import java.sql.Clob; +import java.sql.Date; +import java.sql.NClob; +import java.sql.Ref; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.RowId; +import java.sql.SQLException; +import java.sql.SQLWarning; +import java.sql.SQLXML; +import java.sql.Statement; +import java.sql.Time; +import java.sql.Timestamp; +import java.util.Calendar; +import java.util.Map; + +/** + * Created by The eXo Platform SAS. + * = + *
Date: 2011 + * + * @author Alex Re= shetnyak = + * @version $Id: SybaseJDBCConnectionHelper.java 111 2011-11-11 11:11:11Z = rainf0x $ + */ +public class SybaseJDBCConnectionHelper +{ + + /** + * The name for temporary table. = + */ + public final static String TEMP_A_TABLE_NAME =3D "#tempA"; + + /** + * The name for temporary table. = + */ + public final static String TEMP_B_TABLE_NAME =3D "#tempB"; + + /** + * @author Alex= Reshetnyak = + * @version $Id: SybaseJDBCConnectionHelper.java 111 2011-11-11 11:11:1= 1Z rainf0x $ + * + * The class EmptyResultSet will be used if need return empty result se= t for query. = + */ + static public class EmptyResultSet + implements ResultSet + { + + public boolean absolute(int row) throws SQLException + { + return false; + } + + public void afterLast() throws SQLException + { + } + + public void beforeFirst() throws SQLException + { + } + + public void cancelRowUpdates() throws SQLException + { + } + + public void clearWarnings() throws SQLException + { + } + + public void close() throws SQLException + { + } + + public void deleteRow() throws SQLException + { + } + + public int findColumn(String columnLabel) throws SQLException + { + return 0; + } + + public boolean first() throws SQLException + { + return false; + } + + public Array getArray(int columnIndex) throws SQLException + { + return null; + } + + public Array getArray(String columnLabel) throws SQLException + { + return null; + } + + public InputStream getAsciiStream(int columnIndex) throws SQLExcepti= on + { + return null; + } + + public InputStream getAsciiStream(String columnLabel) throws SQLExce= ption + { + return null; + } + + public BigDecimal getBigDecimal(int columnIndex) throws SQLException + { + return null; + } + + public BigDecimal getBigDecimal(String columnLabel) throws SQLExcept= ion + { + return null; + } + + public BigDecimal getBigDecimal(int columnIndex, int scale) throws S= QLException + { + return null; + } + + public BigDecimal getBigDecimal(String columnLabel, int scale) throw= s SQLException + { + return null; + } + + public InputStream getBinaryStream(int columnIndex) throws SQLExcept= ion + { + return null; + } + + public InputStream getBinaryStream(String columnLabel) throws SQLExc= eption + { + return null; + } + + public Blob getBlob(int columnIndex) throws SQLException + { + return null; + } + + public Blob getBlob(String columnLabel) throws SQLException + { + return null; + } + + public boolean getBoolean(int columnIndex) throws SQLException + { + return false; + } + + public boolean getBoolean(String columnLabel) throws SQLException + { + return false; + } + + public byte getByte(int columnIndex) throws SQLException + { + return 0; + } + + public byte getByte(String columnLabel) throws SQLException + { + return 0; + } + + public byte[] getBytes(int columnIndex) throws SQLException + { + return null; + } + + public byte[] getBytes(String columnLabel) throws SQLException + { + return null; + } + + public Reader getCharacterStream(int columnIndex) throws SQLException + { + return null; + } + + public Reader getCharacterStream(String columnLabel) throws SQLExcep= tion + { + return null; + } + + public Clob getClob(int columnIndex) throws SQLException + { + return null; + } + + public Clob getClob(String columnLabel) throws SQLException + { + return null; + } + + public int getConcurrency() throws SQLException + { + return 0; + } + + public String getCursorName() throws SQLException + { + return null; + } + + public Date getDate(int columnIndex) throws SQLException + { + return null; + } + + public Date getDate(String columnLabel) throws SQLException + { + return null; + } + + public Date getDate(int columnIndex, Calendar cal) throws SQLExcepti= on + { + return null; + } + + public Date getDate(String columnLabel, Calendar cal) throws SQLExce= ption + { + return null; + } + + public double getDouble(int columnIndex) throws SQLException + { + return 0; + } + + public double getDouble(String columnLabel) throws SQLException + { + return 0; + } + + public int getFetchDirection() throws SQLException + { + return 0; + } + + public int getFetchSize() throws SQLException + { + return 0; + } + + public float getFloat(int columnIndex) throws SQLException + { + return 0; + } + + public float getFloat(String columnLabel) throws SQLException + { + return 0; + } + + public int getHoldability() throws SQLException + { + return 0; + } + + public int getInt(int columnIndex) throws SQLException + { + return 0; + } + + public int getInt(String columnLabel) throws SQLException + { + return 0; + } + + public long getLong(int columnIndex) throws SQLException + { + return 0; + } + + public long getLong(String columnLabel) throws SQLException + { + return 0; + } + + public ResultSetMetaData getMetaData() throws SQLException + { + return null; + } + + public Reader getNCharacterStream(int columnIndex) throws SQLExcepti= on + { + return null; + } + + public Reader getNCharacterStream(String columnLabel) throws SQLExce= ption + { + return null; + } + + public NClob getNClob(int columnIndex) throws SQLException + { + return null; + } + + public NClob getNClob(String columnLabel) throws SQLException + { + return null; + } + + public String getNString(int columnIndex) throws SQLException + { + return null; + } + + public String getNString(String columnLabel) throws SQLException + { + return null; + } + + public Object getObject(int columnIndex) throws SQLException + { + return null; + } + + public Object getObject(String columnLabel) throws SQLException + { + return null; + } + + public Object getObject(int columnIndex, Map> map) = throws SQLException + { + return null; + } + + public Object getObject(String columnLabel, Map> ma= p) throws SQLException + { + return null; + } + + public Ref getRef(int columnIndex) throws SQLException + { + return null; + } + + public Ref getRef(String columnLabel) throws SQLException + { + return null; + } + + public int getRow() throws SQLException + { + return 0; + } + + public RowId getRowId(int columnIndex) throws SQLException + { + return null; + } + + public RowId getRowId(String columnLabel) throws SQLException + { + return null; + } + + public SQLXML getSQLXML(int columnIndex) throws SQLException + { + return null; + } + + public SQLXML getSQLXML(String columnLabel) throws SQLException + { + return null; + } + + public short getShort(int columnIndex) throws SQLException + { + return 0; + } + + public short getShort(String columnLabel) throws SQLException + { + return 0; + } + + public Statement getStatement() throws SQLException + { + return null; + } + + public String getString(int columnIndex) throws SQLException + { + return null; + } + + public String getString(String columnLabel) throws SQLException + { + return null; + } + + public Time getTime(int columnIndex) throws SQLException + { + return null; + } + + public Time getTime(String columnLabel) throws SQLException + { + return null; + } + + public Time getTime(int columnIndex, Calendar cal) throws SQLExcepti= on + { + return null; + } + + public Time getTime(String columnLabel, Calendar cal) throws SQLExce= ption + { + return null; + } + + public Timestamp getTimestamp(int columnIndex) throws SQLException + { + return null; + } + + public Timestamp getTimestamp(String columnLabel) throws SQLException + { + return null; + } + + public Timestamp getTimestamp(int columnIndex, Calendar cal) throws = SQLException + { + return null; + } + + public Timestamp getTimestamp(String columnLabel, Calendar cal) thro= ws SQLException + { + return null; + } + + public int getType() throws SQLException + { + return 0; + } + + public URL getURL(int columnIndex) throws SQLException + { + return null; + } + + public URL getURL(String columnLabel) throws SQLException + { + return null; + } + + public InputStream getUnicodeStream(int columnIndex) throws SQLExcep= tion + { + return null; + } + + public InputStream getUnicodeStream(String columnLabel) throws SQLEx= ception + { + return null; + } + + public SQLWarning getWarnings() throws SQLException + { + return null; + } + + public void insertRow() throws SQLException + { + + } + + public boolean isAfterLast() throws SQLException + { + return false; + } + + public boolean isBeforeFirst() throws SQLException + { + return false; + } + + public boolean isClosed() throws SQLException + { + return false; + } + + public boolean isFirst() throws SQLException + { + return false; + } + + public boolean isLast() throws SQLException + { + return false; + } + + public boolean last() throws SQLException + { + return false; + } + + public void moveToCurrentRow() throws SQLException + { + + } + + public void moveToInsertRow() throws SQLException + { + + } + + public boolean next() throws SQLException + { + return false; + } + + public boolean previous() throws SQLException + { + return false; + } + + public void refreshRow() throws SQLException + { + + } + + public boolean relative(int rows) throws SQLException + { + return false; + } + + public boolean rowDeleted() throws SQLException + { + return false; + } + + public boolean rowInserted() throws SQLException + { + return false; + } + + public boolean rowUpdated() throws SQLException + { + return false; + } + + public void setFetchDirection(int direction) throws SQLException + { + } + + public void setFetchSize(int rows) throws SQLException + { + } + + public void updateArray(int columnIndex, Array x) throws SQLException + { + } + + public void updateArray(String columnLabel, Array x) throws SQLExcep= tion + { + } + + public void updateAsciiStream(int columnIndex, InputStream x) throws= SQLException + { + } + + public void updateAsciiStream(String columnLabel, InputStream x) thr= ows SQLException + { + } + + public void updateAsciiStream(int columnIndex, InputStream x, int le= ngth) throws SQLException + { + } + + public void updateAsciiStream(String columnLabel, InputStream x, int= length) throws SQLException + { + } + + public void updateAsciiStream(int columnIndex, InputStream x, long l= ength) throws SQLException + { + } + + public void updateAsciiStream(String columnLabel, InputStream x, lon= g length) throws SQLException + { + } + + public void updateBigDecimal(int columnIndex, BigDecimal x) throws S= QLException + { + } + + public void updateBigDecimal(String columnLabel, BigDecimal x) throw= s SQLException + { + } + + public void updateBinaryStream(int columnIndex, InputStream x) throw= s SQLException + { + } + + public void updateBinaryStream(String columnLabel, InputStream x) th= rows SQLException + { + } + + public void updateBinaryStream(int columnIndex, InputStream x, int l= ength) throws SQLException + { + } + + public void updateBinaryStream(String columnLabel, InputStream x, in= t length) throws SQLException + { + } + + public void updateBinaryStream(int columnIndex, InputStream x, long = length) throws SQLException + { + } + + public void updateBinaryStream(String columnLabel, InputStream x, lo= ng length) throws SQLException + { + } + + public void updateBlob(int columnIndex, Blob x) throws SQLException + { + } + + public void updateBlob(String columnLabel, Blob x) throws SQLExcepti= on + { + } + + public void updateBlob(int columnIndex, InputStream inputStream) thr= ows SQLException + { + } + + public void updateBlob(String columnLabel, InputStream inputStream) = throws SQLException + { + } + + public void updateBlob(int columnIndex, InputStream inputStream, lon= g length) throws SQLException + { + } + + public void updateBlob(String columnLabel, InputStream inputStream, = long length) throws SQLException + { + } + + public void updateBoolean(int columnIndex, boolean x) throws SQLExce= ption + { + } + + public void updateBoolean(String columnLabel, boolean x) throws SQLE= xception + { + } + + public void updateByte(int columnIndex, byte x) throws SQLException + { + } + + public void updateByte(String columnLabel, byte x) throws SQLExcepti= on + { + } + + public void updateBytes(int columnIndex, byte[] x) throws SQLExcepti= on + { + } + + public void updateBytes(String columnLabel, byte[] x) throws SQLExce= ption + { + } + + public void updateCharacterStream(int columnIndex, Reader x) throws = SQLException + { + } + + public void updateCharacterStream(String columnLabel, Reader reader)= throws SQLException + { + } + + public void updateCharacterStream(int columnIndex, Reader x, int len= gth) throws SQLException + { + } + + public void updateCharacterStream(String columnLabel, Reader reader,= int length) throws SQLException + { + } + + public void updateCharacterStream(int columnIndex, Reader x, long le= ngth) throws SQLException + { + } + + public void updateCharacterStream(String columnLabel, Reader reader,= long length) throws SQLException + { + } + + public void updateClob(int columnIndex, Clob x) throws SQLException + { + } + + public void updateClob(String columnLabel, Clob x) throws SQLExcepti= on + { + } + + public void updateClob(int columnIndex, Reader reader) throws SQLExc= eption + { + } + + public void updateClob(String columnLabel, Reader reader) throws SQL= Exception + { + } + + public void updateClob(int columnIndex, Reader reader, long length) = throws SQLException + { + } + + public void updateClob(String columnLabel, Reader reader, long lengt= h) throws SQLException + { + } + + public void updateDate(int columnIndex, Date x) throws SQLException + { + } + + public void updateDate(String columnLabel, Date x) throws SQLExcepti= on + { + } + + public void updateDouble(int columnIndex, double x) throws SQLExcept= ion + { + } + + public void updateDouble(String columnLabel, double x) throws SQLExc= eption + { + } + + public void updateFloat(int columnIndex, float x) throws SQLException + { + } + + public void updateFloat(String columnLabel, float x) throws SQLExcep= tion + { + } + + public void updateInt(int columnIndex, int x) throws SQLException + { + } + + public void updateInt(String columnLabel, int x) throws SQLException + { + } + + public void updateLong(int columnIndex, long x) throws SQLException + { + } + + public void updateLong(String columnLabel, long x) throws SQLExcepti= on + { + } + + public void updateNCharacterStream(int columnIndex, Reader x) throws= SQLException + { + } + + public void updateNCharacterStream(String columnLabel, Reader reader= ) throws SQLException + { + } + + public void updateNCharacterStream(int columnIndex, Reader x, long l= ength) throws SQLException + { + } + + public void updateNCharacterStream(String columnLabel, Reader reader= , long length) throws SQLException + { + } + + public void updateNClob(int columnIndex, NClob nClob) throws SQLExce= ption + { + } + + public void updateNClob(String columnLabel, NClob nClob) throws SQLE= xception + { + } + + public void updateNClob(int columnIndex, Reader reader) throws SQLEx= ception + { + } + + public void updateNClob(String columnLabel, Reader reader) throws SQ= LException + { + } + + public void updateNClob(int columnIndex, Reader reader, long length)= throws SQLException + { + } + + public void updateNClob(String columnLabel, Reader reader, long leng= th) throws SQLException + { + } + + public void updateNString(int columnIndex, String nString) throws SQ= LException + { + } + + public void updateNString(String columnLabel, String nString) throws= SQLException + { + } + + public void updateNull(int columnIndex) throws SQLException + { + } + + public void updateNull(String columnLabel) throws SQLException + { + } + + public void updateObject(int columnIndex, Object x) throws SQLExcept= ion + { + } + + public void updateObject(String columnLabel, Object x) throws SQLExc= eption + { + } + + public void updateObject(int columnIndex, Object x, int scaleOrLengt= h) throws SQLException + { + } + + public void updateObject(String columnLabel, Object x, int scaleOrLe= ngth) throws SQLException + { + } + + public void updateRef(int columnIndex, Ref x) throws SQLException + { + } + + public void updateRef(String columnLabel, Ref x) throws SQLException + { + } + + public void updateRow() throws SQLException + { + } + + public void updateRowId(int columnIndex, RowId x) throws SQLException + { + } + + public void updateRowId(String columnLabel, RowId x) throws SQLExcep= tion + { + } + + public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws S= QLException + { + } + + public void updateSQLXML(String columnLabel, SQLXML xmlObject) throw= s SQLException + { + } + + public void updateShort(int columnIndex, short x) throws SQLException + { + } + + public void updateShort(String columnLabel, short x) throws SQLExcep= tion + { + } + + public void updateString(int columnIndex, String x) throws SQLExcept= ion + { + } + + public void updateString(String columnLabel, String x) throws SQLExc= eption + { + } + + public void updateTime(int columnIndex, Time x) throws SQLException + { + } + + public void updateTime(String columnLabel, Time x) throws SQLExcepti= on + { + } + + public void updateTimestamp(int columnIndex, Timestamp x) throws SQL= Exception + { + } + + public void updateTimestamp(String columnLabel, Timestamp x) throws = SQLException + { + } + + public boolean wasNull() throws SQLException + { + return false; + } + + public boolean isWrapperFor(Class iface) throws SQLException + { + return false; + } + + public T unwrap(Class iface) throws SQLException + { + return null; + } + + } +} \ No newline at end of file Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/optimisation/db/SybaseMultiDbJDBCConnection.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseMultiDbJDBCConnection.java 201= 1-06-24 08:08:19 UTC (rev 4563) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseMultiDbJDBCConnection.java 201= 1-06-24 08:30:34 UTC (rev 4564) @@ -16,11 +16,15 @@ */ package org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db; = +import org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db.Syba= seJDBCConnectionHelper.EmptyResultSet; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; import org.exoplatform.services.jcr.storage.value.ValueStoragePluginProvid= er; +import org.exoplatform.services.jcr.util.IdGenerator; = import java.io.File; import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; import java.sql.SQLException; = /** @@ -34,6 +38,41 @@ public class SybaseMultiDbJDBCConnection extends MultiDbJDBCConnection { = + /** + * SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE + */ + protected String SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE; + + /** + * COUNT_NODES_IN_TEMPORARY_TABLE + */ + protected String COUNT_NODES_IN_TEMPORARY_TABLE; + + /** + * SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE + */ + protected String SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE; + + /** + * DELETE_TEMPORARY_TABLE_A + */ + protected String DELETE_TEMPORARY_TABLE_A; + + /** + * DELETE_TEMPORARY_TABLE_B + */ + protected String DELETE_TEMPORARY_TABLE_B; + + protected PreparedStatement selectLimitOffsetNodesIntoTemporaryTable; + + protected PreparedStatement selectLimitNodesInTemporaryTable; + + protected PreparedStatement deleteTemporaryTableA; + + protected PreparedStatement deleteTemporaryTableB; + + protected PreparedStatement countNodesInTemporaryTable; + public SybaseMultiDbJDBCConnection(Connection dbConnection, boolean rea= dOnly, String containerName, ValueStoragePluginProvider valueStorageProvider, int maxBufferSize, = File swapDirectory, FileCleaner swapCleaner) throws SQLException @@ -68,4 +107,173 @@ return sb.toString(); } = -} + /** + * {@inheritDoc} + */ + protected void prepareQueries() throws SQLException + { + + super.prepareQueries(); + + SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE =3D + "select I.ID, I.PARENT_ID, I.NAME, I.VERSION, I.I_INDEX, I.= N_ORDER_NUM into " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + + " from JCR_MITEM I where I.I_CLASS=3D1 AND I.ID = > ? order by I.ID ASC"; + + COUNT_NODES_IN_TEMPORARY_TABLE =3D "select count(*) from " + SybaseJ= DBCConnectionHelper.TEMP_A_TABLE_NAME; + + SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE =3D + "select * into " + SybaseJDBCConnectionHelper.TEMP_B_TABLE_= NAME + " from " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + "= order by " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + "= .ID DESC"; + + FIND_NODES_AND_PROPERTIES =3D + "select " + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + + ".*, P.ID AS P_ID, P.NAME AS P_NAME, P.VERSION A= S P_VERSION, P.P_TYPE, P.P_MULTIVALUED," + + " V.DATA, V.ORDER_NUM, V.STORAGE_DESC from JCR_M= VALUE V, JCR_MITEM P, " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + "= where P.PARENT_ID =3D " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + + ".ID and P.I_CLASS=3D2 and V.PROPERTY_ID=3DP.ID = order by " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + "= .ID"; + + DELETE_TEMPORARY_TABLE_A =3D "drop table " + SybaseJDBCConnectionHel= per.TEMP_A_TABLE_NAME; + + DELETE_TEMPORARY_TABLE_B =3D "drop table " + SybaseJDBCConnectionHel= per.TEMP_B_TABLE_NAME; + } + + /** + * {@inheritDoc} + */ + protected ResultSet findNodesAndProperties(String lastNodeId, int offse= t, int limit) throws SQLException + { + String tempTableAName =3D "#a" + IdGenerator.generate(); + String tempTableBName =3D "#b" + IdGenerator.generate(); + + boolean tempTableACreated =3D false; + boolean tempTableBCreated =3D false; + + try + { + // the Sybase is not allowed DDL query (CREATE TABLE, DROP TABLE,= etc. ) within a multi-statement transaction + dbConnection.setAutoCommit(true); + + selectLimitOffsetNodesIntoTemporaryTable =3D + dbConnection.prepareStatement(SELECT_LIMIT_OFFSET_NODES_= INTO_TEMPORARY_TABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + countNodesInTemporaryTable =3D + dbConnection.prepareStatement(COUNT_NODES_IN_TEMPORARY_T= ABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + selectLimitNodesInTemporaryTable =3D + dbConnection.prepareStatement(SELECT_LIMIT_NODES_FROM_TE= MPORARY_TABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName).replaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + if (findNodesAndProperties !=3D null) + { + findNodesAndProperties.close(); + } + + findNodesAndProperties =3D + dbConnection.prepareStatement(FIND_NODES_AND_PROPERTIES.= replaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + deleteTemporaryTableA =3D + dbConnection.prepareStatement(DELETE_TEMPORARY_TABLE_A.r= eplaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + deleteTemporaryTableB =3D + dbConnection.prepareStatement(DELETE_TEMPORARY_TABLE_B.r= eplaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + selectLimitOffsetNodesIntoTemporaryTable.setMaxRows(limit + offse= t); + selectLimitOffsetNodesIntoTemporaryTable.setString(1, lastNodeId); + selectLimitOffsetNodesIntoTemporaryTable.execute(); + + tempTableACreated =3D true; + + ResultSet nodesCountInTemporaryTable =3D countNodesInTemporaryTab= le.executeQuery(); + + if (!nodesCountInTemporaryTable.next()) + { + throw new SQLException("Can not count nodes in temporary table= ."); + } + + int count =3D nodesCountInTemporaryTable.getInt(1); + + // define newLimit if number of records in temporary table #tempA= is equal offset + limit = + int newLimit =3D limit; + + if (offset > count) + { + // return empty ResultSet because there are no enough nodes to= return + return new EmptyResultSet(); + } + else if (offset + limit > count) + { + // it is possible to select only count-offset nodes from tempo= rary table #tempA + newLimit =3D count - offset; + } + + selectLimitNodesInTemporaryTable.setMaxRows(newLimit); + selectLimitNodesInTemporaryTable.execute(); + + tempTableBCreated =3D true; + + return findNodesAndProperties.executeQuery(); + } + finally + { + if (tempTableACreated) + { + try + { + deleteTemporaryTableA.execute(); + } + catch (SQLException e) + { + LOG.warn("Can not delete temporary table " + tempTableAName= ); + } + } + + if (tempTableBCreated) + { + try + { + deleteTemporaryTableB.execute(); + } + catch (SQLException e) + { + LOG.warn("Can not delete temporary table " + tempTableBName= ); + } + } + + // close prepared statement since we always create new + if (selectLimitOffsetNodesIntoTemporaryTable !=3D null) + { + selectLimitOffsetNodesIntoTemporaryTable.close(); + } + + if (selectLimitNodesInTemporaryTable !=3D null) + { + selectLimitNodesInTemporaryTable.close(); + } + + if (deleteTemporaryTableA !=3D null) + { + deleteTemporaryTableA.close(); + } + + if (deleteTemporaryTableB !=3D null) + { + deleteTemporaryTableB.close(); + } + + if (countNodesInTemporaryTable !=3D null) + { + countNodesInTemporaryTable.close(); + } + } + } +} \ No newline at end of file Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/optimisation/db/SybaseSingleDbJDBCConnection.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseSingleDbJDBCConnection.java 20= 11-06-24 08:08:19 UTC (rev 4563) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/optimisation/db/SybaseSingleDbJDBCConnection.java 20= 11-06-24 08:30:34 UTC (rev 4564) @@ -16,11 +16,15 @@ */ package org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db; = +import org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db.Syba= seJDBCConnectionHelper.EmptyResultSet; import org.exoplatform.services.jcr.impl.util.io.FileCleaner; import org.exoplatform.services.jcr.storage.value.ValueStoragePluginProvid= er; +import org.exoplatform.services.jcr.util.IdGenerator; = import java.io.File; import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; import java.sql.SQLException; = /** @@ -34,9 +38,44 @@ public class SybaseSingleDbJDBCConnection extends SingleDbJDBCConnection { = + /** + * SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE + */ + protected String SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE; + + /** + * COUNT_NODES_IN_TEMPORARY_TABLE + */ + protected String COUNT_NODES_IN_TEMPORARY_TABLE; + + /** + * SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE + */ + protected String SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE; + + /** + * DELETE_TEMPORARY_TABLE_A + */ + protected String DELETE_TEMPORARY_TABLE_A; + + /** + * DELETE_TEMPORARY_TABLE_B + */ + protected String DELETE_TEMPORARY_TABLE_B; + + protected PreparedStatement selectLimitOffsetNodesIntoTemporaryTable; + + protected PreparedStatement selectLimitNodesInTemporaryTable; + + protected PreparedStatement deleteTemporaryTableA; + + protected PreparedStatement deleteTemporaryTableB; + + protected PreparedStatement countNodesInTemporaryTable; + public SybaseSingleDbJDBCConnection(Connection dbConnection, boolean re= adOnly, String containerName, - ValueStoragePluginProvider valueStorageProvider, int maxBufferSize, = File swapDirectory, FileCleaner swapCleaner) - throws SQLException + ValueStoragePluginProvider valueStorageProvider, int maxBuffer= Size, File swapDirectory, + FileCleaner swapCleaner) throws SQLException { super(dbConnection, readOnly, containerName, valueStorageProvider, m= axBufferSize, swapDirectory, swapCleaner); } @@ -68,4 +107,177 @@ return sb.toString(); } = + /** + * {@inheritDoc} + */ + protected void prepareQueries() throws SQLException + { + + super.prepareQueries(); + + SELECT_LIMIT_OFFSET_NODES_INTO_TEMPORARY_TABLE =3D + "select I.ID, I.PARENT_ID, I.NAME, I.VERSION, I.I_INDEX, I.= N_ORDER_NUM into " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + + " from JCR_SITEM I where I.CONTAINER_NAME=3D? AN= D I.I_CLASS=3D1 AND I.ID > ? order by I.ID ASC"; + + COUNT_NODES_IN_TEMPORARY_TABLE =3D "select count(*) from " + SybaseJ= DBCConnectionHelper.TEMP_A_TABLE_NAME; + + SELECT_LIMIT_NODES_FROM_TEMPORARY_TABLE =3D + "select * into " + SybaseJDBCConnectionHelper.TEMP_B_TABLE_= NAME + " from " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + "= order by " + + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME + "= .ID DESC"; + + FIND_NODES_AND_PROPERTIES =3D + "select " + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + + ".*, P.ID AS P_ID, P.NAME AS P_NAME, P.VERSION A= S P_VERSION, P.P_TYPE, P.P_MULTIVALUED," + + " V.DATA, V.ORDER_NUM, V.STORAGE_DESC from JCR_S= VALUE V, JCR_SITEM P, " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + "= where P.PARENT_ID =3D " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + + ".ID and P.I_CLASS=3D2 and P.CONTAINER_NAME=3D? = and V.PROPERTY_ID=3DP.ID order by " + + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME + "= .ID"; + + DELETE_TEMPORARY_TABLE_A =3D "drop table " + SybaseJDBCConnectionHel= per.TEMP_A_TABLE_NAME; + + DELETE_TEMPORARY_TABLE_B =3D "drop table " + SybaseJDBCConnectionHel= per.TEMP_B_TABLE_NAME; + } + + /** + * {@inheritDoc} + */ + protected ResultSet findNodesAndProperties(String lastNodeId, int offse= t, int limit) throws SQLException + { + String tempTableAName =3D "#a" + IdGenerator.generate(); + String tempTableBName =3D "#b" + IdGenerator.generate(); + + boolean tempTableACreated =3D false; + boolean tempTableBCreated =3D false; + + try + { + // the Sybase is not allowed DDL query (CREATE TABLE, DROP TABLE,= etc. ) within a multi-statement transaction + dbConnection.setAutoCommit(true); + + selectLimitOffsetNodesIntoTemporaryTable =3D + dbConnection.prepareStatement(SELECT_LIMIT_OFFSET_NODES_= INTO_TEMPORARY_TABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + countNodesInTemporaryTable =3D + dbConnection.prepareStatement(COUNT_NODES_IN_TEMPORARY_T= ABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + selectLimitNodesInTemporaryTable =3D + dbConnection.prepareStatement(SELECT_LIMIT_NODES_FROM_TE= MPORARY_TABLE.replaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName).replaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + if (findNodesAndProperties !=3D null) + { + findNodesAndProperties.close(); + } + + findNodesAndProperties =3D + dbConnection.prepareStatement(FIND_NODES_AND_PROPERTIES.= replaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + deleteTemporaryTableA =3D + dbConnection.prepareStatement(DELETE_TEMPORARY_TABLE_A.r= eplaceAll( + SybaseJDBCConnectionHelper.TEMP_A_TABLE_NAME, t= empTableAName)); + + deleteTemporaryTableB =3D + dbConnection.prepareStatement(DELETE_TEMPORARY_TABLE_B.r= eplaceAll( + SybaseJDBCConnectionHelper.TEMP_B_TABLE_NAME, t= empTableBName)); + + = + selectLimitOffsetNodesIntoTemporaryTable.setMaxRows(limit + offse= t); + selectLimitOffsetNodesIntoTemporaryTable.setString(1, containerNa= me); + selectLimitOffsetNodesIntoTemporaryTable.setString(2, getInternal= Id(lastNodeId)); + selectLimitOffsetNodesIntoTemporaryTable.execute(); + + tempTableACreated =3D true; + + ResultSet nodesCountInTemporaryTable =3D countNodesInTemporaryTab= le.executeQuery(); + + if (!nodesCountInTemporaryTable.next()) + { + throw new SQLException("Can not count nodes in temporary table= ."); + } + + int count =3D nodesCountInTemporaryTable.getInt(1); + + // define newLimit if number of records in temporary table #tempA= is equal offset + limit = + int newLimit =3D limit; + + if (offset > count) + { + // return empty ResultSet because there are no enough nodes to= return + return new EmptyResultSet(); + } + else if (offset + limit > count) + { + // it is possible to select only count-offset nodes from tempo= rary table #tempA + newLimit =3D count - offset; + } + + selectLimitNodesInTemporaryTable.setMaxRows(newLimit); + selectLimitNodesInTemporaryTable.execute(); + + tempTableBCreated =3D true; + + findNodesAndProperties.setString(1, containerName); + + return findNodesAndProperties.executeQuery(); + } + finally + { + if (tempTableACreated) + { + try + { + deleteTemporaryTableA.execute(); + } + catch (SQLException e) + { + LOG.warn("Can not delete temporary table " + tempTableAName= ); + } + } + + if (tempTableBCreated) + { + try + { + deleteTemporaryTableB.execute(); + } + catch (SQLException e) + { + LOG.warn("Can not delete temporary table " + tempTableBName= ); + } + } + + // close prepared statement since we always create new + if (selectLimitOffsetNodesIntoTemporaryTable !=3D null) + { + selectLimitOffsetNodesIntoTemporaryTable.close(); + } + + if (selectLimitNodesInTemporaryTable !=3D null) + { + selectLimitNodesInTemporaryTable.close(); + } + + if (deleteTemporaryTableA !=3D null) + { + deleteTemporaryTableA.close(); + } + + if (deleteTemporaryTableB !=3D null) + { + deleteTemporaryTableB.close(); + } + + if (countNodesInTemporaryTable !=3D null) + { + countNodesInTemporaryTable.close(); + } + } + } } --===============7834321757956730792==-- From do-not-reply at jboss.org Fri Jun 24 05:26:04 2011 Content-Type: multipart/mixed; boundary="===============9013898624014814536==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4565 - in kernel/trunk/exo.kernel.commons: src/main/java/org/exoplatform/commons/utils and 1 other directories. Date: Fri, 24 Jun 2011 05:26:04 -0400 Message-ID: <201106240926.p5O9Q4in002263@svn01.web.mwc.hst.phx2.redhat.com> --===============9013898624014814536== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dkuleshov Date: 2011-06-24 05:26:03 -0400 (Fri, 24 Jun 2011) New Revision: 4565 Modified: kernel/trunk/exo.kernel.commons/pom.xml kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/ut= ils/MimeTypeResolver.java kernel/trunk/exo.kernel.commons/src/test/java/org/exoplatform/commons/ut= ils/TestMimeTypeResolver.java Log: EXOJCR-1378: added new method to MimeTypeResolver to obtain mime type from = InputStream Modified: kernel/trunk/exo.kernel.commons/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/pom.xml 2011-06-24 08:30:34 UTC (rev 45= 64) +++ kernel/trunk/exo.kernel.commons/pom.xml 2011-06-24 09:26:03 UTC (rev 45= 65) @@ -62,6 +62,7 @@ src/test/resources **/*.properties + **/test* Modified: kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/com= mons/utils/MimeTypeResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/MimeTypeResolver.java 2011-06-24 08:30:34 UTC (rev 4564) +++ kernel/trunk/exo.kernel.commons/src/main/java/org/exoplatform/commons/u= tils/MimeTypeResolver.java 2011-06-24 09:26:03 UTC (rev 4565) @@ -23,10 +23,8 @@ import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; = -import java.io.File; import java.io.IOException; import java.io.InputStream; -import java.security.PrivilegedAction; import java.security.PrivilegedExceptionAction; import java.util.ArrayList; import java.util.Collection; @@ -113,45 +111,47 @@ } = /** - * Get MIMEType which corresponds to file extension or, in case if file= extension = - * does not exist, file content. If file extension is unknown, or file = content = + * Get MIMEType which corresponds to file extension. If file extension = is unknown the default = + * MIMEType will be returned. If there are more than one MIMETypes for = specific extension the = + * first occurred in the list will be returned. = + * = + * @param filename + * @return String MIMEType + */ + public String getMimeType(String filename) + { + String ext =3D filename.substring(filename.lastIndexOf(".") + 1); + if (ext.isEmpty()) + { + ext =3D filename; + } + + List values =3D mimeTypes.get(ext); + return values =3D=3D null ? defaultMimeType : values.get(0); + } + + /** + * Get MIMEType which corresponds to file content. If file content = * does not allow to determine MIMEtype, the default MIMEType will be r= eturned. = - * If there are more than one MIMETypes for specific extension the firs= t occurred = - * in the list will be returned. = - * = + * * @param fileName + * @param is * @return String MIMEType */ - public String getMimeType(String fileName) + public String getMimeType(String fileName, InputStream is) { - final File file =3D new File(fileName); - String extension =3D MimeUtil.getExtension(file); + String mimeType =3D getMimeType(fileName); = - if (extension.isEmpty()) + if (mimeType =3D=3D defaultMimeType) { - if (PrivilegedFileHelper.exists(file)) + Collection mimeTypes =3D MimeUtil.getMimeTypes(is); + if (!mimeTypes.isEmpty()) { - Collection mimeTypes =3D SecurityHelper.doPrivilegedAction(= new PrivilegedAction>() - { - public Collection run() - { - return MimeUtil.getMimeTypes(file); - } - }); - - return mimeTypes.isEmpty() ? defaultMimeType : mimeTypes.toArr= ay()[0].toString(); + mimeType =3D mimeTypes.toArray()[0].toString(); } - else - { - log.warn("You're trying to resolve mime type of non-existing f= ile with no extension."); - return defaultMimeType; - } } - else - { - List values =3D mimeTypes.get(extension); - return values =3D=3D null ? defaultMimeType : values.get(0); - } + + return mimeType; } = /** Modified: kernel/trunk/exo.kernel.commons/src/test/java/org/exoplatform/com= mons/utils/TestMimeTypeResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.commons/src/test/java/org/exoplatform/commons/u= tils/TestMimeTypeResolver.java 2011-06-24 08:30:34 UTC (rev 4564) +++ kernel/trunk/exo.kernel.commons/src/test/java/org/exoplatform/commons/u= tils/TestMimeTypeResolver.java 2011-06-24 09:26:03 UTC (rev 4565) @@ -20,6 +20,9 @@ = import junit.framework.TestCase; = +import java.io.IOException; +import java.io.InputStream; + /** * Created by The eXo Platform SAS. * @@ -63,7 +66,7 @@ * Here we're going to test MimeTypeResolver to obtain corresponding or = * at least most corresponding mime types for files without extensions. */ - public void testGetMimeTypeFromContent() + public void testGetMimeTypeFromContent() throws IOException { // should return default mime type as file name has no extension // and file does not exist to read its content @@ -74,12 +77,24 @@ // and file does not exist to read its content assertEquals(resolver.getDefaultMimeType(), resolver.getMimeType("fi= le.")); = - assertEquals("image/jpeg", resolver.getMimeType("src/test/resources/= testjpg")); - assertEquals("application/pdf", resolver.getMimeType("src/test/resou= rces/testpdf")); - assertEquals("application/msword", resolver.getMimeType("src/test/re= sources/testdoc")); - assertEquals("text/xml", resolver.getMimeType("src/test/resources/te= stxml")); - assertEquals("application/msword", resolver.getMimeType("src/test/re= sources/testxls")); + InputStream is; = + is =3D TestMimeTypeResolver.class.getResourceAsStream("/testjpg"); + assertEquals("image/jpeg", resolver.getMimeType("testjpg", is)); + is.close(); + is =3D TestMimeTypeResolver.class.getResourceAsStream("/testpdf"); + assertEquals("application/pdf", resolver.getMimeType("testpdf", is)); + is.close(); + is =3D TestMimeTypeResolver.class.getResourceAsStream("/testdoc"); + assertEquals("application/msword", resolver.getMimeType("testdoc", i= s)); + is.close(); + is =3D TestMimeTypeResolver.class.getResourceAsStream("/testxml"); + assertEquals("text/xml", resolver.getMimeType("testxml", is)); + is.close(); + is =3D TestMimeTypeResolver.class.getResourceAsStream("/testxls"); + assertEquals("application/msword", resolver.getMimeType("testxls", i= s)); + is.close(); + } = public void testGetExtension() --===============9013898624014814536==-- From do-not-reply at jboss.org Fri Jun 24 05:31:10 2011 Content-Type: multipart/mixed; boundary="===============3622946721809245425==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4566 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: storage/jdbc and 1 other directories. Date: Fri, 24 Jun 2011 05:31:10 -0400 Message-ID: <201106240931.p5O9VARb003273@svn01.web.mwc.hst.phx2.redhat.com> --===============3622946721809245425== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-24 05:31:10 -0400 (Fri, 24 Jun 2011) New Revision: 4566 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/config/JDBCConfigurationPersister.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/storage/jdbc/JDBCUtils.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/util/jdbc/DBInitializer.java Log: EXOJCR-1374: AutoCommit is set to true when creating DB structrure. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/config/JDBCConfigurationPersister.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-24 09:26:03 UTC (r= ev 4565) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-24 09:31:10 UTC (r= ev 4566) @@ -184,8 +184,9 @@ configTableName =3D configTableName.toUpperCase().toLowerCase(); = // ingres needs it binType =3D "LONG BYTE"; } - else if (DBConstants.DB_DIALECT_MYSQL.equalsIgnoreCase(dialect) = - || DBConstants.DB_DIALECT_MYSQL_UTF8.equalsIgnoreCase(diale= ct)) { + else if (DBConstants.DB_DIALECT_MYSQL.equalsIgnoreCase(dialect) + || DBConstants.DB_DIALECT_MYSQL_UTF8.equalsIgnoreCase(dialect)) + { binType =3D "LONGBLOB"; } = @@ -322,12 +323,16 @@ return config.getStream(); } else + { throw new ConfigurationNotFoundException("No configurati= on data is found in database. Source name " + sourceName); + } } else + { throw new ConfigurationNotInitializedException( "Configuration table not is found in database. Source na= me " + sourceName); + } = } finally @@ -385,12 +390,10 @@ PreparedStatement ps =3D null; try { - - con.setAutoCommit(false); - if (!isDbInitialized(con)) { // init db + con.setAutoCommit(true); Statement st =3D con.createStatement(); st.executeUpdate(sql =3D initSQL); st.close(); @@ -400,8 +403,8 @@ = // one new conn con =3D openConnection(); - con.setAutoCommit(false); } + con.setAutoCommit(false); = if (isDbInitialized(con)) { @@ -425,15 +428,15 @@ if (ps.executeUpdate() <=3D 0) { LOG.warn("Repository service configuration doesn't store= d ok. " - + "No rows was affected in JDBC operation. Data= source " + sourceName + ". SQL: " + sql); + + "No rows was affected in JDBC operation. Datasource= " + sourceName + ". SQL: " + sql); } } else + { throw new ConfigurationNotInitializedException( "Configuration table can not be created in database. Sou= rce name " + sourceName + ". SQL: " + sql); - + } con.commit(); - } finally { @@ -448,7 +451,6 @@ LOG.error("Can't close the Statement: " + e); } } - con.close(); } } Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/storage/jdbc/JDBCUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-24 09:26:03 UTC (rev 4565) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/storage/jdbc/JDBCUtils.java 2011-06-24 09:31:10 UTC (rev 4566) @@ -24,7 +24,6 @@ import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; -import java.sql.Savepoint; import java.sql.Statement; = /** @@ -52,36 +51,14 @@ { Statement stmt =3D null; ResultSet trs =3D null; - Savepoint savePoint =3D null; - Boolean autoCommit =3D null; try { - // safe get autoCommit value - autoCommit =3D con.getAutoCommit(); - // set autoCommit to true - con.setAutoCommit(false); - // make a savepoint (snapshot) - savePoint =3D con.setSavepoint(Thread.currentThread().getName()+S= ystem.currentTimeMillis()); stmt =3D con.createStatement(); trs =3D stmt.executeQuery("SELECT count(*) FROM " + tableName); return trs.next(); } catch (SQLException e) { - if (savePoint !=3D null) - { - try - { - // revert state to savePoint after failed query in transact= ion. This will allow following queries to = - // be executed in an ordinary way, like no failed query exi= sted. - // Obligatory operation for PostgreSQL. - con.rollback(savePoint); - } - catch (SQLException e1) - { - LOG.error("Can't rollback to savePoint", e1); - } - } if (LOG.isDebugEnabled()) { LOG.debug("SQLException occurs while checking the table " + ta= bleName, e); @@ -90,17 +67,6 @@ } finally { - if (autoCommit !=3D null) - { - try - { - con.setAutoCommit(autoCommit); - } - catch (SQLException e) - { - LOG.error("Can't set autoCommit value back", e); - } - } if (trs !=3D null) { try Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/util/jdbc/DBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-24 09:26:03 UTC (rev 4565) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-24 09:31:10 UTC (rev 4566) @@ -182,7 +182,7 @@ } }); } - = + protected boolean isSequenceExists(Connection conn, String sequenceName= ) throws SQLException { return false; @@ -247,7 +247,8 @@ { if (LOG.isDebugEnabled()) { - LOG.debug("The table " + tableName + " already exi= sts so we assume that the index " + indexName + " exists also."); + LOG.debug("The table " + tableName + " already exi= sts so we assume that the index " + indexName + + " exists also."); } return true; } @@ -295,7 +296,8 @@ { if (LOG.isDebugEnabled()) { - LOG.debug("At least one table has been created so we ass= ume that the trigger " + triggerName + " exists also"); + LOG.debug("At least one table has been created so we ass= ume that the trigger " + triggerName + + " exists also"); } return true; } @@ -346,8 +348,10 @@ try { st =3D connection.createStatement(); - connection.setAutoCommit(false); - + // all DDL queries executed in separated transactions + // Required for SyBase, when checking table existence = + // and performing DDLs inside single transaction. = + connection.setAutoCommit(true); for (String scr : scripts) { String s =3D cleanWhitespaces(scr.trim()); @@ -376,20 +380,18 @@ } = postInit(connection); - connection.commit(); LOG.info("DB schema of DataSource: '" + containerName + "' initia= lized succesfully"); } catch (SQLException e) { - try + if (LOG.isDebugEnabled()) { - connection.rollback(); + LOG.error("Problem creating database structure.", e); } - catch (SQLException re) - { - LOG.error("Rollback error " + e, e); - } + LOG + .warn("Some tables were created and not rolled back. Please ma= ke sure to drop them manually in datasource : '" + + containerName + "'"); = boolean isAlreadyCreated =3D false; try --===============3622946721809245425==-- From do-not-reply at jboss.org Thu Jun 30 04:29:43 2011 Content-Type: multipart/mixed; boundary="===============7463813995710805554==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4567 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: util/jdbc and 1 other directory. Date: Thu, 30 Jun 2011 04:29:43 -0400 Message-ID: <201106300829.p5U8Th4T031826@svn01.web.mwc.hst.phx2.redhat.com> --===============7463813995710805554== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-06-30 04:29:42 -0400 (Thu, 30 Jun 2011) New Revision: 4567 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/config/JDBCConfigurationPersister.java jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/util/jdbc/DBInitializer.java Log: EXOJCR-1415: no need invoke commit when setAutoCommit mode is true Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/config/JDBCConfigurationPersister.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-24 09:31:10 UTC (r= ev 4566) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/config/JDBCConfigurationPersister.java 2011-06-30 08:29:42 UTC (r= ev 4567) @@ -398,7 +398,6 @@ st.executeUpdate(sql =3D initSQL); st.close(); = - con.commit(); con.close(); = // one new conn Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/util/jdbc/DBInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-24 09:31:10 UTC (rev 4566) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/util/jdbc/DBInitializer.java 2011-06-30 08:29:42 UTC (rev 4567) @@ -380,7 +380,6 @@ } = postInit(connection); - connection.commit(); LOG.info("DB schema of DataSource: '" + containerName + "' initia= lized succesfully"); } catch (SQLException e) --===============7463813995710805554==-- From do-not-reply at jboss.org Thu Jun 30 06:09:15 2011 Content-Type: multipart/mixed; boundary="===============3345796331930075209==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4568 - in jcr/trunk/exo.jcr.component.ext/src: test/java/org/exoplatform/services/jcr/ext/backup and 1 other directory. Date: Thu, 30 Jun 2011 06:09:15 -0400 Message-ID: <201106301009.p5UA9Fp9019611@svn01.web.mwc.hst.phx2.redhat.com> --===============3345796331930075209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: areshetnyak Date: 2011-06-30 06:09:14 -0400 (Thu, 30 Jun 2011) New Revision: 4568 Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/j= cr/ext/backup/RepositoryBackupChainLog.java jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/j= cr/ext/backup/AbstractBackupTestCase.java jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/j= cr/ext/backup/AbstractBackupUseCasesTest.java Log: EXOJCR-1405 : The backup-dir in repository backup-log was tested for relato= ve path and implemented resolving system variables Modified: jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/ser= vices/jcr/ext/backup/RepositoryBackupChainLog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/RepositoryBackupChainLog.java 2011-06-30 08:29:42 UTC (rev 4= 567) +++ jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/= jcr/ext/backup/RepositoryBackupChainLog.java 2011-06-30 10:09:14 UTC (rev 4= 568) @@ -18,6 +18,7 @@ = import org.exoplatform.commons.utils.PrivilegedFileHelper; import org.exoplatform.commons.utils.SecurityHelper; +import org.exoplatform.container.xml.Deserializer; import org.exoplatform.services.jcr.config.RepositoryEntry; import org.exoplatform.services.jcr.config.RepositoryServiceConfiguration; import org.exoplatform.services.jcr.ext.backup.server.RepositoryRestoreExe= ption; @@ -476,7 +477,7 @@ } else { - conf.setBackupDir(new File(dir)); + conf.setBackupDir(new File(Deserializer.resolve= Variables(dir))); } } else Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/ser= vices/jcr/ext/backup/AbstractBackupTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupTestCase.java 2011-06-30 08:29:42 UTC (rev 456= 7) +++ jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupTestCase.java 2011-06-30 10:09:14 UTC (rev 456= 8) @@ -110,7 +110,9 @@ } } = - @Override + /** + * {@inheritDoc} + */ public void setUp() throws Exception { super.setUp();// this @@ -119,6 +121,16 @@ blob =3D createBLOBTempFile(300); } = + /** + * {@inheritDoc} + */ + protected void tearDown() throws Exception + { + super.tearDown(); + + blob.delete(); + } + protected abstract ExtendedBackupManager getBackupManager(); = protected ExtendedBackupManager getJCRBackupManager() Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/ser= vices/jcr/ext/backup/AbstractBackupUseCasesTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupUseCasesTest.java 2011-06-30 08:29:42 UTC (rev= 4567) +++ jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/= jcr/ext/backup/AbstractBackupUseCasesTest.java 2011-06-30 10:09:14 UTC (rev= 4568) @@ -17,14 +17,20 @@ package org.exoplatform.services.jcr.ext.backup; = import org.apache.commons.collections.map.HashedMap; +import org.exoplatform.commons.utils.PrivilegedFileHelper; +import org.exoplatform.commons.utils.PrivilegedSystemHelper; import org.exoplatform.services.jcr.config.RepositoryEntry; import org.exoplatform.services.jcr.config.WorkspaceEntry; import org.exoplatform.services.jcr.core.ManageableRepository; import org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore; import org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore; +import org.exoplatform.services.jcr.impl.Constants; import org.exoplatform.services.jcr.util.IdGenerator; = import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.util.Map; = /** @@ -1189,4 +1195,154 @@ checkConent(repositoryService.getRepository(config.getRepository()), repositoryService.getRepository(config.getRepository()).getConfig= uration().getSystemWorkspaceName()); } + = + public void testEnvironmentVariablesToBackupDir() throws Exception + { + // prepare stage #1 + ManageableRepository repository =3D helper.createRepository(containe= r, true, null); + addConent(repository, repository.getConfiguration().getSystemWorkspa= ceName()); + + String tempDir =3D PrivilegedSystemHelper.getProperty("java.io.tmpdi= r"); + + // backup + File backDir =3D new File(tempDir); + + RepositoryBackupConfig config =3D new RepositoryBackupConfig(); + config.setRepository(repository.getConfiguration().getName()); + config.setBackupType(BackupManager.FULL_BACKUP_ONLY); + config.setBackupDir(backDir); + + RepositoryBackupChain bch =3D backup.startBackup(config); + waitEndOfBackup(bch); + backup.stopBackup(bch); + + // prepare stage #2 + String repositoryBackupChainLogPath =3D bch.getLogFilePath(); + + String backupDitEnv =3D backDir.getCanonicalPath(); + + String newBackupDir =3D + "\\${java.io.tmpdir}" + + bch.getBackupConfig().getBackupDir().getCanonica= lPath() + .replaceAll(backupDitEnv, ""); + + File dest =3D new File(repositoryBackupChainLogPath + ".xml"); + dest.createNewFile(); + + RepositoryBackupChainLog newRepositoryBackupChainLog =3D null; + try + { + String sConfig =3D + setNewBackupDirInRepositoryBackupChainLog(new File(repos= itoryBackupChainLogPath), dest, newBackupDir); + + assertTrue(sConfig.contains(newBackupDir.subSequence(1, newBackup= Dir.length()))); + + // check + newRepositoryBackupChainLog =3D new RepositoryBackupChainLog(dest= ); + + assertEquals(bch.getBackupConfig().getBackupDir().getCanonicalPat= h(), + newRepositoryBackupChainLog.getBackupConfig().getBackupD= ir().getCanonicalPath()); + + } + finally + { + newRepositoryBackupChainLog =3D null; + dest.delete(); + = + deleteFolder(bch.getBackupConfig().getBackupDir()); + } + } + + public void testRelativeBackupDir() throws Exception + { + // prepare stage #1 + ManageableRepository repository =3D helper.createRepository(containe= r, true, null); + addConent(repository, repository.getConfiguration().getSystemWorkspa= ceName()); + + // backup + File backDir =3D new File("target"); + + RepositoryBackupConfig config =3D new RepositoryBackupConfig(); + config.setRepository(repository.getConfiguration().getName()); + config.setBackupType(BackupManager.FULL_BACKUP_ONLY); + config.setBackupDir(backDir); + + RepositoryBackupChain bch =3D backup.startBackup(config); + waitEndOfBackup(bch); + backup.stopBackup(bch); + + // prepare stage #2 + String repositoryBackupChainLogPath =3D bch.getLogFilePath(); + + String relativePrefixBackupDir =3D backDir.getCanonicalFile().getPar= ent() + File.separator; + + String newBackupDir =3D + bch.getBackupConfig().getBackupDir().getCanonicalPath().rep= laceAll(relativePrefixBackupDir, ""); + + File dest =3D new File(repositoryBackupChainLogPath + ".xml"); + dest.createNewFile(); + + RepositoryBackupChainLog newRepositoryBackupChainLog =3D null; + + String sConfig =3D + setNewBackupDirInRepositoryBackupChainLog(new File(reposito= ryBackupChainLogPath), dest, newBackupDir); + + assertTrue(sConfig.contains(newBackupDir)); + + // check + newRepositoryBackupChainLog =3D new RepositoryBackupChainLog(dest); + + assertEquals(bch.getBackupConfig().getBackupDir().getCanonicalPath()= , newRepositoryBackupChainLog + .getBackupConfig().getBackupDir().getCanonicalPath()); + } + + /** + * Set new backup directory in RepositoryBackupChainLog + * = + * @param src + * source file of RepositoryBackupChainLog + * @param dest + * destination file of RepositoryBackupChainLog + * @param newBackupDir + * @return String + * the content of file destination = + * @throws IOException = + */ + protected String setNewBackupDirInRepositoryBackupChainLog(File src, Fi= le dest, String newBackupDir) + throws IOException + { + InputStream in =3D PrivilegedFileHelper.fileInputStream(src); + OutputStream out =3D PrivilegedFileHelper.fileOutputStream(dest); + + byte[] buf =3D new byte[(int) (PrivilegedFileHelper.length(src))]; + in.read(buf); + + String sConfig =3D new String(buf, Constants.DEFAULT_ENCODING); + sConfig =3D sConfig.replaceAll(".+", "" + newBackupDir + ""); + + out.write(sConfig.getBytes(Constants.DEFAULT_ENCODING)); + + in.close(); + out.close(); + + return sConfig; + } + + protected void deleteFolder(File f) + { + if (f.isDirectory()) + { + for (File file : f.listFiles()) + { + deleteFolder(file); + } + + f.delete(); + } + else + { + f.delete(); + } + } + = } --===============3345796331930075209==-- From do-not-reply at jboss.org Thu Jun 30 10:54:38 2011 Content-Type: multipart/mixed; boundary="===============5819874532953140458==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4569 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query. Date: Thu, 30 Jun 2011 10:54:38 -0400 Message-ID: <201106301454.p5UEscqd002470@svn01.web.mwc.hst.phx2.redhat.com> --===============5819874532953140458== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nzamosenchuk Date: 2011-06-30 10:54:37 -0400 (Thu, 30 Jun 2011) New Revision: 4569 Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/= jcr/impl/core/query/SystemSearchManager.java Log: EXOJCR-1068 : SystemSearchManager was registered under same name as SearchM= anager, so one of them was overridden in JMX MBean Server. Fixed. Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/se= rvices/jcr/impl/core/query/SystemSearchManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/SystemSearchManager.java 2011-06-30 10:09:14 UTC (rev = 4568) +++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services= /jcr/impl/core/query/SystemSearchManager.java 2011-06-30 14:54:37 UTC (rev = 4569) @@ -18,6 +18,8 @@ = import org.exoplatform.container.ExoContainerContext; import org.exoplatform.container.configuration.ConfigurationManager; +import org.exoplatform.management.jmx.annotations.NameTemplate; +import org.exoplatform.management.jmx.annotations.Property; import org.exoplatform.services.document.DocumentReaderService; import org.exoplatform.services.jcr.RepositoryService; import org.exoplatform.services.jcr.config.QueryHandlerEntry; @@ -47,6 +49,7 @@ * @version $Id: SystemSearchManager.java 13891 2008-05-05 16:02:30Z pnedo= nosko * $ */ +(a)NameTemplate(@Property(key =3D "service", value =3D "SystemSearchManage= r")) public class SystemSearchManager extends SearchManager { = --===============5819874532953140458==--