Added the Asset Discovery web service content handler.

This commit is contained in:
JT Smith 2008-10-13 16:53:19 +00:00
parent 3119574e01
commit bae51e6ed5
3 changed files with 164 additions and 0 deletions

View file

@ -34,9 +34,24 @@ addDataFormDataIndexes($session);
addThingyColumns( $session );
addCommentsAspect( $session );
addCommentsAspectToWiki( $session );
addAssetDiscoveryService( $session );
finish($session); # this line required
#----------------------------------------------------------------------------
sub addAssetDiscoveryService {
my $session = shift;
print "\tAdding asset discovery service..." unless $quiet;
my @handlers;
foreach my $handler (@{$session->config->get("contentHandlers")}) {
if ($handler eq "WebGUI::Content::Operation") {
push @handlers, 'WebGUI::Content::AssetDiscovery';
}
push @handlers, $handler;
}
print "Done.\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub addCommentsAspectToWiki {
my $session = shift;