com.trendmicro.grid.acl.ds
Interface PackageFamilyRepository

All Superinterfaces:
Repository

public interface PackageFamilyRepository
extends Repository

Defines a repository for package family entries.

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

Method Summary
 SharedPackageFamily create(String vendorName, String basename, String displayName, com.trendmicro.grid.acl.metadata.Metadata metadata)
          Creates the family if the entry is missing.
 SharedPackageFamily getByName(String basename)
          Returns the package family on the given basename.
 com.trendmicro.grid.acl.l0.datatypes.NameListPage listNames(int pageNumber)
          Returns all known family names.
 com.trendmicro.grid.acl.l0.datatypes.NameListPage listNamesByVendor(String vendorName, int pageNumber)
          Returns all known family names for the specified vendor.
 void update(com.trendmicro.grid.acl.l0.datatypes.PackageFamily packageFamily)
          Updates the given package family.
 

Method Detail

create

SharedPackageFamily create(String vendorName,
                           String basename,
                           String displayName,
                           com.trendmicro.grid.acl.metadata.Metadata metadata)
Creates the family if the entry is missing.

Parameters:
vendorName - the name of the vendor.
basename - the name of the package family.
displayName - the name used to display the package family.
metadata - the associated metadata.
Returns:
the package family on the given basename.

update

void update(com.trendmicro.grid.acl.l0.datatypes.PackageFamily packageFamily)
Updates the given package family.

Parameters:
packageFamily - the package family to update.

getByName

SharedPackageFamily getByName(String basename)
Returns the package family on the given basename.

Parameters:
basename - the name of the package family.
Returns:
the package family on the given basename.

listNames

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

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

listNamesByVendor

com.trendmicro.grid.acl.l0.datatypes.NameListPage listNamesByVendor(String vendorName,
                                                                    int pageNumber)
Returns all known family names for the specified vendor.

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