NAME

GLite::Data::FileCatalog


DESCRIPTION

GLite::Data::FileCatalog module provides a Perl client library for the FileCatalog interface.


METHODS

The methods die if there was a SOAP fault. The fault string and details are added to the die message.

new($URL)
Creates an FileCatalog object, which is initialized with the approriate SOAP endpoint. If the URL uses https protocol, then it will do the HTTPS initialization (locating proxy certificate) as well.

Note: you have to include the VO name in the URL!

    my $srv = GLite::Data::FileCatalog->new('https://service.glite.org:8443/example');

mkdir(string[] directories, boolean createParents, boolean copyPermFromParent)
symlink(StringPair[] symlinks, boolean copyPermFromParent)
rmdir(string[] directories)
createFile(FCEntry[] entries)
unlink(string[] lfns)
mv(StringPair[] entries)
updateModifyTime(string[] lfns, long time)
updateValidityTime(string[] lfns, long time)
FCEntry[] readDir(string path, string pattern, long limit, long offset, boolean withPermissions)
string[] locate(string startDir, string pattern, long limit)
StringPair[] getGuidForLfn(string[] lfns)
StringPair[] getLfnForGuid(string[] guids)
FCEntry[] getFileCatalogEntry(string[] lfns)
checkPermission(string[] items, Perm perm)
PermissionEntry[] getPermission(string[] items)
setPermission(PermissionEntry[] permissions)
string getVersion()
string getSchemaVersion()
string getInterfaceVersion()
string getServiceMetadata(string key)


TYPES

ArrayOf_soapenc_string
    my $myArrayOf_soapenc_string = [ 'string1', 'string2', ...];
ArrayOf_tns1_StringPair
    my $myArrayOf_tns1_StringPair = [ $myStringPair1, $myStringPair2, ... ];
ArrayOf_tns1_FCEntry
    my $myArrayOf_tns1_FCEntry = [ $myFCEntry1, $myFCEntry2, ... ];
ArrayOf_tns1_PermissionEntry
    my $myArrayOf_tns1_PermissionEntry = [ $myPermissionEntry1, $myPermissionEntry2, ... ];
CatalogException
    my $myCatalogException = {
        message => 'string'
    };
InternalException
    my $myInternalException = new CatalogException (
        
    );
InvalidArgumentException
    my $myInvalidArgumentException = new CatalogException (
        
    );
AuthorizationException
    my $myAuthorizationException = new CatalogException (
        
    );
ExistsException
    my $myExistsException = new CatalogException (
        
    );
NotExistsException
    my $myNotExistsException = new CatalogException (
        
    );
StringPair
    my $myStringPair = {
        string1 => 'string', 
        string2 => 'string'
    };
Perm
    my $myPerm = {
        permission => $myboolean, 
        remove => $myboolean, 
        read => $myboolean, 
        write => $myboolean, 
        list => $myboolean, 
        execute => $myboolean, 
        getMetadata => $myboolean, 
        setMetadata => $myboolean
    };
BasicPermission
    my $myBasicPermission = {
        userName => 'string', 
        groupName => 'string', 
        userPerm => $myPerm, 
        groupPerm => $myPerm, 
        otherPerm => $myPerm
    };
ACLEntry
    my $myACLEntry = {
        principalPerm => $myPerm, 
        principal => 'string'
    };
Permission
    my $myPermission = new BasicPermission (
        
    );
Stat
    my $myStat = {
        modifyTime => $mylong, 
        creationTime => $mylong, 
        size => $mylong
    };
LFNStat
    my $myLFNStat = new Stat (
        
    );
FCEntry
    my $myFCEntry = {
        lfn => 'string', 
        guid => 'string', 
        permission => $myPermission, 
        lfnStat => $myLFNStat
    };
PermissionEntry
    my $myPermissionEntry = {
        item => 'string', 
        permission => $myPermission
    };


SEE ALSO

the GLite::HTTPS manpage


AUTHORS

Copyright (c) 2004 CERN, on behalf of the EU EGEE project. For license conditions see LICENSE file or http://www.edg.org/license.html.