[exo-jcr-commits] exo-jcr SVN: r484 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr: impl/core and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Nov 6 09:47:59 EST 2009
Author: aparfonov
Date: 2009-11-06 09:47:58 -0500 (Fri, 06 Nov 2009)
New Revision: 484
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
Log:
EXOJCR-227 : add method
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java 2009-11-06 10:21:09 UTC (rev 483)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java 2009-11-06 14:47:58 UTC (rev 484)
@@ -55,6 +55,14 @@
* @return Access Control List
*/
AccessControlList getACL() throws RepositoryException;
+
+ /**
+ * Get unique node identifier.
+ *
+ * @return node identifier
+ * @throws RepositoryException if any repository errors occurs
+ */
+ String getIdentifier() throws RepositoryException;
/**
* Clears Access Control List.
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2009-11-06 10:21:09 UTC (rev 483)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2009-11-06 14:47:58 UTC (rev 484)
@@ -956,6 +956,15 @@
+ itemPath.getAsString(false));
return (NodeImpl)node;
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getIdentifier() throws RepositoryException
+ {
+ checkValid();
+ return this.getInternalIdentifier();
+ }
/**
* {@inheritDoc}
More information about the exo-jcr-commits
mailing list