From 7caa3e373806a480601e41d5baa8bfc5d8e5acdf Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 16 Feb 2010 11:00:47 -0800 Subject: [PATCH] Move AssetRole to Role::Asset, and update all client modules. --- lib/WebGUI/Asset/Event.pm | 2 +- lib/WebGUI/Asset/File.pm | 2 +- lib/WebGUI/Asset/File/GalleryFile.pm | 2 +- lib/WebGUI/Asset/Post.pm | 4 ++-- lib/WebGUI/Asset/Story.pm | 2 +- lib/WebGUI/Asset/WikiPage.pm | 2 +- lib/WebGUI/Asset/Wobject/Article.pm | 2 +- lib/WebGUI/Asset/Wobject/GalleryAlbum.pm | 2 +- lib/WebGUI/{AssetRole => Role/Asset}/AlwaysHidden.pm | 6 +++--- .../{AssetRole => Role/Asset}/SetStoragePermissions.pm | 6 +++--- 10 files changed, 15 insertions(+), 15 deletions(-) rename lib/WebGUI/{AssetRole => Role/Asset}/AlwaysHidden.pm (87%) rename lib/WebGUI/{AssetRole => Role/Asset}/SetStoragePermissions.pm (90%) diff --git a/lib/WebGUI/Asset/Event.pm b/lib/WebGUI/Asset/Event.pm index 39964c3f4..c08ad0266 100644 --- a/lib/WebGUI/Asset/Event.pm +++ b/lib/WebGUI/Asset/Event.pm @@ -133,7 +133,7 @@ property userDefined5 => ( default => '', ); -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; use WebGUI::DateTime; diff --git a/lib/WebGUI/Asset/File.pm b/lib/WebGUI/Asset/File.pm index 83aa18ee8..53727b38f 100644 --- a/lib/WebGUI/Asset/File.pm +++ b/lib/WebGUI/Asset/File.pm @@ -56,7 +56,7 @@ property templateId => ( namespace => "FileAsset", ); -with 'WebGUI::AssetRole::SetStoragePermissions'; +with 'WebGUI::Role::Asset::SetStoragePermissions'; use WebGUI::Storage; use WebGUI::SQL; diff --git a/lib/WebGUI/Asset/File/GalleryFile.pm b/lib/WebGUI/Asset/File/GalleryFile.pm index 93a744fd3..b6a62a752 100644 --- a/lib/WebGUI/Asset/File/GalleryFile.pm +++ b/lib/WebGUI/Asset/File/GalleryFile.pm @@ -39,7 +39,7 @@ for my $i ( 1 .. 5 ) { ); } -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; use Carp qw( croak confess ); use URI::Escape; diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index a4d30037d..4c12cd72b 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -73,9 +73,9 @@ property content => ( default => undef, ); -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; -with 'WebGUI::AssetRole::SetStoragePermissions'; +with 'WebGUI::Role::Asset::SetStoragePermissions'; use WebGUI::Asset::Template; diff --git a/lib/WebGUI/Asset/Story.pm b/lib/WebGUI/Asset/Story.pm index da2af33d8..8c8193b24 100644 --- a/lib/WebGUI/Asset/Story.pm +++ b/lib/WebGUI/Asset/Story.pm @@ -67,7 +67,7 @@ property photo => ( noFormPost => 1, ); -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; use WebGUI::Utility; use WebGUI::International; diff --git a/lib/WebGUI/Asset/WikiPage.pm b/lib/WebGUI/Asset/WikiPage.pm index 7785ede25..458e2f292 100644 --- a/lib/WebGUI/Asset/WikiPage.pm +++ b/lib/WebGUI/Asset/WikiPage.pm @@ -55,7 +55,7 @@ property isFeatured => ( noFormPost => 1, ); -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; use WebGUI::International; use WebGUI::Utility; diff --git a/lib/WebGUI/Asset/Wobject/Article.pm b/lib/WebGUI/Asset/Wobject/Article.pm index d092afa7c..282c7ed32 100644 --- a/lib/WebGUI/Asset/Wobject/Article.pm +++ b/lib/WebGUI/Asset/Wobject/Article.pm @@ -73,7 +73,7 @@ sub _storageid_deleteFileUrl { return shift->session->url->page("func=deleteFile;filename="); } -with 'WebGUI::AssetRole::SetStoragePermissions'; +with 'WebGUI::Role::Asset::SetStoragePermissions'; use WebGUI::Storage; use WebGUI::HTML; diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index 9612ab772..f6ae132fc 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -41,7 +41,7 @@ for my $i ( 1 .. 5 ) { ); } -with 'WebGUI::AssetRole::AlwaysHidden'; +with 'WebGUI::Role::Asset::AlwaysHidden'; use Carp qw( croak ); use File::Find; diff --git a/lib/WebGUI/AssetRole/AlwaysHidden.pm b/lib/WebGUI/Role/Asset/AlwaysHidden.pm similarity index 87% rename from lib/WebGUI/AssetRole/AlwaysHidden.pm rename to lib/WebGUI/Role/Asset/AlwaysHidden.pm index 72c5f66f5..6493f8dfe 100644 --- a/lib/WebGUI/AssetRole/AlwaysHidden.pm +++ b/lib/WebGUI/Role/Asset/AlwaysHidden.pm @@ -1,4 +1,4 @@ -package WebGUI::AssetRole::AlwaysHidden; +package WebGUI::Role::Asset::AlwaysHidden; =head1 LEGAL @@ -16,7 +16,7 @@ package WebGUI::AssetRole::AlwaysHidden; =head1 NAME -Package WebGUI::AssetRole::AlwaysHidden +Package WebGUI::Role::Asset::AlwaysHidden =head1 DESCRIPTION @@ -24,7 +24,7 @@ Asset Role that guarantees that the isHidden property is always 1. =head1 SYNOPSIS -with WebGUI::AssetRole::AlwaysHidden; +with WebGUI::Role::Asset::AlwaysHidden; =cut diff --git a/lib/WebGUI/AssetRole/SetStoragePermissions.pm b/lib/WebGUI/Role/Asset/SetStoragePermissions.pm similarity index 90% rename from lib/WebGUI/AssetRole/SetStoragePermissions.pm rename to lib/WebGUI/Role/Asset/SetStoragePermissions.pm index 25cfddf21..417a0cd25 100644 --- a/lib/WebGUI/AssetRole/SetStoragePermissions.pm +++ b/lib/WebGUI/Role/Asset/SetStoragePermissions.pm @@ -1,4 +1,4 @@ -package WebGUI::AssetRole::SetStoragePermissions; +package WebGUI::Role::Asset::SetStoragePermissions; =head1 LEGAL @@ -16,7 +16,7 @@ package WebGUI::AssetRole::SetStoragePermissions; =head1 NAME -Package WebGUI::AssetRole::SetStoragePermissions +Package WebGUI::Role::Asset::SetStoragePermissions =head1 DESCRIPTION @@ -25,7 +25,7 @@ the file permissions on storage locations for an Asset. =head1 SYNOPSIS -with WebGUI::AssetRole::SetStoragePermissions; +with WebGUI::Role::Asset::SetStoragePermissions; =cut