xsul.xpola.capman
Class CapmanClient

java.lang.Object
  extended byxsul.xpola.capman.CapmanClient
All Implemented Interfaces:
CapabilityManager, RequestManager

public class CapmanClient
extends java.lang.Object
implements CapabilityManager, RequestManager


Constructor Summary
CapmanClient(java.lang.String location)
           
 
Method Summary
 java.lang.String[] getAllCapabilityHandles()
           
 java.lang.String[] getCapabilitiesByOwner(java.lang.String owner)
           
 java.lang.String getCapability(java.lang.String handle, java.lang.String userdn)
           
 java.lang.String getCapabilityByHandle(java.lang.String handle)
           
 java.lang.String[] getCapabilityHandlesByOwner(java.lang.String ownerdn)
           
 java.lang.String[] getCapabilityHandlesByUser(java.lang.String userdn)
           
 java.lang.String getRequestById(java.lang.String id)
           
 java.lang.String[] getRequestsByIssuer(java.lang.String issuer)
           
 java.lang.String[] getRequestsByReceiver(java.lang.String receiver)
           
 void registerCapability(java.lang.String acap)
           
 void registerRequest(java.lang.String request)
           
 void removeRequestById(java.lang.String id)
           
 void removeRequestsByIssuer(java.lang.String issuer)
           
 void responseToRequest(java.lang.String response)
           
 void revokeCapabilitiesByOwner(java.lang.String owner)
           
 void revokeCapabilityByHandle(java.lang.String handle)
           
 void updateCapability(java.lang.String acap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapmanClient

public CapmanClient(java.lang.String location)
Method Detail

getCapability

public java.lang.String getCapability(java.lang.String handle,
                                      java.lang.String userdn)
                               throws java.lang.Exception
Specified by:
getCapability in interface CapabilityManager
Throws:
java.lang.Exception

getCapabilityByHandle

public java.lang.String getCapabilityByHandle(java.lang.String handle)
                                       throws java.lang.Exception
Specified by:
getCapabilityByHandle in interface CapabilityManager
Throws:
java.lang.Exception

revokeCapabilitiesByOwner

public void revokeCapabilitiesByOwner(java.lang.String owner)
                               throws java.lang.Exception
Specified by:
revokeCapabilitiesByOwner in interface CapabilityManager
Throws:
java.lang.Exception

getCapabilitiesByOwner

public java.lang.String[] getCapabilitiesByOwner(java.lang.String owner)
                                          throws java.lang.Exception
Specified by:
getCapabilitiesByOwner in interface CapabilityManager
Throws:
java.lang.Exception

registerCapability

public void registerCapability(java.lang.String acap)
                        throws java.lang.Exception
Specified by:
registerCapability in interface CapabilityManager
Throws:
java.lang.Exception

getCapabilityHandlesByUser

public java.lang.String[] getCapabilityHandlesByUser(java.lang.String userdn)
                                              throws java.lang.Exception
Specified by:
getCapabilityHandlesByUser in interface CapabilityManager
Throws:
java.lang.Exception

getAllCapabilityHandles

public java.lang.String[] getAllCapabilityHandles()
                                           throws java.lang.Exception
Specified by:
getAllCapabilityHandles in interface CapabilityManager
Throws:
java.lang.Exception

getCapabilityHandlesByOwner

public java.lang.String[] getCapabilityHandlesByOwner(java.lang.String ownerdn)
                                               throws java.lang.Exception
Specified by:
getCapabilityHandlesByOwner in interface CapabilityManager
Throws:
java.lang.Exception

updateCapability

public void updateCapability(java.lang.String acap)
                      throws java.lang.Exception
Specified by:
updateCapability in interface CapabilityManager
Throws:
java.lang.Exception

revokeCapabilityByHandle

public void revokeCapabilityByHandle(java.lang.String handle)
                              throws java.lang.Exception
Specified by:
revokeCapabilityByHandle in interface CapabilityManager
Throws:
java.lang.Exception

removeRequestById

public void removeRequestById(java.lang.String id)
                       throws java.lang.Exception
Specified by:
removeRequestById in interface RequestManager
Throws:
java.lang.Exception

registerRequest

public void registerRequest(java.lang.String request)
                     throws java.lang.Exception
Specified by:
registerRequest in interface RequestManager
Throws:
java.lang.Exception

getRequestsByIssuer

public java.lang.String[] getRequestsByIssuer(java.lang.String issuer)
                                       throws java.lang.Exception
Specified by:
getRequestsByIssuer in interface RequestManager
Throws:
java.lang.Exception

responseToRequest

public void responseToRequest(java.lang.String response)
                       throws java.lang.Exception
Specified by:
responseToRequest in interface RequestManager
Throws:
java.lang.Exception

removeRequestsByIssuer

public void removeRequestsByIssuer(java.lang.String issuer)
                            throws java.lang.Exception
Specified by:
removeRequestsByIssuer in interface RequestManager
Throws:
java.lang.Exception

getRequestById

public java.lang.String getRequestById(java.lang.String id)
                                throws java.lang.Exception
Specified by:
getRequestById in interface RequestManager
Throws:
java.lang.Exception

getRequestsByReceiver

public java.lang.String[] getRequestsByReceiver(java.lang.String receiver)
                                         throws java.lang.Exception
Specified by:
getRequestsByReceiver in interface RequestManager
Throws:
java.lang.Exception


IU Extreme! Lab (http://www.extreme.indiana.edu)