chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1479173 [2/2] - in /chemistry/opencmis/trunk: chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ chemistry-opencmis-client/chemistry-opencmis-client...
Date Sat, 04 May 2013 20:53:04 GMT
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyBooleanDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyBooleanDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyBooleanDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyBooleanDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Boolean property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyBooleanDefinitionImpl extends AbstractPropertyDefinition<Boolean>
implements
         PropertyBooleanDefinition {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDateTimeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDateTimeDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDateTimeDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDateTimeDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -25,28 +25,19 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * DateTime property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyDateTimeDefinitionImpl extends AbstractPropertyDefinition<GregorianCalendar>
implements
         PropertyDateTimeDefinition {
 
     private static final long serialVersionUID = 1L;
 
-    private DateTimeResolution fDateTimeResolution;
+    private DateTimeResolution dateTimeResolution;
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @seeorg.apache.opencmis.client.provider.PropertyDateTimeDefinitionData#
-     * getDateTimeResolution()
-     */
     public DateTimeResolution getDateTimeResolution() {
-        return fDateTimeResolution;
+        return dateTimeResolution;
     }
 
     public void setDateTimeResolution(DateTimeResolution dateTimeResolution) {
-        fDateTimeResolution = dateTimeResolution;
+        this.dateTimeResolution = dateTimeResolution;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDecimalDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDecimalDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDecimalDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDecimalDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -25,60 +25,37 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Decimal property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyDecimalDefinitionImpl extends AbstractPropertyDefinition<BigDecimal>
implements
         PropertyDecimalDefinition {
 
     private static final long serialVersionUID = 1L;
 
-    private BigDecimal fMinValue;
-    private BigDecimal fMaxValue;
-    private DecimalPrecision fPrecision;
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMinValue
-     * ()
-     */
+    private BigDecimal minValue;
+    private BigDecimal maxValue;
+    private DecimalPrecision precision;
+
     public BigDecimal getMinValue() {
-        return fMinValue;
+        return minValue;
     }
 
     public void setMinValue(BigDecimal minValue) {
-        fMinValue = minValue;
+        this.minValue = minValue;
     }
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMaxValue
-     * ()
-     */
     public BigDecimal getMaxValue() {
-        return fMaxValue;
+        return maxValue;
     }
 
     public void setMaxValue(BigDecimal maxValue) {
-        fMaxValue = maxValue;
+        this.maxValue = maxValue;
     }
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @seeorg.apache.opencmis.client.provider.PropertyDecimalDefinitionData#
-     * getPrecision()
-     */
     public DecimalPrecision getPrecision() {
-        return fPrecision;
+        return precision;
     }
 
     public void setPrecision(DecimalPrecision precision) {
-        fPrecision = precision;
+        this.precision = precision;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * HTML property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyHtmlDefinitionImpl extends AbstractPropertyDefinition<String>
implements PropertyHtmlDefinition {
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlImpl.java
Sat May  4 20:51:13 2013
@@ -23,7 +23,7 @@ import java.util.List;
 import org.apache.chemistry.opencmis.commons.data.PropertyHtml;
 
 /**
- * Html property data implementation.
+ * HTML property data implementation.
  */
 public class PropertyHtmlImpl extends AbstractPropertyData<String> implements PropertyHtml
{
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIdDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIdDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIdDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIdDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Id property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyIdDefinitionImpl extends AbstractPropertyDefinition<String> implements
PropertyIdDefinition {
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIntegerDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIntegerDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIntegerDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIntegerDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -24,45 +24,28 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Boolean property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyIntegerDefinitionImpl extends AbstractPropertyDefinition<BigInteger>
implements
         PropertyIntegerDefinition {
 
     private static final long serialVersionUID = 1L;
 
-    private BigInteger fMinValue;
-    private BigInteger fMaxValue;
+    private BigInteger minValue;
+    private BigInteger maxValue;
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.opencmis.client.provider.PropertyIntegerDefinitionData#getMinValue
-     * ()
-     */
     public BigInteger getMinValue() {
-        return fMinValue;
+        return minValue;
     }
 
     public void setMinValue(BigInteger minValue) {
-        fMinValue = minValue;
+        this.minValue = minValue;
     }
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.opencmis.client.provider.PropertyIntegerDefinitionData#getMaxValue
-     * ()
-     */
     public BigInteger getMaxValue() {
-        return fMaxValue;
+        return maxValue;
     }
 
     public void setMaxValue(BigInteger maxValue) {
-        fMaxValue = maxValue;
+        this.maxValue = maxValue;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyStringDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyStringDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyStringDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyStringDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -24,29 +24,19 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * String property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyStringDefinitionImpl extends AbstractPropertyDefinition<String>
implements
         PropertyStringDefinition {
 
     private static final long serialVersionUID = 1L;
 
-    private BigInteger fMaxLength;
+    private BigInteger maxLength;
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.opencmis.client.provider.PropertyStringDefinitionData#getMaxLength
-     * ()
-     */
     public BigInteger getMaxLength() {
-        return fMaxLength;
+        return maxLength;
     }
 
     public void setMaxLength(BigInteger maxLength) {
-        fMaxLength = maxLength;
+        this.maxLength = maxLength;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyUriDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyUriDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyUriDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyUriDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * URI property definition data implementation.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class PropertyUriDefinitionImpl extends AbstractPropertyDefinition<String> implements
PropertyUriDefinition {
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -18,48 +18,42 @@
  */
 package org.apache.chemistry.opencmis.commons.impl.dataobjects;
 
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.chemistry.opencmis.commons.definitions.RelationshipTypeDefinition;
 
 /**
  * Relationship type definition.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class RelationshipTypeDefinitionImpl extends AbstractTypeDefinition implements RelationshipTypeDefinition
{
 
     private static final long serialVersionUID = 1L;
 
-    private List<String> fAllowedSourceTypes;
-    private List<String> fAllowedTargetTypes;
+    private List<String> allowedSourceTypes;
+    private List<String> allowedTargetTypes;
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @seeorg.apache.opencmis.client.provider.RelationshipTypeDefinitionData#
-     * getAllowedSourceTypes()
-     */
     public List<String> getAllowedSourceTypeIds() {
-        return fAllowedSourceTypes;
+        if (allowedSourceTypes == null) {
+            allowedSourceTypes = new ArrayList<String>();
+        }
+
+        return allowedSourceTypes;
     }
 
     public void setAllowedSourceTypes(List<String> allowedSourceTypes) {
-        fAllowedSourceTypes = allowedSourceTypes;
+        this.allowedSourceTypes = allowedSourceTypes;
     }
 
-    /*
-     * (non-Javadoc)
-     * 
-     * @seeorg.apache.opencmis.client.provider.RelationshipTypeDefinitionData#
-     * getAllowedTargetTypes()
-     */
     public List<String> getAllowedTargetTypeIds() {
-        return fAllowedTargetTypes;
+        if (allowedTargetTypes == null) {
+            allowedTargetTypes = new ArrayList<String>();
+        }
+
+        return allowedTargetTypes;
     }
 
     public void setAllowedTargetTypes(List<String> allowedTargetTypes) {
-        fAllowedTargetTypes = allowedTargetTypes;
+        this.allowedTargetTypes = allowedTargetTypes;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
Sat May  4 20:51:13 2013
@@ -18,6 +18,7 @@
  */
 package org.apache.chemistry.opencmis.commons.impl.dataobjects;
 
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.chemistry.opencmis.commons.data.AclCapabilities;
@@ -188,6 +189,10 @@ public class RepositoryInfoImpl extends 
     }
 
     public List<BaseTypeId> getChangesOnType() {
+        if (changesOnType == null) {
+            changesOnType = new ArrayList<BaseTypeId>();
+        }
+
         return changesOnType;
     }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/SecondaryTypeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/SecondaryTypeDefinitionImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/SecondaryTypeDefinitionImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/SecondaryTypeDefinitionImpl.java
Sat May  4 20:51:13 2013
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.chemistry.opencmis.commons.impl.dataobjects;
 
 import org.apache.chemistry.opencmis.commons.definitions.SecondaryTypeDefinition;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
Sat May  4 20:51:13 2013
@@ -51,6 +51,10 @@ public class TypeDefinitionContainerImpl
     }
 
     public List<TypeDefinitionContainer> getChildren() {
+        if (children == null) {
+            children = new ArrayList<TypeDefinitionContainer>();
+        }
+
         return children;
     }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionListImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionListImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionListImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionListImpl.java
Sat May  4 20:51:13 2013
@@ -30,10 +30,10 @@ import org.apache.chemistry.opencmis.com
 public class TypeDefinitionListImpl extends AbstractExtensionData implements TypeDefinitionList
{
 
     private static final long serialVersionUID = 1L;
-    
-    private List<TypeDefinition> fList;
-    private Boolean fHasMoreItems = Boolean.FALSE;
-    private BigInteger fNumItems;
+
+    private List<TypeDefinition> list;
+    private Boolean hasMoreItems = Boolean.FALSE;
+    private BigInteger numItems;
 
     /**
      * Default constructor.
@@ -48,38 +48,38 @@ public class TypeDefinitionListImpl exte
      *            the initial list
      */
     public TypeDefinitionListImpl(List<TypeDefinition> list) {
-        fList = list;
-        fHasMoreItems = Boolean.FALSE;
-        fNumItems = BigInteger.valueOf(list.size());
+        this.list = list;
+        this.hasMoreItems = Boolean.FALSE;
+        this.numItems = BigInteger.valueOf(list.size());
     }
 
     public List<TypeDefinition> getList() {
-        return fList;
+        return list;
     }
 
     public void setList(List<TypeDefinition> list) {
-        fList = list;
+        this.list = list;
     }
 
     public Boolean hasMoreItems() {
-        return fHasMoreItems;
+        return hasMoreItems;
     }
 
     public void setHasMoreItems(Boolean hasMoreItems) {
-        fHasMoreItems = hasMoreItems;
+        this.hasMoreItems = hasMoreItems;
     }
 
     public BigInteger getNumItems() {
-        return fNumItems;
+        return numItems;
     }
 
     public void setNumItems(BigInteger numItems) {
-        fNumItems = numItems;
+        this.numItems = numItems;
     }
 
     @Override
     public String toString() {
-        return "Type Definition List [list=" + fList + ", has more items=" + fHasMoreItems
+ ", num items=" + fNumItems
+        return "Type Definition List [list=" + list + ", has more items=" + hasMoreItems
+ ", num items=" + numItems
                 + "]" + super.toString();
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/ConverterTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/ConverterTest.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/ConverterTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/ConverterTest.java
Sat May  4 20:51:13 2013
@@ -105,11 +105,11 @@ public class ConverterTest extends TestC
         acl1.setAclPropagation(AclPropagation.PROPAGATE);
         List<PermissionDefinition> pddList = new ArrayList<PermissionDefinition>();
         PermissionDefinitionDataImpl pdd1 = new PermissionDefinitionDataImpl();
-        pdd1.setPermission("test:perm1");
+        pdd1.setId("test:perm1");
         pdd1.setDescription("Permission1");
         pddList.add(pdd1);
         PermissionDefinitionDataImpl pdd2 = new PermissionDefinitionDataImpl();
-        pdd2.setPermission("test:perm2");
+        pdd2.setId("test:perm2");
         pdd2.setDescription("Permission2");
         pddList.add(pdd2);
         acl1.setPermissionDefinitionData(pddList);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/RepositoryInfoConverterTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/RepositoryInfoConverterTest.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/RepositoryInfoConverterTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/RepositoryInfoConverterTest.java
Sat May  4 20:51:13 2013
@@ -151,11 +151,11 @@ public class RepositoryInfoConverterTest
             acl1.setAclPropagation(randomEnum(AclPropagation.class));
             List<PermissionDefinition> pddList = new ArrayList<PermissionDefinition>();
             PermissionDefinitionDataImpl pdd1 = new PermissionDefinitionDataImpl();
-            pdd1.setPermission(randomString());
+            pdd1.setId(randomString());
             pdd1.setDescription(randomString());
             pddList.add(pdd1);
             PermissionDefinitionDataImpl pdd2 = new PermissionDefinitionDataImpl();
-            pdd2.setPermission(randomString());
+            pdd2.setId(randomString());
             pdd2.setDescription(randomString());
             pddList.add(pdd2);
             acl1.setPermissionDefinitionData(pddList);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java
Sat May  4 20:51:13 2013
@@ -287,7 +287,7 @@ public class FileShareRepository {
 
     private static PermissionDefinition createPermission(String permission, String description)
{
         PermissionDefinitionDataImpl pd = new PermissionDefinitionDataImpl();
-        pd.setPermission(permission);
+        pd.setId(permission);
         pd.setDescription(description);
 
         return pd;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
Sat May  4 20:51:13 2013
@@ -530,7 +530,7 @@ public class StoreManagerImpl implements
 
     private static PermissionDefinition createPermission(String permission, String description)
{
         PermissionDefinitionDataImpl pd = new PermissionDefinitionDataImpl();
-        pd.setPermission(permission);
+        pd.setId(permission);
         pd.setDescription(description);
 
         return pd;



Mime
View raw message