package org.ofbiz.jcr.access; | |
import javax.jcr.ItemExistsException; | |
import org.apache.jackrabbit.ocm.exception.ObjectContentManagerException; | |
import org.ofbiz.jcr.orm.OfbizRepositoryMapping; | |
public interface ContentWriter { | |
/** | |
* Stores the OfbizRepositoryMapping Class in the content repository. | |
* | |
* @param orm | |
* @throws ObjectContentManagerException | |
* @throws ItemExistsException | |
*/ | |
public void storeContentObject(OfbizRepositoryMapping orm) throws ObjectContentManagerException, ItemExistsException; | |
/** | |
* Update the OfbizRepositoryMapping Class in the content repository. | |
* | |
* @param orm | |
* @throws ObjectContentManagerException | |
*/ | |
public void updateContentObject(OfbizRepositoryMapping orm) throws ObjectContentManagerException; | |
/** | |
* Remove the passed node from the content repository. The node path should be absolute. | |
* | |
* @param nodePath | |
* @throws ObjectContentManagerException | |
*/ | |
public void removeContentObject(String nodePath) throws ObjectContentManagerException; | |
} |