org.rhq.enterprise.server.content
Interface DistributionManagerLocal

All Known Implementing Classes:
DistributionManagerBean

public interface DistributionManagerLocal

Author:
Pradeep Kilambi

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

Method Detail

createDistribution

org.rhq.core.domain.content.Distribution createDistribution(org.rhq.core.domain.auth.Subject subject,
                                                            String kslabel,
                                                            String basepath,
                                                            org.rhq.core.domain.content.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(org.rhq.core.domain.auth.Subject subject,
                                       int repoId)
Deletes a given instance of distribution object. If the object does not exist

Parameters:
subject -
repoId -

deleteDistributionByDistId

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

Parameters:
subject -
distId -

getDistributionByLabel

org.rhq.core.domain.content.Distribution getDistributionByLabel(String kslabel)
get distribution based on a given label

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

getDistributionFilesByDistId

List<org.rhq.core.domain.content.DistributionFile> getDistributionFilesByDistId(int distid)
get list of distribution files

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

deleteDistributionFilesByDistId

void deleteDistributionFilesByDistId(org.rhq.core.domain.auth.Subject subject,
                                     int distid)
delete list of distribution files

Parameters:
subject -
distid -

getDistributionTypeByName

org.rhq.core.domain.content.DistributionType getDistributionTypeByName(String name)
Returns a DistributionType for given name

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


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