[exo-jcr-commits] exo-jcr SVN: r2967 - jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/value.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Aug 23 03:45:14 EDT 2010


Author: dkatayev
Date: 2010-08-23 03:45:14 -0400 (Mon, 23 Aug 2010)
New Revision: 2967

Modified:
   jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/value/PermissionValue.java
Log:
EXOJCR-908 IDENTITY_DELIMITER constant removed from org.exoplatform.services.jcr.impl.core.value.PermissionValue use  org.exoplatform.services.jcr.access.AccessControlEntry.DELIMITER instead.

Modified: jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/value/PermissionValue.java
===================================================================
--- jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/value/PermissionValue.java	2010-08-23 07:44:40 UTC (rev 2966)
+++ jcr/branches/1.12.x/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/value/PermissionValue.java	2010-08-23 07:45:14 UTC (rev 2967)
@@ -18,6 +18,7 @@
  */
 package org.exoplatform.services.jcr.impl.core.value;
 
+import org.exoplatform.services.jcr.access.AccessControlEntry;
 import org.exoplatform.services.jcr.access.PermissionType;
 import org.exoplatform.services.jcr.access.SystemIdentity;
 import org.exoplatform.services.jcr.core.ExtendedPropertyType;
@@ -42,8 +43,6 @@
 
    private static final int TYPE = ExtendedPropertyType.PERMISSION;
 
-   private static final String IDENTITY_DELIMITER = " ";
-
    private String identity;
 
    private String permission;
@@ -85,7 +84,7 @@
 
    static public String[] parse(String pstring)
    {
-      StringTokenizer parser = new StringTokenizer(pstring, IDENTITY_DELIMITER);
+      StringTokenizer parser = new StringTokenizer(pstring, AccessControlEntry.DELIMITER);
       String identityString = parser.nextToken();
       String permissionString = parser.nextToken();
 
@@ -122,7 +121,7 @@
    static protected String asString(String identity, String permission)
    {
       if (identity != null || permission != null) // SystemIdentity.ANY, PermissionType.ALL
-         return (identity != null ? identity : SystemIdentity.ANY) + IDENTITY_DELIMITER
+         return (identity != null ? identity : SystemIdentity.ANY) + AccessControlEntry.DELIMITER
             + (permission != null ? permission : PermissionType.READ);
       else
          return "";



More information about the exo-jcr-commits mailing list