Author: fguillaume
Date: Thu Oct 7 12:42:48 2010
New Revision: 1005432
URL: http://svn.apache.org/viewvc?rev=1005432&view=rev
Log:
CMIS-242: remove OperationContext parameter from convenience short APIs
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java?rev=1005432&r1=1005431&r2=1005432&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Folder.java
Thu Oct 7 12:42:48 2010
@@ -28,7 +28,7 @@ import org.apache.chemistry.opencmis.com
/**
* CMIS Folder.
- *
+ *
* Domain Model 2.5
*/
public interface Folder extends FileableCmisObject {
@@ -37,7 +37,7 @@ public interface Folder extends Fileable
/**
* Creates a new document in this folder.
- *
+ *
* @return the new document object or <code>null</code> if the parameter
* <code>context</code> was set to <code>null</code>
*/
@@ -46,16 +46,14 @@ public interface Folder extends Fileable
/**
* Creates a new document in this folder.
- *
- * @return the new document object or <code>null</code> if the parameter
- * <code>context</code> was set to <code>null</code>
+ *
+ * @return the new document object
*/
- Document createDocument(Map<String, ?> properties, ContentStream
contentStream, VersioningState versioningState,
- OperationContext context);
+ Document createDocument(Map<String, ?> properties, ContentStream
contentStream, VersioningState versioningState);
/**
* Creates a new document from a source document in this folder.
- *
+ *
* @return the new document object or <code>null</code> if the parameter
* <code>context</code> was set to <code>null</code>
*/
@@ -64,16 +62,14 @@ public interface Folder extends Fileable
/**
* Creates a new document from a source document in this folder.
- *
- * @return the new document object or <code>null</code> if the parameter
- * <code>context</code> was set to <code>null</code>
+ *
+ * @return the new document object
*/
- Document createDocumentFromSource(ObjectId source, Map<String, ?>
properties, VersioningState versioningState,
- OperationContext context);
+ Document createDocumentFromSource(ObjectId source, Map<String, ?>
properties, VersioningState versioningState);
/**
* Creates a new subfolder in this folder.
- *
+ *
* @return the new folder object or <code>null</code> if the parameter
* <code>context</code> was set to <code>null</code>
*/
@@ -82,15 +78,14 @@ public interface Folder extends Fileable
/**
* Creates a new subfolder in this folder.
- *
- * @return the new folder object or <code>null</code> if the parameter
- * <code>context</code> was set to <code>null</code>
+ *
+ * @return the new folder object
*/
- Folder createFolder(Map<String, ?> properties, OperationContext context);
+ Folder createFolder(Map<String, ?> properties);
/**
* Creates a new policy in this folder.
- *
+ *
* @return the new policy object or <code>null</code> if the parameter
* <code>context</code> was set to <code>null</code>
*/
@@ -99,15 +94,14 @@ public interface Folder extends Fileable
/**
* Creates a new policy in this folder.
- *
- * @return the new policy object or <code>null</code> if the parameter
- * <code>context</code> was set to <code>null</code>
+ *
+ * @return the new policy object
*/
- Policy createPolicy(Map<String, ?> properties, OperationContext context);
+ Policy createPolicy(Map<String, ?> properties);
/**
* Deletes this folder and all subfolders.
- *
+ *
* @return a list of object ids which failed to be deleted
*/
List<String> deleteTree(boolean allversions, UnfileObject unfile, boolean
continueOnFailure);
@@ -154,7 +148,7 @@ public interface Folder extends Fileable
/**
* Gets the parent folder object
- *
+ *
* @return the parent folder object or <code>null</code> if the folder is
* the root folder.
*/
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java?rev=1005432&r1=1005431&r2=1005432&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
Thu Oct 7 12:42:48 2010
@@ -444,20 +444,20 @@ public class PersistentFolderImpl extend
}
public Document createDocument(Map<String, ?> properties, ContentStream
contentStream,
- VersioningState versioningState, OperationContext context) {
- return this.createDocument(properties, contentStream, versioningState,
null, null, null, context);
+ VersioningState versioningState) {
+ return this.createDocument(properties, contentStream, versioningState,
null, null, null, getSession().getDefaultContext());
}
public Document createDocumentFromSource(ObjectId source, Map<String, ?>
properties,
- VersioningState versioningState, OperationContext context) {
- return this.createDocumentFromSource(source, properties,
versioningState, null, null, null, context);
+ VersioningState versioningState) {
+ return this.createDocumentFromSource(source, properties,
versioningState, null, null, null, getSession().getDefaultContext());
}
- public Folder createFolder(Map<String, ?> properties, OperationContext
context) {
- return this.createFolder(properties, null, null, null, context);
+ public Folder createFolder(Map<String, ?> properties) {
+ return this.createFolder(properties, null, null, null,
getSession().getDefaultContext());
}
- public Policy createPolicy(Map<String, ?> properties, OperationContext
context) {
- return this.createPolicy(properties, null, null, null, context);
+ public Policy createPolicy(Map<String, ?> properties) {
+ return this.createPolicy(properties, null, null, null,
getSession().getDefaultContext());
}
}