You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/05/04 22:53:04 UTC
svn commit: r1479173 [1/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...
Author: fmui
Date: Sat May 4 20:51:13 2013
New Revision: 1479173
URL: http://svn.apache.org/r1479173
Log:
code clean up and adjustments of data objects
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/Cache.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheLevel.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomFeed.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomLink.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/RepositoryWorkspace.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ServiceDoc.java
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityAcl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityChanges.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityContentStreamUpdates.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityJoin.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityQuery.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityRenditions.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Cardinality.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/ContentStreamAllowed.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DateTimeResolution.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DecimalPrecision.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/IncludeRelationships.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/RelationshipDirection.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/SupportedPermissions.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/UnfileObject.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Updatability.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/VersioningState.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/WSConverter.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CreatablePropertyTypesImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FolderTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionDefinitionDataImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyIdListImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyBooleanDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDateTimeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyDecimalDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyHtmlImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIdDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyIntegerDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyStringDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PropertyUriDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RelationshipTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/RepositoryInfoImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/SecondaryTypeDefinitionImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionContainerImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/TypeDefinitionListImpl.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/misc/ConverterTest.java
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/RepositoryInfoConverterTest.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareRepository.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/StoreManagerImpl.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java Sat May 4 20:51:13 2013
@@ -23,8 +23,7 @@ import java.io.Serializable;
import javax.xml.namespace.QName;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Atom element.
*/
public class AtomElement implements Serializable {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/Cache.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/Cache.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/Cache.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/Cache.java Sat May 4 20:51:13 2013
@@ -35,8 +35,6 @@ import java.io.Serializable;
* <br/>
* </p>
*
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
* @see CacheLevel
*/
public interface Cache extends Serializable {
@@ -64,7 +62,8 @@ public interface Cache extends Serializa
*
* @param keys
* the keys
- * @return the object or <code>null<code> if the branch or leaf doesn't exist
+ * @return the object or
+ * <code>null<code> if the branch or leaf doesn't exist
*/
Object get(String... keys);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheLevel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheLevel.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheLevel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheLevel.java Sat May 4 20:51:13 2013
@@ -24,8 +24,6 @@ import java.util.Map;
/**
* Interface for a level of an hierarchical cache.
*
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
* @see Cache
*/
public interface CacheLevel extends Serializable {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.java Sat May 4 20:51:13 2013
@@ -23,31 +23,30 @@ import java.io.Serializable;
import javax.xml.namespace.QName;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Atom Element.
*/
public class AtomElement implements Serializable {
private static final long serialVersionUID = 1L;
- private final QName fName;
- private final Object fObject;
+ private final QName name;
+ private final Object object;
public AtomElement(QName name, Object object) {
- fName = name;
- fObject = object;
+ this.name = name;
+ this.object = object;
}
public QName getName() {
- return fName;
+ return name;
}
public Object getObject() {
- return fObject;
+ return object;
}
@Override
public String toString() {
- return fName + ": " + fObject;
+ return name + ": " + object;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.java Sat May 4 20:51:13 2013
@@ -19,41 +19,33 @@
package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Atom Entry.
*/
public class AtomEntry extends AtomBase {
private static final long serialVersionUID = 1L;
- private String fId;
+ private String id;
public AtomEntry() {
super();
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.spi.atompub.objects.AtomBase#getType
- * ()
- */
@Override
public String getType() {
return "Atom Entry";
}
public String getId() {
- return fId;
+ return id;
}
public void setId(String id) {
- fId = id;
+ this.id = id;
}
@Override
public String toString() {
- return "Entry \"" + fId + "\": " + getElements();
+ return "Entry \"" + id + "\": " + getElements();
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomFeed.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomFeed.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomFeed.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomFeed.java Sat May 4 20:51:13 2013
@@ -22,42 +22,34 @@ import java.util.ArrayList;
import java.util.List;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Atom Feed.
*/
public class AtomFeed extends AtomBase {
private static final long serialVersionUID = 1L;
- private final List<AtomEntry> fEntries = new ArrayList<AtomEntry>();
+ private final List<AtomEntry> entries = new ArrayList<AtomEntry>();
public AtomFeed() {
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.spi.atompub.objects.AtomBase#getType
- * ()
- */
@Override
public String getType() {
return "Atom Feed";
}
public List<AtomEntry> getEntries() {
- return fEntries;
+ return entries;
}
public void addEntry(AtomEntry entry) {
if (entry != null) {
- fEntries.add(entry);
+ entries.add(entry);
}
}
@Override
public String toString() {
- return "Feed : " + getElements() + " " + fEntries;
+ return "Feed : " + getElements() + " " + entries;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomLink.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomLink.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomLink.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomLink.java Sat May 4 20:51:13 2013
@@ -21,46 +21,45 @@ package org.apache.chemistry.opencmis.cl
import java.io.Serializable;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Atom Link.
*/
public class AtomLink implements Serializable {
private static final long serialVersionUID = 1L;
- private String fRel;
- private String fType;
- private String fHref;
+ private String rel;
+ private String type;
+ private String href;
public AtomLink() {
}
public String getRel() {
- return fRel;
+ return rel;
}
public void setRel(String rel) {
- fRel = rel;
+ this.rel = rel;
}
public String getType() {
- return fType;
+ return type;
}
public void setType(String type) {
- fType = type;
+ this.type = type;
}
public String getHref() {
- return fHref;
+ return href;
}
public void setHref(String href) {
- fHref = href;
+ this.href = href;
}
@Override
public String toString() {
- return "Link: rel=\"" + fRel + "\" type=\"" + fType + "\" href=\"" + fHref + "\"";
+ return "Link: rel=\"" + rel + "\" type=\"" + type + "\" href=\"" + href + "\"";
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/RepositoryWorkspace.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/RepositoryWorkspace.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/RepositoryWorkspace.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/RepositoryWorkspace.java Sat May 4 20:51:13 2013
@@ -19,40 +19,32 @@
package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Repository workspace.
*/
public class RepositoryWorkspace extends AtomBase {
private static final long serialVersionUID = 1L;
- private String fId;
+ private String id;
public RepositoryWorkspace() {
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.spi.atompub.objects.AtomBase#getType
- * ()
- */
@Override
public String getType() {
return "Repository Workspace";
}
public String getId() {
- return fId;
+ return id;
}
public void setId(String id) {
- fId = id;
+ this.id = id;
}
@Override
public String toString() {
- return "Workspace \"" + fId + "\": " + getElements();
+ return "Workspace \"" + id + "\": " + getElements();
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ServiceDoc.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ServiceDoc.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ServiceDoc.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ServiceDoc.java Sat May 4 20:51:13 2013
@@ -22,42 +22,34 @@ import java.util.ArrayList;
import java.util.List;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Service Doc.
*/
public class ServiceDoc extends AtomBase {
private static final long serialVersionUID = 1L;
- private final List<RepositoryWorkspace> fWorkspaces = new ArrayList<RepositoryWorkspace>();
+ private final List<RepositoryWorkspace> workspaces = new ArrayList<RepositoryWorkspace>();
public ServiceDoc() {
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.spi.atompub.objects.AtomBase#getType
- * ()
- */
@Override
public String getType() {
return "Service Document";
}
public List<RepositoryWorkspace> getWorkspaces() {
- return fWorkspaces;
+ return workspaces;
}
public void addWorkspace(RepositoryWorkspace ws) {
if (ws != null) {
- fWorkspaces.add(ws);
+ workspaces.add(ws);
}
}
@Override
public String toString() {
- return "Service Doc: " + fWorkspaces;
+ return "Service Doc: " + workspaces;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java Sat May 4 20:51:13 2013
@@ -27,9 +27,6 @@ import org.apache.chemistry.opencmis.cli
/**
* Tests the cache implementation.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public class CacheTest extends TestCase {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java Sat May 4 20:51:13 2013
@@ -24,9 +24,6 @@ import org.apache.chemistry.opencmis.com
/**
* Base object for CMIS documents, folders, relationships and policies.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public interface ObjectData extends ExtensionsData {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java Sat May 4 20:51:13 2013
@@ -28,9 +28,6 @@ import org.apache.chemistry.opencmis.com
/**
* Base property definition interface.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public interface PropertyDefinition<T> extends Serializable, ExtensionsData {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityAcl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityAcl.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityAcl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityAcl.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: ACL.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityAcl {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityChanges.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityChanges.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityChanges.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityChanges.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: Changes.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityChanges {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityContentStreamUpdates.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityContentStreamUpdates.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityContentStreamUpdates.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityContentStreamUpdates.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: Content Stream Updates.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityContentStreamUpdates {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityJoin.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityJoin.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityJoin.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityJoin.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: Join.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityJoin {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityQuery.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityQuery.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityQuery.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityQuery.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: Query.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityQuery {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityRenditions.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityRenditions.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityRenditions.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/CapabilityRenditions.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Capability Enum: Rendition.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum CapabilityRenditions {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Cardinality.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Cardinality.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Cardinality.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Cardinality.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Cardinality Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum Cardinality {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/ContentStreamAllowed.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/ContentStreamAllowed.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/ContentStreamAllowed.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/ContentStreamAllowed.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Content Stream Allowed Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum ContentStreamAllowed {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DateTimeResolution.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DateTimeResolution.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DateTimeResolution.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DateTimeResolution.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Date Time Resolution Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum DateTimeResolution {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DecimalPrecision.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DecimalPrecision.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DecimalPrecision.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/DecimalPrecision.java Sat May 4 20:51:13 2013
@@ -22,9 +22,6 @@ import java.math.BigInteger;
/**
* Decimal Precision Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum DecimalPrecision {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/IncludeRelationships.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/IncludeRelationships.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/IncludeRelationships.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/IncludeRelationships.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Include Relationships Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum IncludeRelationships {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/RelationshipDirection.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/RelationshipDirection.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/RelationshipDirection.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/RelationshipDirection.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Relationship Direction Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum RelationshipDirection {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/SupportedPermissions.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/SupportedPermissions.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/SupportedPermissions.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/SupportedPermissions.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* ACL Capability Enum: Supported Permissions.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum SupportedPermissions {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/UnfileObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/UnfileObject.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/UnfileObject.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/UnfileObject.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Unfile Object Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum UnfileObject {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Updatability.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Updatability.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Updatability.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/Updatability.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Updatability Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum Updatability {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/VersioningState.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/VersioningState.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/VersioningState.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/enums/VersioningState.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* VersioningState Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum VersioningState {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.java?rev=1479173&r1=1479172&r2=1479173&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/spi/BindingsObjectFactory.java Sat May 4 20:51:13 2013
@@ -41,9 +41,6 @@ import org.apache.chemistry.opencmis.com
/**
* Factory for CMIS binding objects.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public interface BindingsObjectFactory {
@@ -51,8 +48,7 @@ public interface BindingsObjectFactory {
Acl createAccessControlList(List<Ace> aces);
- <T> PropertyData<T> createPropertyData(PropertyDefinition<T> pd,
- Object value);
+ <T> PropertyData<T> createPropertyData(PropertyDefinition<T> pd, Object value);
PropertyBoolean createPropertyBooleanData(String id, List<Boolean> values);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.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/JSONConverter.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/JSONConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java Sat May 4 20:51:13 2013
@@ -584,7 +584,7 @@ public final class JSONConverter {
if (permissionMap != null) {
PermissionDefinitionDataImpl permDef = new PermissionDefinitionDataImpl();
- permDef.setPermission(getString(permissionMap, JSON_ACLCAP_PERMISSION_PERMISSION));
+ permDef.setId(getString(permissionMap, JSON_ACLCAP_PERMISSION_PERMISSION));
permDef.setDescription(getString(permissionMap, JSON_ACLCAP_PERMISSION_DESCRIPTION));
convertExtension(permissionMap, permDef, ACLCAP_PERMISSION_KEYS);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.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/ReturnVersion.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/ReturnVersion.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java Sat May 4 20:51:13 2013
@@ -20,9 +20,6 @@ package org.apache.chemistry.opencmis.co
/**
* Return Version Enum.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public enum ReturnVersion {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/WSConverter.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/WSConverter.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/WSConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/WSConverter.java Sat May 4 20:51:13 2013
@@ -463,7 +463,7 @@ public final class WSConverter {
List<PermissionDefinition> permissionDefinitionList = new ArrayList<PermissionDefinition>();
for (CmisPermissionDefinition permDef : aclCapabilities.getPermissions()) {
PermissionDefinitionDataImpl permDefData = new PermissionDefinitionDataImpl();
- permDefData.setPermission(permDef.getPermission());
+ permDefData.setId(permDef.getPermission());
permDefData.setDescription(permDef.getDescription());
convertExtension(permDef, permDefData);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.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/XMLConverter.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/XMLConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java Sat May 4 20:51:13 2013
@@ -1486,7 +1486,7 @@ public class XMLConverter {
throws XMLStreamException {
if (isCmisNamespace(name)) {
if (isTag(name, TAG_ACLCAP_PERMISSION_PERMISSION)) {
- target.setPermission(readText(parser));
+ target.setId(readText(parser));
return true;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.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/AccessControlEntryImpl.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/AccessControlEntryImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java Sat May 4 20:51:13 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
import java.io.Serializable;
+import java.util.ArrayList;
import java.util.List;
import org.apache.chemistry.opencmis.commons.data.Ace;
@@ -62,6 +63,10 @@ public class AccessControlEntryImpl exte
}
public List<String> getPermissions() {
+ if (permissions == null) {
+ permissions = new ArrayList<String>();
+ }
+
return permissions;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.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/AccessControlListImpl.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/AccessControlListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java Sat May 4 20:51:13 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
import java.io.Serializable;
+import java.util.ArrayList;
import java.util.List;
import org.apache.chemistry.opencmis.commons.data.Ace;
@@ -48,6 +49,10 @@ public class AccessControlListImpl exten
}
public List<Ace> getAces() {
+ if (aces == null) {
+ aces = new ArrayList<Ace>();
+ }
+
return aces;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.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/AclCapabilitiesDataImpl.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/AclCapabilitiesDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java Sat May 4 20:51:13 2013
@@ -18,6 +18,8 @@
*/
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
+import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -56,6 +58,10 @@ public class AclCapabilitiesDataImpl ext
}
public Map<String, PermissionMapping> getPermissionMapping() {
+ if (permissionMapping == null) {
+ permissionMapping = new HashMap<String, PermissionMapping>();
+ }
+
return permissionMapping;
}
@@ -64,6 +70,10 @@ public class AclCapabilitiesDataImpl ext
}
public List<PermissionDefinition> getPermissions() {
+ if (permissionDefinitionList == null) {
+ permissionDefinitionList = new ArrayList<PermissionDefinition>();
+ }
+
return permissionDefinitionList;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.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/AllowableActionsImpl.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/AllowableActionsImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java Sat May 4 20:51:13 2013
@@ -31,9 +31,13 @@ public class AllowableActionsImpl extend
private static final long serialVersionUID = 1L;
- private Set<Action> allowableActions = EnumSet.noneOf(Action.class);
+ private Set<Action> allowableActions;
public Set<Action> getAllowableActions() {
+ if (allowableActions == null) {
+ allowableActions = EnumSet.noneOf(Action.class);
+ }
+
return allowableActions;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.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/BindingsObjectFactoryImpl.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/BindingsObjectFactoryImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java Sat May 4 20:51:13 2013
@@ -53,9 +53,6 @@ import org.apache.chemistry.opencmis.com
/**
* CMIS binding object factory implementation.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public class BindingsObjectFactoryImpl implements BindingsObjectFactory, Serializable {
@@ -81,73 +78,56 @@ public class BindingsObjectFactoryImpl i
}
@SuppressWarnings("unchecked")
- public <T> AbstractPropertyData<T> createPropertyData(
- PropertyDefinition<T> pd, Object value) {
+ public <T> AbstractPropertyData<T> createPropertyData(PropertyDefinition<T> pd, Object value) {
String id = pd.getId();
boolean single = pd.getCardinality() == Cardinality.SINGLE;
if (pd instanceof PropertyBooleanDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyBooleanData(id,
- (Boolean) value);
+ return (AbstractPropertyData<T>) createPropertyBooleanData(id, (Boolean) value);
} else {
- return (AbstractPropertyData<T>) createPropertyBooleanData(id,
- (List<Boolean>) value);
+ return (AbstractPropertyData<T>) createPropertyBooleanData(id, (List<Boolean>) value);
}
} else if (pd instanceof PropertyDateTimeDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyDateTimeData(id,
- (GregorianCalendar) value);
+ return (AbstractPropertyData<T>) createPropertyDateTimeData(id, (GregorianCalendar) value);
} else {
- return (AbstractPropertyData<T>) createPropertyDateTimeData(id,
- (List<GregorianCalendar>) value);
+ return (AbstractPropertyData<T>) createPropertyDateTimeData(id, (List<GregorianCalendar>) value);
}
} else if (pd instanceof PropertyDecimalDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyDecimalData(id,
- (BigDecimal) value);
+ return (AbstractPropertyData<T>) createPropertyDecimalData(id, (BigDecimal) value);
} else {
- return (AbstractPropertyData<T>) createPropertyDecimalData(id,
- (List<BigDecimal>) value);
+ return (AbstractPropertyData<T>) createPropertyDecimalData(id, (List<BigDecimal>) value);
}
} else if (pd instanceof PropertyHtmlDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyHtmlData(id,
- (String) value);
+ return (AbstractPropertyData<T>) createPropertyHtmlData(id, (String) value);
} else {
- return (AbstractPropertyData<T>) createPropertyHtmlData(id,
- (List<String>) value);
+ return (AbstractPropertyData<T>) createPropertyHtmlData(id, (List<String>) value);
}
} else if (pd instanceof PropertyIdDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyIdData(id,
- (String) value);
+ return (AbstractPropertyData<T>) createPropertyIdData(id, (String) value);
} else {
- return (AbstractPropertyData<T>) createPropertyIdData(id,
- (List<String>) value);
+ return (AbstractPropertyData<T>) createPropertyIdData(id, (List<String>) value);
}
} else if (pd instanceof PropertyIntegerDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyIntegerData(id,
- (BigInteger) value);
+ return (AbstractPropertyData<T>) createPropertyIntegerData(id, (BigInteger) value);
} else {
- return (AbstractPropertyData<T>) createPropertyIntegerData(id,
- (List<BigInteger>) value);
+ return (AbstractPropertyData<T>) createPropertyIntegerData(id, (List<BigInteger>) value);
}
} else if (pd instanceof PropertyStringDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyStringData(id,
- (String) value);
+ return (AbstractPropertyData<T>) createPropertyStringData(id, (String) value);
} else {
- return (AbstractPropertyData<T>) createPropertyStringData(id,
- (List<String>) value);
+ return (AbstractPropertyData<T>) createPropertyStringData(id, (List<String>) value);
}
} else if (pd instanceof PropertyUriDefinition) {
if (single) {
- return (AbstractPropertyData<T>) createPropertyUriData(id,
- (String) value);
+ return (AbstractPropertyData<T>) createPropertyUriData(id, (String) value);
} else {
- return (AbstractPropertyData<T>) createPropertyUriData(id,
- (List<String>) value);
+ return (AbstractPropertyData<T>) createPropertyUriData(id, (List<String>) value);
}
}
throw new CmisRuntimeException("Unknown property definition: " + pd);
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CreatablePropertyTypesImpl.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/CreatablePropertyTypesImpl.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/CreatablePropertyTypesImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/CreatablePropertyTypesImpl.java Sat May 4 20:51:13 2013
@@ -18,6 +18,7 @@
*/
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
+import java.util.EnumSet;
import java.util.Set;
import org.apache.chemistry.opencmis.commons.data.CreatablePropertyTypes;
@@ -30,6 +31,10 @@ public class CreatablePropertyTypesImpl
private Set<PropertyType> propertyTypeSet;
public Set<PropertyType> canCreate() {
+ if (propertyTypeSet == null) {
+ propertyTypeSet = EnumSet.noneOf(PropertyType.class);
+ }
+
return propertyTypeSet;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.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/DocumentTypeDefinitionImpl.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/DocumentTypeDefinitionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/DocumentTypeDefinitionImpl.java Sat May 4 20:51:13 2013
@@ -23,30 +23,27 @@ import org.apache.chemistry.opencmis.com
/**
* Document type definition.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
*/
-public class DocumentTypeDefinitionImpl extends AbstractTypeDefinition
- implements DocumentTypeDefinition {
+public class DocumentTypeDefinitionImpl extends AbstractTypeDefinition implements DocumentTypeDefinition {
private static final long serialVersionUID = 1L;
- private ContentStreamAllowed fContentStreamAllowed = ContentStreamAllowed.NOTALLOWED;
- private Boolean fIsVersionable = Boolean.FALSE;
+ private ContentStreamAllowed contentStreamAllowed = ContentStreamAllowed.NOTALLOWED;
+ private Boolean isVersionable = Boolean.FALSE;
public ContentStreamAllowed getContentStreamAllowed() {
- return fContentStreamAllowed;
+ return contentStreamAllowed;
}
public void setContentStreamAllowed(ContentStreamAllowed contentStreamAllowed) {
- fContentStreamAllowed = contentStreamAllowed;
+ this.contentStreamAllowed = contentStreamAllowed;
}
public Boolean isVersionable() {
- return fIsVersionable;
+ return isVersionable;
}
public void setIsVersionable(Boolean isVersionable) {
- fIsVersionable = isVersionable;
+ this.isVersionable = isVersionable;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.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/ExtensionFeatureImpl.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/ExtensionFeatureImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ExtensionFeatureImpl.java Sat May 4 20:51:13 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
+import java.util.HashMap;
import java.util.Map;
import org.apache.chemistry.opencmis.commons.data.ExtensionFeature;
@@ -75,6 +76,10 @@ public class ExtensionFeatureImpl extend
}
public Map<String, String> getFeatureData() {
+ if (featureData == null) {
+ featureData = new HashMap<String, String>();
+ }
+
return featureData;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.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/FailedToDeleteDataImpl.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/FailedToDeleteDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FailedToDeleteDataImpl.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.FailedToDeleteData;
@@ -29,13 +30,17 @@ public class FailedToDeleteDataImpl exte
private static final long serialVersionUID = 1L;
- private List<String> fIds;
+ private List<String> ids;
public List<String> getIds() {
- return fIds;
+ if (ids == null) {
+ ids = new ArrayList<String>();
+ }
+
+ return ids;
}
public void setIds(List<String> ids) {
- this.fIds = ids;
+ this.ids = ids;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FolderTypeDefinitionImpl.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/FolderTypeDefinitionImpl.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/FolderTypeDefinitionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/FolderTypeDefinitionImpl.java Sat May 4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
/**
* Folder type definition.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public class FolderTypeDefinitionImpl extends AbstractTypeDefinition implements FolderTypeDefinition {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.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/ObjectInFolderContainerImpl.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/ObjectInFolderContainerImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderContainerImpl.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.ObjectInFolderContainer;
@@ -45,7 +46,6 @@ public class ObjectInFolderContainerImpl
*/
public ObjectInFolderContainerImpl(ObjectInFolderData object) {
setObject(object);
-
}
public ObjectInFolderData getObject() {
@@ -57,6 +57,10 @@ public class ObjectInFolderContainerImpl
}
public List<ObjectInFolderContainer> getChildren() {
+ if (children == null) {
+ children = new ArrayList<ObjectInFolderContainer>();
+ }
+
return children;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.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/ObjectInFolderListImpl.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/ObjectInFolderListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectInFolderListImpl.java Sat May 4 20:51:13 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
import java.math.BigInteger;
+import java.util.ArrayList;
import java.util.List;
import org.apache.chemistry.opencmis.commons.data.ObjectInFolderData;
@@ -36,6 +37,10 @@ public class ObjectInFolderListImpl exte
private BigInteger numItems;
public List<ObjectInFolderData> getObjects() {
+ if (objects == null) {
+ objects = new ArrayList<ObjectInFolderData>();
+ }
+
return objects;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.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/ObjectListImpl.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/ObjectListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ObjectListImpl.java Sat May 4 20:51:13 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
import java.math.BigInteger;
+import java.util.ArrayList;
import java.util.List;
import org.apache.chemistry.opencmis.commons.data.ObjectData;
@@ -36,6 +37,10 @@ public class ObjectListImpl extends Abst
private BigInteger numItems;
public List<ObjectData> getObjects() {
+ if (objects == null) {
+ objects = new ArrayList<ObjectData>();
+ }
+
return objects;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionDefinitionDataImpl.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/PermissionDefinitionDataImpl.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/PermissionDefinitionDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionDefinitionDataImpl.java Sat May 4 20:51:13 2013
@@ -18,56 +18,45 @@
*/
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
+import org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition;
+
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Permission definition.
*/
-public class PermissionDefinitionDataImpl extends AbstractExtensionData implements
- org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition {
+public class PermissionDefinitionDataImpl extends AbstractExtensionData implements PermissionDefinition {
private static final long serialVersionUID = 1L;
- private String fPermission;
- private String fDescription;
+ private String permission;
+ private String description;
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.PermissionDefinitionData#getPermission
- * ()
- */
public String getId() {
- return fPermission;
+ return permission;
}
- public void setPermission(String permission) {
- fPermission = permission;
+ public void setId(String permission) {
+ this.permission = permission;
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.PermissionDefinitionData#getDescription
- * ()
+ /**
+ * @deprecated use {@link #setId(String)} instead
*/
+ @Deprecated
+ public void setPermission(String permission) {
+ this.permission = permission;
+ }
+
public String getDescription() {
- return fDescription;
+ return description;
}
public void setDescription(String description) {
- fDescription = description;
+ this.description = description;
}
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
@Override
public String toString() {
- return "Permission Definition [permission=" + fPermission + ", description=" + fDescription + "]"
+ return "Permission Definition [permission=" + permission + ", description=" + description + "]"
+ super.toString();
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.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/PermissionMappingDataImpl.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/PermissionMappingDataImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PermissionMappingDataImpl.java Sat May 4 20:51:13 2013
@@ -18,57 +18,44 @@
*/
package org.apache.chemistry.opencmis.commons.impl.dataobjects;
+import java.util.ArrayList;
import java.util.List;
import org.apache.chemistry.opencmis.commons.data.PermissionMapping;
/**
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
+ * Permission mapping.
*/
public class PermissionMappingDataImpl extends AbstractExtensionData implements PermissionMapping {
private static final long serialVersionUID = 1L;
- private String fKey;
- private List<String> fPermissions;
+ private String key;
+ private List<String> permissions;
- /*
- * (non-Javadoc)
- *
- * @see org.apache.opencmis.client.provider.PermissionMappingData#getKey()
- */
public String getKey() {
- return fKey;
+ return key;
}
public void setKey(String key) {
- fKey = key;
+ this.key = key;
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.opencmis.client.provider.PermissionMappingData#getPermissions
- * ()
- */
public List<String> getPermissions() {
- return fPermissions;
+ if (permissions == null) {
+ permissions = new ArrayList<String>();
+ }
+
+ return permissions;
}
public void setPermissions(List<String> permissions) {
- fPermissions = permissions;
+ this.permissions = permissions;
}
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
@Override
public String toString() {
- return "Permission Mapping [key=" + fKey + ", permissions=" + fPermissions + "]" + super.toString();
+ return "Permission Mapping [key=" + key + ", permissions=" + permissions + "]" + super.toString();
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyIdListImpl.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/PolicyIdListImpl.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/PolicyIdListImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyIdListImpl.java Sat May 4 20:51:13 2013
@@ -29,14 +29,14 @@ public class PolicyIdListImpl extends Ab
private static final long serialVersionUID = 1L;
- private List<String> fPolicyIds;
+ private List<String> policyIds;
public List<String> getPolicyIds() {
- return fPolicyIds;
+ return policyIds;
}
public void setPolicyIds(List<String> policyIds) {
- fPolicyIds = policyIds;
+ this.policyIds = policyIds;
}
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyTypeDefinitionImpl.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/PolicyTypeDefinitionImpl.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/PolicyTypeDefinitionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/PolicyTypeDefinitionImpl.java Sat May 4 20:51:13 2013
@@ -22,9 +22,6 @@ import org.apache.chemistry.opencmis.com
/**
* Policy type definition.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
- *
*/
public class PolicyTypeDefinitionImpl extends AbstractTypeDefinition implements PolicyTypeDefinition {