Group
Extension

Matches 35359

Socialtext-Resting ( K/KE/KEVINJ/Socialtext-Resting-0.38.tar.gz, KEVINJ, 2012; MetaCPAN )
Socialtext-Resting/lib/Socialtext/Resting.pm ( view source; MetaCPAN )
 warnings;

use URI::Escape;
use LWP::UserAgent;
use HTTP::Request;
use Class::Field 'field';
use JSON::XS;

use Readonly;

our $VERSION = '0.38';

=head1 NAME

Socialtext::Resting - module for access
nt';
field 'query';
field 'etag_cache' => {};
field 'http_header_debug';
field 'response';
field 'json_verbose';
field 'cookie';
field 'agent_string';
field 'on_behalf_of';
field 'additional_headers' 
ommon representations:

=over 4

=item text/x.socialtext-wiki

=item text/html

=item application/json

=back

=head2 get_page

    $Rester->workspace('wikiname');
    $Rester->get_page('page_name');
App-RecordStream ( B/BE/BERNARD/App-RecordStream-3.7.3.tar.gz, BERNARD, 2012; MetaCPAN )
App-RecordStream/src/fast-recs-collate/json.h ( view source; MetaCPAN )

char json_bc[] =
"\102\103\107\110\001\020\000\000\020\000\000\000\023\004\211\214\001\124\250\210"
"\010\100\105\106\001\102\144\204\034\040\104\210\314\004\201\042\043\200\311\231"
"\040\140\144\00
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/ContentUtil.pm ( view source; MetaCPAN )
se_url/$remote_dest.json";
}

#}}}

#{{{sub exists_eval

sub exists_eval {
    my ($res) = @_;
    return ( ${$res}->code eq '200' );
}

#}}}

#{{{sub full_json_setup

sub full_json_setup {
    my ( $
'No position or ID to retrieve full json for specified!';
    }
    return "get $base_url/$remote_dest.infinity.json";
}

#}}}

#{{{sub full_json_eval

sub full_json_eval {
    my ($res) = @_;
    ret
alse.

=head2 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.

=head2 full_json_eval

Inspects the
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/User.pm ( view source; MetaCPAN )
          - view the full script documentation.
 --me or -m                          - me returns json representing authenticated user.
 --new-password or -n (newPassword)  - Used with -c, new passwor
se verbosity of output.
 --view or -V (actOnUser)            - view details for specified user in json format.

Options may be merged together. -- stops processing of options.
Space is not required be
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/Authz.pm ( view source; MetaCPAN )
s;
}

#}}}

#{{{sub get_acl

=pod

=head2 get_acl

Return the access control list for the node in JSON format

=cut

sub get_acl {
    my ( $content, $remoteDest ) = @_;
    my $res = Apache::Sling::R
 read and write privileges to the g-testgroup principal, log the results, including the resulting JSON, to authz.log:

perl $0 -U http://localhost:8080 -r /testdata -P g-testgroup --read --write -u ad
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/scripts/sling.pl ( view source; MetaCPAN )
che::Sling::Content;
use Apache::Sling::GroupMember;
use Apache::Sling::Group;
use Apache::Sling::JsonQueryServlet;
use Apache::Sling::LDAPSynch;
use Apache::Sling::User;

# Fail if args are empty or 
he::Sling::GroupMember',
    'group',              'Apache::Sling::Group',
    'json_query_servlet', 'Apache::Sling::JsonQueryServlet',
    'ldap_synch',         'Apache::Sling::LDAPSynch',
    'user'
run group membership related actions
 group              - run group related actions
 json_query_servlet - run json query servlet related actions
 ldap_synch         - run ldap synchronization related
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/Content.pm ( view source; MetaCPAN )
ase verbosity of output.
 --view or -V (actOnGroup)         - view details for specified group in json format.

Options may be merged together. -- stops processing of options.
Space is not required be
to v2:

 perl $0 -U http://localhost:8080 -a -r /test -P p1=v1 -P p2=v2 -u admin -p admin

* View json for node at /test:

 perl $0 -U http://localhost:8080 -V -r /test

* Check whether node at /test 
ontent->set_results( "$message", $res );
    return $success;
}

#}}}

