return type;
}
public void deleteType(String repositoryId, String typeId, ExtensionsData extension) {
TypeManagerCreatable typeManager = fStoreManager.getTypeManager(repositoryId);
if (null == typeManager)
throw new CmisInvalidArgumentException("Unknown repository " + repositoryId);
TypeDefinitionContainer typeDefC = typeManager.getTypeById(typeId);
if (null == typeDefC)
throw new CmisInvalidArgumentException("Cannot delete type unknown type id: " + typeId);
ObjectStore objectStore = fStoreManager.getObjectStore(repositoryId);
if (objectStore.isTypeInUse(typeId)) {
throw new CmisInvalidArgumentException("type definition " + typeId + " cannot be deleted, type is in use.");
}
typeManager.deleteTypeDefinition(typeId);
}