User::Identity::Archive3pm
Base class for archiving user information
Usage
use User::Identity::Archive::Plain;my $friends = User::Identity::Archive::Plain->new('friends');$friends->from(\*FH);$friends->from('.friends');
Inheritance
User::Identity::Archiveis a User::Identity::ItemUser::Identity::Archive is extended byUser::Identity::Archive::Plain
Overview
An archive stores collections. It depends on the type of archive how and where that is done. Some archivers may limit the kinds of selections which can be stored.
Extends "DESCRIPTION" in User::Identity::Item.
Overloaded
Methods
Extends "METHODS" in User::Identity::Item.
Constructors
Extends "Constructors" in User::Identity::Item.
- $class->
new( [$name], %options ) -
-Option --Defined in --Defaultdescription User::Identity::Item undeffrom undefname User::Identity::Item <required>parent User::Identity::Item undef- description => STRING
- from => $filehandle|$file
- name => STRING
- parent => OBJECT
Attributes
Extends "Attributes" in User::Identity::Item.
$obj->
|
Inherited, see "Attributes" in User::Identity::Item |
|---|---|
$obj->
|
Inherited, see "Attributes" in User::Identity::Item |
Collections
Extends "Collections" in User::Identity::Item.
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
|---|---|
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
$any->
|
Inherited, see "Collections" in User::Identity::Item |
$obj->
|
Inherited, see "Collections" in User::Identity::Item |
Searching
Extends "Searching" in User::Identity::Item.
- $obj->
find($collection, $role) -
Inherited, see "Searching" in User::Identity::Item
Access to the archive
- $obj->
from($source, %options) -
Read definitions from the specified
$source, which usually can be a filehandle or filename. The syntax used in the information$sourceis archiver dependent.Not all archivers implement
from(), so you may want to check withUNIVERSAL::can()beforehand.» example:
use User::Identity::Archive::Some;my $a = User::Identity::Archive::Some->new('xyz');$a->from(\*STDIN) if $a->can('from');
Diagnostics
- Error: cannot load collection module for $type ($class): $@
-
Either the specified
$typedoes not exist, or that module named$classreturns compilation errors. If the type as specified in the warning is not the name of a package, you specified a nickname which was not defined. Maybe you forgot the 'require' the package which defines the nickname. Cast byaddCollection()
- Error: nvalid collection $name.
-
The collection with
$namedoes not exist and can not be created. Cast byadd()
- Error: this $object is not a collection.
-
Cast by
addCollection()
Releases
12 releases since Debian 3.1 (Sarge); the text changed 9 times.