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->find( COLLECTION, ROLE )
See find 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.

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');