jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1401681 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
Date Wed, 24 Oct 2012 13:47:32 GMT
Author: mreutegg
Date: Wed Oct 24 13:47:32 2012
New Revision: 1401681

URL: http://svn.apache.org/viewvc?rev=1401681&view=rev
Log:
OAK-66: JCR Node Type Management
- Removed unused method. Implementation is present in PropertyImpl

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java?rev=1401681&r1=1401680&r2=1401681&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
Wed Oct 24 13:47:32 2012
@@ -21,16 +21,12 @@ import java.util.List;
 import javax.annotation.Nonnull;
 import javax.jcr.InvalidItemStateException;
 import javax.jcr.RepositoryException;
-import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Value;
-import javax.jcr.nodetype.NodeType;
-import javax.jcr.nodetype.PropertyDefinition;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.TreeLocation;
 import org.apache.jackrabbit.oak.core.TreeImpl.PropertyLocation;
 import org.apache.jackrabbit.oak.plugins.memory.PropertyStates;
-import org.apache.jackrabbit.oak.util.TODO;
 import org.apache.jackrabbit.oak.plugins.value.ValueFactoryImpl;
 
 /**
@@ -74,109 +70,6 @@ public class PropertyDelegate extends It
     }
 
     /**
-     * Get the property definition of the property
-     * @return
-     */
-    @Nonnull
-    public PropertyDefinition getDefinition() {
-        try {
-            return TODO.dummyImplementation().returnValue(
-                new PropertyDefinition() {
-
-                    @Override
-                    public int getRequiredType() {
-                        return 0;
-                    }
-
-                    @Override
-                    public String[] getValueConstraints() {
-                        // TODO
-                        return new String[0];
-                    }
-
-                    @Override
-                    public Value[] getDefaultValues() {
-                        // TODO
-                        return new Value[0];
-                    }
-
-                    @Override
-                    public boolean isMultiple() {
-                        // TODO
-                        try {
-                            return getPropertyState().isArray();
-                        }
-                        catch (InvalidItemStateException e) {
-                            return false;  // todo implement catch e
-                        }
-                    }
-
-                    @Override
-                    public String[] getAvailableQueryOperators() {
-                        // TODO
-                        return new String[0];
-                    }
-
-                    @Override
-                    public boolean isFullTextSearchable() {
-                        // TODO
-                        return false;
-                    }
-
-                    @Override
-                    public boolean isQueryOrderable() {
-                        // TODO
-                        return false;
-                    }
-
-                    @Override
-                    public NodeType getDeclaringNodeType() {
-                        // TODO
-                        return null;
-                    }
-
-                    @Override
-                    public String getName() {
-                        // TODO
-                        try {
-                            return getPropertyState().getName();
-                        }
-                        catch (InvalidItemStateException e) {
-                            return null;  // todo implement catch e
-                        }
-                    }
-
-                    @Override
-                    public boolean isAutoCreated() {
-                        // TODO
-                        return false;
-                    }
-
-                    @Override
-                    public boolean isMandatory() {
-                        // TODO
-                        return false;
-                    }
-
-                    @Override
-                    public int getOnParentVersion() {
-                        // TODO
-                        return 0;
-                    }
-
-                    @Override
-                    public boolean isProtected() {
-                        // TODO
-                        return false;
-                    }
-                });
-        }
-        catch (UnsupportedRepositoryOperationException e) {
-            throw new UnsupportedOperationException(e);
-        }
-    }
-
-    /**
      * Set the value of the property
      * @param value
      */



Mime
View raw message