chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r916601 - /incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/
Date Fri, 26 Feb 2010 07:46:37 GMT
Author: sklevenz
Date: Fri Feb 26 07:46:36 2010
New Revision: 916601

URL: http://svn.apache.org/viewvc?rev=916601&view=rev
Log:
client runtime implementation
- session creation green
- class stubs for base cmis objects created, implementation missing
https://issues.apache.org/jira/browse/CMIS-124

Added:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
  (with props)
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java
  (with props)
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java
  (with props)
Modified:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java

Added: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java?rev=916601&view=auto
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
(added)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
Fri Feb 26 07:46:36 2010
@@ -0,0 +1,375 @@
+/*
+ * 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.opencmis.client.runtime;
+
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import org.apache.opencmis.client.api.Ace;
+import org.apache.opencmis.client.api.CmisObject;
+import org.apache.opencmis.client.api.ContentStream;
+import org.apache.opencmis.client.api.Document;
+import org.apache.opencmis.client.api.Folder;
+import org.apache.opencmis.client.api.Policy;
+import org.apache.opencmis.client.api.Property;
+import org.apache.opencmis.client.api.Relationship;
+import org.apache.opencmis.client.api.Rendition;
+import org.apache.opencmis.client.api.objecttype.ObjectType;
+import org.apache.opencmis.client.api.repository.AllowableActions;
+import org.apache.opencmis.client.api.util.AceList;
+import org.apache.opencmis.commons.enums.AclPropagation;
+import org.apache.opencmis.commons.enums.BaseObjectTypeIds;
+import org.apache.opencmis.commons.enums.RelationshipDirection;
+import org.apache.opencmis.commons.enums.VersioningState;
+import org.apache.opencmis.commons.exceptions.CmisRuntimeException;
+import org.apache.opencmis.commons.provider.ObjectData;
+
+public class PersistentDocumentImpl implements Document {
+
+	public PersistentDocumentImpl(PersistentSessionImpl persistentSessionImpl,
+			ObjectData od) {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public void cancelCheckOut() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void checkIn(boolean major, List<Property<?>> properties,
+			ContentStream contentStream, String checkinComment,
+			List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public boolean checkOut() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public Document copy(List<Property<?>> properties,
+			VersioningState versioningState, List<Policy> policies,
+			List<Ace> addACEs, List<Ace> removeACEs) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void deleteAllVersions() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void deleteContentStream() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Document> getAllVersions() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getCheckinComment() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public ContentStream getContentStream() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public Document getObjectOfLatestVersion(boolean major) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<String> getPaths() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getPropertiesOfLatestVersion(boolean major) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getPropertiesOfLatestVersion(boolean major,
+			String filter) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Rendition> getRenditions() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getVersionLabel() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getVersionSeries() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getVersionSeriesCheckedOut() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getVersionSeriesCheckedOutBy() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public boolean isImmutable() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isLatestMajorVersion() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isLatestVersion() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isMajorVersion() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isVersionSeriesCheckedOut() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public void setContentStream(boolean overwrite, ContentStream contentStream) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void addAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void addToFolder(Folder folder, boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public AceList applyAcl(List<Ace> addAces, List<Ace> removeAces,
+			AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void applyPolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void applyPolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void delete(boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Ace> getAcl() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public AceList getAcl(boolean onlyBasicPermissions) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public AllowableActions getAllowableActions() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public ObjectType getBaseType() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public BaseObjectTypeIds getBaseTypeId() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getChangeToken() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getCreatedBy() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public GregorianCalendar getCreationDate() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getId() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public GregorianCalendar getLastModificationDate() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getLastModifiedBy() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getName() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Folder> getParents() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Policy> getPolicies() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getProperties() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getProperties(String filter) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> Property<T> getProperty(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> List<T> getPropertyMultivalue(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> T getPropertyValue(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Relationship> getRelationships() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Relationship> getRelationships(
+			boolean includeSubRelationshipTypes,
+			RelationshipDirection relationshipDirection, ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public ObjectType getType() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public boolean isChanged() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isExactAcl() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public CmisObject move(Folder targetfolder) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void removeAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removeFromFolder(Folder folder) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setName(String name) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setProperty(String id, T value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setPropertyMultivalue(String id, List<T> value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setType(ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setTypeId(String typeId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void updateProperties(List<Property<?>> properties) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+}

Propchange: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentDocumentImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java?rev=916601&view=auto
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java
(added)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java
Fri Feb 26 07:46:36 2010
@@ -0,0 +1,262 @@
+/*
+ * 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.opencmis.client.runtime;
+
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import org.apache.opencmis.client.api.Ace;
+import org.apache.opencmis.client.api.CmisObject;
+import org.apache.opencmis.client.api.Folder;
+import org.apache.opencmis.client.api.Policy;
+import org.apache.opencmis.client.api.Property;
+import org.apache.opencmis.client.api.Relationship;
+import org.apache.opencmis.client.api.objecttype.ObjectType;
+import org.apache.opencmis.client.api.repository.AllowableActions;
+import org.apache.opencmis.client.api.util.AceList;
+import org.apache.opencmis.commons.enums.AclPropagation;
+import org.apache.opencmis.commons.enums.BaseObjectTypeIds;
+import org.apache.opencmis.commons.enums.RelationshipDirection;
+import org.apache.opencmis.commons.exceptions.CmisRuntimeException;
+import org.apache.opencmis.commons.provider.ObjectData;
+
+public class PersistentPolicyImpl implements Policy {
+
+	public PersistentPolicyImpl(PersistentSessionImpl persistentSessionImpl,
+			ObjectData od) {
+		// TODO Auto-generated constructor stub
+	}
+
+	public List<String> getPaths() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getPolicyText() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void addAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void addToFolder(Folder folder, boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public AceList applyAcl(List<Ace> addAces, List<Ace> removeAces,
+			AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void applyPolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void applyPolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void delete(boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Ace> getAcl() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public AceList getAcl(boolean onlyBasicPermissions) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public AllowableActions getAllowableActions() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public ObjectType getBaseType() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public BaseObjectTypeIds getBaseTypeId() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getChangeToken() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getCreatedBy() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public GregorianCalendar getCreationDate() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getId() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public GregorianCalendar getLastModificationDate() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getLastModifiedBy() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public String getName() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Folder> getParents() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Policy> getPolicies() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getProperties() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Property<?>> getProperties(String filter) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> Property<T> getProperty(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> List<T> getPropertyMultivalue(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public <T> T getPropertyValue(String id) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Relationship> getRelationships() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public List<Relationship> getRelationships(
+			boolean includeSubRelationshipTypes,
+			RelationshipDirection relationshipDirection, ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public ObjectType getType() {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public boolean isChanged() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isExactAcl() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public CmisObject move(Folder targetfolder) {
+		throw new CmisRuntimeException("not implemented");
+		
+	}
+
+	public void removeAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removeFromFolder(Folder folder) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setName(String name) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setProperty(String id, T value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setPropertyMultivalue(String id, List<T> value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setType(ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setTypeId(String typeId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void updateProperties(List<Property<?>> properties) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+}

Propchange: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentPolicyImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java?rev=916601&view=auto
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java
(added)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java
Fri Feb 26 07:46:36 2010
@@ -0,0 +1,262 @@
+/*
+ * 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.opencmis.client.runtime;
+
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import org.apache.opencmis.client.api.Ace;
+import org.apache.opencmis.client.api.CmisObject;
+import org.apache.opencmis.client.api.Folder;
+import org.apache.opencmis.client.api.Policy;
+import org.apache.opencmis.client.api.Property;
+import org.apache.opencmis.client.api.Relationship;
+import org.apache.opencmis.client.api.objecttype.ObjectType;
+import org.apache.opencmis.client.api.repository.AllowableActions;
+import org.apache.opencmis.client.api.util.AceList;
+import org.apache.opencmis.commons.enums.AclPropagation;
+import org.apache.opencmis.commons.enums.BaseObjectTypeIds;
+import org.apache.opencmis.commons.enums.RelationshipDirection;
+import org.apache.opencmis.commons.exceptions.CmisRuntimeException;
+import org.apache.opencmis.commons.provider.ObjectData;
+
+public class PersistentRelationshipImpl implements Relationship {
+
+	public PersistentRelationshipImpl(
+			PersistentSessionImpl persistentSessionImpl, ObjectData od) {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public CmisObject getSource() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public CmisObject getTarget() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void addAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void addToFolder(Folder folder, boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public AceList applyAcl(List<Ace> addAces, List<Ace> removeAces,
+			AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void applyPolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void applyPolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void delete(boolean allVersions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Ace> getAcl() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public AceList getAcl(boolean onlyBasicPermissions) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public AllowableActions getAllowableActions() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public ObjectType getBaseType() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public BaseObjectTypeIds getBaseTypeId() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public String getChangeToken() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public String getCreatedBy() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public GregorianCalendar getCreationDate() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public String getId() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public GregorianCalendar getLastModificationDate() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public String getLastModifiedBy() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public String getName() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Folder> getParents() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Policy> getPolicies() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Property<?>> getProperties() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Property<?>> getProperties(String filter) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> Property<T> getProperty(String id) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> List<T> getPropertyMultivalue(String id) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> T getPropertyValue(String id) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Relationship> getRelationships() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public List<Relationship> getRelationships(
+			boolean includeSubRelationshipTypes,
+			RelationshipDirection relationshipDirection, ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public ObjectType getType() {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public boolean isChanged() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public boolean isExactAcl() {
+		throw new CmisRuntimeException("not implemented");
+	}
+
+	public CmisObject move(Folder targetfolder) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removeAcl(List<Ace> addAces, AclPropagation aclPropagation) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removeFromFolder(Folder folder) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(Policy policy) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void removePolicy(String policyId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setName(String name) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setProperty(String id, T value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public <T> void setPropertyMultivalue(String id, List<T> value) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setType(ObjectType type) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void setTypeId(String typeId) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+	public void updateProperties(List<Property<?>> properties) {
+		throw new CmisRuntimeException("not implemented");
+
+	}
+
+}

Propchange: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentRelationshipImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java?rev=916601&r1=916600&r2=916601&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-client-impl/src/main/java/org/apache/opencmis/client/runtime/PersistentSessionImpl.java
Fri Feb 26 07:46:36 2010
@@ -47,6 +47,8 @@
 import org.apache.opencmis.client.runtime.repository.PersistentObjectFactoryImpl;
 import org.apache.opencmis.client.runtime.repository.PropertyFactoryImpl;
 import org.apache.opencmis.commons.SessionParameter;
+import org.apache.opencmis.commons.api.ExtensionsData;
+import org.apache.opencmis.commons.enums.BaseObjectTypeIds;
 import org.apache.opencmis.commons.enums.BindingType;
 import org.apache.opencmis.commons.enums.CmisProperties;
 import org.apache.opencmis.commons.enums.IncludeRelationships;
@@ -185,7 +187,15 @@
 	}
 
 	public void clear() {
-		throw new CmisRuntimeException("not implemented");
+		int cacheSize = this.determineCacheSize(this.parameters);
+
+		if (cacheSize == -1) {
+			this.cache = CacheImpl.newInstance();
+		} else {
+			this.cache = CacheImpl.newInstance(cacheSize);
+		}
+		PersistentSessionImpl.log.info("Session Cache Size: "
+				+ this.cache.size());
 	}
 
 	public PagingList<Document> getCheckedOutDocs(Folder folder,
@@ -206,8 +216,48 @@
 		return this.locale;
 	}
 
-	public CmisObject getObject(String objectid) {
-		throw new CmisRuntimeException("not implemented");
+	public CmisObject getObject(String objectId) {
+		CmisObject obj = null;
+		if (this.cache.containsId(objectId)) {
+			obj = this.cache.get(objectId);
+		} else {
+			/* query context */
+			String filter = this.context.getIncludeProperties();
+			boolean includeAllowableActions = this.context
+					.getIncludeAllowableActions();
+			IncludeRelationships includeRelationships = this.context
+					.getIncludeRelationships();
+			String renditionFilter = this.context.getIncludeRenditions();
+			boolean includePolicyIds = this.context.getIncludePolicies();
+			boolean includeAcl = this.context.getIncludeAcls();
+			ExtensionsData extension = null;
+
+			/* ask backend */
+			ObjectData od = this.provider.getObjectService().getObject(
+					this.repositoryId, objectId, filter,
+					includeAllowableActions, includeRelationships,
+					renditionFilter, includePolicyIds, includeAcl, extension);
+
+			/* determine type */
+			switch (od.getBaseTypeId()) {
+			case CMIS_DOCUMENT:
+				obj = new PersistentDocumentImpl(this, od);
+				break;
+			case CMIS_FOLDER:
+				obj = new PersistentFolderImpl(this, od);
+				break;
+			case CMIS_POLICY:
+				obj = new PersistentPolicyImpl(this, od);
+			case CMIS_RELATIONSHIP:
+				obj = new PersistentRelationshipImpl(this, od);
+			default:
+				throw new CmisRuntimeException("unsupported type: "
+						+ od.getBaseTypeId());
+			}
+
+			this.cache.put(obj);
+		}
+		return obj;
 	}
 
 	public CmisObject getObjectByPath(String path) {



Mime
View raw message