org.wso2.registry.jdbc
Class Repository

java.lang.Object
  extended by org.wso2.registry.jdbc.Repository

public class Repository
extends java.lang.Object


Field Summary
protected  javax.sql.DataSource dataSource
          Data source for obtaining database connections.
protected  UserRealm realm
          User manager realm, which can be used to set permissions on resources.
 
Constructor Summary
Repository(javax.sql.DataSource dataSource, UserRealm userRealm)
           
 
Method Summary
 boolean delete(java.lang.String path)
           
 Resource get(java.lang.String path)
           
 boolean importChild(java.lang.String childPath, java.lang.String sourceURL)
           
 java.lang.String importResource(java.lang.String path, java.lang.String sourceURL, Resource metadata)
           
 boolean put(java.lang.String path, Resource resource)
           
 boolean putChild(java.lang.String childPath, Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

protected javax.sql.DataSource dataSource
Data source for obtaining database connections. Media type handlers need to access the database for performing almost all the tasks.


realm

protected UserRealm realm
User manager realm, which can be used to set permissions on resources. Media type handlers may want to add other resources (e.g. imports) than the originally given resource. So it is necessary to allow media type handler to set permissions for the resources it is dealing with.

Constructor Detail

Repository

public Repository(javax.sql.DataSource dataSource,
                  UserRealm userRealm)
Method Detail

get

public Resource get(java.lang.String path)
             throws RegistryException
Throws:
RegistryException

put

public boolean put(java.lang.String path,
                   Resource resource)
            throws RegistryException
Throws:
RegistryException

importResource

public java.lang.String importResource(java.lang.String path,
                                       java.lang.String sourceURL,
                                       Resource metadata)
                                throws RegistryException
Throws:
RegistryException

delete

public boolean delete(java.lang.String path)
               throws RegistryException
Throws:
RegistryException

putChild

public boolean putChild(java.lang.String childPath,
                        Resource resource)
                 throws RegistryException
Throws:
RegistryException

importChild

public boolean importChild(java.lang.String childPath,
                           java.lang.String sourceURL)
                    throws RegistryException
Throws:
RegistryException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.