Daniel David Parry > Apache-Sling > Apache::Sling::ContentUtil

Download:
Apache-Sling-0.27.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.27   Source  

NAME ^

Apache::Sling::ContentUtil - Methods to generate and check HTTP requests required for manipulating content.

ABSTRACT ^

Utility library returning strings representing Rest queries that perform content operations in the system.

METHODS ^

USAGE ^

use Apache::Sling::ContentUtil;

DESCRIPTION ^

ContentUtil perl library essentially provides the request strings needed to interact with content functionality exposed over the system rest interfaces.

Each interaction has a setup and eval method. setup provides the request, whilst eval interprets the response to give further information about the result of performing the request.

METHODS ^

add_setup

Returns a textual representation of the request needed to add content to the system.

add_eval

Check result of adding content.

copy_setup

Returns a textual representation of the request needed to copy content within the system.

copy_eval

Inspects the result returned from issuing the request generated in copy_setup returning true if the result indicates the content was copied successfully, else false.

delete_setup

Returns a textual representation of the request needed to delete content from the system.

delete_eval

Inspects the result returned from issuing the request generated in delete_setup returning true if the result indicates the content was deleted successfully, else false.

exists_setup

Returns a textual representation of the request needed to test whether content exists in the system.

exists_eval

Inspects the result returned from issuing the request generated in exists_setup returning true if the result indicates the content does exist in the system, else false.

full_json_setup

Returns a textual representation of the request needed to retrieve the full JSON representation of a piece of content in the system.

full_json_eval

Inspects the result returned from issuing the request generated in full_json_setup returning true if the result indicates the full JSON representation was returned successfully else false.

move_setup

Returns a textual representation of the request needed to move content within the system.

move_eval

Inspects the result returned from issuing the request generated in move_setup returning true if the result indicates the content was moved successfully, else false.

upload_file_setup

Returns a textual representation of the request needed to upload a file to the system.

upload_file_eval

Check result of system upload_file.

REQUIRED ARGUMENTS ^

None required.

OPTIONS ^

n/a

DIAGNOSTICS ^

n/a

EXIT STATUS ^

0 on success.

CONFIGURATION ^

None required.

DEPENDENCIES ^

INCOMPATIBILITIES ^

None known.

BUGS AND LIMITATIONS ^

None known.

AUTHOR ^

Daniel David Parry <perl@ddp.me.uk>

LICENSE AND COPYRIGHT ^

LICENSE: http://dev.perl.org/licenses/artistic.html

COPYRIGHT: (c) 2011 Daniel David Parry <perl@ddp.me.uk>

syntax highlighting: