com.trendmicro.grid.acl.ds
Interface SourceDomainRepository

All Superinterfaces:
Repository

public interface SourceDomainRepository
extends Repository

Defines a repository of the domains form sources.

Version:
1.0
Author:
juergen_kellerer, 2010-05-07

Method Summary
 void createOrUpdate(com.trendmicro.grid.acl.l0.datatypes.SourceDomain domain)
          Updates the given domain information inside the persitence store.
 SharedSourceDomainListPage getAllPaged(int pageNumber)
          Returns the a list of all stored domains.
 SharedSourceDomain getByName(String domainName)
          Returns the stored domain information on the given domain name.
 SharedSourceDomain getOrCreate(String domainName)
          Gets or creates the source domain for the given URI.
 

Method Detail

getAllPaged

SharedSourceDomainListPage getAllPaged(int pageNumber)
Returns the a list of all stored domains.

Parameters:
pageNumber - The number of the list page to return, starting from 0 for the first chunk.
Returns:
A chunk of source domains or 'null' if no chunk exists under the given number.

getByName

SharedSourceDomain getByName(String domainName)
Returns the stored domain information on the given domain name.

Parameters:
domainName - the domain name to look for.
Returns:
the stored domain information on the given domain name.

getOrCreate

SharedSourceDomain getOrCreate(String domainName)
Gets or creates the source domain for the given URI.

Parameters:
domainName - the domain name to look for.
Returns:
The source domain for the specified URI or 'null' if remoteURI was 'null' or did not contain a valid domain name.

createOrUpdate

void createOrUpdate(com.trendmicro.grid.acl.l0.datatypes.SourceDomain domain)
Updates the given domain information inside the persitence store.

Parameters:
domain - the domain info to update.