Introduction
------------

This package called 'uvos-client' contains client side libraries and a 
command line application (CLC) for accessing UVOS Server. 

For a general introduction of UVOS please refer to its website: http://uvos.chemomentum.org
	
A complete overview of the UVOS is available in the initial chapters of the "UVOS Server manual"
available there.


Installation
------------

UVOS client is distributed either as a platform independent archive or as 
an installable, platform dependent package such as RPM. Depending on the 
installation source used, installation method and paths after installation 
are different. 

Installation from the RPM package (RedHat distributions)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

If installing using distribution-specific package as RPM the following 
instruction shall be used:

Download RPM UVOS client package from UNICORE download site and install it using 
rpm command as the root user:

 $> rpm -i unicore-uvos-clc-VERSION.noarch.rpm  

You can also (what is suggested) use yum to install and subsequently update the component.
The yum installation may be performed as follows (note that first command is needed
only if you have not yet installed the EMI yum repository):

  $> wget --no-check-certificate \
  https://twiki.cern.ch/twiki/pub/EMI/EMI-1/rc1.repo \
  -O /etc/yum.repos.d/emi-1.repo
  $> yum install unicore-uvos-clc

The default configuration of the client is placed in +/etc/unicore/uvos-clc/uvosClient.conf+
Upon a first start of the client it will be copied to +.uvos-clc/+ folder in 
your home directory. You should edit it there (see xref:configuration[Configuration] for details). 
The executable program is called +uvos-clc+.

Installation from the archive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If installing using a portable archive:

 1. Download the uvos-client archive from the UNICORE download site and unpack it.
 2. The default configuration of the client is placed in +conf/uvosClient.conf+
 You should edit it there (see xref:configuration[Configuration] for details). 
 The program can be found in the +bin/+ subdirectory and is called +uvoscmd.sh+


Using the command line UVOS client
----------------------------------

UVOS Command Line Client can operate in batch or interactive mode. Invoking it without
arguments provides you with usage instructions. When invoking UVOS CLC user must select 
one of the available commands and provide arguments for it. 

UVOS CLC offers a built in help system: it allows you to list all commands and get
help on each of them. The following command outputs help for the operation +addIdentity+ 
(assuming you are invoked UVOS CLC in interactive mode, similarly you can invoke it in 
batch mode):

 help addIdentity

Note that in interactive mode in order to pass arguments which contain spaces
you should surround them with double quotes "like this". 

The command line client uses a configuration file to get information about:

 - UVOS server address.
 - How to authenticate to the server.
 - Trusted certificates for TLS connection.
 
See xref:configuration[Configuration] for details. 


Using other available clients
-----------------------------

Other clients which are available in this package are usually not useful for 
UVOS users. The sole exception is SAMLSelfClient. 
This program gets all attributes which are defined for the identity making the
call (i.e. this one which is set in client's configuration file).

The 'WebClient' program serves as an example for developers only so you can 
ignore it.


Developing with uvos-client
---------------------------

If you intend to use this package as a library please refer to the JavaDocs documentation
(it is available from the download site, and from the documentation site which is preferred, 
the most accurate source). Remember that there are two VO APIs implemented by this library:

 - *SAML API* It uses SAML 2.0 and so is standard-complaint, can be used to access 
 any version of UVOS server and possibly other SAML services. However it offers only 
 a read-only access. If you can then use use this API. It is included in the 
 package: pl.edu.icm.unicore.uvos.wsclient.samlapi
 - *UVOS API* It uses an own UVOS web services interface. It is not guaranteed
 that using this API will work perfectly with older UVOS server releases (however 
 most of fundamental functions should work). Also this API in not standards 
 complaint. On the other hand it allows you to use all UVOS features. 
 It is included in the package: pl.edu.icm.unicore.uvos.wsclient.api

Also note that if intend to simply add UVOS support for your XFire or WSRFLite or UAS 
service then you should use xfire-voutils or uas-authz packages which provides a
ready to use solution for such cases. 

For additional information please contact UVOS or UNICORE developers at: 
unicore-devel@lists.sourceforge.net
