xsul.xpola.capman
Class PersistentCapman

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

public class PersistentCapman
extends CapmanAbstractImpl


Constructor Summary
PersistentCapman(int dbType, java.lang.String db, java.lang.String user, java.lang.String password)
           
 
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 xsul.xpola.capman.CapmanAbstractImpl
getAllCapabilityHandles, getCapabilitiesByOwner, getCapability, getCapabilityByHandle, getCapabilityHandlesByOwner, getCapabilityHandlesByUser, getRequestById, getRequestsByIssuer, getRequestsByReceiver, registerCapability, registerRequest, removeRequestById, removeRequestsByIssuer, responseToRequest, revokeCapabilitiesByOwner, revokeCapabilityByHandle, updateCapability
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentCapman

public PersistentCapman(int dbType,
                        java.lang.String db,
                        java.lang.String user,
                        java.lang.String password)
Method Detail

registerCapability

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

getCapability

public java.lang.String getCapability(java.lang.String handle,
                                      java.lang.String userdn)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getCapabilityByHandle

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

getCapabilitiesByOwner

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

revokeCapabilityByHandle

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

revokeCapabilitiesByOwner

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

updateCapability

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

getAllCapabilityHandles

public java.lang.String[] getAllCapabilityHandles()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getCapabilityHandlesByOwner

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

getCapabilityHandlesByUser

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

registerRequest

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

responseToRequest

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

getRequestById

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

getRequestsByIssuer

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

getRequestsByReceiver

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

removeRequestById

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

removeRequestsByIssuer

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


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