com.emc.documentum.springdata.core.DctmOperations Maven / Gradle / Ivy
The newest version!
package com.emc.documentum.springdata.core;
import java.util.List;
import com.documentum.fc.common.DfException;
import com.emc.documentum.springdata.repository.query.DctmQuery;
public interface DctmOperations {
T create(T objectToSave) throws DfException;
String delete(T objectToDelete) throws DfException;
String deleteById(ID objectToDeleteId) throws DfException;
List findAll(Class entityClass) throws DfException;
List find(DctmQuery query, Class entityClass) throws DfException;
T findById(String id, Class entityClass) throws DfException;
T update(T objectToUpdate) throws DfException;
String getRepositoryObjectName(T obj);
String getRepositoryName(Class> entityClass);
long count(Class> entityClass) throws DfException;
void setContent(T object, String contentType, String path) throws DfException;
String getContent(T object, String path) throws DfException;
}