IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13048


Ignore:
Timestamp:
Apr 26, 2007, 2:09:22 PM (19 years ago)
Author:
jhoblitt
Message:

add Nebulous::Client->find_objects()

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r13047 r13048  
    22
    330.05
    4     - add Nebulous::Server->find_keys()
     4    - add Nebulous::Client->find_objects()
     5    - add Nebulous::Server->find_objects()
    56    - add neb-touch
    67    - add neb-df
  • trunk/Nebulous-Server/MANIFEST

    r13047 r13048  
    100100t/62_client_delete_instance.t
    101101t/63_client_stat.t
     102t/64_client_find_objects.t
    102103t/90_nebclient.t
    103104t/TEST.PL
  • trunk/Nebulous/Changes

    r13047 r13048  
    22
    330.05
    4     - add Nebulous::Server->find_keys()
     4    - add Nebulous::Client->find_objects()
     5    - add Nebulous::Server->find_objects()
    56    - add neb-touch
    67    - add neb-df
  • trunk/Nebulous/MANIFEST

    r13047 r13048  
    100100t/62_client_delete_instance.t
    101101t/63_client_stat.t
     102t/64_client_find_objects.t
    102103t/90_nebclient.t
    103104t/TEST.PL
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r12961 r13048  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.24 2007-04-23 20:45:08 jhoblitt Exp $
     3# $Id: Client.pm,v 1.25 2007-04-27 00:09:22 jhoblitt Exp $
    44
    55package Nebulous::Client;
     
    383383}
    384384
     385sub find_objects {
     386    my $self = shift;
     387
     388    my ( $pattern ) = validate_pos( @_,
     389        {
     390            type        => SCALAR,
     391            optional    => 1,
     392        },
     393    );
     394
     395    $log->debug( "entered - @_" );
     396
     397    my $response = $self->{ 'server' }->find_objects( $pattern );
     398    if ( $response->fault ) {
     399        $log->error( $response->faultcode, " - ", $response->faultstring );
     400        $log->debug( "leaving" );
     401
     402        return undef;
     403    }
     404
     405    my $keys = $response->result;
     406
     407    $log->debug( "server found: @$keys" );
     408
     409#    foreach my $path ( @{ $uris } ) {
     410#        $path = _get_file_path( $path );
     411#    }
     412
     413    $log->debug( "leaving" );
     414
     415# aparently empty arrays are being turned into undef by SOAP::Lite so the
     416# behavior of this function is different then it's ::Server counter part
     417
     418    return $keys;
     419}
     420
    385421sub find_instances {
    386422    my $self = shift;
Note: See TracChangeset for help on using the changeset viewer.