com.trendmicro.grid.acl.ds
Interface VendorRepository

All Superinterfaces:
Repository

public interface VendorRepository
extends Repository

Defines a repository for vendors.

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

Method Summary
 SharedVendor create(String name, String displayName, com.trendmicro.grid.acl.metadata.Metadata metadata)
          Creates the vendor if it doesn't exist.
 SharedVendor getByName(String name)
          Returns the vendor information for the given vendor name.
 com.trendmicro.grid.acl.l0.datatypes.NameListPage listNames(int pageNumber)
          Returns all known vendor names.
 void update(com.trendmicro.grid.acl.l0.datatypes.Vendor vendor)
          Updates the specified vendor.
 

Method Detail

create

SharedVendor create(String name,
                    String displayName,
                    com.trendmicro.grid.acl.metadata.Metadata metadata)
Creates the vendor if it doesn't exist.

Parameters:
name - the name of the vendor to create.
displayName - the displayName of the vendor to create.
metadata - the metadata of the vendor to create.
Returns:
the vendor information for the given vendor name.

update

void update(com.trendmicro.grid.acl.l0.datatypes.Vendor vendor)
Updates the specified vendor.

Parameters:
vendor - the vendor to update.

getByName

SharedVendor getByName(String name)
Returns the vendor information for the given vendor name.

Parameters:
name - the name of the vendor to return.
Returns:
the vendor information for the given vendor name.

listNames

com.trendmicro.grid.acl.l0.datatypes.NameListPage listNames(int pageNumber)
Returns all known vendor names.

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