1 package org.columba.addressbook.folder; 19 20 import java.util.Map ; 21 22 import org.columba.addressbook.model.IContactModelPartial; 23 import org.columba.api.exception.StoreException; 24 25 37 public interface ContactItemCacheStorage { 38 39 Map <String , IContactModelPartial> getContactItemMap() throws StoreException; 40 41 Map <String , IContactModelPartial> getContactItemMap(String [] ids) throws StoreException; 42 43 void add(String uid, IContactModelPartial item) throws StoreException; 44 45 void remove(String uid) throws StoreException; 46 47 void modify(String uid, IContactModelPartial item) throws StoreException; 48 49 int count() throws StoreException; 50 51 boolean exists(String uid) throws StoreException; 52 53 void save() throws StoreException; 54 55 void load() throws Exception ; 56 } 57 | Popular Tags |