#{{{sub view_full_json
sub view_full_json {
    my ( $content, $remote_dest ) = @_;
    if ( !defined $remote_dest ) {
        cr
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/Group.pm ( view source; MetaCPAN )
up;

use 5.008001;
use strict;
use warnings;
use Carp;
use Getopt::Long qw(:config bundling);
use JSON;
use Text::CSV;
use Apache::Sling;
use Apache::Sling::GroupUtil;
use Apache::Sling::Print;
use Ap
ase verbosity of output.
 --view or -V (actOnGroup)         - view details for specified group in json format.

Options may be merged together. -- stops processing of options.
Space is not required be
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/GroupUtil.pm ( view source; MetaCPAN )
ck existence of defined!';
    }
    return "get $base_url/system/userManager/group/$act_on_group.json";
}

#}}}

#{{{sub exists_eval

sub exists_eval {
    my ($res) = @_;
    return ( ${$res}->code 
 group to view defined!'; }
    return "get $base_url/system/userManager/group/$act_on_group.tidy.json";
}

#}}}

#{{{sub view_eval

sub view_eval {
    my ($res) = @_;
    return ( ${$res}->code eq '
Sakai-Nakamura ( X/XE/XEONTIME/Sakai-Nakamura-0.13.tar.gz, XEONTIME, 2012; MetaCPAN )
Sakai-Nakamura/lib/Sakai/Nakamura/Content.pm ( view source; MetaCPAN )
perl -w

package Sakai::Nakamura::Content;

use 5.008008;
use strict;
use warnings;
use Carp;
use JSON;
use Getopt::Long qw(:config bundling);
use Pod::Usage;
use Sakai::Nakamura;
use Sakai::Nakamura:
e verbosity of output.
 --view or -V (actOnContent)       - view details for specified content in json format.
 --view-copyright (remoteNode)     - view copyright for specified remote content.
 --view
h":"([^"]*)"/x )[0];
    if ( !defined $content_path ) {
        croak 'Content path not found in JSON response to file upload';
    }
    $content_path = "p/$content_path";
    my $content_filename =
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/AuthzUtil.pm ( view source; MetaCPAN )
l_setup

Returns a textual representation of the request needed to retrieve the ACL for
a node in JSON format.

=cut

sub get_acl_setup {
    my ( $base_url, $remote_dest ) = @_;
    croak "No base ur
to view ACL for defined!" unless defined $remote_dest;
    return "get $base_url/$remote_dest.acl.json";
}

#}}}

#{{{sub get_acl_eval

=pod

=head2 get_acl_eval

Inspects the result returned from iss
e_setup

Returns a textual representation of the request needed to retrieve the ACL for
a node in JSON format.

=cut

sub delete_setup {
    my ( $base_url, $remote_dest, $principal ) = @_;
    croak 
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/GroupMember.pm ( view source; MetaCPAN )
er;

use 5.008001;
use strict;
use warnings;
use Carp;
use Getopt::Long qw(:config bundling);
use JSON;
use Text::CSV;
use Apache::Sling;
use Apache::Sling::GroupUtil;
use Apache::Sling::GroupMemberUt
g::GroupUtil::view_eval($res);
    my $message;
    if ($success) {
        my $group_info = from_json( ${$res}->content );
        my $is_member  = 0;
        foreach my $member ( @{ $group_info->{'m
roupUtil::view_eval($res);
    my $message;
    if ($success) {
        my $group_info     = from_json( ${$res}->content );
        my $number_members = @{ $group_info->{'members'} };
        my $memb
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/JsonQueryServletUtil.pm ( view source; MetaCPAN )
#!/usr/bin/perl -w

package Apache::Sling::JsonQueryServletUtil;

use 5.008001;
use strict;
use warnings;
use Carp;
use Apache::Sling::URL;

require Exporter;

use base qw(Exporter);

our @EXPORT_OK =
 ( !defined $base_url ) { croak 'No base url defined!'; }
    return "get $base_url/content.query.json?queryType=xpath&statement=//*";
}

#}}}

#{{{sub all_nodes_eval

sub all_nodes_eval {
    my ($re
s) = @_;
    return ( ${$res}->code eq '200' );
}

#}}}

1;

__END__

=head1 NAME

Apache::Sling::JsonQueryServletUtil - Methods to generate and check HTTP requests required for querying.

=head1 ABST
Apache-Sling ( X/XE/XEONTIME/Apache-Sling-0.27.tar.gz, XEONTIME, 2012; MetaCPAN )
Apache-Sling/lib/Apache/Sling/UserUtil.pm ( view source; MetaCPAN )
existence of defined!';
    }
    return "get $base_url/system/userManager/user/$act_on_user.tidy.json";
}

#}}}

#{{{sub exists_eval

sub exists_eval {
    my ($res) = @_;
    return ( ${$res}->code 
Module-Install-Authority ( B/BO/BOBTFISH/Module-Install-Authority-0.02.tar.gz, BOBTFISH, 2012; MetaCPAN )
Module-Install-Authority/lib/Module/Install/Authority.pm ( view source; MetaCPAN )
=head1 METHODS

=head2 authority ($pause_id)

Adds an C<x_authority> key to your META.yml or META.json

=head1 BUGS

This module should be able to take x_authority from the $AUTHORITY variable in the 
Sakai-Nakamura ( X/XE/XEONTIME/Sakai-Nakamura-0.13.tar.gz, XEONTIME, 2012; MetaCPAN )
Sakai-Nakamura/scripts/nakamura.pl ( view source; MetaCPAN )
ra::GroupMember;
use Sakai::Nakamura::GroupRole;
use Sakai::Nakamura::Group;
use Sakai::Nakamura::JsonQueryServlet;
use Sakai::Nakamura::LDAPSynch;
use Sakai::Nakamura::User;
use Sakai::Nakamura::Worl
Nakamura::GroupRole',
    'group',              'Sakai::Nakamura::Group',
    'json_query_servlet', 'Sakai::Nakamura::JsonQueryServlet',
    'ldap_synch',         'Sakai::Nakamura::LDAPSynch',
    'us
    - run group role related actions
 group              - run group related actions
 json_query_servlet - run json query servlet related actions
 ldap_synch         - run ldap synchronization related
IRC-Indexer ( A/AV/AVENJ/IRC-Indexer-0.06.tar.gz, AVENJ, 2012; MetaCPAN )
IRC-Indexer/lib/IRC/Indexer/Conf.pm ( view source; MetaCPAN )
here will be some extra processing overhead when results are 
## cached.
CacheDir: /home/ircindex/jsoncache

## LogFile:
##
## Path to log file.
## If omitted, no logging takes place.
LogFile: /home/i
rawlers: 10

## MaxEncoders:
##
## Workers are forked off to handle the potentially expensive 
## JSON encoding of server trawl results; if you're trawling 
## a lot of networks, you may want to throt
Sakai-Nakamura ( X/XE/XEONTIME/Sakai-Nakamura-0.13.tar.gz, XEONTIME, 2012; MetaCPAN )
Sakai-Nakamura/lib/Sakai/Nakamura/GroupMemberUtil.pm ( view source; MetaCPAN )
_member']";
    return
"post $base_url/system/userManager/group/$act_on_group-$act_on_role.update.json $post_variables";
}

#}}}

#{{{sub add_eval

sub add_eval {
    my ($res) = @_;
    return ( ${$r
IRC-Indexer ( A/AV/AVENJ/IRC-Indexer-0.06.tar.gz, AVENJ, 2012; MetaCPAN )
IRC-Indexer/lib/IRC/Indexer/POD/ServerSpec.pod ( view source; MetaCPAN )
provided by 
L<IRC::Indexer::Report::Network>.

Current as of IRC::Indexer 0.01

=head1 FORMAT

B<JSON> is the preferred format for network transmission; it is light 
and support is fairly universal.
IRC-Indexer ( A/AV/AVENJ/IRC-Indexer-0.06.tar.gz, AVENJ, 2012; MetaCPAN )
IRC-Indexer/lib/IRC/Indexer/Trawl/Forking.pm ( view source; MetaCPAN )
t and session to handle a single forked trawler.
## This is mostly intended for ircindexer-server-json.

## Provide compatible methods w/ Bot::Trawl
## Other layers can use this with the same interfac

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.