org.wso2.registry.jdbc
Class Repository
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Repository
public Repository(javax.sql.DataSource dataSource,
UserRealm userRealm)
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.