0,0 → 1,47 |
package ak.hostadmiral.core.model.store; |
|
import java.util.Collection; |
import ak.hostadmiral.util.CollectionInfo; |
import ak.hostadmiral.util.ModelStoreException; |
import ak.hostadmiral.core.model.User; |
import ak.hostadmiral.core.model.InetDomain; |
import ak.hostadmiral.core.model.Mailbox; |
import ak.hostadmiral.core.model.MailAlias; |
|
public interface MailAliasStore |
{ |
public MailAlias get(Long id) |
throws ModelStoreException; |
|
public boolean addressExists(MailAlias alias, String address) |
throws ModelStoreException; |
|
public MailAlias findForName(String name) |
throws ModelStoreException; |
|
public void save(MailAlias mailAlias) |
throws ModelStoreException; |
|
public void delete(MailAlias mailAlias) |
throws ModelStoreException; |
|
public Collection listAllMailAliases(CollectionInfo info, int rowsPerPage, int pageNumber, |
Integer[] sortingKeys) |
throws ModelStoreException; |
|
public Collection listMailAliases(CollectionInfo info, int rowsPerPage, int pageNumber, |
Integer[] sortingKeys, User user) |
throws ModelStoreException; |
|
public int countMailAliasesAvailable(User user) |
throws ModelStoreException; |
|
public Collection listOwnMailAliases(User user) |
throws ModelStoreException; |
|
public Collection listMailAliasesForDomain(InetDomain domain) |
throws ModelStoreException; |
|
public Collection listMailAliasesForMailbox(Mailbox mailbox) |
throws ModelStoreException; |
} |