Apache::Sling::ContentUtil - Methods to generate and check HTTP requests required for manipulating content.
Utility library returning strings representing Rest queries that perform content operations in the system.
use Apache::Sling::ContentUtil;
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.
Returns a textual representation of the request needed to add content to the system.
Check result of adding content.
Returns a textual representation of the request needed to copy content within the system.
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.
Returns a textual representation of the request needed to delete content from the system.
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.
Returns a textual representation of the request needed to test whether content exists in the system.
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.
Returns a textual representation of the request needed to retrieve the full JSON representation of a piece of content in the system.
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.
Returns a textual representation of the request needed to move content within the system.
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.
Returns a textual representation of the request needed to upload a file to the system.
Check result of system upload_file.
None required.
n/a
0 on success.
None known.
Daniel David Parry <perl@ddp.me.uk>
LICENSE: http://dev.perl.org/licenses/artistic.html
COPYRIGHT: (c) 2011 Daniel David Parry <perl@ddp.me.uk>
To install Apache::Sling, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Sling
CPAN shell
perl -MCPAN -e shell install Apache::Sling
For more information on module installation, please visit the detailed CPAN module installation guide.