| org.apache.cocoon.jcr.AbstractRepository
All known Subclasses: org.apache.cocoon.jcr.JackrabbitRepository, org.apache.cocoon.jcr.JNDIRepository,
AbstractRepository | abstract public class AbstractRepository extends AbstractLogEnabled implements Repository,ThreadSafe,Contextualizable,Serviceable,Configurable,Disposable,Component(Code) | | Base class for JCR (aka JSR-170) repository as
a Cocoon component. The main purpose of this class is to allow repository
credentials to be specified in the component's configuration, so that the
application code just has to call repository.login() .
There is no Cocoon-specific role for this component: "javax.jcr.Repository "
should be used.
The configuration of this class, inherited by its subclasses, is as follows:
<jcr-repository>
<jaas src="context://samples/jaas.config"/>
<credentials login="expression" password="expression"/>
... other specific configuration...
</jcr-repository>
Login and password can be specified using the sitemap expression language,
thus allowing the use of input modules to compute their values, e.g.
password="{session-attr:jcr-password}" .
<credentials> is optional. If not specified, the
application must explicitely supply credentials when calling
Repository.login() .
version: $Id: AbstractRepository.java 449153 2006-09-23 04:27:50Z crossley $ |
JCR_SESSION_REQUEST_ATTRIBUTE | final public static String JCR_SESSION_REQUEST_ATTRIBUTE(Code) | | The request attribute in which the JCR session is stored
|
ROLE | final public static String ROLE(Code) | | Role which shall be used for JCR repository implementations.
|
context | protected Context context(Code) | | |
delegate | protected Repository delegate(Code) | | |
manager | protected ServiceManager manager(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | |
dispose | public void dispose()(Code) | | |
login | public Session login() throws LoginException, NoSuchWorkspaceException, RepositoryException(Code) | | |
login | public Session login(Credentials creds) throws LoginException, NoSuchWorkspaceException, RepositoryException(Code) | | |
login | public Session login(Credentials creds, String workspace) throws LoginException, NoSuchWorkspaceException, RepositoryException(Code) | | |
login | public Session login(String workspace) throws LoginException, NoSuchWorkspaceException, RepositoryException(Code) | | |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | |
|
|