This project has retired. For details please refer to its
Attic page.
ObjectFactory xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.client.api;
2021import java.io.InputStream;
22import java.util.List;
23import java.util.Map;
24import java.util.Set;
2526import org.apache.chemistry.opencmis.commons.data.Ace;
27import org.apache.chemistry.opencmis.commons.data.Acl;
28import org.apache.chemistry.opencmis.commons.data.ContentStream;
29import org.apache.chemistry.opencmis.commons.data.ObjectData;
30import org.apache.chemistry.opencmis.commons.data.ObjectList;
31import org.apache.chemistry.opencmis.commons.data.Properties;
32import org.apache.chemistry.opencmis.commons.data.PropertyData;
33import org.apache.chemistry.opencmis.commons.data.RenditionData;
34import org.apache.chemistry.opencmis.commons.data.RepositoryInfo;
35import org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition;
36import org.apache.chemistry.opencmis.commons.definitions.TypeDefinition;
37import org.apache.chemistry.opencmis.commons.enums.Updatability;
3839/**40 * A factory to create CMIS objects.41 * 42 * @see org.apache.chemistry.opencmis.client.api.Session#getObjectFactory()43 */44publicinterfaceObjectFactory {
4546void initialize(Session session, Map<String, String> parameters);
4748// repository info4950 RepositoryInfo convertRepositoryInfo(RepositoryInfo repositoryInfo);
5152// ACL and ACE5354 Acl convertAces(List<Ace> aces);
5556 Acl createAcl(List<Ace> aces);
5758 Ace createAce(String principal, List<String> permissions);
5960// policies6162 List<String> convertPolicies(List<Policy> policies);
6364// renditions6566Rendition convertRendition(String objectId, RenditionData rendition);
6768// content stream6970 ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream);
7172 ContentStream convertContentStream(ContentStream contentStream);
7374// types7576ObjectType convertTypeDefinition(TypeDefinition typeDefinition);
7778ObjectType getTypeFromObjectData(ObjectData objectData);
7980// properties8182 <T> Property<T> createProperty(PropertyDefinition<T> type, List<T> values);
8384 Map<String, Property<?>> convertProperties(ObjectType objectType, Properties properties);
8586 Properties convertProperties(Map<String, ?> properties, ObjectType type, Set<Updatability> updatabilityFilter);
8788 List<PropertyData<?>> convertQueryProperties(Properties properties);
8990// objects9192CmisObject convertObject(ObjectData objectData, OperationContext context);
9394QueryResult convertQueryResult(ObjectData objectData);
9596ChangeEvent convertChangeEvent(ObjectData objectData);
9798ChangeEvents convertChangeEvents(String changeLogToken, ObjectList objectList);
99 }