org.globus.gsi.stores
Class AbstractResourceSecurityWrapper<T>

java.lang.Object
  extended by org.globus.gsi.stores.AbstractResourceSecurityWrapper<T>
Type Parameters:
T - Type of security object
All Implemented Interfaces:
SecurityObjectWrapper<T>, Storable
Direct Known Subclasses:
ResourceCRL, ResourceProxyCredential, ResourceTrustAnchor

public abstract class AbstractResourceSecurityWrapper<T>
extends java.lang.Object
implements SecurityObjectWrapper<T>, Storable

// JGLOBUS-91 : add javadoc


Field Summary
protected  GlobusPathMatchingResourcePatternResolver globusResolver
           
protected  GlobusResource globusResource
           
 
Constructor Summary
AbstractResourceSecurityWrapper()
           
 
Method Summary
protected abstract  T create(GlobusResource targetResource)
           
 java.lang.String getAlias()
           
 java.io.File getFile()
           
 GlobusResource getGlobusResource()
           
 java.net.URL getResourceURL()
           
 T getSecurityObject()
           
 boolean hasChanged()
           
protected  void init(GlobusResource initialResource)
           
protected  void init(GlobusResource initialResource, T initialSecurityObject)
           
protected  void init(java.lang.String locationPattern)
           
protected  void init(java.lang.String locationPattern, T initialSecurityObject)
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.gsi.stores.Storable
store
 

Field Detail

globusResolver

protected GlobusPathMatchingResourcePatternResolver globusResolver

globusResource

protected GlobusResource globusResource
Constructor Detail

AbstractResourceSecurityWrapper

public AbstractResourceSecurityWrapper()
Method Detail

init

protected void init(java.lang.String locationPattern)
             throws ResourceStoreException
Throws:
ResourceStoreException

init

protected void init(GlobusResource initialResource)
             throws ResourceStoreException
Throws:
ResourceStoreException

getAlias

public java.lang.String getAlias()
Specified by:
getAlias in interface SecurityObjectWrapper<T>

init

protected void init(java.lang.String locationPattern,
                    T initialSecurityObject)
             throws ResourceStoreException
Throws:
ResourceStoreException

init

protected void init(GlobusResource initialResource,
                    T initialSecurityObject)
             throws ResourceStoreException
Throws:
ResourceStoreException

getGlobusResource

public GlobusResource getGlobusResource()

getResourceURL

public java.net.URL getResourceURL()

getFile

public java.io.File getFile()

refresh

public void refresh()
             throws ResourceStoreException
Specified by:
refresh in interface SecurityObjectWrapper<T>
Throws:
ResourceStoreException

create

protected abstract T create(GlobusResource targetResource)
                     throws ResourceStoreException
Throws:
ResourceStoreException

getSecurityObject

public T getSecurityObject()
                    throws ResourceStoreException
Specified by:
getSecurityObject in interface SecurityObjectWrapper<T>
Throws:
ResourceStoreException

hasChanged

public boolean hasChanged()
Specified by:
hasChanged in interface SecurityObjectWrapper<T>