diff options
Diffstat (limited to 'lib/DeWeave/BO')
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Base.pm | 26 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Bookmark.pm | 44 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Folder.pm | 20 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Livemark.pm | 20 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Microsummary.pm | 20 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Query.pm | 20 | ||||
-rw-r--r-- | lib/DeWeave/BO/Bookmark/Separator.pm | 14 |
7 files changed, 164 insertions, 0 deletions
diff --git a/lib/DeWeave/BO/Bookmark/Base.pm b/lib/DeWeave/BO/Bookmark/Base.pm new file mode 100644 index 0000000..98ebfc1 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Base.pm @@ -0,0 +1,26 @@ +package DeWeave::BO::Bookmark::Base; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str); + +extends 'DeWeave::EDO'; + +has type => ( + isa => Str, + required => 1, + is => 'ro', +); + +has parentid => ( + isa => Str, + required => 0, + is => 'ro', +); + +has parentName => ( + isa => Str, + required => 0, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Bookmark.pm b/lib/DeWeave/BO/Bookmark/Bookmark.pm new file mode 100644 index 0000000..7b235b3 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Bookmark.pm @@ -0,0 +1,44 @@ +package DeWeave::BO::Bookmark::Bookmark; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str ArrayRef Bool); + +extends 'DeWeave::BO::Bookmark::Base'; + +has title => ( + isa => Str, + required => 1, + is => 'ro', +); + +has bmkUri => ( + isa => Str, + required => 1, + is => 'ro', +); + +has description => ( + isa => Str, + required => 0, + is => 'ro', +); + +has loadInSidebar => ( + isa => Bool, + required => 1, + is => 'ro', +); + +has tags => ( + isa => ArrayRef[Str], + required => 0, + is => 'ro', +); + +has keyword => ( + isa => Str, + required => 0, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Folder.pm b/lib/DeWeave/BO/Bookmark/Folder.pm new file mode 100644 index 0000000..3f77ff6 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Folder.pm @@ -0,0 +1,20 @@ +package DeWeave::BO::Bookmark::Folder; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str ArrayRef); + +extends 'DeWeave::BO::Bookmark::Base'; + +has title => ( + isa => Str, + required => 1, + is => 'ro', +); + +has children => ( + isa => ArrayRef[Str], + required => 1, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Livemark.pm b/lib/DeWeave/BO/Bookmark/Livemark.pm new file mode 100644 index 0000000..5737763 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Livemark.pm @@ -0,0 +1,20 @@ +package DeWeave::BO::Bookmark::Livemark; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str); + +extends 'DeWeave::BO::Bookmark::Folder'; + +has siteUri => ( + isa => Str, + required => 1, + is => 'ro', +); + +has feedUri => ( + isa => Str, + required => 1, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Microsummary.pm b/lib/DeWeave/BO/Bookmark/Microsummary.pm new file mode 100644 index 0000000..51220ac --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Microsummary.pm @@ -0,0 +1,20 @@ +package DeWeave::BO::Bookmark::Microsummary; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str); + +extends 'DeWeave::BO::Bookmark::Bookmark'; + +has generatorUri => ( + isa => Str, + required => 1, + is => 'ro', +); + +has staticTitle => ( + isa => Str, + required => 1, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Query.pm b/lib/DeWeave/BO/Bookmark/Query.pm new file mode 100644 index 0000000..356384c --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Query.pm @@ -0,0 +1,20 @@ +package DeWeave::BO::Bookmark::Query; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str); + +extends 'DeWeave::BO::Bookmark::Bookmark'; + +has folderName => ( + isa => Str, + required => 1, + is => 'ro', +); + +has queryId => ( + isa => Str, + required => 0, + is => 'ro', +); + +1; diff --git a/lib/DeWeave/BO/Bookmark/Separator.pm b/lib/DeWeave/BO/Bookmark/Separator.pm new file mode 100644 index 0000000..860be61 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Separator.pm @@ -0,0 +1,14 @@ +package DeWeave::BO::Bookmark::Separator; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str); + +extends 'DeWeave::BO::Bookmark::Base'; + +has pos => ( + isa => Str, + required => 1, + is => 'ro', +); + +1; |