Package javax.jcr
Provides interfaces and classes for the Content Repository for Java Technology.
-
Interface Summary Interface Description Binary ABinary
object holds a JCR property value of typeBINARY
.Credentials Interface for all credentials that may be passed to theRepository.login(Credentials credentials, String workspaceName)
method.ImportUUIDBehavior 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)
.Item ItemVisitor This interface defines two signatures of thevisit
method; one taking aNode
, the other aProperty
.NamespaceRegistry Each repository has a single, persistent namespace registry represented by theNamespaceRegistry
object, accessed viaWorkspace.getNamespaceRegistry()
.Node TheNode
interface represents a node in a workspace.NodeIterator Allows easy iteration through a list ofNode
s withnextNode
as well as askip
method inherited fromRangeIterator
.Property AProperty
object represents the smallest granularity of content storage.PropertyIterator Allows easy iteration through a list ofProperty
s withnextProperty
as well as askip
method.RangeIterator ExtendsIterator
with theskip
,getSize
andgetPosition
methods.Repository The entry point into the content repository.RepositoryFactory RepositoryFactory
is a factory forRepository
objects.Session TheSession
object provides read and (in level 2) write access to the content of a particular workspace in the repository.Value A generic holder for the value of a property.ValueFactory TheValueFactory
object provides methods for the creation Value objects that can then be used to set properties.Workspace AWorkspace
object represents a view onto a persitent workspace within a repository. -
Class Summary Class Description GuestCredentials GuestCredentials
implements theCredentials
interface and is used to obtain a "guest", "public" or "anonymous" session.PropertyType The property types supported by the JCR standard.SimpleCredentials SimpleCredentials
implements theCredentials
interface and represents simple user ID/password credentials. -
Exception Summary Exception Description AccessDeniedException Exception thrown by access-related methods.InvalidItemStateException 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
.InvalidLifecycleTransitionException Exception thrown by Lifecycle management-related methods.InvalidSerializedDataException Exception thrown by the deserialization methods ofSession
if the serialized data being input has an invalid format.ItemExistsException An exception thrown when an attempt is made to place an item in a position where another item already exists.ItemNotFoundException LoginException Exception thrown by
andRepository.login(Credentials, String)
if the specified credentials are invalid.Session.impersonate(Credentials)
MergeException Exception thrown byNode.merge(String srcWorkspace, boolean isDeep)
.NamespaceException Exception thrown by
if the specifiedSession.setNamespacePrefix(String prefix, String uri)
uri
is not registered in theNamespaceRegistry
.NoSuchWorkspaceException Exception thrown by
when a specific workspace is not found.Repository.login(Credentials, String)
PathNotFoundException Exception thrown when noItem
exists at the specified path or when the specified path implies intermediaryNode
s that do not exist.ReferentialIntegrityException Exception thrown on referential integrity violation.RepositoryException Main exception thrown by classes in this package.UnsupportedRepositoryOperationException Thrown by methods that are not supported by a particular implementation.ValueFormatException 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.