chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r936938 [9/29] - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-server: chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/ chemistry-opencmis-server-bindings/src/main/java/org/apache/chemi...
Date Thu, 22 Apr 2010 16:28:00 GMT
Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareService.java?rev=936938&r1=936937&r2=936938&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareService.java Thu Apr 22 16:27:57 2010
@@ -34,255 +34,255 @@ import org.apache.chemistry.opencmis.com
  */
 public class FileShareService extends AbstractCmisService {
 
-	private RepositoryMap repositoryMap;
-	private CallContext context;
+    private RepositoryMap repositoryMap;
+    private CallContext context;
 
-	/**
-	 * Constructor.
-	 */
-	public FileShareService(RepositoryMap repositoryMap) {
-		this.repositoryMap = repositoryMap;
-	}
-
-	// --- context ---
-
-	public void setCallContext(CallContext context) {
-		this.context = context;
-	}
-
-	public CallContext getCallContext() {
-		return context;
-	}
-
-	public FileShareRepository getRepository() {
-		return repositoryMap.getRepository(getCallContext().getRepositoryId());
-	}
-
-	// --- repository service ---
-
-	@Override
-	public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension) {
-		return getRepository().getRepositoryInfo(getCallContext());
-	}
-
-	@Override
-	public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension) {
-		List<RepositoryInfo> result = new ArrayList<RepositoryInfo>();
-
-		for (FileShareRepository fsr : repositoryMap.getRepositories()) {
-			result.add(fsr.getRepositoryInfo(getCallContext()));
-		}
-
-		return result;
-	}
-
-	@Override
-	public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		return getRepository().getTypesChildren(getCallContext(), typeId, includePropertyDefinitions, maxItems,
-				skipCount);
-	}
-
-	@Override
-	public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) {
-		return getRepository().getTypeDefinition(getCallContext(), typeId);
-	}
-
-	@Override
-	public List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth,
-			Boolean includePropertyDefinitions, ExtensionsData extension) {
-		return getRepository().getTypesDescendants(getCallContext(), typeId, depth, includePropertyDefinitions);
-	}
-
-	// --- navigation service ---
-
-	@Override
-	public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		return getRepository().getChildren(getCallContext(), folderId, filter, includeAllowableActions,
-				includePathSegment, maxItems, skipCount, null);
-	}
-
-	@Override
-	public List<ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth,
-			String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
-		return getRepository().getDescendants(getCallContext(), folderId, depth, filter, includeAllowableActions,
-				includePathSegment, null, false);
-	}
-
-	@Override
-	public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) {
-		return getRepository().getFolderParent(getCallContext(), folderId, filter, null);
-	}
-
-	@Override
-	public List<ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth,
-			String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
-		return getRepository().getDescendants(getCallContext(), folderId, depth, filter, includeAllowableActions,
-				includePathSegment, null, true);
-	}
-
-	@Override
-	public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			Boolean includeRelativePathSegment, ExtensionsData extension) {
-		return getRepository().getObjectParents(getCallContext(), objectId, filter, includeAllowableActions,
-				includeRelativePathSegment, null);
-	}
-
-	@Override
-	public ObjectList getCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy,
-			Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		ObjectListImpl result = new ObjectListImpl();
-		result.setHasMoreItems(false);
-		result.setNumItems(BigInteger.ZERO);
-		List<ObjectData> emptyList = Collections.emptyList();
-		result.setObjects(emptyList);
-
-		return result;
-	}
-
-	// --- object service ---
-
-	@Override
-	public String create(String repositoryId, Properties properties, String folderId, ContentStream contentStream,
-			VersioningState versioningState, List<String> policies, ExtensionsData extension) {
-		ObjectData object = getRepository().create(getCallContext(), properties, folderId, contentStream,
-				versioningState, null);
-
-		return object.getId();
-	}
-
-	@Override
-	public String createDocument(String repositoryId, Properties properties, String folderId,
-			ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces,
-			Acl removeAces, ExtensionsData extension) {
-		return getRepository().createDocument(getCallContext(), properties, folderId, contentStream, versioningState);
-	}
-
-	@Override
-	public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
-			String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces,
-			ExtensionsData extension) {
-		return getRepository().createDocumentFromSource(getCallContext(), sourceId, properties, folderId,
-				versioningState);
-	}
-
-	@Override
-	public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies,
-			Acl addAces, Acl removeAces, ExtensionsData extension) {
-		return getRepository().createFolder(getCallContext(), properties, folderId);
-	}
-
-	@Override
-	public void deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
-			ExtensionsData extension) {
-		getRepository().setContentStream(getCallContext(), objectId, true, null);
-	}
-
-	@Override
-	public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions,
-			ExtensionsData extension) {
-		getRepository().deleteObject(getCallContext(), objectId);
-	}
-
-	@Override
-	public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions,
-			UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
-		return getRepository().deleteTree(getCallContext(), folderId, continueOnFailure);
-	}
-
-	@Override
-	public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) {
-		return getRepository().getAllowableActions(getCallContext(), objectId);
-	}
-
-	@Override
-	public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset,
-			BigInteger length, ExtensionsData extension) {
-		return getRepository().getContentStream(getCallContext(), objectId, offset, length);
-	}
-
-	@Override
-	public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
-			Boolean includeAcl, ExtensionsData extension) {
-		return getRepository().getObject(getCallContext(), objectId, filter, includeAllowableActions, includeAcl, null);
-	}
-
-	@Override
-	public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
-			Boolean includeAcl, ExtensionsData extension) {
-		return getRepository().getObjectByPath(getCallContext(), path, filter, includeAllowableActions, includeAcl,
-				null);
-	}
-
-	@Override
-	public Properties getProperties(String repositoryId, String objectId, String filter, ExtensionsData extension) {
-		ObjectData object = getRepository().getObject(getCallContext(), objectId, filter, false, false, null);
-		return object.getProperties();
-	}
-
-	@Override
-	public List<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter,
-			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
-		return Collections.emptyList();
-	}
-
-	@Override
-	public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId,
-			ExtensionsData extension) {
-		getRepository().moveObject(getCallContext(), objectId, targetFolderId, null);
-	}
-
-	@Override
-	public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag,
-			Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) {
-		getRepository().setContentStream(getCallContext(), objectId, overwriteFlag, contentStream);
-	}
-
-	@Override
-	public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
-			Properties properties, ExtensionsData extension) {
-		getRepository().updateProperties(getCallContext(), objectId, properties, null);
-	}
-
-	// --- versioning service ---
-
-	@Override
-	public List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter,
-			Boolean includeAllowableActions, ExtensionsData extension) {
-		ObjectData theVersion = getRepository().getObject(getCallContext(), versionSeriesId, filter,
-				includeAllowableActions, false, null);
-
-		return Collections.singletonList(theVersion);
-	}
-
-	@Override
-	public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
-			Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) {
-		return getRepository().getObject(getCallContext(), versionSeriesId, filter, includeAllowableActions,
-				includeAcl, null);
-	}
-
-	@Override
-	public Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
-			Boolean major, String filter, ExtensionsData extension) {
-		ObjectData object = getRepository().getObject(getCallContext(), versionSeriesId, filter, false, false, null);
-
-		return object.getProperties();
-	}
-
-	// --- ACL service ---
-
-	@Override
-	public Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, ExtensionsData extension) {
-		return getRepository().getAcl(getCallContext(), objectId);
-	}
+    /**
+     * Constructor.
+     */
+    public FileShareService(RepositoryMap repositoryMap) {
+        this.repositoryMap = repositoryMap;
+    }
+
+    // --- context ---
+
+    public void setCallContext(CallContext context) {
+        this.context = context;
+    }
+
+    public CallContext getCallContext() {
+        return context;
+    }
+
+    public FileShareRepository getRepository() {
+        return repositoryMap.getRepository(getCallContext().getRepositoryId());
+    }
+
+    // --- repository service ---
+
+    @Override
+    public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension) {
+        return getRepository().getRepositoryInfo(getCallContext());
+    }
+
+    @Override
+    public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension) {
+        List<RepositoryInfo> result = new ArrayList<RepositoryInfo>();
+
+        for (FileShareRepository fsr : repositoryMap.getRepositories()) {
+            result.add(fsr.getRepositoryInfo(getCallContext()));
+        }
+
+        return result;
+    }
+
+    @Override
+    public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        return getRepository().getTypesChildren(getCallContext(), typeId, includePropertyDefinitions, maxItems,
+                skipCount);
+    }
+
+    @Override
+    public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension) {
+        return getRepository().getTypeDefinition(getCallContext(), typeId);
+    }
+
+    @Override
+    public List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth,
+            Boolean includePropertyDefinitions, ExtensionsData extension) {
+        return getRepository().getTypesDescendants(getCallContext(), typeId, depth, includePropertyDefinitions);
+    }
+
+    // --- navigation service ---
+
+    @Override
+    public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        return getRepository().getChildren(getCallContext(), folderId, filter, includeAllowableActions,
+                includePathSegment, maxItems, skipCount, null);
+    }
+
+    @Override
+    public List<ObjectInFolderContainer> getDescendants(String repositoryId, String folderId, BigInteger depth,
+            String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
+        return getRepository().getDescendants(getCallContext(), folderId, depth, filter, includeAllowableActions,
+                includePathSegment, null, false);
+    }
+
+    @Override
+    public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension) {
+        return getRepository().getFolderParent(getCallContext(), folderId, filter, null);
+    }
+
+    @Override
+    public List<ObjectInFolderContainer> getFolderTree(String repositoryId, String folderId, BigInteger depth,
+            String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePathSegment, ExtensionsData extension) {
+        return getRepository().getDescendants(getCallContext(), folderId, depth, filter, includeAllowableActions,
+                includePathSegment, null, true);
+    }
+
+    @Override
+    public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            Boolean includeRelativePathSegment, ExtensionsData extension) {
+        return getRepository().getObjectParents(getCallContext(), objectId, filter, includeAllowableActions,
+                includeRelativePathSegment, null);
+    }
+
+    @Override
+    public ObjectList getCheckedOutDocs(String repositoryId, String folderId, String filter, String orderBy,
+            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        ObjectListImpl result = new ObjectListImpl();
+        result.setHasMoreItems(false);
+        result.setNumItems(BigInteger.ZERO);
+        List<ObjectData> emptyList = Collections.emptyList();
+        result.setObjects(emptyList);
+
+        return result;
+    }
+
+    // --- object service ---
+
+    @Override
+    public String create(String repositoryId, Properties properties, String folderId, ContentStream contentStream,
+            VersioningState versioningState, List<String> policies, ExtensionsData extension) {
+        ObjectData object = getRepository().create(getCallContext(), properties, folderId, contentStream,
+                versioningState, null);
+
+        return object.getId();
+    }
+
+    @Override
+    public String createDocument(String repositoryId, Properties properties, String folderId,
+            ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces,
+            Acl removeAces, ExtensionsData extension) {
+        return getRepository().createDocument(getCallContext(), properties, folderId, contentStream, versioningState);
+    }
+
+    @Override
+    public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
+            String folderId, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces,
+            ExtensionsData extension) {
+        return getRepository().createDocumentFromSource(getCallContext(), sourceId, properties, folderId,
+                versioningState);
+    }
+
+    @Override
+    public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies,
+            Acl addAces, Acl removeAces, ExtensionsData extension) {
+        return getRepository().createFolder(getCallContext(), properties, folderId);
+    }
+
+    @Override
+    public void deleteContentStream(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
+            ExtensionsData extension) {
+        getRepository().setContentStream(getCallContext(), objectId, true, null);
+    }
+
+    @Override
+    public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions,
+            ExtensionsData extension) {
+        getRepository().deleteObject(getCallContext(), objectId);
+    }
+
+    @Override
+    public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions,
+            UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
+        return getRepository().deleteTree(getCallContext(), folderId, continueOnFailure);
+    }
+
+    @Override
+    public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) {
+        return getRepository().getAllowableActions(getCallContext(), objectId);
+    }
+
+    @Override
+    public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset,
+            BigInteger length, ExtensionsData extension) {
+        return getRepository().getContentStream(getCallContext(), objectId, offset, length);
+    }
+
+    @Override
+    public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
+            Boolean includeAcl, ExtensionsData extension) {
+        return getRepository().getObject(getCallContext(), objectId, filter, includeAllowableActions, includeAcl, null);
+    }
+
+    @Override
+    public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds,
+            Boolean includeAcl, ExtensionsData extension) {
+        return getRepository().getObjectByPath(getCallContext(), path, filter, includeAllowableActions, includeAcl,
+                null);
+    }
+
+    @Override
+    public Properties getProperties(String repositoryId, String objectId, String filter, ExtensionsData extension) {
+        ObjectData object = getRepository().getObject(getCallContext(), objectId, filter, false, false, null);
+        return object.getProperties();
+    }
+
+    @Override
+    public List<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter,
+            BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
+        return Collections.emptyList();
+    }
+
+    @Override
+    public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId,
+            ExtensionsData extension) {
+        getRepository().moveObject(getCallContext(), objectId, targetFolderId, null);
+    }
+
+    @Override
+    public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag,
+            Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension) {
+        getRepository().setContentStream(getCallContext(), objectId, overwriteFlag, contentStream);
+    }
+
+    @Override
+    public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken,
+            Properties properties, ExtensionsData extension) {
+        getRepository().updateProperties(getCallContext(), objectId, properties, null);
+    }
+
+    // --- versioning service ---
+
+    @Override
+    public List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter,
+            Boolean includeAllowableActions, ExtensionsData extension) {
+        ObjectData theVersion = getRepository().getObject(getCallContext(), versionSeriesId, filter,
+                includeAllowableActions, false, null);
+
+        return Collections.singletonList(theVersion);
+    }
+
+    @Override
+    public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+            Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension) {
+        return getRepository().getObject(getCallContext(), versionSeriesId, filter, includeAllowableActions,
+                includeAcl, null);
+    }
+
+    @Override
+    public Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+            Boolean major, String filter, ExtensionsData extension) {
+        ObjectData object = getRepository().getObject(getCallContext(), versionSeriesId, filter, false, false, null);
+
+        return object.getProperties();
+    }
+
+    // --- ACL service ---
+
+    @Override
+    public Acl getAcl(String repositoryId, String objectId, Boolean onlyBasicPermissions, ExtensionsData extension) {
+        return getRepository().getAcl(getCallContext(), objectId);
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareServiceFactory.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareServiceFactory.java?rev=936938&r1=936937&r2=936938&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareServiceFactory.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FileShareServiceFactory.java Thu Apr 22 16:27:57 2010
@@ -24,186 +24,186 @@ import org.apache.commons.logging.LogFac
 
 public class FileShareServiceFactory extends AbstractServiceFactory {
 
-	private static final String PREFIX_LOGIN = "login.";
-	private static final String PREFIX_REPOSITORY = "repository.";
-	private static final String PREFIX_TYPE = "type.";
-	private static final String SUFFIX_READWRITE = ".readwrite";
-	private static final String SUFFIX_READONLY = ".readonly";
-
-	private static final BigInteger DEFAULT_MAX_ITEMS_TYPES = BigInteger.valueOf(50);
-	private static final BigInteger DEFAULT_DEPTH_TYPES = BigInteger.valueOf(-1);
-	private static final BigInteger DEFAULT_MAX_ITEMS_OBJECTS = BigInteger.valueOf(200);
-	private static final BigInteger DEFAULT_DEPTH_OBJECTS = BigInteger.valueOf(10);
-
-	private static final Log log = LogFactory.getLog(AbstractServicesFactory.class);
-
-	private RepositoryMap repositoryMap;
-	private TypeManager typeManager;
-
-	private ThreadLocal<CmisServiceWrapper<FileShareService>> threadLocalService = new ThreadLocal<CmisServiceWrapper<FileShareService>>();
-
-	public FileShareServiceFactory() {
-	}
-
-	@Override
-	public void init(Map<String, String> parameters) {
-		repositoryMap = new RepositoryMap();
-		typeManager = new TypeManager();
-
-		readConfiguration(parameters);
-	}
-
-	@Override
-	public void destroy() {
-		threadLocalService = null;
-	}
-
-	@Override
-	public CmisService getService(CallContext context) {
-		repositoryMap.getAuthenticatedRepository(context, context.getRepositoryId());
-
-		CmisServiceWrapper<FileShareService> wrapperService = threadLocalService.get();
-		if (wrapperService == null) {
-			wrapperService = new CmisServiceWrapper<FileShareService>(new FileShareService(repositoryMap),
-					DEFAULT_MAX_ITEMS_TYPES, DEFAULT_DEPTH_TYPES, DEFAULT_MAX_ITEMS_OBJECTS, DEFAULT_DEPTH_OBJECTS);
-			threadLocalService.set(wrapperService);
-		}
-
-		wrapperService.getWrappedService().setCallContext(context);
-
-		return wrapperService;
-	}
-
-	// ---- helpers ----
-
-	private void readConfiguration(Map<String, String> parameters) {
-		List<String> keys = new ArrayList<String>(parameters.keySet());
-		Collections.sort(keys);
-
-		for (String key : keys) {
-			if (key.startsWith(PREFIX_LOGIN)) {
-				// get logins
-				String usernameAndPassword = replaceSystemProperties(parameters.get(key));
-				if (usernameAndPassword == null) {
-					continue;
-				}
-
-				String username = usernameAndPassword;
-				String password = "";
-
-				int x = usernameAndPassword.indexOf(':');
-				if (x > -1) {
-					username = usernameAndPassword.substring(0, x);
-					password = usernameAndPassword.substring(x + 1);
-				}
-
-				repositoryMap.addLogin(username, password);
-
-				log.info("Added login '" + username + "'.");
-			} else if (key.startsWith(PREFIX_TYPE)) {
-				// load type definition
-				TypeDefinition type = loadType(replaceSystemProperties(parameters.get(key)));
-				if (type != null) {
-					typeManager.addType(type);
-				}
-			} else if (key.startsWith(PREFIX_REPOSITORY)) {
-				// configure repositories
-				String repositoryId = key.substring(PREFIX_REPOSITORY.length()).trim();
-				int x = repositoryId.lastIndexOf('.');
-				if (x > 0) {
-					repositoryId = repositoryId.substring(0, x);
-				}
-
-				if (repositoryId.length() == 0) {
-					throw new IllegalArgumentException("No repository id!");
-				}
-
-				if (key.endsWith(SUFFIX_READWRITE)) {
-					// read-write users
-					FileShareRepository fsr = repositoryMap.getRepository(repositoryId);
-					for (String user : split(parameters.get(key))) {
-						fsr.addUser(replaceSystemProperties(user), false);
-					}
-				} else if (key.endsWith(SUFFIX_READONLY)) {
-					// read-only users
-					FileShareRepository fsr = repositoryMap.getRepository(repositoryId);
-					for (String user : split(parameters.get(key))) {
-						fsr.addUser(replaceSystemProperties(user), true);
-					}
-				} else {
-					// new repository
-					String root = replaceSystemProperties(parameters.get(key));
-					FileShareRepository fsr = new FileShareRepository(repositoryId, root, typeManager);
-
-					repositoryMap.addRepository(fsr);
-
-					log.info("Added repository '" + fsr.getRepositoryId() + "': " + root);
-				}
-			}
-		}
-	}
-
-	private List<String> split(String csl) {
-		if (csl == null) {
-			return Collections.emptyList();
-		}
-
-		List<String> result = new ArrayList<String>();
-		for (String s : csl.split(",")) {
-			result.add(s.trim());
-		}
-
-		return result;
-	}
-
-	private String replaceSystemProperties(String s) {
-		if (s == null) {
-			return null;
-		}
-
-		StringBuilder result = new StringBuilder();
-		StringBuilder property = null;
-		boolean inProperty = false;
-
-		for (int i = 0; i < s.length(); i++) {
-			char c = s.charAt(i);
-
-			if (inProperty) {
-				if (c == '}') {
-					String value = System.getProperty(property.toString());
-					if (value != null) {
-						result.append(value);
-					}
-					inProperty = false;
-				} else {
-					property.append(c);
-				}
-			} else {
-				if (c == '{') {
-					property = new StringBuilder();
-					inProperty = true;
-				} else {
-					result.append(c);
-				}
-			}
-		}
-
-		return result.toString();
-	}
-
-	@SuppressWarnings("unchecked")
-	private TypeDefinition loadType(String filename) {
-		TypeDefinition result = null;
-
-		try {
-			Unmarshaller u = JaxBHelper.createUnmarshaller();
-			JAXBElement<CmisTypeDefinitionType> type = (JAXBElement<CmisTypeDefinitionType>) u.unmarshal(new File(
-					filename));
-			result = Converter.convert(type.getValue());
-		} catch (Exception e) {
-			log.info("Could not load type: '" + filename + "'", e);
-		}
+    private static final String PREFIX_LOGIN = "login.";
+    private static final String PREFIX_REPOSITORY = "repository.";
+    private static final String PREFIX_TYPE = "type.";
+    private static final String SUFFIX_READWRITE = ".readwrite";
+    private static final String SUFFIX_READONLY = ".readonly";
+
+    private static final BigInteger DEFAULT_MAX_ITEMS_TYPES = BigInteger.valueOf(50);
+    private static final BigInteger DEFAULT_DEPTH_TYPES = BigInteger.valueOf(-1);
+    private static final BigInteger DEFAULT_MAX_ITEMS_OBJECTS = BigInteger.valueOf(200);
+    private static final BigInteger DEFAULT_DEPTH_OBJECTS = BigInteger.valueOf(10);
+
+    private static final Log log = LogFactory.getLog(AbstractServicesFactory.class);
+
+    private RepositoryMap repositoryMap;
+    private TypeManager typeManager;
+
+    private ThreadLocal<CmisServiceWrapper<FileShareService>> threadLocalService = new ThreadLocal<CmisServiceWrapper<FileShareService>>();
+
+    public FileShareServiceFactory() {
+    }
+
+    @Override
+    public void init(Map<String, String> parameters) {
+        repositoryMap = new RepositoryMap();
+        typeManager = new TypeManager();
+
+        readConfiguration(parameters);
+    }
+
+    @Override
+    public void destroy() {
+        threadLocalService = null;
+    }
+
+    @Override
+    public CmisService getService(CallContext context) {
+        repositoryMap.getAuthenticatedRepository(context, context.getRepositoryId());
+
+        CmisServiceWrapper<FileShareService> wrapperService = threadLocalService.get();
+        if (wrapperService == null) {
+            wrapperService = new CmisServiceWrapper<FileShareService>(new FileShareService(repositoryMap),
+                    DEFAULT_MAX_ITEMS_TYPES, DEFAULT_DEPTH_TYPES, DEFAULT_MAX_ITEMS_OBJECTS, DEFAULT_DEPTH_OBJECTS);
+            threadLocalService.set(wrapperService);
+        }
+
+        wrapperService.getWrappedService().setCallContext(context);
+
+        return wrapperService;
+    }
+
+    // ---- helpers ----
+
+    private void readConfiguration(Map<String, String> parameters) {
+        List<String> keys = new ArrayList<String>(parameters.keySet());
+        Collections.sort(keys);
+
+        for (String key : keys) {
+            if (key.startsWith(PREFIX_LOGIN)) {
+                // get logins
+                String usernameAndPassword = replaceSystemProperties(parameters.get(key));
+                if (usernameAndPassword == null) {
+                    continue;
+                }
+
+                String username = usernameAndPassword;
+                String password = "";
+
+                int x = usernameAndPassword.indexOf(':');
+                if (x > -1) {
+                    username = usernameAndPassword.substring(0, x);
+                    password = usernameAndPassword.substring(x + 1);
+                }
+
+                repositoryMap.addLogin(username, password);
+
+                log.info("Added login '" + username + "'.");
+            } else if (key.startsWith(PREFIX_TYPE)) {
+                // load type definition
+                TypeDefinition type = loadType(replaceSystemProperties(parameters.get(key)));
+                if (type != null) {
+                    typeManager.addType(type);
+                }
+            } else if (key.startsWith(PREFIX_REPOSITORY)) {
+                // configure repositories
+                String repositoryId = key.substring(PREFIX_REPOSITORY.length()).trim();
+                int x = repositoryId.lastIndexOf('.');
+                if (x > 0) {
+                    repositoryId = repositoryId.substring(0, x);
+                }
+
+                if (repositoryId.length() == 0) {
+                    throw new IllegalArgumentException("No repository id!");
+                }
+
+                if (key.endsWith(SUFFIX_READWRITE)) {
+                    // read-write users
+                    FileShareRepository fsr = repositoryMap.getRepository(repositoryId);
+                    for (String user : split(parameters.get(key))) {
+                        fsr.addUser(replaceSystemProperties(user), false);
+                    }
+                } else if (key.endsWith(SUFFIX_READONLY)) {
+                    // read-only users
+                    FileShareRepository fsr = repositoryMap.getRepository(repositoryId);
+                    for (String user : split(parameters.get(key))) {
+                        fsr.addUser(replaceSystemProperties(user), true);
+                    }
+                } else {
+                    // new repository
+                    String root = replaceSystemProperties(parameters.get(key));
+                    FileShareRepository fsr = new FileShareRepository(repositoryId, root, typeManager);
+
+                    repositoryMap.addRepository(fsr);
+
+                    log.info("Added repository '" + fsr.getRepositoryId() + "': " + root);
+                }
+            }
+        }
+    }
+
+    private List<String> split(String csl) {
+        if (csl == null) {
+            return Collections.emptyList();
+        }
+
+        List<String> result = new ArrayList<String>();
+        for (String s : csl.split(",")) {
+            result.add(s.trim());
+        }
+
+        return result;
+    }
+
+    private String replaceSystemProperties(String s) {
+        if (s == null) {
+            return null;
+        }
+
+        StringBuilder result = new StringBuilder();
+        StringBuilder property = null;
+        boolean inProperty = false;
+
+        for (int i = 0; i < s.length(); i++) {
+            char c = s.charAt(i);
+
+            if (inProperty) {
+                if (c == '}') {
+                    String value = System.getProperty(property.toString());
+                    if (value != null) {
+                        result.append(value);
+                    }
+                    inProperty = false;
+                } else {
+                    property.append(c);
+                }
+            } else {
+                if (c == '{') {
+                    property = new StringBuilder();
+                    inProperty = true;
+                } else {
+                    result.append(c);
+                }
+            }
+        }
+
+        return result.toString();
+    }
+
+    @SuppressWarnings("unchecked")
+    private TypeDefinition loadType(String filename) {
+        TypeDefinition result = null;
+
+        try {
+            Unmarshaller u = JaxBHelper.createUnmarshaller();
+            JAXBElement<CmisTypeDefinitionType> type = (JAXBElement<CmisTypeDefinitionType>) u.unmarshal(new File(
+                    filename));
+            result = Converter.convert(type.getValue());
+        } catch (Exception e) {
+            log.info("Could not load type: '" + filename + "'", e);
+        }
 
-		return result;
-	}
+        return result;
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FolderInfo.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FolderInfo.java?rev=936938&r1=936937&r2=936938&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FolderInfo.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/FolderInfo.java Thu Apr 22 16:27:57 2010
@@ -23,22 +23,22 @@ import org.apache.chemistry.opencmis.com
 
 public class FolderInfo extends ObjectInfoImpl {
 
-	public FolderInfo() {
-		setBaseType(BaseTypeId.CMIS_FOLDER);
-		setContentType(null);
-		setFileName(null);
-		setHasAcl(true);
-		setHasContent(false);
-		setVersionSeriesId(null);
-		setIsCurrentVersion(true);
-		setRelationshipSourceIds(null);
-		setRelationshipTargetIds(null);
-		setRenditionInfos(null);
-		setSupportsDescendants(true);
-		setSupportsFolderTree(true);
-		setSupportsPolicies(false);
-		setSupportsRelationships(false);
-		setWorkingCopyId(null);
-		setWorkingCopyOriginalId(null);
-	}
+    public FolderInfo() {
+        setBaseType(BaseTypeId.CMIS_FOLDER);
+        setContentType(null);
+        setFileName(null);
+        setHasAcl(true);
+        setHasContent(false);
+        setVersionSeriesId(null);
+        setIsCurrentVersion(true);
+        setRelationshipSourceIds(null);
+        setRelationshipTargetIds(null);
+        setRenditionInfos(null);
+        setSupportsDescendants(true);
+        setSupportsFolderTree(true);
+        setSupportsPolicies(false);
+        setSupportsRelationships(false);
+        setWorkingCopyId(null);
+        setWorkingCopyOriginalId(null);
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/MIMETypes.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/MIMETypes.java?rev=936938&r1=936937&r2=936938&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/MIMETypes.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/MIMETypes.java Thu Apr 22 16:27:57 2010
@@ -24,216 +24,216 @@ import java.util.Map;
 
 public class MIMETypes {
 
-	private static Map<String, String> EXT2MIME = new HashMap<String, String>();
+    private static Map<String, String> EXT2MIME = new HashMap<String, String>();
 
-	static {
-		EXT2MIME.put("", "application/octet-stream");
-		EXT2MIME.put("ai", "application/postscript");
-		EXT2MIME.put("aif", "audio/x-aiff");
-		EXT2MIME.put("aifc", "audio/x-aiff");
-		EXT2MIME.put("aiff", "audio/x-aiff");
-		EXT2MIME.put("asf", "video/x-ms-asf");
-		EXT2MIME.put("asr", "video/x-ms-asf");
-		EXT2MIME.put("asx", "video/x-ms-asf");
-		EXT2MIME.put("au", "audio/basic");
-		EXT2MIME.put("avi", "video/x-msvideo");
-		EXT2MIME.put("axs", "application/olescript");
-		EXT2MIME.put("bas", "text/plain");
-		EXT2MIME.put("bmp", "image/bmp");
-		EXT2MIME.put("c", "text/plain");
-		EXT2MIME.put("cat", "application/vnd.ms-pkiseccat");
-		EXT2MIME.put("cdf", "application/x-cdf");
-		EXT2MIME.put("cer", "application/x-x509-ca-cert");
-		EXT2MIME.put("clp", "application/x-msclip");
-		EXT2MIME.put("cmx", "image/x-cmx");
-		EXT2MIME.put("cod", "image/cis-cod");
-		EXT2MIME.put("cpio", "application/x-cpio");
-		EXT2MIME.put("crd", "application/x-mscardfile");
-		EXT2MIME.put("crl", "application/pkix-crl");
-		EXT2MIME.put("crt", "application/x-x509-ca-cert");
-		EXT2MIME.put("csh", "application/x-csh");
-		EXT2MIME.put("css", "text/css");
-		EXT2MIME.put("dll", "application/x-msdownload");
-		EXT2MIME.put("doc", "application/msword");
-		EXT2MIME.put("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
-		EXT2MIME.put("doct", "application/vnd.openxmlformats-officedocument.wordprocessingml.template");
-		EXT2MIME.put("dot", "application/msword");
-		EXT2MIME.put("dvi", "application/x-dvi");
-		EXT2MIME.put("dxr", "application/x-director");
-		EXT2MIME.put("eps", "application/postscript");
-		EXT2MIME.put("etx", "text/x-setext");
-		EXT2MIME.put("evy", "application/envoy");
-		EXT2MIME.put("fif", "application/fractals");
-		EXT2MIME.put("flr", "x-world/x-vrml");
-		EXT2MIME.put("gif", "image/gif");
-		EXT2MIME.put("gtar", "application/x-gtar");
-		EXT2MIME.put("gz", "application/x-gzip");
-		EXT2MIME.put("h", "text/plain");
-		EXT2MIME.put("hdf", "application/x-hdf");
-		EXT2MIME.put("hlp", "application/winhlp");
-		EXT2MIME.put("hqx", "application/mac-binhex40");
-		EXT2MIME.put("hta", "application/hta");
-		EXT2MIME.put("htc", "text/x-component");
-		EXT2MIME.put("htm", "text/html");
-		EXT2MIME.put("html", "text/html");
-		EXT2MIME.put("htt", "text/webviewhtml");
-		EXT2MIME.put("ico", "image/x-icon");
-		EXT2MIME.put("ief", "image/ief");
-		EXT2MIME.put("iii", "application/x-iphone");
-		EXT2MIME.put("isp", "application/x-internet-signup");
-		EXT2MIME.put("jfif", "image/pipeg");
-		EXT2MIME.put("jpe", "image/jpeg");
-		EXT2MIME.put("jpeg", "image/jpeg");
-		EXT2MIME.put("jpg", "image/jpeg");
-		EXT2MIME.put("js", "application/x-javascript");
-		EXT2MIME.put("latex", "application/x-latex");
-		EXT2MIME.put("lsf", "video/x-la-asf");
-		EXT2MIME.put("lsx", "video/x-la-asf");
-		EXT2MIME.put("m3u", "audio/x-mpegurl");
-		EXT2MIME.put("man", "application/x-troff-man");
-		EXT2MIME.put("mdb", "application/x-msaccess");
-		EXT2MIME.put("me", "application/x-troff-me");
-		EXT2MIME.put("mhtv", "message/rfc822");
-		EXT2MIME.put("mhtml", "message/rfc822");
-		EXT2MIME.put("mid", "audio/mid");
-		EXT2MIME.put("mov", "video/quicktime");
-		EXT2MIME.put("movie", "video/x-sgi-movie");
-		EXT2MIME.put("mp2", "video/mpeg");
-		EXT2MIME.put("mp3", "audio/mpeg");
-		EXT2MIME.put("mpa", "video/mpeg");
-		EXT2MIME.put("mpe", "video/mpegv");
-		EXT2MIME.put("mpeg", "video/mpeg");
-		EXT2MIME.put("mpg", "video/mpegv");
-		EXT2MIME.put("mpp", "application/vnd.ms-project");
-		EXT2MIME.put("mpv2", "video/mpeg");
-		EXT2MIME.put("ms", "application/x-troff-ms");
-		EXT2MIME.put("mvb", "application/x-msmediaview");
-		EXT2MIME.put("nws", "message/rfc822");
-		EXT2MIME.put("oda", "application/oda");
-		EXT2MIME.put("p10", "application/pkcs10");
-		EXT2MIME.put("p12", "application/x-pkcs12v");
-		EXT2MIME.put("p7b", "application/x-pkcs7-certificates");
-		EXT2MIME.put("p7c", "application/x-pkcs7-mime");
-		EXT2MIME.put("p7m", "application/x-pkcs7-mime");
-		EXT2MIME.put("p7r", "application/x-pkcs7-certreqresp");
-		EXT2MIME.put("p7s", "application/x-pkcs7-signature");
-		EXT2MIME.put("pbm", "image/x-portable-bitmap");
-		EXT2MIME.put("pdf", "application/pdf");
-		EXT2MIME.put("pfx", "application/x-pkcs12");
-		EXT2MIME.put("pgm", "image/x-portable-graymap");
-		EXT2MIME.put("vpko", "application/ynd.ms-pkipko");
-		EXT2MIME.put("pma", "application/x-perfmon");
-		EXT2MIME.put("pmc", "application/x-perfmon");
-		EXT2MIME.put("pml", "application/x-perfmon");
-		EXT2MIME.put("pmr", "application/x-perfmon");
-		EXT2MIME.put("pmw", "application/x-perfmon");
-		EXT2MIME.put("png", "image/png");
-		EXT2MIME.put("pnm", "image/x-portable-anymap");
-		EXT2MIME.put("pot", "application/vnd.ms-powerpoint");
-		EXT2MIME.put("ppm", "image/x-portable-pixmap");
-		EXT2MIME.put("pps", "application/vnd.ms-powerpoint");
-		EXT2MIME.put("ppt", "application/vnd.ms-powerpoint");
-		EXT2MIME.put("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation");
-		EXT2MIME.put("ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow");
-		EXT2MIME.put("potx", "application/vnd.openxmlformats-officedocument.presentationml.template");
-		EXT2MIME.put("prf", "application/pics-rules");
-		EXT2MIME.put("ps", "application/postscript");
-		EXT2MIME.put("pub", "application/x-mspublisher");
-		EXT2MIME.put("qt", "video/quicktime");
-		EXT2MIME.put("ra", "audio/x-pn-realaudio");
-		EXT2MIME.put("ram", "audio/x-pn-realaudio");
-		EXT2MIME.put("ras", "image/x-cmu-raster");
-		EXT2MIME.put("rgb", "image/x-rgb");
-		EXT2MIME.put("rmi", "audio/mid");
-		EXT2MIME.put("roff", "application/x-troff");
-		EXT2MIME.put("rtf", "application/rtf");
-		EXT2MIME.put("rtx", "text/richtext");
-		EXT2MIME.put("scd", "application/x-msschedule");
-		EXT2MIME.put("sct", "text/scriptlet");
-		EXT2MIME.put("sh", "application/x-sh");
-		EXT2MIME.put("shar", "application/x-shar");
-		EXT2MIME.put("sit", "application/x-stuffit");
-		EXT2MIME.put("snd", "audio/basic");
-		EXT2MIME.put("spc", "application/x-pkcs7-certificates");
-		EXT2MIME.put("spl", "application/futuresplash");
-		EXT2MIME.put("src", "application/x-wais-source");
-		EXT2MIME.put("sst", "application/vnd.ms-pkicertstore");
-		EXT2MIME.put("stl", "application/vnd.ms-pkistl");
-		EXT2MIME.put("stm", "text/html");
-		EXT2MIME.put("svg", "image/svg+xml");
-		EXT2MIME.put("swf", "application/x-shockwave-flash");
-		EXT2MIME.put("t", "application/x-troff");
-		EXT2MIME.put("tar", "application/x-tar");
-		EXT2MIME.put("tcl", "application/x-tcl");
-		EXT2MIME.put("tex", "application/x-tex");
-		EXT2MIME.put("texi", "application/x-texinfo");
-		EXT2MIME.put("texinfo", "application/x-texinfo");
-		EXT2MIME.put("tgz", "application/x-compressed");
-		EXT2MIME.put("tif", "image/tiff");
-		EXT2MIME.put("tiff", "image/tiff");
-		EXT2MIME.put("tr", "application/x-troff");
-		EXT2MIME.put("trm", "application/x-msterminal");
-		EXT2MIME.put("tsv", "text/tab-separated-values");
-		EXT2MIME.put("txt", "text/plain");
-		EXT2MIME.put("uls", "text/iuls");
-		EXT2MIME.put("ustar", "application/x-ustar");
-		EXT2MIME.put("vcf", "text/x-vcard");
-		EXT2MIME.put("vrml", "x-world/x-vrml");
-		EXT2MIME.put("wav", "audio/x-wav");
-		EXT2MIME.put("wcm", "application/vnd.ms-works");
-		EXT2MIME.put("wdb", "application/vnd.ms-works");
-		EXT2MIME.put("wmf", "application/x-msmetafile");
-		EXT2MIME.put("wps", "application/vnd.ms-works");
-		EXT2MIME.put("wri", "application/x-mswrite");
-		EXT2MIME.put("wrl", "x-world/x-vrml");
-		EXT2MIME.put("wrz", "x-world/x-vrml");
-		EXT2MIME.put("xaf", "x-world/x-vrml");
-		EXT2MIME.put("xbm", "image/x-xbitmap");
-		EXT2MIME.put("xla", "application/vnd.ms-excel");
-		EXT2MIME.put("xlc", "application/vnd.ms-excel");
-		EXT2MIME.put("xlm", "application/vnd.ms-excel");
-		EXT2MIME.put("xls", "application/vnd.ms-excel");
-		EXT2MIME.put("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
-		EXT2MIME.put("xlt", "application/vnd.ms-excel");
-		EXT2MIME.put("xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template");
-		EXT2MIME.put("xlw", "application/vnd.ms-excel");
-		EXT2MIME.put("xml", "text/xml");
-		EXT2MIME.put("xof", "x-world/x-vrml");
-		EXT2MIME.put("xpm", "image/x-xpixmap");
-		EXT2MIME.put("xwd", "image/x-xwindowdump");
-		EXT2MIME.put("z", "application/x-compress");
-		EXT2MIME.put("zip", "application/zip");
-	}
-
-	/**
-	 * Returns the MIME type for file extension.
-	 */
-	public static String getMIMEType(String ext) {
-		if (ext == null) {
-			return EXT2MIME.get("");
-		}
-
-		int x = ext.lastIndexOf('.');
-		if (x > -1) {
-			ext = ext.substring(x + 1);
-		}
-
-		String mime = EXT2MIME.get(ext.toLowerCase());
-		if (mime == null) {
-			mime = EXT2MIME.get("");
-		}
-
-		return mime;
-	}
-
-	/**
-	 * Returns the MIME type for a file.
-	 */
-	public static String getMIMEType(File file) {
-		if (file == null) {
-			return getMIMEType("");
-		}
+    static {
+        EXT2MIME.put("", "application/octet-stream");
+        EXT2MIME.put("ai", "application/postscript");
+        EXT2MIME.put("aif", "audio/x-aiff");
+        EXT2MIME.put("aifc", "audio/x-aiff");
+        EXT2MIME.put("aiff", "audio/x-aiff");
+        EXT2MIME.put("asf", "video/x-ms-asf");
+        EXT2MIME.put("asr", "video/x-ms-asf");
+        EXT2MIME.put("asx", "video/x-ms-asf");
+        EXT2MIME.put("au", "audio/basic");
+        EXT2MIME.put("avi", "video/x-msvideo");
+        EXT2MIME.put("axs", "application/olescript");
+        EXT2MIME.put("bas", "text/plain");
+        EXT2MIME.put("bmp", "image/bmp");
+        EXT2MIME.put("c", "text/plain");
+        EXT2MIME.put("cat", "application/vnd.ms-pkiseccat");
+        EXT2MIME.put("cdf", "application/x-cdf");
+        EXT2MIME.put("cer", "application/x-x509-ca-cert");
+        EXT2MIME.put("clp", "application/x-msclip");
+        EXT2MIME.put("cmx", "image/x-cmx");
+        EXT2MIME.put("cod", "image/cis-cod");
+        EXT2MIME.put("cpio", "application/x-cpio");
+        EXT2MIME.put("crd", "application/x-mscardfile");
+        EXT2MIME.put("crl", "application/pkix-crl");
+        EXT2MIME.put("crt", "application/x-x509-ca-cert");
+        EXT2MIME.put("csh", "application/x-csh");
+        EXT2MIME.put("css", "text/css");
+        EXT2MIME.put("dll", "application/x-msdownload");
+        EXT2MIME.put("doc", "application/msword");
+        EXT2MIME.put("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
+        EXT2MIME.put("doct", "application/vnd.openxmlformats-officedocument.wordprocessingml.template");
+        EXT2MIME.put("dot", "application/msword");
+        EXT2MIME.put("dvi", "application/x-dvi");
+        EXT2MIME.put("dxr", "application/x-director");
+        EXT2MIME.put("eps", "application/postscript");
+        EXT2MIME.put("etx", "text/x-setext");
+        EXT2MIME.put("evy", "application/envoy");
+        EXT2MIME.put("fif", "application/fractals");
+        EXT2MIME.put("flr", "x-world/x-vrml");
+        EXT2MIME.put("gif", "image/gif");
+        EXT2MIME.put("gtar", "application/x-gtar");
+        EXT2MIME.put("gz", "application/x-gzip");
+        EXT2MIME.put("h", "text/plain");
+        EXT2MIME.put("hdf", "application/x-hdf");
+        EXT2MIME.put("hlp", "application/winhlp");
+        EXT2MIME.put("hqx", "application/mac-binhex40");
+        EXT2MIME.put("hta", "application/hta");
+        EXT2MIME.put("htc", "text/x-component");
+        EXT2MIME.put("htm", "text/html");
+        EXT2MIME.put("html", "text/html");
+        EXT2MIME.put("htt", "text/webviewhtml");
+        EXT2MIME.put("ico", "image/x-icon");
+        EXT2MIME.put("ief", "image/ief");
+        EXT2MIME.put("iii", "application/x-iphone");
+        EXT2MIME.put("isp", "application/x-internet-signup");
+        EXT2MIME.put("jfif", "image/pipeg");
+        EXT2MIME.put("jpe", "image/jpeg");
+        EXT2MIME.put("jpeg", "image/jpeg");
+        EXT2MIME.put("jpg", "image/jpeg");
+        EXT2MIME.put("js", "application/x-javascript");
+        EXT2MIME.put("latex", "application/x-latex");
+        EXT2MIME.put("lsf", "video/x-la-asf");
+        EXT2MIME.put("lsx", "video/x-la-asf");
+        EXT2MIME.put("m3u", "audio/x-mpegurl");
+        EXT2MIME.put("man", "application/x-troff-man");
+        EXT2MIME.put("mdb", "application/x-msaccess");
+        EXT2MIME.put("me", "application/x-troff-me");
+        EXT2MIME.put("mhtv", "message/rfc822");
+        EXT2MIME.put("mhtml", "message/rfc822");
+        EXT2MIME.put("mid", "audio/mid");
+        EXT2MIME.put("mov", "video/quicktime");
+        EXT2MIME.put("movie", "video/x-sgi-movie");
+        EXT2MIME.put("mp2", "video/mpeg");
+        EXT2MIME.put("mp3", "audio/mpeg");
+        EXT2MIME.put("mpa", "video/mpeg");
+        EXT2MIME.put("mpe", "video/mpegv");
+        EXT2MIME.put("mpeg", "video/mpeg");
+        EXT2MIME.put("mpg", "video/mpegv");
+        EXT2MIME.put("mpp", "application/vnd.ms-project");
+        EXT2MIME.put("mpv2", "video/mpeg");
+        EXT2MIME.put("ms", "application/x-troff-ms");
+        EXT2MIME.put("mvb", "application/x-msmediaview");
+        EXT2MIME.put("nws", "message/rfc822");
+        EXT2MIME.put("oda", "application/oda");
+        EXT2MIME.put("p10", "application/pkcs10");
+        EXT2MIME.put("p12", "application/x-pkcs12v");
+        EXT2MIME.put("p7b", "application/x-pkcs7-certificates");
+        EXT2MIME.put("p7c", "application/x-pkcs7-mime");
+        EXT2MIME.put("p7m", "application/x-pkcs7-mime");
+        EXT2MIME.put("p7r", "application/x-pkcs7-certreqresp");
+        EXT2MIME.put("p7s", "application/x-pkcs7-signature");
+        EXT2MIME.put("pbm", "image/x-portable-bitmap");
+        EXT2MIME.put("pdf", "application/pdf");
+        EXT2MIME.put("pfx", "application/x-pkcs12");
+        EXT2MIME.put("pgm", "image/x-portable-graymap");
+        EXT2MIME.put("vpko", "application/ynd.ms-pkipko");
+        EXT2MIME.put("pma", "application/x-perfmon");
+        EXT2MIME.put("pmc", "application/x-perfmon");
+        EXT2MIME.put("pml", "application/x-perfmon");
+        EXT2MIME.put("pmr", "application/x-perfmon");
+        EXT2MIME.put("pmw", "application/x-perfmon");
+        EXT2MIME.put("png", "image/png");
+        EXT2MIME.put("pnm", "image/x-portable-anymap");
+        EXT2MIME.put("pot", "application/vnd.ms-powerpoint");
+        EXT2MIME.put("ppm", "image/x-portable-pixmap");
+        EXT2MIME.put("pps", "application/vnd.ms-powerpoint");
+        EXT2MIME.put("ppt", "application/vnd.ms-powerpoint");
+        EXT2MIME.put("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation");
+        EXT2MIME.put("ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow");
+        EXT2MIME.put("potx", "application/vnd.openxmlformats-officedocument.presentationml.template");
+        EXT2MIME.put("prf", "application/pics-rules");
+        EXT2MIME.put("ps", "application/postscript");
+        EXT2MIME.put("pub", "application/x-mspublisher");
+        EXT2MIME.put("qt", "video/quicktime");
+        EXT2MIME.put("ra", "audio/x-pn-realaudio");
+        EXT2MIME.put("ram", "audio/x-pn-realaudio");
+        EXT2MIME.put("ras", "image/x-cmu-raster");
+        EXT2MIME.put("rgb", "image/x-rgb");
+        EXT2MIME.put("rmi", "audio/mid");
+        EXT2MIME.put("roff", "application/x-troff");
+        EXT2MIME.put("rtf", "application/rtf");
+        EXT2MIME.put("rtx", "text/richtext");
+        EXT2MIME.put("scd", "application/x-msschedule");
+        EXT2MIME.put("sct", "text/scriptlet");
+        EXT2MIME.put("sh", "application/x-sh");
+        EXT2MIME.put("shar", "application/x-shar");
+        EXT2MIME.put("sit", "application/x-stuffit");
+        EXT2MIME.put("snd", "audio/basic");
+        EXT2MIME.put("spc", "application/x-pkcs7-certificates");
+        EXT2MIME.put("spl", "application/futuresplash");
+        EXT2MIME.put("src", "application/x-wais-source");
+        EXT2MIME.put("sst", "application/vnd.ms-pkicertstore");
+        EXT2MIME.put("stl", "application/vnd.ms-pkistl");
+        EXT2MIME.put("stm", "text/html");
+        EXT2MIME.put("svg", "image/svg+xml");
+        EXT2MIME.put("swf", "application/x-shockwave-flash");
+        EXT2MIME.put("t", "application/x-troff");
+        EXT2MIME.put("tar", "application/x-tar");
+        EXT2MIME.put("tcl", "application/x-tcl");
+        EXT2MIME.put("tex", "application/x-tex");
+        EXT2MIME.put("texi", "application/x-texinfo");
+        EXT2MIME.put("texinfo", "application/x-texinfo");
+        EXT2MIME.put("tgz", "application/x-compressed");
+        EXT2MIME.put("tif", "image/tiff");
+        EXT2MIME.put("tiff", "image/tiff");
+        EXT2MIME.put("tr", "application/x-troff");
+        EXT2MIME.put("trm", "application/x-msterminal");
+        EXT2MIME.put("tsv", "text/tab-separated-values");
+        EXT2MIME.put("txt", "text/plain");
+        EXT2MIME.put("uls", "text/iuls");
+        EXT2MIME.put("ustar", "application/x-ustar");
+        EXT2MIME.put("vcf", "text/x-vcard");
+        EXT2MIME.put("vrml", "x-world/x-vrml");
+        EXT2MIME.put("wav", "audio/x-wav");
+        EXT2MIME.put("wcm", "application/vnd.ms-works");
+        EXT2MIME.put("wdb", "application/vnd.ms-works");
+        EXT2MIME.put("wmf", "application/x-msmetafile");
+        EXT2MIME.put("wps", "application/vnd.ms-works");
+        EXT2MIME.put("wri", "application/x-mswrite");
+        EXT2MIME.put("wrl", "x-world/x-vrml");
+        EXT2MIME.put("wrz", "x-world/x-vrml");
+        EXT2MIME.put("xaf", "x-world/x-vrml");
+        EXT2MIME.put("xbm", "image/x-xbitmap");
+        EXT2MIME.put("xla", "application/vnd.ms-excel");
+        EXT2MIME.put("xlc", "application/vnd.ms-excel");
+        EXT2MIME.put("xlm", "application/vnd.ms-excel");
+        EXT2MIME.put("xls", "application/vnd.ms-excel");
+        EXT2MIME.put("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
+        EXT2MIME.put("xlt", "application/vnd.ms-excel");
+        EXT2MIME.put("xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template");
+        EXT2MIME.put("xlw", "application/vnd.ms-excel");
+        EXT2MIME.put("xml", "text/xml");
+        EXT2MIME.put("xof", "x-world/x-vrml");
+        EXT2MIME.put("xpm", "image/x-xpixmap");
+        EXT2MIME.put("xwd", "image/x-xwindowdump");
+        EXT2MIME.put("z", "application/x-compress");
+        EXT2MIME.put("zip", "application/zip");
+    }
+
+    /**
+     * Returns the MIME type for file extension.
+     */
+    public static String getMIMEType(String ext) {
+        if (ext == null) {
+            return EXT2MIME.get("");
+        }
+
+        int x = ext.lastIndexOf('.');
+        if (x > -1) {
+            ext = ext.substring(x + 1);
+        }
+
+        String mime = EXT2MIME.get(ext.toLowerCase());
+        if (mime == null) {
+            mime = EXT2MIME.get("");
+        }
+
+        return mime;
+    }
+
+    /**
+     * Returns the MIME type for a file.
+     */
+    public static String getMIMEType(File file) {
+        if (file == null) {
+            return getMIMEType("");
+        }
 
-		return getMIMEType(file.getName());
-	}
+        return getMIMEType(file.getName());
+    }
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/NavigationService.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/NavigationService.java?rev=936938&r1=936937&r2=936938&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/NavigationService.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/NavigationService.java Thu Apr 22 16:27:57 2010
@@ -42,135 +42,135 @@ import org.apache.chemistry.opencmis.ser
  */
 public class NavigationService implements CmisNavigationService {
 
-	private RepositoryMap fRepositoryMap;
+    private RepositoryMap fRepositoryMap;
 
-	/**
-	 * Constructor.
-	 */
-	public NavigationService(RepositoryMap repositoryMap) {
-		fRepositoryMap = repositoryMap;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getCheckedOutDocs
-	 * (org.apache.opencmis. server.spi.CallContext , java.lang.String,
-	 * java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.math.BigInteger, java.math.BigInteger,
-	 * org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public ObjectList getCheckedOutDocs(CallContext context, String repositoryId, String folderId, String filter,
-			String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension,
-			ObjectInfoHolder objectInfos) {
-		fRepositoryMap.getAuthenticatedRepository(context, repositoryId);
-
-		ObjectListImpl result = new ObjectListImpl();
-		result.setHasMoreItems(false);
-		result.setNumItems(BigInteger.ZERO);
-		List<ObjectData> emptyList = Collections.emptyList();
-		result.setObjects(emptyList);
-
-		return result;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getChildren(org.
-	 * apache.opencmis.server .spi.CallContext, java.lang.String,
-	 * java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, java.math.BigInteger, java.math.BigInteger,
-	 * org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public ObjectInFolderList getChildren(CallContext context, String repositoryId, String folderId, String filter,
-			String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount,
-			ExtensionsData extension, ObjectInfoHolder objectInfos) {
-		return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getChildren(context, folderId, filter,
-				includeAllowableActions, includePathSegment, maxItems, skipCount, objectInfos);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getDescendants(org
-	 * .apache.opencmis.server .spi.CallContext , java.lang.String,
-	 * java.lang.String, java.math.BigInteger, java.lang.String,
-	 * java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public List<ObjectInFolderContainer> getDescendants(CallContext context, String repositoryId, String folderId,
-			BigInteger depth, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment,
-			ExtensionsData extension, ObjectInfoHolder objectInfos) {
-		return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getDescendants(context, folderId,
-				depth, filter, includeAllowableActions, includePathSegment, objectInfos, false);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getFolderParent(
-	 * org.apache.opencmis.server .spi.CallContext , java.lang.String,
-	 * java.lang.String, java.lang.String,
-	 * org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public ObjectData getFolderParent(CallContext context, String repositoryId, String folderId, String filter,
-			ExtensionsData extension, ObjectInfoHolder objectInfos) {
-		return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getFolderParent(context, folderId,
-				filter, objectInfos);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getFolderTree(org
-	 * .apache.opencmis.server .spi.CallContext , java.lang.String,
-	 * java.lang.String, java.math.BigInteger, java.lang.String,
-	 * java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public List<ObjectInFolderContainer> getFolderTree(CallContext context, String repositoryId, String folderId,
-			BigInteger depth, String filter, Boolean includeAllowableActions,
-			IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment,
-			ExtensionsData extension, ObjectInfoHolder objectInfos) {
-		return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getDescendants(context, folderId,
-				depth, filter, includeAllowableActions, includePathSegment, objectInfos, true);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.apache.opencmis.server.spi.CmisNavigationService#getObjectParents
-	 * (org.apache.opencmis.server .spi.CallContext , java.lang.String,
-	 * java.lang.String, java.lang.String, java.lang.Boolean,
-	 * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
-	 * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
-	 * org.apache.opencmis.server.spi.ObjectInfoHolder)
-	 */
-	public List<ObjectParentData> getObjectParents(CallContext context, String repositoryId, String objectId,
-			String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
-			String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension,
-			ObjectInfoHolder objectInfos) {
-		return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getObjectParents(context, objectId,
-				filter, includeAllowableActions, includeRelativePathSegment, objectInfos);
-	}
+    /**
+     * Constructor.
+     */
+    public NavigationService(RepositoryMap repositoryMap) {
+        fRepositoryMap = repositoryMap;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getCheckedOutDocs
+     * (org.apache.opencmis. server.spi.CallContext , java.lang.String,
+     * java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.math.BigInteger, java.math.BigInteger,
+     * org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public ObjectList getCheckedOutDocs(CallContext context, String repositoryId, String folderId, String filter,
+            String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension,
+            ObjectInfoHolder objectInfos) {
+        fRepositoryMap.getAuthenticatedRepository(context, repositoryId);
+
+        ObjectListImpl result = new ObjectListImpl();
+        result.setHasMoreItems(false);
+        result.setNumItems(BigInteger.ZERO);
+        List<ObjectData> emptyList = Collections.emptyList();
+        result.setObjects(emptyList);
+
+        return result;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getChildren(org.
+     * apache.opencmis.server .spi.CallContext, java.lang.String,
+     * java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, java.math.BigInteger, java.math.BigInteger,
+     * org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public ObjectInFolderList getChildren(CallContext context, String repositoryId, String folderId, String filter,
+            String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount,
+            ExtensionsData extension, ObjectInfoHolder objectInfos) {
+        return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getChildren(context, folderId, filter,
+                includeAllowableActions, includePathSegment, maxItems, skipCount, objectInfos);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getDescendants(org
+     * .apache.opencmis.server .spi.CallContext , java.lang.String,
+     * java.lang.String, java.math.BigInteger, java.lang.String,
+     * java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public List<ObjectInFolderContainer> getDescendants(CallContext context, String repositoryId, String folderId,
+            BigInteger depth, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment,
+            ExtensionsData extension, ObjectInfoHolder objectInfos) {
+        return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getDescendants(context, folderId,
+                depth, filter, includeAllowableActions, includePathSegment, objectInfos, false);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getFolderParent(
+     * org.apache.opencmis.server .spi.CallContext , java.lang.String,
+     * java.lang.String, java.lang.String,
+     * org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public ObjectData getFolderParent(CallContext context, String repositoryId, String folderId, String filter,
+            ExtensionsData extension, ObjectInfoHolder objectInfos) {
+        return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getFolderParent(context, folderId,
+                filter, objectInfos);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getFolderTree(org
+     * .apache.opencmis.server .spi.CallContext , java.lang.String,
+     * java.lang.String, java.math.BigInteger, java.lang.String,
+     * java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public List<ObjectInFolderContainer> getFolderTree(CallContext context, String repositoryId, String folderId,
+            BigInteger depth, String filter, Boolean includeAllowableActions,
+            IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment,
+            ExtensionsData extension, ObjectInfoHolder objectInfos) {
+        return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getDescendants(context, folderId,
+                depth, filter, includeAllowableActions, includePathSegment, objectInfos, true);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.apache.opencmis.server.spi.CmisNavigationService#getObjectParents
+     * (org.apache.opencmis.server .spi.CallContext , java.lang.String,
+     * java.lang.String, java.lang.String, java.lang.Boolean,
+     * org.apache.opencmis.commons.enums.IncludeRelationships, java.lang.String,
+     * java.lang.Boolean, org.apache.opencmis.commons.api.ExtensionsData,
+     * org.apache.opencmis.server.spi.ObjectInfoHolder)
+     */
+    public List<ObjectParentData> getObjectParents(CallContext context, String repositoryId, String objectId,
+            String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+            String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension,
+            ObjectInfoHolder objectInfos) {
+        return fRepositoryMap.getAuthenticatedRepository(context, repositoryId).getObjectParents(context, objectId,
+                filter, includeAllowableActions, includeRelativePathSegment, objectInfos);
+    }
 
 }



Mime
View raw message