NAME

XML::GSA::Group - A class that represents a group in gsa xml

VERSION

Version 0.06

METHODS

new( $params )

Create a new XML::GSA::Group object:

my $gsa = XML::GSA->new('records' => [], 'action' => 'add');

Arguments of this method are an anonymous hash of parameters:

records

An arrayref of hashrefs where each of the hashrefs represents a gsa xml record

action

A string that can be 'add' or 'delete' that defines what this group will do to the gsa indexer

create( $feed )

Receives an instance of XML::GSA so that when creating the group, one know to what feed will it belong. This is necessary because the type of feed influences the type of parameters acccepted by the group.

action

Getter or the action attribute

xml

Getter for the xml generated by the `create` method.

to_string

Getter for the xml generated by the `create` method.

records

Getter for the array of groups records added to this class

writer

Getter for the XML::Writer object used in this class to create the xml

AUTHOR

Shemahmforash, <shemahmforash at gmail.com>

BUGS

Please report any bugs or feature requests to bug-xml-gsa at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-GSA. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc XML::GSA

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2013-2014 Shemahmforash.

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 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.