org.apache.continuum.purge
Class DefaultPurgeConfigurationService

java.lang.Object
  extended by org.apache.continuum.purge.DefaultPurgeConfigurationService
All Implemented Interfaces:
PurgeConfigurationService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class DefaultPurgeConfigurationService
extends Object
implements PurgeConfigurationService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

DefaultPurgeConfigurationService

Since:
25 jul 07
Version:
$Id: DefaultPurgeConfigurationService.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Maria Catherine Tan

Field Summary
 
Fields inherited from interface org.apache.continuum.purge.PurgeConfigurationService
ROLE
 
Constructor Summary
DefaultPurgeConfigurationService()
           
 
Method Summary
 DirectoryPurgeConfiguration addDirectoryPurgeConfiguration(DirectoryPurgeConfiguration dirPurge)
           
 DistributedDirectoryPurgeConfiguration addDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration dirPurge)
           
 AbstractPurgeConfiguration addPurgeConfiguration(AbstractPurgeConfiguration purgeConfig)
           
 RepositoryPurgeConfiguration addRepositoryPurgeConfiguration(RepositoryPurgeConfiguration repoPurge)
           
 void contextualize(org.codehaus.plexus.context.Context context)
           
 List<DirectoryPurgeConfiguration> getAllDirectoryPurgeConfigurations()
           
 List<DistributedDirectoryPurgeConfiguration> getAllDistributedDirectoryPurgeConfigurations()
           
 List<AbstractPurgeConfiguration> getAllPurgeConfigurations()
           
 List<RepositoryPurgeConfiguration> getAllRepositoryPurgeConfigurations()
           
 DirectoryPurgeConfiguration getDefaultPurgeConfigurationForDirectoryType(String directoryType)
           
 RepositoryPurgeConfiguration getDefaultPurgeConfigurationForRepository(int repositoryId)
           
 DirectoryPurgeConfiguration getDirectoryPurgeConfiguration(int purgeConfigId)
           
 List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsByLocation(String location)
           
 List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsBySchedule(int scheduleId)
           
 DistributedDirectoryPurgeConfiguration getDistributedDirectoryPurgeConfiguration(int dirPurgeId)
           
 List<DirectoryPurgeConfiguration> getEnableDirectoryPurgeConfigurationsBySchedule(int scheduleId)
           
 List<DistributedDirectoryPurgeConfiguration> getEnableDistributedDirectoryPurgeConfigurationsBySchedule(int scheduleId)
           
 List<RepositoryPurgeConfiguration> getEnableRepositoryPurgeConfigurationsBySchedule(int scheduleId)
           
 RepositoryManagedContent getManagedRepositoryContent(int repositoryId)
           
 AbstractPurgeConfiguration getPurgeConfiguration(int purgeConfigId)
           
 RepositoryPurgeConfiguration getRepositoryPurgeConfiguration(int purgeConfigId)
           
 List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsByRepository(int repositoryId)
           
 List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsBySchedule(int scheduleId)
           
 void removeDirectoryPurgeConfiguration(DirectoryPurgeConfiguration purgeConfig)
           
 void removeDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration purgeConfig)
           
 void removePurgeConfiguration(int purgeConfigId)
           
 void removeRepositoryPurgeConfiguration(RepositoryPurgeConfiguration purgeConfig)
           
 void updateDirectoryPurgeConfiguration(DirectoryPurgeConfiguration purgeConfig)
           
 void updateDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration dirPurge)
           
 void updatePurgeConfiguration(AbstractPurgeConfiguration purgeConfig)
           
 void updateRepositoryPurgeConfiguration(RepositoryPurgeConfiguration purgeConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPurgeConfigurationService

public DefaultPurgeConfigurationService()
Method Detail

addPurgeConfiguration

public AbstractPurgeConfiguration addPurgeConfiguration(AbstractPurgeConfiguration purgeConfig)
                                                 throws PurgeConfigurationServiceException
Specified by:
addPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

updatePurgeConfiguration

public void updatePurgeConfiguration(AbstractPurgeConfiguration purgeConfig)
                              throws PurgeConfigurationServiceException
Specified by:
updatePurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

removePurgeConfiguration

public void removePurgeConfiguration(int purgeConfigId)
                              throws PurgeConfigurationServiceException
Specified by:
removePurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

addDirectoryPurgeConfiguration

public DirectoryPurgeConfiguration addDirectoryPurgeConfiguration(DirectoryPurgeConfiguration dirPurge)
                                                           throws PurgeConfigurationServiceException
Specified by:
addDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

addRepositoryPurgeConfiguration

public RepositoryPurgeConfiguration addRepositoryPurgeConfiguration(RepositoryPurgeConfiguration repoPurge)
                                                             throws PurgeConfigurationServiceException
Specified by:
addRepositoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getDefaultPurgeConfigurationForRepository

public RepositoryPurgeConfiguration getDefaultPurgeConfigurationForRepository(int repositoryId)
Specified by:
getDefaultPurgeConfigurationForRepository in interface PurgeConfigurationService

getAllDirectoryPurgeConfigurations

public List<DirectoryPurgeConfiguration> getAllDirectoryPurgeConfigurations()
Specified by:
getAllDirectoryPurgeConfigurations in interface PurgeConfigurationService

getAllRepositoryPurgeConfigurations

public List<RepositoryPurgeConfiguration> getAllRepositoryPurgeConfigurations()
Specified by:
getAllRepositoryPurgeConfigurations in interface PurgeConfigurationService

getAllPurgeConfigurations

public List<AbstractPurgeConfiguration> getAllPurgeConfigurations()
Specified by:
getAllPurgeConfigurations in interface PurgeConfigurationService

getDefaultPurgeConfigurationForDirectoryType

public DirectoryPurgeConfiguration getDefaultPurgeConfigurationForDirectoryType(String directoryType)
Specified by:
getDefaultPurgeConfigurationForDirectoryType in interface PurgeConfigurationService

getDirectoryPurgeConfigurationsByLocation

public List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsByLocation(String location)
Specified by:
getDirectoryPurgeConfigurationsByLocation in interface PurgeConfigurationService

getDirectoryPurgeConfigurationsBySchedule

public List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsBySchedule(int scheduleId)
Specified by:
getDirectoryPurgeConfigurationsBySchedule in interface PurgeConfigurationService

getEnableDirectoryPurgeConfigurationsBySchedule

public List<DirectoryPurgeConfiguration> getEnableDirectoryPurgeConfigurationsBySchedule(int scheduleId)
Specified by:
getEnableDirectoryPurgeConfigurationsBySchedule in interface PurgeConfigurationService

getRepositoryPurgeConfigurationsByRepository

public List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsByRepository(int repositoryId)
Specified by:
getRepositoryPurgeConfigurationsByRepository in interface PurgeConfigurationService

getRepositoryPurgeConfigurationsBySchedule

public List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsBySchedule(int scheduleId)
Specified by:
getRepositoryPurgeConfigurationsBySchedule in interface PurgeConfigurationService

getEnableRepositoryPurgeConfigurationsBySchedule

public List<RepositoryPurgeConfiguration> getEnableRepositoryPurgeConfigurationsBySchedule(int scheduleId)
Specified by:
getEnableRepositoryPurgeConfigurationsBySchedule in interface PurgeConfigurationService

removeDirectoryPurgeConfiguration

public void removeDirectoryPurgeConfiguration(DirectoryPurgeConfiguration purgeConfig)
                                       throws PurgeConfigurationServiceException
Specified by:
removeDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

removeRepositoryPurgeConfiguration

public void removeRepositoryPurgeConfiguration(RepositoryPurgeConfiguration purgeConfig)
                                        throws PurgeConfigurationServiceException
Specified by:
removeRepositoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

updateDirectoryPurgeConfiguration

public void updateDirectoryPurgeConfiguration(DirectoryPurgeConfiguration purgeConfig)
                                       throws PurgeConfigurationServiceException
Specified by:
updateDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

updateRepositoryPurgeConfiguration

public void updateRepositoryPurgeConfiguration(RepositoryPurgeConfiguration purgeConfig)
                                        throws PurgeConfigurationServiceException
Specified by:
updateRepositoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getDirectoryPurgeConfiguration

public DirectoryPurgeConfiguration getDirectoryPurgeConfiguration(int purgeConfigId)
                                                           throws PurgeConfigurationServiceException
Specified by:
getDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getRepositoryPurgeConfiguration

public RepositoryPurgeConfiguration getRepositoryPurgeConfiguration(int purgeConfigId)
                                                             throws PurgeConfigurationServiceException
Specified by:
getRepositoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getPurgeConfiguration

public AbstractPurgeConfiguration getPurgeConfiguration(int purgeConfigId)
Specified by:
getPurgeConfiguration in interface PurgeConfigurationService

getManagedRepositoryContent

public RepositoryManagedContent getManagedRepositoryContent(int repositoryId)
                                                     throws PurgeConfigurationServiceException
Specified by:
getManagedRepositoryContent in interface PurgeConfigurationService
Returns:
Throws:
PurgeConfigurationServiceException

getAllDistributedDirectoryPurgeConfigurations

public List<DistributedDirectoryPurgeConfiguration> getAllDistributedDirectoryPurgeConfigurations()
Specified by:
getAllDistributedDirectoryPurgeConfigurations in interface PurgeConfigurationService

addDistributedDirectoryPurgeConfiguration

public DistributedDirectoryPurgeConfiguration addDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration dirPurge)
                                                                                 throws PurgeConfigurationServiceException
Specified by:
addDistributedDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getDistributedDirectoryPurgeConfiguration

public DistributedDirectoryPurgeConfiguration getDistributedDirectoryPurgeConfiguration(int dirPurgeId)
                                                                                 throws PurgeConfigurationServiceException
Specified by:
getDistributedDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

updateDistributedDirectoryPurgeConfiguration

public void updateDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration dirPurge)
                                                  throws PurgeConfigurationServiceException
Specified by:
updateDistributedDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

removeDistributedDirectoryPurgeConfiguration

public void removeDistributedDirectoryPurgeConfiguration(DistributedDirectoryPurgeConfiguration purgeConfig)
                                                  throws PurgeConfigurationServiceException
Specified by:
removeDistributedDirectoryPurgeConfiguration in interface PurgeConfigurationService
Throws:
PurgeConfigurationServiceException

getEnableDistributedDirectoryPurgeConfigurationsBySchedule

public List<DistributedDirectoryPurgeConfiguration> getEnableDistributedDirectoryPurgeConfigurationsBySchedule(int scheduleId)
Specified by:
getEnableDistributedDirectoryPurgeConfigurationsBySchedule in interface PurgeConfigurationService

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.