Package javax.jcr
package javax.jcr
Provides interfaces and classes for the Content Repository for Java Technology.
-
ClassDescriptionException thrown by access-related methods.A
Binary
object holds a JCR property value of typeBINARY
.Interface for all credentials that may be passed to theRepository.login(Credentials credentials, String workspaceName)
method.GuestCredentials
implements theCredentials
interface and is used to obtain a "guest", "public" or "anonymous" session.The possible actions specified by theuuidBehavior
parameter inWorkspace.importXML(java.lang.String, java.io.InputStream, int)
,Session.importXML(java.lang.String, java.io.InputStream, int)
,Workspace.getImportContentHandler(java.lang.String, int)
andSession.getImportContentHandler(java.lang.String, int)
.Exception thrown by the write methods ofNode
andProperty
and bySession.save()
andSession.refresh(boolean)
if an attempted change would conflict with a change to the persistent workspace made through anotherSession
.Exception thrown by Lifecycle management-related methods.Exception thrown by the deserialization methods ofSession
if the serialized data being input has an invalid format.An exception thrown when an attempt is made to place an item in a position where another item already exists.This interface defines two signatures of thevisit
method; one taking aNode
, the other aProperty
.Exception thrown by
andRepository.login(Credentials, String)
if the specified credentials are invalid.Session.impersonate(Credentials)
Exception thrown byNode.merge(String srcWorkspace, boolean isDeep)
.Exception thrown by
if the specifiedSession.setNamespacePrefix(String prefix, String uri)
uri
is not registered in theNamespaceRegistry
.Each repository has a single, persistent namespace registry represented by theNamespaceRegistry
object, accessed viaWorkspace.getNamespaceRegistry()
.TheNode
interface represents a node in a workspace.Allows easy iteration through a list ofNode
s withnextNode
as well as askip
method inherited fromRangeIterator
.Exception thrown by
when a specific workspace is not found.Repository.login(Credentials, String)
Exception thrown when noItem
exists at the specified path or when the specified path implies intermediaryNode
s that do not exist.AProperty
object represents the smallest granularity of content storage.Allows easy iteration through a list ofProperty
s withnextProperty
as well as askip
method.The property types supported by the JCR standard.ExtendsIterator
with theskip
,getSize
andgetPosition
methods.Exception thrown on referential integrity violation.The entry point into the content repository.Main exception thrown by classes in this package.RepositoryFactory
is a factory forRepository
objects.TheSession
object provides read and (in level 2) write access to the content of a particular workspace in the repository.SimpleCredentials
implements theCredentials
interface and represents simple user ID/password credentials.Thrown by methods that are not supported by a particular implementation.A generic holder for the value of a property.TheValueFactory
object provides methods for the creation Value objects that can then be used to set properties.Exception thrown when an attempt is made to assign a value to a property that has an invalid format, given the type of the property.AWorkspace
object represents a view onto a persitent workspace within a repository.