org.edg.security.voms.service.history
Class VOMSHistorySoapBindingImpl

java.lang.Object
  |
  +--org.edg.security.voms.service.history.VOMSHistorySoapBindingImpl
All Implemented Interfaces:
java.rmi.Remote, VOMSHistory

public class VOMSHistorySoapBindingImpl
extends java.lang.Object
implements VOMSHistory

Server side of the VOMS History service.

Version:
$Name: v0_7_0 $
Author:
Akos Frohner

Constructor Summary
VOMSHistorySoapBindingImpl()
           
 
Method Summary
 ACLEntry[] getACL(java.lang.String container, long transaction)
          Get the ACL for a container at a given transaction.
 ACLEntry[] getDefaultACL(java.lang.String groupname, long transaction)
          Get the default ACL for a group at a given transaction.
 int getMajorVersionNumber()
          Returns the major version number.
 int getMinorVersionNumber()
          Returns the minor version number.
 java.lang.String getModificationsSince(long transaction)
          Returns the database modifications as a HUGE XML document since the marked transaction.
 int getPatchVersionNumber()
          Returns the patch version number.
 User[] listMembers(java.lang.String container, long transaction)
          List members of a container at a given transaction.
 java.util.Calendar toTime(long transaction)
          Converts a transaction number to time-mark.
 long toTransaction(java.util.Calendar time)
          Converts a time-mark to transaction number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VOMSHistorySoapBindingImpl

public VOMSHistorySoapBindingImpl()
Method Detail

toTransaction

public long toTransaction(java.util.Calendar time)
                   throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Converts a time-mark to transaction number.

Specified by:
toTransaction in interface VOMSHistory
Parameters:
time - time-mark
Returns:
transaction number
java.rmi.RemoteException

toTime

public java.util.Calendar toTime(long transaction)
                          throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Converts a transaction number to time-mark. The time-marks are not recorded for every transaction, so the method will return the closest, earlierst time-mark.

Specified by:
toTime in interface VOMSHistory
Parameters:
transaction - transaction number
Returns:
time-mark
java.rmi.RemoteException

getModificationsSince

public java.lang.String getModificationsSince(long transaction)
                                       throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Returns the database modifications as a HUGE XML document since the marked transaction. The purpose of this function is to allow slave replicas for requesting incremental updates.

Specified by:
getModificationsSince in interface VOMSHistory
Parameters:
transaction - the last known transaction
Returns:
XML document with all modifications
java.rmi.RemoteException

listMembers

public User[] listMembers(java.lang.String container,
                          long transaction)
                   throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
List members of a container at a given transaction.

Specified by:
listMembers in interface VOMSHistory
Parameters:
container - the tested container's name
transaction - transaction number
Returns:
members of the container
java.rmi.RemoteException
See Also:
VOMSAdmin.listMembers(java.lang.String)

getACL

public ACLEntry[] getACL(java.lang.String container,
                         long transaction)
                  throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Get the ACL for a container at a given transaction.

Specified by:
getACL in interface VOMSHistory
Parameters:
container - the tested container's name
transaction - transaction number
Returns:
ACL
java.rmi.RemoteException
See Also:
VOMSAdmin.getACL(java.lang.String)

getDefaultACL

public ACLEntry[] getDefaultACL(java.lang.String groupname,
                                long transaction)
                         throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Get the default ACL for a group at a given transaction.

Specified by:
getDefaultACL in interface VOMSHistory
Parameters:
groupname - the tested group's name
transaction - transaction number
Returns:
ACL
java.rmi.RemoteException
See Also:
VOMSAdmin.getDefaultACL(java.lang.String)

getMajorVersionNumber

public int getMajorVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Returns the major version number.

Specified by:
getMajorVersionNumber in interface VOMSHistory
java.rmi.RemoteException

getMinorVersionNumber

public int getMinorVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Returns the minor version number.

Specified by:
getMinorVersionNumber in interface VOMSHistory
java.rmi.RemoteException

getPatchVersionNumber

public int getPatchVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSHistory
Returns the patch version number.

Specified by:
getPatchVersionNumber in interface VOMSHistory
java.rmi.RemoteException