Catmandu-Store-AAT
view release on metacpan or search on metacpan
lib/Catmandu/Store/AAT/Bag.pm view on Meta::CPAN
package Catmandu::Store::AAT::Bag;
use strict;
use warnings;
use Moo;
use Catmandu::Sane;
use Catmandu::Store::AAT::API;
with 'Catmandu::Bag';
sub generator {
my $self = shift;
}
sub get {
my ($self, $id) = @_;
my $api = Catmandu::Store::AAT::API->new(term => $id, language => $self->store->lang);
return $api->id();
}
sub add {
my ($self, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Adding item to store not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating item in store not supported.'
);
}
sub delete {
my ($self, $id) = @_;
Catmandu::NotImplemented->throw(
message => 'Deleting item from store not supported.'
);
}
sub delete_all {
my $self = shift;
Catmandu::NotImplemented->throw(
message => 'Deleting items from store not supported.'
);
}
1;
__END__
( run in 2.139 seconds using v1.01-cache-2.11-cpan-97f6503c9c8 )