jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r354820 - /incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
Date Wed, 07 Dec 2005 17:52:41 GMT
Author: bcm
Date: Wed Dec  7 09:52:34 2005
New Revision: 354820

URL: http://svn.apache.org/viewcvs?rev=354820&view=rev
Log:
make several private methods protected so that subclasses can use them.

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java?rev=354820&r1=354819&r2=354820&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
Wed Dec  7 09:52:34 2005
@@ -239,7 +239,7 @@
     /**
      * Fill the set of properties
      */
-    private void initProperties() {
+    protected void initProperties() {
         if (!exists() || inited) {
             return;
         }
@@ -776,7 +776,7 @@
      *
      * @return true if this resource is lockable.
      */
-    private boolean isJsrLockable() {
+    protected boolean isJsrLockable() {
         boolean lockable = false;
         if (exists()) {
             try {
@@ -800,7 +800,7 @@
      *
      * @return true if this resource cannot be modified due to a write lock
      */
-    private boolean isLocked(DavResource res) {
+    protected boolean isLocked(DavResource res) {
         ActiveLock lock = res.getLock(Type.WRITE, Scope.EXCLUSIVE);
         if (lock == null) {
             return false;
@@ -826,7 +826,7 @@
      * @param session
      * @return a <code>DavPropertyName</code> for the given jcr name.
      */
-    private DavPropertyName getDavName(String jcrName, Session session) throws RepositoryException
{
+    protected DavPropertyName getDavName(String jcrName, Session session) throws RepositoryException
{
         // make sure the local name is xml compliant
         String localName = ISO9075.encode(Text.getLocalName(jcrName));
         String prefix = Text.getNamespacePrefix(jcrName);
@@ -850,7 +850,7 @@
      * @return jcr name
      * @throws RepositoryException
      */
-    private String getJcrName(DavPropertyName propName) throws RepositoryException {
+    protected String getJcrName(DavPropertyName propName) throws RepositoryException {
         // remove any encoding necessary for xml compliance
         String pName = ISO9075.decode(propName.getName());
         String uri = propName.getNamespace().getURI();
@@ -882,7 +882,7 @@
      * @param property
      * @throws RepositoryException
      */
-    private void setJcrProperty(DavProperty property) throws RepositoryException {
+    protected void setJcrProperty(DavProperty property) throws RepositoryException {
         // retrieve value
         String value = property.getValue().toString();
         // set value; since multivalued-properties are not listed in the set
@@ -894,7 +894,7 @@
      * @param propertyName
      * @throws RepositoryException
      */
-    private void removeJcrProperty(DavPropertyName propertyName) throws RepositoryException
{
+    protected void removeJcrProperty(DavPropertyName propertyName) throws RepositoryException
{
         String jcrName = getJcrName(propertyName);
         if (node.hasProperty(jcrName)) {
             node.getProperty(jcrName).remove();
@@ -902,12 +902,12 @@
         // removal of non existing property succeeds
     }
 
-    private boolean isFilteredResource(DavResource resource) {
+    protected boolean isFilteredResource(DavResource resource) {
         // TODO: filtered nodetypes should be checked as well in order to prevent problems.
         return filter != null && filter.isFilteredResource(resource.getDisplayName(),
session.getRepositorySession());
     }
 
-    private boolean isFilteredNode(Node n) {
+    protected boolean isFilteredNode(Node n) {
         return filter != null && filter.isFilteredItem(n);
     }
 



Mime
View raw message