Added the Asset Discovery web service content handler.
This commit is contained in:
parent
3119574e01
commit
bae51e6ed5
3 changed files with 164 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue