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

java.lang.Object
  extended byorg.glite.security.voms.service.history.VOMSHistorySoapBindingImpl
All Implemented Interfaces:
VOMSHistory

public class VOMSHistorySoapBindingImpl
extends java.lang.Object
implements VOMSHistory

Server side of the VOMS History service.

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 VOMSException
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.
Throws:
VOMSException

toTime

public java.util.Calendar toTime(long transaction)
                          throws VOMSException
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.
Throws:
VOMSException

getModificationsSince

public java.lang.String getModificationsSince(long transaction)
                                       throws VOMSException
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.
Throws:
VOMSException

listMembers

public User[] listMembers(java.lang.String container,
                          long transaction)
                   throws VOMSException
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.
Throws:
VOMSException
See Also:
VOMSAdmin.listMembers(java.lang.String)

getACL

public ACLEntry[] getACL(java.lang.String container,
                         long transaction)
                  throws VOMSException
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
Throws:
VOMSException
See Also:
VOMSAdmin.getACL(java.lang.String)

getDefaultACL

public ACLEntry[] getDefaultACL(java.lang.String groupname,
                                long transaction)
                         throws VOMSException
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
Throws:
VOMSException
See Also:
VOMSAdmin.getDefaultACL(java.lang.String)

getMajorVersionNumber

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

Specified by:
getMajorVersionNumber in interface VOMSHistory

getMinorVersionNumber

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

Specified by:
getMinorVersionNumber in interface VOMSHistory

getPatchVersionNumber

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

Specified by:
getPatchVersionNumber in interface VOMSHistory