OVERLOADED

METHODS

Constructors

$class->new( [$name], %options )
Option Defined in Default

description

User::Identity::Item

undef

from

undef

name

User::Identity::Item

<required>

parent

User::Identity::Item

undef

description => STRING
from => FILEHANDLE|FILENAME
name => STRING
parent => OBJECT

Attributes

$obj->description
See description in User::Identity::Item.
$obj->name( [$newname] )
See name in User::Identity::Item.

Collections

$obj->add( $collection, $role )
See add in User::Identity::Item.
$obj->addCollection( $object | <[$type], %options> )
See addCollection in User::Identity::Item.
$obj->collection( $name )
See collection in User::Identity::Item.
$obj->parent( [$parent] )
See parent in User::Identity::Item.
$obj->removeCollection( $object|$name )
See removeCollection in User::Identity::Item.
$obj->type
$class->type
See type in User::Identity::Item.
$obj->user
See user in User::Identity::Item.

Searching

$obj->find( $collection, $role )
See find 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 $source is archiver dependent.

Not all archivers implement from(), so you may want to check with UNIVERSAL::can() beforehand.

» Example:
 use User::Identity::Archive::Some;
 my $a = User::Identity::Archive::Some->new('xyz');
 $a->from(\*STDIN) if $a->can('from');