OVERLOADED

overload: @{}
See @{} in User::Identity::Collection.
overload: stringification
See stringification in User::Identity::Collection.

METHODS

Constructors

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

description

User::Identity::Item

undef

item_type

User::Identity::Collection

Mail::Identity

name

User::Identity::Item

'emails'

parent

User::Identity::Item

undef

roles

User::Identity::Collection

undef

description => STRING
item_type => CLASS
name => STRING
parent => OBJECT
roles => ROLE|ARRAY

Attributes

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

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.

Maintaining roles

$obj->addRole( $role| <[$name],%options> | ARRAY )
See addRole in User::Identity::Collection.
$obj->removeRole( $role|$name )
See removeRole in User::Identity::Collection.
$obj->renameRole( <$role|$oldname>, $newname )
See renameRole in User::Identity::Collection.
$obj->sorted
See sorted in User::Identity::Collection.

Searching

$obj->find( $name|CODE|undef )
See find in User::Identity::Collection.