The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::DRI::Data::Contact::NO - Handle .NO contact data for Net::DRI

DESCRIPTION

This subclass of Net::DRI::Data::Contact adds accessors and validation for .NO specific data.

METHODS

The following accessors/mutators can be called in chain, as they all return the object itself.

type()

Mandatory, must be set for all contacts. Specify what type of contact to register. Value must be one of: 'person', 'organization' or 'role'.

Example: $co->type('organization')

identity()

Currently valid for type='organization' only. Must then be set to specify the organization number in Brønnøysund, the Norwegian Business Register.

Example: $co->identity({type=>'organizationNumber', value=>'987654321'});

mobilephone()

Optional. Set a mobile phone number for the contact.

Example: $co->mobilephone('+47.123456780')

organization()

Optional. Set one or more organization-elements which specify organizations which the contact belongs to. The value should be the local contact id of an organization object.

This element can only be used for role and person contacts.

$co->organization('EFA12O');

rolecontact()

Optional. Set one or more roleContact-elements which specify persons which belongs to a role contact. The value should be the local contact id of a person object.

This element can only be used for role contacts.

Example: $co->rolecontact(['JD12P', 'JD13P']);

xemail()

Optional. Set one or more email-elements which specify email addresses in addition to the mandatory email element in the standard contact create command.

Example: $co->xemail(['xtra1@example.no', 'xtra2@example.no']);

xdisclose()

Optional. A disclose-element which must contain the child element mobilePhone. This element notes the clients preference to allow or restrict disclosure of the mobile phone number. If not present, the servers stated data collection policy is used.

Example: $co->xdisclose({mobilePhone=>0});

SUPPORT

For now, support questions should be sent to:

<netdri@dotandco.com>

Please also see the SUPPORT file in the distribution.

SEE ALSO

http://www.dotandco.com/services/software/Net-DRI/

AUTHOR

Trond Haugen, <info@norid.no>.

COPYRIGHT

Copyright (c) 2008 UNINETT Norid AS, <http://www.norid.no>, Trond Haugen <info@norid.no>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See the LICENSE file that comes with this distribution for more details.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 60:

Non-ASCII character seen before =encoding in 'Brønnøysund,'. Assuming CP1252