org.rhq.enterprise.server.content
Interface DistributionManagerLocal

All Known Implementing Classes:
DistributionManagerBean

public interface DistributionManagerLocal

Author:
Pradeep Kilambi

Method Summary
 Distribution createDistribution(Subject subject, String kslabel, String basepath, DistributionType disttype)
          Creates a new distribution in the system.
 void deleteDistributionByDistId(Subject subject, int distId)
          Deletes a given instance of distribution object.
 void deleteDistributionFilesByDistId(Subject subject, int distid)
          delete list of distribution files
 void deleteDistributionMappingsForRepo(Subject subject, int repoId)
          Deletes a given instance of distribution object.
 Distribution getDistributionByLabel(String kslabel)
          get distribution based on a given label
 List<DistributionFile> getDistributionFilesByDistId(int distid)
          get list of distribution files
 DistributionType getDistributionTypeByName(String name)
          Returns a DistributionType for given name
 

Method Detail

createDistribution

Distribution createDistribution(Subject subject,
                                String kslabel,
                                String basepath,
                                DistributionType disttype)
                                throws DistributionException
Creates a new distribution in the system. If the tree does not exist, it will be created. If a tree exists with the specified version ID, a new one will not be created and the existing tree will be returned.

Parameters:
subject -
kslabel - kickstart tree label
basepath - ks base path on filesystem
Returns:
newly created distribution tree object
Throws:
DistributionException

deleteDistributionMappingsForRepo

void deleteDistributionMappingsForRepo(Subject subject,
                                       int repoId)
Deletes a given instance of distribution object. If the object does not exist

Parameters:
subject -
repoId -

deleteDistributionByDistId

void deleteDistributionByDistId(Subject subject,
                                int distId)
Deletes a given instance of distribution object. If the object does not exist

Parameters:
subject -
distId -

getDistributionByLabel

Distribution getDistributionByLabel(String kslabel)
get distribution based on a given label

Parameters:
kslabel - distribution tree label
Returns:
kickstart tree object

getDistributionFilesByDistId

List<DistributionFile> getDistributionFilesByDistId(int distid)
get list of distribution files

Parameters:
distid -
Returns:
list of distro file by dist id

deleteDistributionFilesByDistId

void deleteDistributionFilesByDistId(Subject subject,
                                     int distid)
delete list of distribution files

Parameters:
subject -
distid -

getDistributionTypeByName

DistributionType getDistributionTypeByName(String name)
Returns a DistributionType for given name

Parameters:
name - name of distribution type
Returns:
distribution type from db


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.