org.cagrid.gaards.cds.client
Class DelegationAdminClient

java.lang.Object
  extended by org.cagrid.gaards.cds.client.DelegationAdminClient

public class DelegationAdminClient
extends java.lang.Object

Author:
langella

Constructor Summary
DelegationAdminClient(java.lang.String url)
           
DelegationAdminClient(java.lang.String url, org.globus.gsi.GlobusCredential cred)
           
 
Method Summary
 void addAdmin(java.lang.String gridIdentity)
          This method allows a CDS administrator to add another user as a CDS administrator.
 void deleteDelegatedCredential(DelegationIdentifier id)
          This method allow and administrator to delete a delegated credential.
 java.util.List<DelegationRecord> findDelegatedCredentials()
          This method allows a admin to find credentials that have been delegated.
 java.util.List<DelegationRecord> findDelegatedCredentials(DelegationRecordFilter filter)
          This method allows a admin to find credentials that have been delegated.
 java.util.List<java.lang.String> getAdmins()
          This method allows a CDS administrator to get a list of CDS administrators.
 void removeAdmin(java.lang.String gridIdentity)
          This method allows a CDS administrator to remove the user from the CDS administrators group.
 void updateDelegationStatus(DelegationIdentifier id, DelegationStatus status)
          This method allows and admin to update the status of a delegated credential.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegationAdminClient

public DelegationAdminClient(java.lang.String url)
                      throws java.lang.Exception
Throws:
java.lang.Exception

DelegationAdminClient

public DelegationAdminClient(java.lang.String url,
                             org.globus.gsi.GlobusCredential cred)
                      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

findDelegatedCredentials

public java.util.List<DelegationRecord> findDelegatedCredentials()
                                                          throws java.rmi.RemoteException,
                                                                 CDSInternalFault,
                                                                 DelegationFault,
                                                                 PermissionDeniedFault
This method allows a admin to find credentials that have been delegated.

Returns:
A list of records each representing a credential delegated.
Throws:
java.rmi.RemoteException
CDSInternalFault
DelegationInternalFault
PermissionDeniedFault
DelegationFault

findDelegatedCredentials

public java.util.List<DelegationRecord> findDelegatedCredentials(DelegationRecordFilter filter)
                                                          throws java.rmi.RemoteException,
                                                                 CDSInternalFault,
                                                                 DelegationFault,
                                                                 PermissionDeniedFault
This method allows a admin to find credentials that have been delegated.

Parameters:
filter - Search criteria to use in finding delegated credentials
Returns:
A list of records each representing a credential delegated.
Throws:
java.rmi.RemoteException
CDSInternalFault
DelegationInternalFault
PermissionDeniedFault
DelegationFault

updateDelegationStatus

public void updateDelegationStatus(DelegationIdentifier id,
                                   DelegationStatus status)
                            throws java.rmi.RemoteException,
                                   CDSInternalFault,
                                   DelegationFault,
                                   PermissionDeniedFault
This method allows and admin to update the status of a delegated credential.

Parameters:
id - The delegation identifier of the delegated credentials to suspend.
status - The updated delegation status.
Throws:
java.rmi.RemoteException
CDSInternalFault
DelegationFault
PermissionDeniedFault

deleteDelegatedCredential

public void deleteDelegatedCredential(DelegationIdentifier id)
                               throws java.rmi.RemoteException,
                                      CDSInternalFault,
                                      PermissionDeniedFault
This method allow and administrator to delete a delegated credential.

Parameters:
id - The Id of the delegated credential to delete.
Throws:
java.rmi.RemoteException
CDSInternalFault
PermissionDeniedFault

addAdmin

public void addAdmin(java.lang.String gridIdentity)
              throws java.rmi.RemoteException,
                     CDSInternalFault,
                     PermissionDeniedFault
This method allows a CDS administrator to add another user as a CDS administrator.

Parameters:
gridIdentity - The grid identity of the user to add as a CDS administrator.
Throws:
java.rmi.RemoteException
CDSInternalFault
PermissionDeniedFault

removeAdmin

public void removeAdmin(java.lang.String gridIdentity)
                 throws java.rmi.RemoteException,
                        CDSInternalFault,
                        PermissionDeniedFault
This method allows a CDS administrator to remove the user from the CDS administrators group.

Parameters:
gridIdentity - The Grid Identity of the user to remove from the CDS administrators group.
Throws:
java.rmi.RemoteException
CDSInternalFault
PermissionDeniedFault

getAdmins

public java.util.List<java.lang.String> getAdmins()
                                           throws java.rmi.RemoteException,
                                                  CDSInternalFault,
                                                  PermissionDeniedFault
This method allows a CDS administrator to get a list of CDS administrators.

Returns:
The list of CDS administrators.
Throws:
java.rmi.RemoteException
CDSInternalFault
PermissionDeniedFault